class Wrench

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
force_xfloat32Linear X force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
force_yfloat32Linear Y force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
force_zfloat32Linear Z force (Newtons or ratio between -1.0 and 1.0 if used with Joystick command)
torque_xfloat32Angular X torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)
torque_yfloat32Angular Y torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)
torque_zfloat32Angular Z torque (Newton-meters or ratio between -1.0 and 1.0 if used with Joystick command)

Member functions

Function nameReturn typeInput typeDescription
force_x()float32voidReturns the current value of force_x. If the force_x is not set, returns 0.
set_force_x()voidfloat32Sets the value of force_x. After calling this, force_x() will return value.
clear_force_x()voidvoidClears the value of force_x. After calling this, force_x() will return 0.
force_y()float32voidReturns the current value of force_y. If the force_y is not set, returns 0.
set_force_y()voidfloat32Sets the value of force_y. After calling this, force_y() will return value.
clear_force_y()voidvoidClears the value of force_y. After calling this, force_y() will return 0.
force_z()float32voidReturns the current value of force_z. If the force_z is not set, returns 0.
set_force_z()voidfloat32Sets the value of force_z. After calling this, force_z() will return value.
clear_force_z()voidvoidClears the value of force_z. After calling this, force_z() will return 0.
torque_x()float32voidReturns the current value of torque_x. If the torque_x is not set, returns 0.
set_torque_x()voidfloat32Sets the value of torque_x. After calling this, torque_x() will return value.
clear_torque_x()voidvoidClears the value of torque_x. After calling this, torque_x() will return 0.
torque_y()float32voidReturns the current value of torque_y. If the torque_y is not set, returns 0.
set_torque_y()voidfloat32Sets the value of torque_y. After calling this, torque_y() will return value.
clear_torque_y()voidvoidClears the value of torque_y. After calling this, torque_y() will return 0.
torque_z()float32voidReturns the current value of torque_z. If the torque_z is not set, returns 0.
set_torque_z()voidfloat32Sets the value of torque_z. After calling this, torque_z() will return value.
clear_torque_z()voidvoidClears the value of torque_z. After calling this, torque_z() will return 0.

Parent topic: Base (C++)