This class describe the full EtherCAT driver for the shadow hand.
More...
#include <shadow_hand.h>
This class describe the full EtherCAT driver for the shadow hand.
It is the main driver, only used this one to control a shadow hand because Shadow hand is composed with two slaves (a fake and a controller). This class describe the full controller and permit communication between the shadow hand controller and an ethercat bus.
- Examples
- shadow_one_hand.cpp, shadow_one_hand_torque.cpp, shadow_two_hands_mono.cpp, and shadow_two_hands_multi.cpp.
◆ ShadowHand() [1/2]
Constructor of ShadowHand class.
The constructor must have an information on witch hand is used (left or right) and if user needs biotacs eletrode data or not.
- Parameters
-
| [in] | hand_id | tells if this is a left or right hand |
| [in] | biotac_electrode_mode | is a BiotacMode which indicates if user need biotac electrodes data |
| [in] | control_mode | the control mode for the hand: torque or PWM |
| [in] | joint_position_interpolator | interpolator used to get joint position in radians from raw units (encoder counts) |
◆ ShadowHand() [2/2]
Constructor of ShadowHand class.
The constructor must have an information on witch hand is used (left or right) and if user needs biotacs eletrode data or not.
- Parameters
-
| [in] | hand_id | tells if this is a left or right hand |
| [in] | biotac_electrode_mode | is a BiotacMode which indicates if user need biotac electrodes data |
| [in] | control_mode | the control mode for the hand: torque or PWM |
◆ ~ShadowHand()
| ethercatcpp::ShadowHand::~ShadowHand |
( |
| ) |
|
◆ command() [1/2]
read/write access to hand command
- Returns
- const RawHandState&
◆ command() [2/2]
◆ default_joint_calibrator()
◆ impl()
| pImpl& ethercatcpp::ShadowHand::impl |
( |
| ) |
|
|
inlineprivate |
◆ print_biotacs_data()
| void ethercatcpp::ShadowHand::print_biotacs_data |
( |
| ) |
|
Function used to print all biotacs datas (presure, temperature and electrode impedance) for all fingers. Electrodes impedances datas are updated anly if class is contruct with "WITH_BIOTACS_ELECTRODES" flag.
◆ print_fingers_positions()
| void ethercatcpp::ShadowHand::print_fingers_positions |
( |
| ) |
|
Function used to print all fingers positions.
◆ print_fingers_torques()
| void ethercatcpp::ShadowHand::print_fingers_torques |
( |
| ) |
|
Function used to print all fingers torques.
◆ read()
| void ethercatcpp::ShadowHand::read |
( |
| ) |
|
◆ read_biotacs_electrodes()
| void ethercatcpp::ShadowHand::read_biotacs_electrodes |
( |
| ) |
|
read contact electrodes values of biotac sensors
◆ read_biotacs_pressures()
| void ethercatcpp::ShadowHand::read_biotacs_pressures |
( |
| ) |
|
read pressure of biotac sensors
◆ read_biotacs_temperatures()
| void ethercatcpp::ShadowHand::read_biotacs_temperatures |
( |
| ) |
|
read temperatures of biotac sensors
◆ read_joints_positions()
| void ethercatcpp::ShadowHand::read_joints_positions |
( |
| ) |
|
read positions of hand's joints
◆ read_joints_torques()
| void ethercatcpp::ShadowHand::read_joints_torques |
( |
| ) |
|
read torques of hand's joints
◆ read_raw_joints_positions()
| void ethercatcpp::ShadowHand::read_raw_joints_positions |
( |
| ) |
|
read raw positions of hand's joints
◆ state()
◆ write()
| void ethercatcpp::ShadowHand::write |
( |
| ) |
|
◆ write_joints_commands()
| void ethercatcpp::ShadowHand::write_joints_commands |
( |
| ) |
|
◆ command_
◆ impl_
| std::unique_ptr<pImpl> ethercatcpp::ShadowHand::impl_ |
|
private |
◆ state_
The documentation for this class was generated from the following file: