class MotorCommand

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
motor_iduint32Motor ID (1, nb_motor)
positionfloat32Desired position of the gripper fingers in percentage (0-100%)
velocityfloat32Desired velocity in percentage (0-100%) with which position will be set
forcefloat32This field is deprecated and unused. It will be removed in a future release.

Member functions

Function nameReturn typeInput typeDescription
motor_id()uint32voidReturns the current value of motor_id. If the motor_id is not set, returns 0.
set_motor_id()voiduint32Sets the value of motor_id. After calling this, motor_id() will return value.
clear_motor_id()voidvoidClears the value of motor_id. After calling this, motor_id() 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.
force()float32voidReturns the current value of force. If the force is not set, returns 0.
set_force()voidfloat32Sets the value of force. After calling this, force() will return value.
clear_force()voidvoidClears the value of force. After calling this, force() will return 0.

Parent topic: GripperCyclic (C++)