is_pose_valid()
- 1 Minute to read
is_pose_valid()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
Arguments | Type | Default value | |
---|---|---|---|
arm | str | Name of the arm to check. | |
x | float | None | X-coordinate of the gripper relative to Gary's center. |
y | float | None | Y-coordinate of the gripper relative to Gary's center. |
z | float | None | Z-coordinate of the gripper relative to Gary's center. |
roll | float | None | Roll that defines the orientantion of the gripper |
pitch | float | None | Pitch that defines the orientantion of the gripper |
yaw | float | None | Yaw that defines the orientantion of the gripper |
units | enum | ANG_UNIT.DEG | Angle unit, either degrees or radians. |
callback_finish | function | None | Function to be called once pose isfinished being checked. |
wait | bool | False | If 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
Argument | Type | |
---|---|---|
error | int | Code for the type of error encountered (0 if no error). |
error_msg | str | Details regarding the error (empty if no error). |
distance | float | Distance from the actual position of the gripper to the final pose. |
Return
None
Exceptions
Exception | Condition |
---|---|
RayaArmsException | Exception from arms method. |
RayaArmsControllerNotReady | Arms 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?