Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.93 KB

File metadata and controls

38 lines (32 loc) · 2.93 KB

class Twist

Member values

Member name Data type Description
linear_x float32 Linear X velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
linear_y float32 Linear Y velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
linear_z float32 Linear Z velocity (m/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_x float32 Angular X velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_y float32 Angular Y velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)
angular_z float32 Angular Z velocity (deg/s or ratio between -1.0 and 1.0 if used with joystick command)

Member functions

Function name Return type Input type Description
linear_x() float32 void Returns the current value of linear_x. If the linear_x is not set, returns 0.
set_linear_x() void float32 Sets the value of linear_x. After calling this, linear_x() will return value.
clear_linear_x() void void Clears the value of linear_x. After calling this, linear_x() will return 0.
linear_y() float32 void Returns the current value of linear_y. If the linear_y is not set, returns 0.
set_linear_y() void float32 Sets the value of linear_y. After calling this, linear_y() will return value.
clear_linear_y() void void Clears the value of linear_y. After calling this, linear_y() will return 0.
linear_z() float32 void Returns the current value of linear_z. If the linear_z is not set, returns 0.
set_linear_z() void float32 Sets the value of linear_z. After calling this, linear_z() will return value.
clear_linear_z() void void Clears the value of linear_z. After calling this, linear_z() will return 0.
angular_x() float32 void Returns the current value of angular_x. If the angular_x is not set, returns 0.
set_angular_x() void float32 Sets the value of angular_x. After calling this, angular_x() will return value.
clear_angular_x() void void Clears the value of angular_x. After calling this, angular_x() will return 0.
angular_y() float32 void Returns the current value of angular_y. If the angular_y is not set, returns 0.
set_angular_y() void float32 Sets the value of angular_y. After calling this, angular_y() will return value.
clear_angular_y() void void Clears the value of angular_y. After calling this, angular_y() will return 0.
angular_z() float32 void Returns the current value of angular_z. If the angular_z is not set, returns 0.
set_angular_z() void float32 Sets the value of angular_z. After calling this, angular_z() will return value.
clear_angular_z() void void Clears the value of angular_z. After calling this, angular_z() will return 0.

Parent topic: Base (C++)