is_pose_valid()
  • 1 Minute to read

is_pose_valid()


Article summary

is_pose_valid()

Checks to see if the pose derived from the given arguments is valid for the specified arm. Uses roll, pitch, and yaw.

Reference

Arguments

ArgumentsTypeDefault value
armstrName of the arm to check.
xfloatNoneX-coordinate of the gripper relative to Gary's center.
yfloatNoneY-coordinate of the gripper relative to Gary's center.
zfloatNoneZ-coordinate of the gripper relative to Gary's center.
rollfloatNoneRoll that defines the orientantion of the gripper
pitchfloatNonePitch that defines the orientantion of the gripper
yawfloatNoneYaw that defines the orientantion of the gripper
unitsenumANG_UNIT.DEGAngle unit, either degrees or radians.
callback_finishfunctionNoneFunction to be called once pose isfinished being checked.
waitboolFalseIf True, program will wait until gripper is finished being opened before continuing with other code. If False, program will continue running asynchronously.

Callback Finish Arguments

ArgumentType
errorintCode for the type of error encountered (0 if no error).
error_msgstrDetails regarding the error (empty if no error).
distancefloatDistance from the actual position of the gripper to the final pose.

Return

None

Exceptions

ExceptionCondition
RayaArmsExceptionException from arms method.
RayaArmsControllerNotReadyArms controller not yet ready.

See the complete list of Raya Exceptions.

Examples

See the Arms Check Pose Example to check the validity of some poses.


Was this article helpful?

What's Next