class PreComputedJointTrajectory

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
modeuint32Trajectory continuity mode
trajectory_elementsPreComputedJointTrajectoryElementList of pre-computed elements composing the trajectory.

Member functions

Function nameReturn typeInput typeDescription
mode() constuint32voidReturns the current value of mode. If the mode is not set, returns 0.
set_mode()voiduint32Sets the value of mode. After calling this, mode() will return value.
clear_mode()voidvoidClears the value of mode. After calling this, mode() will return the empty string/empty bytes.
trajectory_elements_size() constintvoidReturns the number of elements currently in the field.
trajectory_elements() constconst PreComputedJointTrajectoryElementint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, trajectory_elements_size()) yields undefined behavior.
mutable_trajectory_elements()PreComputedJointTrajectoryElement*int indexReturns a pointer to the mutable PreComputedJointTrajectoryElement object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, trajectory_elements_size()) yields undefined behavior.
add_trajectory_elements()PreComputedJointTrajectoryElement*voidAdds a new element and returns a pointer to it. The returned PreComputedJointTrajectoryElement is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated PreComputedJointTrajectoryElement).
clear_trajectory_elements()voidvoidRemoves all elements from the field. After calling this, trajectory_elements_size() will return zero.
trajectory_elements() constconst RepeatedPtrField< PreComputedJointTrajectoryElement>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_trajectory_elements()RepeatedPtrField< PreComputedJointTrajectoryElement>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: Base (C++)