gripper_cmd()¶
Changes the gripper on a specified arm to a specific width with desired pressure.
Reference¶
Arguments¶
Arguments |
Type |
Default value |
Description |
|---|---|---|---|
arm |
|
Name of the arm whose gripper to open. |
|
desire_position |
|
Desired position (normalized unit between 0-1)to set the gap within the gripper to. |
|
desired_pressure |
|
|
Maximum pressure (normalized unit between 0-1) allowed to grab. |
timeout |
|
|
Time in sec to timeout. |
velocity |
|
|
Velocity (normalized unit between 0-1) to execute the action |
callback_finish |
|
|
Function to be called once gripper is finished moving. |
callback_feedback |
|
|
Function to be called to collect feedback as gripper is moving. |
wait |
|
|
If |
Return¶
Type |
Description |
|---|---|
|
Retrieves wheter execution stops by position reached. |
|
Retrieves wheter execution stops by pressure reached. |
|
Retrieves wheter execution stops by timeout reached. |
|
FInal position of the gripper. |
|
FInal pressure of the gripper. |
Exceptions¶
RayaInvalidCallbackRayaArmsExceptionRayaArmsInvalidArmOrGroupNameRayaArmsExternalException
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). |
current_position |
|
Current gripper position. |
current_velocity |
|
Current gripper velocity. |
current_pressure |
|
Current gripper pressure. |
time_left |
|
Time left to stop execution |
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). |
position_reached |
|
Retrieves wheter execution stops by position reached. |
pressure_reached |
|
Retrieves wheter execution stops by pressure reached. |
timeout_reached |
|
Retrieves wheter execution stops by timeout reached. |
final_position |
|
FInal position of the gripper. |
final_pressure |
|
FInal pressure of the gripper. |
Usage Example¶
See the Arms Set Gripper Example to see how to open and close the gripper.