class Twist

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
linear_xfloat32Linear X velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
linear_yfloat32Linear Y velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
linear_zfloat32Linear Z velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_xfloat32Angular X velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_yfloat32Angular Y velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_zfloat32Angular Z velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)

Member functions

Function nameReturn typeInput typeDescription
linear_x()float32voidReturns the current value of linear_x. If the linear_x is not set, returns 0.
set_linear_x()voidfloat32Sets the value of linear_x. After calling this, linear_x() will return value.
clear_linear_x()voidvoidClears the value of linear_x. After calling this, linear_x() will return 0.
linear_y()float32voidReturns the current value of linear_y. If the linear_y is not set, returns 0.
set_linear_y()voidfloat32Sets the value of linear_y. After calling this, linear_y() will return value.
clear_linear_y()voidvoidClears the value of linear_y. After calling this, linear_y() will return 0.
linear_z()float32voidReturns the current value of linear_z. If the linear_z is not set, returns 0.
set_linear_z()voidfloat32Sets the value of linear_z. After calling this, linear_z() will return value.
clear_linear_z()voidvoidClears the value of linear_z. After calling this, linear_z() will return 0.
angular_x()float32voidReturns the current value of angular_x. If the angular_x is not set, returns 0.
set_angular_x()voidfloat32Sets the value of angular_x. After calling this, angular_x() will return value.
clear_angular_x()voidvoidClears the value of angular_x. After calling this, angular_x() will return 0.
angular_y()float32voidReturns the current value of angular_y. If the angular_y is not set, returns 0.
set_angular_y()voidfloat32Sets the value of angular_y. After calling this, angular_y() will return value.
clear_angular_y()voidvoidClears the value of angular_y. After calling this, angular_y() will return 0.
angular_z()float32voidReturns the current value of angular_z. If the angular_z is not set, returns 0.
set_angular_z()voidfloat32Sets the value of angular_z. After calling this, angular_z() will return value.
clear_angular_z()voidvoidClears the value of angular_z. After calling this, angular_z() will return 0.

Parent topic: Base (C++)