Skip to content

Commit 36d81f6

Browse files
committed
Update messges to have better status from the gripper.
1 parent 01bfd75 commit 36d81f6

File tree

5 files changed

+32
-27
lines changed

5 files changed

+32
-27
lines changed

control_msgs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ set(msg_files
2626
msg/DynamicJointState.msg
2727
msg/GripperCommand.msg
2828
msg/InterfaceValue.msg
29+
msg/IOGripperControllerState.msg
30+
msg/IOGripperState.msg
2931
msg/JointComponentTolerance.msg
3032
msg/JointControllerState.msg
3133
msg/JointJog.msg

control_msgs/action/IOGripperCommand.action

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,9 @@
33
# The grippers are going through the different states during opening and closing process.
44
# Those are returned as feedback.
55

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 command 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 command 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
20-
216
bool open # boolean value to indicate if the gripper should be opened or closed (e.g. true for open, false for close)
227
---
238
bool success # true for performing the gripper command successfully and vice versa
249
string message # informational, e.g. for success or error messages
2510
---
26-
uint8 state # state of the gripper as defined above
11+
IOGripperState transition # state of the gripper during transition as defined above

control_msgs/action/SetIOGripperConfig.action

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,10 @@
44
# The action request is called with the name of the configuration to be set
55

66
# The io_gripper_controller follows a set of states to reconfigure the gripper
7-
# The states are defined as follows:
8-
# Enum representing the states of the reconfiguration process.
9-
# States:
10-
# The reconfiguration process is idle, not performing any action.
11-
uint8 IDLE=0
12-
# Setting the command based on the configuration.
13-
uint8 SET_COMMAND=1
14-
# Checking the state after setting the command.
15-
uint8 CHECK_STATE=2
16-
177

188
string config_name # information about which configuration is being set for the gripper controller
199
---
2010
bool result # indicate success for setting the configuration of the gripper controller and vice versa
2111
string status # informational, e.g. for success or error messages
2212
---
23-
uint8 state # state of the gripper as defined above
13+
IOGripperState transition # state of the gripper during transition as defined above
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name of the gripper open close state. Note that it can have mutliple "closed" states. If empty, then transition is happening and check the state of the transition.
2+
string open_close
3+
IOGripperState open_close_transition
4+
5+
# Name of the gripper's current configuration. If empty, then transition is happening and check the state of the transition.
6+
string configuration
7+
IOGripperState configuration_transition

control_msgs/msg/IOGripperState.msg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The grippers are going through the different states during opening, closing, and configuraiton chnages process.
2+
3+
# The gripper is in an idle state, not performing any action.
4+
uint8 IDLE=0
5+
# The gripper is setting command interfaces to be able to perform open or close action, e.g., disabling breaks.
6+
uint8 SET_BEFORE_COMMAND=1
7+
# (optional) Check if brfore command is set correctly and confirmed by the sensors.
8+
uint8 CHECK_BEFORE_COMMAND=2
9+
# Set command to gripper's command interfaces.
10+
uint8 SET_COMMAND=11
11+
# The controller is checking its current gripper's state on state interfaces.
12+
uint8 CHECK_COMMAND=12
13+
# The gripper is setting "after" commands when open or close process if finished, e.g., engaging breaks.
14+
uint8 SET_AFTER_COMMAND=21
15+
# (optional) Check if after command is set correctly and confirmed by the sensors.
16+
uint8 CHECK_AFTER_COMMAND=22
17+
# The gripper has halted due to an error or stop command.
18+
uint8 HALTED=100
19+
20+
# state of the gripper during transitions as defined above
21+
uint8 state

0 commit comments

Comments
 (0)