Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 2.93 KB

File metadata and controls

34 lines (28 loc) · 2.93 KB

class AngularWaypoint

Member values

Member name Data type Description
angles float32 Target position (in deg)
maximum_velocities float32 Maximum velocities for each actuator (in deg/s) during movement (optional)
duration float32 Duration to reach this waypoint from the previous position (in seconds)

Member functions

Function name Return type Input type Description
angles_size() const int void Returns the number of elements currently in the field.
angles() const int int index Returns 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() void void Removes all elements from the field. After calling this, angles_size() will return zero.
angles() 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_angles() 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.
maximum_velocities_size() const int void Returns the number of elements currently in the field.
maximum_velocities() const int int index Returns 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() void void Removes all elements from the field. After calling this, maximum_velocities_size() will return zero.
maximum_velocities() 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_maximum_velocities() 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.
duration() float32 void Returns the current value of duration. If the duration is not set, returns 0.
set_duration() void float32 Sets the value of duration. After calling this, duration() will return value.
clear_duration() void void Clears the value of duration. After calling this, duration() will return 0.

Parent topic: Base (C++)