Go to the documentation of this file.
56 constexpr std::array<uint32_t, static_cast<int>(
HandID::Count)>
155 "FFJ4",
"FFJ3",
"FFJ2",
"MFJ4",
"MFJ3",
"MFJ2",
"RFJ4",
156 "RFJ3",
"RFJ2",
"LFJ5",
"LFJ4",
"LFJ3",
"LFJ2",
"THJ5",
157 "THJ4",
"THJ3",
"THJ2",
"WRJ2",
"WRJ1"};
160 "FirstFinger",
"MiddleFinger",
"RingFinger",
161 "LittleFinger",
"Thumb",
"Wrist"};
164 return static_cast<std::size_t
>(name);
168 return static_cast<std::size_t
>(name);
172 return static_cast<std::size_t
>(id);
constexpr std::size_t index_of(JointNames name)
Definition: common.h:163
JointNames
Shadow hand joint names.
Definition: common.h:108
BiotacElectrodes()
Definition: common.h:98
std::array< BiotacTemperatures, biotac_count > biotac_temperatures
Definition: common.h:189
HandType
Describes the hand type: right or left.
Definition: common.h:44
std::array< int16_t, joint_count > joint_torques
Definition: common.h:200
std::array< BiotacPressures, biotac_count > biotac_presures
Definition: common.h:188
constexpr std::size_t wrist_joint_count
Definition: common.h:146
HandID
List of known Shadow hands with their respective serial number.
Definition: common.h:48
constexpr std::size_t middle_finger_joint_count
Definition: common.h:142
RawHandCommand(ControlMode mode)
Definition: common.h:194
JointGroupsNames
All available joints groups on a Shadow hand.
Definition: common.h:132
constexpr int POSITION_SENSOR_NUM
Definition: common.h:40
constexpr int NUM_MOTORS
Definition: common.h:36
std::array< int16_t, joint_count > joint_pwm
Definition: common.h:201
All raw temperature measurements given by a Biotac.
Definition: common.h:90
All raw impedance electrodes measurements given by a Biotac.
Definition: common.h:97
constexpr std::array< const char *, joint_count > joint_names
Definition: common.h:154
constexpr int SENSORS_NUM_0220
Definition: common.h:38
constexpr std::size_t first_finger_joint_count
Definition: common.h:141
ControlMode
Describes the hand control mode: torque or direct PWM motor control.
Definition: common.h:78
@ WithElectrodes
Electrodes datas are updated.
RawHandState()
Definition: common.h:176
int16_t Tdc
Mesured temperature.
Definition: common.h:92
constexpr std::size_t thumb_finger_joint_count
Definition: common.h:145
std::array< double, joint_count > joint_positions
Definition: common.h:187
constexpr std::size_t little_finger_joint_count
Definition: common.h:144
std::array< uint16_t, joint_count > raw_joint_positions
Definition: common.h:186
int16_t Pac0
First mesured dynamics presures.
Definition: common.h:83
ControlMode control_mode
Definition: common.h:199
@ WithoutElectrodes
Only presure and temperature are updated.
All raw pressure measurements given by a Biotac.
Definition: common.h:82
constexpr std::size_t joint_count
Definition: common.h:147
BiotacMode
Describes the Biotac working mode: with or without the electrodes.
Definition: common.h:71
constexpr std::size_t joint_groups_count
Definition: common.h:151
constexpr std::size_t biotac_count
Definition: common.h:152
int16_t Tac
Mesured dynamics temperature.
Definition: common.h:91
int16_t Pdc
Mesured presure.
Definition: common.h:85
constexpr std::array< const char *, joint_groups_count > joint_groups_names
Definition: common.h:159
constexpr std::array< uint32_t, static_cast< int >HandID::Count)> hand_serial_numbers
List of serial numbers corresponding to HandIDs.
Definition: common.h:57
std::array< BiotacElectrodes, biotac_count > biotac_electrodes
Definition: common.h:190
constexpr std::size_t ring_finger_joint_count
Definition: common.h:143
constexpr std::array< HandType, static_cast< int >HandID::Count)> hand_types
List of hand types corresponding to HandIDs.
Definition: common.h:64
std::array< int16_t, joint_count > joint_torques
Definition: common.h:185
int16_t Pac1
Second mesured dynamics presures.
Definition: common.h:84