class JointTorques

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
joint_torquesJointTorqueArray of joint torque.
durationuint32Duration constraint. If not 0, allows to set a limit (in seconds) common to every joint specified in 'joint_torques' (not implemented yet)

Member functions

Function nameReturn typeInput typeDescription
joint_torques_size() constintvoidReturns the number of elements currently in the field.
joint_torques() constconst JointTorqueint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, joint_torques_size()) yields undefined behavior.
mutable_joint_torques()JointTorque*int indexReturns a pointer to the mutable JointTorque object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, joint_torques_size()) yields undefined behavior.
add_joint_torques()JointTorque*voidAdds a new element and returns a pointer to it. The returned JointTorque is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated JointTorque).
clear_joint_torques()voidvoidRemoves all elements from the field. After calling this, joint_torques_size() will return zero.
joint_torques() constconst RepeatedPtrField< JointTorque>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_joint_torques()RepeatedPtrField< JointTorque>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
duration()uint32voidReturns the current value of duration. If the duration is not set, returns 0.
set_duration()voiduint32Sets 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++)