class IKData

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
cartesian_posePoseCartesian pose of the end effector used to calculate the corresponding joint angles
guessJointAnglesInitial guess for the joint angles

Member functions

Function nameReturn typeInput typeDescription
has_cartesian_pose() constboolvoidReturns true if cartesian_pose is set.
cartesian_pose()const Pose&voidReturns the current value of cartesian_pose. If cartesian_pose is not set, returns a Pose with none of its fields set (possibly cartesian_pose::default_instance()).
mutable_cartesian_pose()Pose *voidReturns 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_cartesian_pose() will return true and cartesian_pose() will return a reference to the same instance of Pose.
clear_cartesian_pose()voidvoidClears the value of the field. After calling this, has_cartesian_pose() will return false and cartesian_pose() will return the default value.
set_allocated_cartesian_pose()voidPose *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 cartesian_pose is NULL, the behavior is the same as calling clear_cartesian_pose().
release_cartesian_pose()Pose *voidReleases 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_cartesian_pose() will return false, and cartesian_pose() will return the default value.
has_guess() constboolvoidReturns true if guess is set.
guess()const JointAngles&voidReturns the current value of guess. If guess is not set, returns a JointAngles with none of its fields set (possibly guess::default_instance()).
mutable_guess()JointAngles *voidReturns a pointer to the mutable JointAngles object that stores the field's value. If the field was not set prior to the call, then the returned JointAngles will have none of its fields set (i.e. it will be identical to a newly-allocated JointAngles). After calling this, has_guess() will return true and guess() will return a reference to the same instance of JointAngles.
clear_guess()voidvoidClears the value of the field. After calling this, has_guess() will return false and guess() will return the default value.
set_allocated_guess()voidJointAngles *Sets the JointAngles object to the field and frees the previous field value if it exists. If the JointAngles pointer is not NULL, the message takes ownership of the allocated JointAngles object and has_ JointAngles() will return true. Otherwise, if the guess is NULL, the behavior is the same as calling clear_guess().
release_guess()JointAngles *voidReleases the ownership of the field and returns the pointer of the JointAngles object. After calling this, caller takes the ownership of the allocated JointAngles object, has_guess() will return false, and guess() will return the default value.

Parent topic: Base (C++)