|
1 | 1 | # This action interface is defined for controlling the io gripper controller to open or close the gripper |
2 | 2 |
|
3 | | -# The io_gripper_controller follows a set of states to open/close the gripper |
4 | | -# The states are defined as follows: |
5 | | -# IDLE (0): The gripper is in an idle state, not performing any action. |
6 | | -# SET_BEFORE_COMMAND (1): The gripper is preparing to execute a command. |
7 | | -# CLOSE_GRIPPER (2): The gripper is closing. |
8 | | -# CHECK_GRIPPER_STATE (3): The gripper is checking its current state. |
9 | | -# OPEN_GRIPPER (4): The gripper is opening. |
10 | | -# SET_AFTER_COMMAND (5): The gripper is finalizing the command execution. |
11 | | -# HALTED (6): The gripper has halted due to an error or stop command. |
| 3 | +# The grippers are going through the different states during opening and closing process. |
| 4 | +# Those are returned as feedback. |
| 5 | + |
| 6 | +# The gripper is in an idle state, not performing any action. |
| 7 | +uint8 IDLE=0 |
| 8 | +# The gripper is setting command interfaces to be able to perform open or close action, e.g., disabling breaks. |
| 9 | +uint8 SET_BEFORE_COMMAND=1 |
| 10 | +# The close comand is sent to gripper on its command interfaces. |
| 11 | +uint8 CLOSE_GRIPPER=2 |
| 12 | +# The controller is checking its current gripper's state on state interfaces. |
| 13 | +uint8 CHECK_GRIPPER_STATE=3 |
| 14 | +# The open comand is sent to gripper on its command interfaces. |
| 15 | +uint8 OPEN_GRIPPER=4 |
| 16 | +# The gripper is setting "after" commands when open or close process if finished, e.g., engaging breaks. |
| 17 | +uint8 SET_AFTER_COMMAND=5 |
| 18 | +# The gripper has halted due to an error or stop command. |
| 19 | +uint8 HALTED=6 |
12 | 20 |
|
13 | 21 | bool open # boolean value to indicate if the gripper should be opened or closed (e.g. true for open, false for close) |
14 | 22 | --- |
|
0 commit comments