is_pose_valid_q()
  • 2 Minutes to read

is_pose_valid_q()


Article summary

Checks to see if the pose derived from the given arguments is valid for the specified arm. Uses the quaternion system to describe orientations.

Reference

Arguments

ArgumentsTypeDefault valueDescription
armstrThe arm requested is not a valid group.
xfloatX-coordinate of the goal pose.
yfloatY-coordinate of the goal pose .
zfloatZ-coordinate of the goal pose .
qxfloatX-component of the quaternion representing the goal orientation.
qyfloatY-component of the quaternion representing the goal orientation.
qzfloatZ-component of the quaternion representing the goal orientation.
qwfloatW-component of the quaternion representing the goal orientation.
start_xfloat0.0X-coordinate of the starting pose.
start_yfloat0.0Y-coordinate of the starting pose.
start_zfloat0.0Z-coordinate of the starting pose.
start_qxfloat0.0X-component of the quaternion representing the starting orientation.
start_qyfloat0.0Y-component of the quaternion representing the starting orientation.
start_qzfloat0.0Z-component of the quaternion representing the starting orientation.
start_qwfloat1.0W-component of the quaternion representing the starting orientation.
start_jointslist[]List of starting joint angles.
name_start_jointslist[]List of names corresponding to the starting joint angles.
use_start_poseboolFalseWhether to use the starting pose.
use_start_jointsboolFalseWhether to use the starting joint angles.
unitsANGLE_UNITANGLE_UNIT.DEGREESUnit for angles (DEGREES or RADIANS) .
cartesian_pathboolFalseWhether to follow a cartesian path.
tilt_constraintboolFalseWhether to apply a tilt constraint.
use_obstaclesboolFalseWhether to use obstacles during checking.
cameraslist[]List of cameras
update_obstaclesboolFalseWhether to update obstacles.
min_bbox_clear_obstacleslist[]List of minimum bounding boxes for clearing obstacles.
max_bbox_clear_obstacleslist[]List of maximum bounding boxes for clearing obstacles.
save_trajectoryboolFalseWhether to save the trajectory.
name_trajectorystr''Name of the trajectory.
velocity_scalingfloat0.0Scaling factor for velocity.
acceleration_scalingfloat0.0Scaling factor for acceleration.
waitboolFalseWhether to wait for user response.
callback_finishCallableNoneCallable function for finish.
callback_finish_asyncCallableNoneCallable function for finish.

Callback Finish Arguments

ArgumentTypeDescription
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.
fractionfloatFraction of the trajectory realized.
final_positionfloat []The final joints position in the trajectory to get the pose is being checked.
start_positionfloat []The start joints position in the trajectory to get the pose is being checked.

Return

TypeDescription
floatDistance from the actual position of the gripper to the final pose.
floatFraction of the trajectory realized.
float []The final joints position in the trajectory to get the pose is being checked.
float[]The start joints position in the trajectory to get the pose is being checked.

Exceptions

  • RayaInvalidCallback
  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsExternalException

See the complete list of arms exceptions

Usage example

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


Was this article helpful?