Class SVHControlCommandAllChannels
Defined in File SVHControlCommand.h
Class Documentation
-
class SVHControlCommandAllChannels
Structure for transmitting all controllcommands at once.
Public Functions
-
inline SVHControlCommandAllChannels(const int32_t &position0, const int32_t &position1, const int32_t &position2, const int32_t &position3, const int32_t &position4, const int32_t &position5, const int32_t &position6, const int32_t &position7, const int32_t &position8)
Constructs a controllcommand adressing all channels at once All.
- Parameters:
_position0 – Target position for the Thumb_Flexion
_position1 – Target position for the Thumb_Opposition
_position2 – Target position for the Index_Finger_Distal
_position3 – Target position for the Index_Finger_Proximal
_position4 – Target position for the Middle_Finger_Distal
_position5 – Target position for the Middle_Finger_Proximal
_position6 – Target position for the Ring_Finger
_position7 – Target position for the Pinky
_position8 – Target position for the Finger_Spread
-
inline SVHControlCommandAllChannels(const std::vector<int32_t> &positions)
Construct a control command for all channels from a vector. Only the first 9 Values are used.
- Parameters:
positions – vector of position values. Only the first 9 values are evaluated
-
inline SVHControlCommandAllChannels()
Constructs an empty SVHControlCommandAllChannels structure pre filled with 9 empty SVHControlCommands. Mainly usefull for deserialisation.
-
inline bool operator==(const SVHControlCommandAllChannels &other) const
Compares two SVHControlCommand objects.
Public Members
-
std::vector<SVHControlCommand> commands
Multiple controllcommands that shall be send at once.
-
inline SVHControlCommandAllChannels(const int32_t &position0, const int32_t &position1, const int32_t &position2, const int32_t &position3, const int32_t &position4, const int32_t &position5, const int32_t &position6, const int32_t &position7, const int32_t &position8)