execute_joints_positions_array()
  • 1 Minute to read

execute_joints_positions_array()


Article summary

Executes movement according to array of joint values.

Reference

Arguments

ArgumentsTypeDefault valueDescription
armstrThe arm requested is not a valid group.
joint_valueslistList of joint values. Help: Define the value of the joints in array format, where each position is a list where the value for each joint should be defined, if it doesnt the names joint array should be defined.
name_joints_arraylist[]List of joint names. Help: Define the name of the joints in array format, where each position is a list where the name belongs at the joint to be set in position defined in joint values.
unitsANGLE_UNITANGLE_UNIT.DEGREESUnit for angles (DEGREES or RADIANS)
tilt_constraintboolFalseBoolean to apply a tilt constraint.
use_obstaclesboolFalseWhether to use obstacles during execution.
cameraslist[]List of cameras.
update_obstaclesboolFalsewhether to update 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.
min_bbox_clear_obstacleslist[]List of minimum bounding boxes for clearing obstacles.
max_bbox_clear_obstacleslist[]List of maximum bounding boxes for clearing obstacles.
callback_feedbackCallableNoneCallable function for feedback.
callback_feedback_asyncCallableNoneCallable function for feedback).
callback_finishCallableNoneCallable function for finish.
callback_finish_asyncCallableNoneCallable function for finish.
waitboolFalseWhether to wait for user response.

Return

TypeDescription
floatFraction of the trajectory realized.

Exceptions

  • RayaInvalidCallback
  • RayaArmsException
  • RayaArmsInvalidArmOrGroupName
  • RayaArmsInvalidJointName
  • RayaArmsExternalException

See the complete list of arms exceptions

Feedbacks

  • [1] The arm is in execution of the command
  • [3] Planning of the trajectory in progress
  • [4] Updating obstacles in progress

See the complete list of arms feedbacks

Callback Arguments

callback_feedback

ArgumentTypeDescription
feedback_codeintCode for the type of feedback.
feedback_msgstrDetails regarding the feedback code (empty if no error).
armstrName of the arm.
percentagefloatPercent of movement completed until target pose is reached.

callback_finish

ArgumentTypeDescription
errorintCode for the type of error encountered (0 if no error).
error_msgstrDetails regarding the error (empty if no error).
fractionfloatFraction of the trajectory realized

Usage Examples

See the Arms Execute Joint Values Array to see how to use this function.


Was this article helpful?