class KinematicTrajectoryConstraints

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
angular_velocitiesfloat32Angular velocities for each actuator (in deg/s)
linear_velocityfloat32Linear velocity (in m/s)
angular_velocityfloat32Angular velocity (in deg/s)

Member functions

Function nameReturn typeInput typeDescription
angular_velocities_size() constintvoidReturns the number of elements currently in the field.
angular_velocities() constintint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, angular_velocities_size()) yields undefined behavior.
set_angular_velocities()void(int index, int32 value)Sets the value of the element at the given zero-based index.
add_angular_velocities()void(int32 value)Appends a new element to the field with the given value.
clear_angular_velocities()voidvoidRemoves all elements from the field. After calling this, angular_velocities_size() will return zero.
angular_velocities() constconst RepeatedField<int32>&voidReturns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_angular_velocities()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.
linear_velocity()float32voidReturns the current value of linear_velocity. If the linear_velocity is not set, returns 0.
set_linear_velocity()voidfloat32Sets the value of linear_velocity. After calling this, linear_velocity() will return value.
clear_linear_velocity()voidvoidClears the value of linear_velocity. After calling this, linear_velocity() will return 0.
angular_velocity()float32voidReturns the current value of angular_velocity. If the angular_velocity is not set, returns 0.
set_angular_velocity()voidfloat32Sets the value of angular_velocity. After calling this, angular_velocity() will return value.
clear_angular_velocity()voidvoidClears the value of angular_velocity. After calling this, angular_velocity() will return 0.

Parent topic: Base (C++)