Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 4.48 KB

ConstrainedPose.md

File metadata and controls

28 lines (22 loc) · 4.48 KB

class ConstrainedPose

Member values

Member name Data type Description
target_pose Pose Cartesian pose
constraint CartesianTrajectoryConstraint Constraint to apply to the target pose

Member functions

Function name Return type Input type Description
has_target_pose() const bool void Returns true if target_pose is set.
target_pose() const Pose& void Returns the current value of target_pose. If target_pose is not set, returns a Pose with none of its fields set (possibly target_pose::default_instance()).
mutable_target_pose() Pose * void Returns a pointer to the mutable Pose object that stores the field's value. If the field was not set prior to the call, then the returned Pose will have none of its fields set (i.e. it will be identical to a newly-allocated Pose). After calling this, has_target_pose() will return true and target_pose() will return a reference to the same instance of Pose.
clear_target_pose() void void Clears the value of the field. After calling this, has_target_pose() will return false and target_pose() will return the default value.
set_allocated_target_pose() void Pose * Sets the Pose object to the field and frees the previous field value if it exists. If the Pose pointer is not NULL, the message takes ownership of the allocated Pose object and has_ Pose() will return true. Otherwise, if the target_pose is NULL, the behavior is the same as calling clear_target_pose().
release_target_pose() Pose * void Releases the ownership of the field and returns the pointer of the Pose object. After calling this, caller takes the ownership of the allocated Pose object, has_target_pose() will return false, and target_pose() 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++)