Go to the documentation of this file.
34 #ifndef SVHCONTROLCOMMAND_H
35 #define SVHCONTROLCOMMAND_H
86 const int32_t& position1,
87 const int32_t& position2,
88 const int32_t& position3,
89 const int32_t& position4,
90 const int32_t& position5,
91 const int32_t& position6,
92 const int32_t& position7,
93 const int32_t& position8)
112 commands.insert(
commands.begin(), positions.begin(), positions.begin() + 9);
152 o <<
"Pos: " << cc.
position << std::endl;
161 for (std::vector<SVHControlCommand>::const_iterator it = data.
commands.begin();
175 for (std::vector<SVHControlCommand>::iterator it = data.
commands.begin();
190 for (std::vector<SVHControlCommand>::const_iterator it = cc.
commands.begin();
194 o <<
"Chan " << i <<
" : " << *it;
202 #endif // SVHCONTROLCOMMAND_H
SVHControlCommandAllChannels()
Constructs an empty SVHControlCommandAllChannels structure pre filled with 9 empty SVHControlCommands...
bool operator==(const SVHControlCommandAllChannels &other) const
Compares two SVHControlCommand objects.
SVHControlCommandAllChannels(const std::vector< int32_t > &positions)
Construct a control command for all channels from a vector. Only the first 9 Values are used.
bool operator==(const SVHControlCommand &other) const
Compares two SVHControlCommand objects.
int32_t position
Returned position value of the motor [Ticks].
ControlCommands are given as a single target position for the position controller (given in ticks)
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.
std::vector< SVHControlCommand > commands
Multiple controllcommands that shall be send at once.
driver_svh::ArrayBuilder & operator>>(driver_svh::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
driver_svh::ArrayBuilder & operator<<(driver_svh::ArrayBuilder &ab, const SVHControlCommand &data)
SVHControlCommand(const int32_t &position=0)
Constructs a new control command to comandeer the position of the fingers.
Structure for transmitting all controllcommands at once.
schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:53:52