set_pose_q()
  • 1 Minute to read

set_pose_q()


Article summary

set_pose_q()

Sets the joints of one arm to the specified coordinates and rotations. Uses the quaternion system to specify orientation.

Reference

Arguments

ArgumentsTypeDefault value
armstrName of the arm to move.
x_floatNoneX-coordinate (in meters) of center of gripper relative to Gary's center
y_floatNoneY-coordinate (in meters) of center of gripper relative to Gary's center
z_floatNoneZ-coordinate (in meters) of center of gripper relative to Gary's center
qxfloatNoneX of the quaternion that defines the orientantion of the gripper
qyfloatNoneY of the quaternion that defines the orientantion of the gripper
qzfloatNoneZ of the quaternion that defines the orientantion of the gripper
qwfloatNoneW of the quaternion that defines the orientantion of the gripper
cartesian_pathboolFalseIf this option is True the arm is going to try to reach the desired pose in a straight line trajectory
callback_feedback_functionNoneFunction to be called while the pose is being executed.
callback_finish_functionNoneFunction to be called once pose is finished being executed.
wait_boolFalseIf True, program will wait until pose is finished being set before continuing with other code. If False, program will continue running asynchronously.

Callback Arguments

callback_feedback

ArgumentType
armstrName of the arm.
percentagefloatPercent of movement completed until target pose is reached.

callback_finish

ArgumentType
errorintCode for the type of error encountered (0 if no error).
error_msgstrDetails regarding the error (empty if no error).

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

Return

None

Exceptions

ExceptionCondition
RayaArmsExceptionException from arms method.
RayaArmsControllerNotReadyArms controller not yet ready.

See the complete list of Raya Exceptions.

Examples

See the Arms Pose Example to check some valid poses.


Was this article helpful?