Skip to content

Commit 6efde49

Browse files
committed
Renamed IO Gripper Controller to GPIO tool controller.
1 parent 6cb4c50 commit 6efde49

11 files changed

+63
-66
lines changed

control_msgs/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +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
29+
msg/GPIOToolControllerState.msg
30+
msg/GPIOToolTransition.msg
3131
msg/JointComponentTolerance.msg
3232
msg/JointControllerState.msg
3333
msg/JointJog.msg
@@ -47,17 +47,17 @@ set(action_files
4747
action/ParallelGripperCommand.action
4848
action/FollowJointTrajectory.action
4949
action/GripperCommand.action
50-
action/IOGripperCommand.action
50+
action/GPIOToolCommand.action
5151
action/JointTrajectory.action
5252
action/PointHead.action
53-
action/SetIOGripperConfig.action
53+
action/SetGPIOToolConfig.action
5454
action/SingleJointPosition.action
5555
)
5656

5757
set(srv_files
5858
srv/QueryCalibrationState.srv
5959
srv/QueryTrajectoryState.srv
60-
srv/SetIOGripperConfig.srv
60+
srv/SetGPIOToolConfig.srv
6161
)
6262

6363
rosidl_generate_interfaces(${PROJECT_NAME}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This action interface is for commanding GPIOToolController to disengage or engage the tool.
2+
# The tools are going through the predefed transitions in during disengaging and engaging processes.
3+
# Those are returned as feedback.
4+
5+
bool engage # boolean value to indicate if the tool should engaged (true) or disengaged (false). true for open, false for close)
6+
---
7+
bool success # true for performing the tool command successfully and vice versa
8+
string message # informational, e.g. for success or error messages
9+
---
10+
GPIOToolTransition transition # current transition of the gripper during enagagin/disengaging processes

control_msgs/action/IOGripperCommand.action

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This action interface is defined for setting the configuration of the GPIOToolController.
2+
# In yaml file of the controller, the configurations are defined as a list of strings, for example a gripper might have the following configurations: ["narrow_objects", "wide_objects"], or a lift unit on a mobile base might have configurations like ["with_payload", "without_payload"].
3+
# The action request is called with the name of the configuration to be set.
4+
# During the configuration change, the gripper is going through a set of transitions, which are defined in the GPIOToolTransition message.
5+
6+
string config_name # information about which configuration is being set for the tool
7+
---
8+
bool success # indicate success for setting the configuration of the tool and vice versa
9+
string message # informational, e.g. for success or error messages
10+
---
11+
GPIOToolTransition transition # current transition of the tool during reconfiguration process

control_msgs/action/SetIOGripperConfig.action

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name of the tool's disengaged or engaged state.
2+
# Note that a tool can have multiple "enagaged" states that can be detected by a sensor, for example: gripper is engaged (closed) with or without an object; a lift unit on a mobile base can be lifted with or without payload.
3+
string state
4+
# Name of the tool's current configuration.
5+
string configuration
6+
# Current transition if the tool is going through a state or configuration change.
7+
GPIOToolTransition current_transition
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The tools are going through the different transition phases when changing states or configurations.
2+
3+
# The tool is in an idle state, not performing any action.
4+
uint8 IDLE=0
5+
# The tool is setting command interfaces to be able to perform state changes (disengaged or engaged), e.g., disabling breaks.
6+
uint8 SET_BEFORE_COMMAND=1
7+
# (optional) Check if before command is set correctly and confirmed by the sensors.
8+
uint8 CHECK_BEFORE_COMMAND=2
9+
# Set command to tool's command interfaces.
10+
uint8 SET_COMMAND=11
11+
# The controller is checking its current tool's state on state interfaces is set.
12+
uint8 CHECK_COMMAND=12
13+
# The tool is setting "after" commands when ostate changes (disengaged or engaged) is 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 tool has halted due to an error or stop command.
18+
uint8 HALTED=100
19+
20+
# state of the tool during transitions as defined above
21+
uint8 state

control_msgs/msg/IOGripperControllerState.msg

Lines changed: 0 additions & 7 deletions
This file was deleted.

control_msgs/msg/IOGripperState.msg

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This action interface is defined for setting the configuration of the GPIOToolController.
2+
# In yaml file of the controller, the configurations are defined as a list of strings, for example a gripper might have the following configurations: ["narrow_objects", "wide_objects"], or a lift unit on a mobile base might have configurations like ["with_payload", "without_payload"].
3+
# The action request is called with the name of the configuration to be set.
4+
# During the configuration change, the gripper is going through a set of transitions, which are defined in the GPIOToolTransition message.
5+
6+
string config_name # information about which configuration is being set for tool
7+
---
8+
bool success # indicate success for setting the configuration of the tool and vice versa
9+
string message # informational, e.g. for success or error messages

0 commit comments

Comments
 (0)