Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.89 KB

File metadata and controls

38 lines (32 loc) · 2.89 KB

class Wrench

Member values

Member name Data type Description
force_x float32 Linear X force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
force_y float32 Linear Y force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
force_z float32 Linear Z force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
torque_x float32 Angular X torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)
torque_y float32 Angular Y torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)
torque_z float32 Angular Z torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)

Member functions

Function name Return type Input type Description
force_x() float32 void Returns the current value of force_x. If the force_x is not set, returns 0.
set_force_x() void float32 Sets the value of force_x. After calling this, force_x() will return value.
clear_force_x() void void Clears the value of force_x. After calling this, force_x() will return 0.
force_y() float32 void Returns the current value of force_y. If the force_y is not set, returns 0.
set_force_y() void float32 Sets the value of force_y. After calling this, force_y() will return value.
clear_force_y() void void Clears the value of force_y. After calling this, force_y() will return 0.
force_z() float32 void Returns the current value of force_z. If the force_z is not set, returns 0.
set_force_z() void float32 Sets the value of force_z. After calling this, force_z() will return value.
clear_force_z() void void Clears the value of force_z. After calling this, force_z() will return 0.
torque_x() float32 void Returns the current value of torque_x. If the torque_x is not set, returns 0.
set_torque_x() void float32 Sets the value of torque_x. After calling this, torque_x() will return value.
clear_torque_x() void void Clears the value of torque_x. After calling this, torque_x() will return 0.
torque_y() float32 void Returns the current value of torque_y. If the torque_y is not set, returns 0.
set_torque_y() void float32 Sets the value of torque_y. After calling this, torque_y() will return value.
clear_torque_y() void void Clears the value of torque_y. After calling this, torque_y() will return 0.
torque_z() float32 void Returns the current value of torque_z. If the torque_z is not set, returns 0.
set_torque_z() void float32 Sets the value of torque_z. After calling this, torque_z() will return value.
clear_torque_z() void void Clears the value of torque_z. After calling this, torque_z() will return 0.

Parent topic: Base (C++)