is_joints_position_valid()
  • 1 Minute to read

is_joints_position_valid()


Article summary

Check if the given angles for the corresponding joints are valid for the specified arm.

Reference

Arguments

ArgumentsTypeDefault valueDescription
armstrName of the arm whose joints to check.
name_jointslistList of the names (str) of every joint to move.
angle_jointslistList of the angles to move the joint to. The joint of each angle is the one with the corresponding index in name_joints.
unitsANGLE_UNITANGLE_UNIT.DEGREESAngles unit, either DEGREES or RADIANS.
callback_finishCallableNoneFunction to be called once pose is finished being checked.
callback_finish_asyncCallableNoneFunction to be called once pose is finished being checked.
waitboolFalseIf True, program will wait until gripper is finished being opened before continuing with other code. If False, command will continue running asynchronously.

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 arm.

Return

TypeDescription
floatDistance from the actual position of the gripper to the final pose.

Exceptions

  • RayaInvalidCallback
  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsInvalidJointName
  • RayaArmsExternalException

See the complete list of arms exceptions

Usage example

See the Arms: Check Position Joints to check the validity of some joints.


Was this article helpful?