Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 2.14 KB

File metadata and controls

30 lines (24 loc) · 2.14 KB

class DesiredSpeeds

Member values

Member name Data type Description
linear float32 Desired linear speed (meters / second)
angular float32 Desired angular speed (degrees / second)
joint_speed float32 Desired joint speeds (degrees / second)

Member functions

Function name Return type Input type Description
linear() float32 void Returns the current value of linear. If the linear is not set, returns 0.
set_linear() void float32 Sets the value of linear. After calling this, linear() will return value.
clear_linear() void void Clears the value of linear. After calling this, linear() will return 0.
angular() float32 void Returns the current value of angular. If the angular is not set, returns 0.
set_angular() void float32 Sets the value of angular. After calling this, angular() will return value.
clear_angular() void void Clears the value of angular. After calling this, angular() will return 0.
joint_speed_size() const int void Returns the number of elements currently in the field.
joint_speed() const int int index Returns the element at the given zero-based index. Calling this method with index outside of [0, joint_speed_size()) yields undefined behavior.
set_joint_speed() void (int index, int32 value) Sets the value of the element at the given zero-based index.
add_joint_speed() void (int32 value) Appends a new element to the field with the given value.
clear_joint_speed() void void Removes all elements from the field. After calling this, joint_speed_size() will return zero.
joint_speed() const const RepeatedField<int32>& void Returns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_joint_speed() RepeatedField<int32>* void Returns a pointer to the underlying mutable RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: ControlConfig (C++)