class ActuatorCommand

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
command_iduint32Command ID (first 2 bytes: device ID, last 2 bytes: sequence number)
flagsuint32Flags
positionfloat32Desired position of the actuator (in degrees)
velocityfloat32Desired velocity of the actuator (in degrees per second)
torque_jointfloat32Desired torque of the actuator (in Newton * meters)
current_motorfloat32Desired current of the motor (in Amperes)

Member functions

Function nameReturn typeInput typeDescription
command_id()uint32voidReturns the current value of command_id. If the command_id is not set, returns 0.
set_command_id()voiduint32Sets the value of command_id. After calling this, command_id() will return value.
clear_command_id()voidvoidClears the value of command_id. After calling this, command_id() will return 0.
flags()uint32voidReturns the current value of flags. If the flags is not set, returns 0.
set_flags()voiduint32Sets the value of flags. After calling this, flags() will return value.
clear_flags()voidvoidClears the value of flags. After calling this, flags() will return 0.
position()float32voidReturns the current value of position. If the position is not set, returns 0.
set_position()voidfloat32Sets the value of position. After calling this, position() will return value.
clear_position()voidvoidClears the value of position. After calling this, position() will return 0.
velocity()float32voidReturns the current value of velocity. If the velocity is not set, returns 0.
set_velocity()voidfloat32Sets the value of velocity. After calling this, velocity() will return value.
clear_velocity()voidvoidClears the value of velocity. After calling this, velocity() will return 0.
torque_joint()float32voidReturns the current value of torque_joint. If the torque_joint is not set, returns 0.
set_torque_joint()voidfloat32Sets the value of torque_joint. After calling this, torque_joint() will return value.
clear_torque_joint()voidvoidClears the value of torque_joint. After calling this, torque_joint() will return 0.
current_motor()float32voidReturns the current value of current_motor. If the current_motor is not set, returns 0.
set_current_motor()voidfloat32Sets the value of current_motor. After calling this, current_motor() will return value.
clear_current_motor()voidvoidClears the value of current_motor. After calling this, current_motor() will return 0.

Parent topic: BaseCyclic (C++)