Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 4.85 KB

ConstrainedOrientation.md

File metadata and controls

28 lines (22 loc) · 4.85 KB

class ConstrainedOrientation

Member values

Member name Data type Description
target_orientation Orientation Cartesian orientation
constraint CartesianTrajectoryConstraint Constraint to apply to the target orientation

Member functions

Function name Return type Input type Description
has_target_orientation() const bool void Returns true if target_orientation is set.
target_orientation() const Orientation& void Returns the current value of target_orientation. If target_orientation is not set, returns a Orientation with none of its fields set (possibly target_orientation::default_instance()).
mutable_target_orientation() Orientation * void Returns a pointer to the mutable Orientation object that stores the field's value. If the field was not set prior to the call, then the returned Orientation will have none of its fields set (i.e. it will be identical to a newly-allocated Orientation). After calling this, has_target_orientation() will return true and target_orientation() will return a reference to the same instance of Orientation.
clear_target_orientation() void void Clears the value of the field. After calling this, has_target_orientation() will return false and target_orientation() will return the default value.
set_allocated_target_orientation() void Orientation * Sets the Orientation object to the field and frees the previous field value if it exists. If the Orientation pointer is not NULL, the message takes ownership of the allocated Orientation object and has_ Orientation() will return true. Otherwise, if the target_orientation is NULL, the behavior is the same as calling clear_target_orientation().
release_target_orientation() Orientation * void Releases the ownership of the field and returns the pointer of the Orientation object. After calling this, caller takes the ownership of the allocated Orientation object, has_target_orientation() will return false, and target_orientation() will return the default value.
has_constraint() const bool void Returns true if constraint is set.
constraint() const CartesianTrajectoryConstraint& void Returns the current value of constraint. If constraint is not set, returns a CartesianTrajectoryConstraint with none of its fields set (possibly constraint::default_instance()).
mutable_constraint() CartesianTrajectoryConstraint * void Returns a pointer to the mutable CartesianTrajectoryConstraint object that stores the field's value. If the field was not set prior to the call, then the returned CartesianTrajectoryConstraint will have none of its fields set (i.e. it will be identical to a newly-allocated CartesianTrajectoryConstraint). After calling this, has_constraint() will return true and constraint() will return a reference to the same instance of CartesianTrajectoryConstraint.
clear_constraint() void void Clears the value of the field. After calling this, has_constraint() will return false and constraint() will return the default value.
set_allocated_constraint() void CartesianTrajectoryConstraint * Sets the CartesianTrajectoryConstraint object to the field and frees the previous field value if it exists. If the CartesianTrajectoryConstraint pointer is not NULL, the message takes ownership of the allocated CartesianTrajectoryConstraint object and has_ CartesianTrajectoryConstraint() will return true. Otherwise, if the constraint is NULL, the behavior is the same as calling clear_constraint().
release_constraint() CartesianTrajectoryConstraint * void Releases the ownership of the field and returns the pointer of the CartesianTrajectoryConstraint object. After calling this, caller takes the ownership of the allocated CartesianTrajectoryConstraint object, has_constraint() will return false, and constraint() will return the default value.

Parent topic: Base (C++)