set_joint_position()¶
Set a joints to specified angle.
Reference¶
Arguments¶
Arguments |
Type |
Default value |
Description |
|---|---|---|---|
arm |
|
The arm to set the joint positions for. |
|
joint |
|
List of joint names. |
|
position |
|
List of joint angles. |
|
units |
|
|
Unit for angles (DEGREES or RADIANS). |
tilt_constraint |
|
|
Whether to apply a tilt constraint. |
use_obstacles |
|
|
Whether to use obstacles during execution. |
cameras |
|
|
List of cameras. |
update_obstacles |
|
|
Whether to update obstacles. |
min_bbox_clear_obstacles |
|
|
List of minimum bounding boxes for clearing obstacles. |
max_bbox_clear_obstacles |
|
|
List of maximum bounding boxes for clearing obstacles. |
save_trajectory |
|
|
Whether to save the trajectory. |
name_trajectory |
|
|
Name of the trajectory. |
velocity_scaling |
|
|
Scaling factor for velocity. |
acceleration_scaling |
|
|
Scaling factor for acceleration. |
callback_feedback |
|
|
Callable function for feedback. |
callback_feedback_async |
|
|
Callable function for finish. |
callback_finish |
|
|
Callable function for finish. |
callback_finish_async |
|
|
Callable function for finish . |
wait |
|
|
Whether to wait for user response . |
Return¶
None
Exceptions¶
RayaInvalidCallbackRayaArmsExceptionRayaArmsInvalidJointNameRayaArmsInvalidArmOrGroupNameRayaArmsExternalException
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¶
Argument |
Type |
Description |
|---|---|---|
feedback_code |
|
Code for the type of feedback. |
feedback_msg |
|
Details regarding the feedback code (empty if no error). |
arm |
|
Name of the arm. |
percentage |
|
Percent of movement completed until target pose is reached. |
callback_finish¶
Argument |
Type |
Description |
|---|---|---|
error |
|
Code for the type of error encountered (0 if no error). |
error_msg |
|
Details regarding the error (empty if no error). |
Usage Example¶
...
async def setup(self):
self.arms: ArmsController = self.enable_controller('arms')
...
async def loop(self):
await self.arms.set_joint_position(
arm='left_arm',
joint='arm_left_shoulder_RL_joint',
position=-45.0,
wait=True,
)