are_joints_position_valid()
- 1 Minute to read
are_joints_position_valid()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
are_joints_position_valid()
Check if the given angles for the corresponding joints are valid for the specified arm.
Reference
Arguments
Arguments | Type | Default value | |
---|---|---|---|
arm | str | Name of the arm whose joints to check. | |
name_joints | list | List of the names (str) of every joint to move. | |
angle_joints | list | List of the angles to move the joint to. The joint of each angle is the one with the corresponding index in name_joints. | |
units | enum | ANG_UNIT.DEG | Angle unit, either degrees or radians. |
callback_finish | function | Function to be called once pose is finished 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 arm. |
List of Errors
- FAILURE =255
- PLANNING FAILED =1
- INVALID MOTION PLAN =2
- MOTION PLAN INVALIDATED BY ENVIRONMENT CHANGE =3
- CONTROL FAILED =4
- UNABLE TO ACQUIRE SENSOR DATA =5
- TIMED OUT =6
- PREEMPTED =7
- START STATE IN COLLISION =10
- START STATE VIOLATES PATH CONSTRAINTS =11
- GOAL IN COLLISION =12
- GOAL VIOLATES PATH CONSTRAINTS =13
- GOAL CONSTRAINTS VIOLATED =14
- INVALID GROUP NAME =15
- INVALID GOAL CONSTRAINTS =16
- INVALID ROBOT STATE =17
- INVALID LINK NAME =18
- INVALID OBJECT NAME =19
- FRAME TRANSFORM FAILURE =21
- COLLISION CHECKING UNAVAILABLE =22
- ROBOT STATE STALE =23
- SENSOR INFO STALE =24
- COMMUNICATION FAILURE =25
- NO IK(Inverse Kinematics) SOLUTION =31
- INVALID NUMBER JOINTS =32
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 Joints Positions Example to check the validity of some joints.
Was this article helpful?