Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.89 KB

File metadata and controls

30 lines (24 loc) · 1.89 KB

class MotorCommand

Member values

Member name Data type Description
motor_id uint32 Motor ID (1, nb_motor)
position float32 Desired position of the gripper fingers in percentage (0-100%)
velocity float32 Desired velocity in percentage (0-100%) with which position will be set
force float32 This field is deprecated and unused. It will be removed in a future release.

Member functions

Function name Return type Input type Description
motor_id() uint32 void Returns the current value of motor_id. If the motor_id is not set, returns 0.
set_motor_id() void uint32 Sets the value of motor_id. After calling this, motor_id() will return value.
clear_motor_id() void void Clears the value of motor_id. After calling this, motor_id() will return 0.
position() float32 void Returns the current value of position. If the position is not set, returns 0.
set_position() void float32 Sets the value of position. After calling this, position() will return value.
clear_position() void void Clears the value of position. After calling this, position() will return 0.
velocity() float32 void Returns the current value of velocity. If the velocity is not set, returns 0.
set_velocity() void float32 Sets the value of velocity. After calling this, velocity() will return value.
clear_velocity() void void Clears the value of velocity. After calling this, velocity() will return 0.
force() float32 void Returns the current value of force. If the force is not set, returns 0.
set_force() void float32 Sets the value of force. After calling this, force() will return value.
clear_force() void void Clears the value of force. After calling this, force() will return 0.

Parent topic: GripperCyclic (C++)