class AngularWaypoint

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
anglesfloat32Target position (in deg)
maximum_velocitiesfloat32Maximum velocities for each actuator (in deg/s) during movement (optional)
durationfloat32Duration to reach this waypoint from the previous position (in seconds)

Member functions

Function nameReturn typeInput typeDescription
angles_size() constintvoidReturns the number of elements currently in the field.
angles() constintint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, angles_size()) yields undefined behavior.
set_angles()void(int index, int32 value)Sets the value of the element at the given zero-based index.
add_angles()void(int32 value)Appends a new element to the field with the given value.
clear_angles()voidvoidRemoves all elements from the field. After calling this, angles_size() will return zero.
angles() constconst RepeatedField<int32>&voidReturns the underlying RepeatedField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_angles()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.
maximum_velocities_size() constintvoidReturns the number of elements currently in the field.
maximum_velocities() constintint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, maximum_velocities_size()) yields undefined behavior.
set_maximum_velocities()void(int index, int32 value)Sets the value of the element at the given zero-based index.
add_maximum_velocities()void(int32 value)Appends a new element to the field with the given value.
clear_maximum_velocities()voidvoidRemoves all elements from the field. After calling this, maximum_velocities_size() will return zero.
maximum_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_maximum_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.
duration()float32voidReturns the current value of duration. If the duration is not set, returns 0.
set_duration()voidfloat32Sets the value of duration. After calling this, duration() will return value.
clear_duration()voidvoidClears the value of duration. After calling this, duration() will return 0.

Parent topic: Base (C++)