class DesiredSpeeds

February 26, 2020 ยท View on GitHub

Member values

Member nameData typeDescription
linearfloat32Desired linear speed (meters / second)
angularfloat32Desired angular speed (degrees / second)
joint_speedfloat32Desired joint speeds (degrees / second)

Member functions

Function nameReturn typeInput typeDescription
linear()float32voidReturns the current value of linear. If the linear is not set, returns 0.
set_linear()voidfloat32Sets the value of linear. After calling this, linear() will return value.
clear_linear()voidvoidClears the value of linear. After calling this, linear() will return 0.
angular()float32voidReturns the current value of angular. If the angular is not set, returns 0.
set_angular()voidfloat32Sets the value of angular. After calling this, angular() will return value.
clear_angular()voidvoidClears the value of angular. After calling this, angular() will return 0.
joint_speed_size() constintvoidReturns the number of elements currently in the field.
joint_speed() constintint indexReturns 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()voidvoidRemoves all elements from the field. After calling this, joint_speed_size() will return zero.
joint_speed() constconst RepeatedField<int32>&voidReturns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_joint_speed()RepeatedField<int32>*voidReturns 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++)