Skip to content

Commit f361b07

Browse files
Deleting baxter_msgs in favor of new messages baxter_core_msgs and baxter_maintenance_msgs.
This move supports the removal of the robot message translator.
1 parent 557a2bc commit f361b07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+253
-125
lines changed

baxter_common/package.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
<buildtool_depend>catkin</buildtool_depend>
2323

2424
<run_depend>baxter_description</run_depend>
25-
<run_depend>baxter_msgs</run_depend>
25+
<run_depend>baxter_core_msgs</run_depend>
26+
<run_depend>baxter_maintenance_msgs</run_depend>
2627

2728
<export>
2829
<metapackage/>

baxter_core_msgs/CMakeLists.txt

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(baxter_core_msgs)
3+
4+
find_package(catkin REQUIRED
5+
message_generation
6+
std_msgs
7+
geometry_msgs
8+
)
9+
10+
add_message_files(DIRECTORY msg FILES
11+
AnalogIOState.msg
12+
AnalogIOStates.msg
13+
AnalogOutputCommand.msg
14+
AssemblyState.msg
15+
AssemblyStates.msg
16+
CameraControl.msg
17+
CameraSettings.msg
18+
CollisionAvoidanceState.msg
19+
CollisionDetectionState.msg
20+
DigitalIOState.msg
21+
DigitalIOStates.msg
22+
DigitalOutputCommand.msg
23+
EndEffectorCommand.msg
24+
EndEffectorProperties.msg
25+
EndEffectorState.msg
26+
EndpointState.msg
27+
EndpointStates.msg
28+
HeadPanCommand.msg
29+
HeadState.msg
30+
ITBState.msg
31+
ITBStates.msg
32+
JointCommand.msg
33+
JointPositions.msg
34+
NavigatorState.msg
35+
NavigatorStates.msg
36+
RobustControllerStatus.msg
37+
SEAJointState.msg
38+
)
39+
40+
add_service_files(DIRECTORY srv FILES
41+
CloseCamera.srv
42+
ListCameras.srv
43+
OpenCamera.srv
44+
SolvePositionIK.srv
45+
)
46+
47+
generate_messages(DEPENDENCIES
48+
std_msgs
49+
geometry_msgs
50+
)
51+
52+
catkin_package(CATKIN_DEPENDS
53+
message_runtime
54+
std_msgs
55+
geometry_msgs
56+
)
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
string[] names
2+
AssemblyState[] states
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
std_msgs/Header header
2+
bool other_arm
3+
string[] collision_object
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
std_msgs/Header header
2+
bool collision_state
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Command to be sent to an end effector
2+
uint32 id # target end effector id
3+
string command # operation to perform
4+
# Well known commands:
5+
string CMD_NO_OP = no_op
6+
string CMD_SET = set
7+
string CMD_CONFIGURE = configure
8+
string CMD_REBOOT = reboot
9+
string CMD_RESET = reset
10+
string CMD_CALIBRATE = calibrate
11+
string CMD_CLEAR_CALIBRATION = clear_calibration
12+
string CMD_PREPARE_TO_GRIP = prepare_to_grip
13+
string CMD_GRIP = grip
14+
string CMD_RELEASE = release
15+
string CMD_GO = go
16+
string CMD_STOP = stop
17+
#
18+
string args # JSON arguments to the command
19+
#
20+
string sender # optional identifier, returned in state when the command is handled
21+
uint32 sequence # optional sequence number, return in state when the command is handled
22+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
uint32 id # EndEffectorId
2+
uint8 ui_type
3+
# End Effector type enumeration, for the UI:
4+
uint8 NO_GRIPPER = 0
5+
uint8 SUCTION_CUP_GRIPPER = 1
6+
uint8 ELECTRIC_GRIPPER = 2
7+
uint8 CUSTOM_GRIPPER = 3
8+
string manufacturer # Manufacturer name
9+
string product # Product name
10+
string serial_number # Serial number, optional
11+
string hardware_rev # Hardware revision, optional
12+
string firmware_rev # Firmware revision, optional
13+
string firmware_date # Firmware date, optional
14+
#
15+
# End Effector Capabilities
16+
bool controls_grip # true if the gripper has grip/release control
17+
bool senses_grip # true if the gripper has grip sense
18+
bool reverses_grip # true if the gripper has reverse-grip mode
19+
20+
bool controls_force # true if the gripper has force control
21+
bool senses_force # true if the gripper has force sense
22+
23+
bool controls_position # true if the gripper has position control
24+
bool senses_position # true if the gripper has position sense
25+
#
26+
string properties # JSON; other properties
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# The following Gripper State fields are tristate: 0 = false; 1 = true; 2 = unknown/unsupported
1+
#
2+
time timestamp # time when state was updated
3+
uint32 id # EndEffectorId
4+
#
5+
# The following State fields are tristate: 0 = false; 1 = true; 2 = unknown/unsupported
26
uint8 STATE_FALSE = 0
37
uint8 STATE_TRUE = 1
48
uint8 STATE_UNKNOWN = 2
@@ -10,22 +14,7 @@ uint8 moving # true if moving
1014
uint8 gripping # true if gripping
1115
uint8 missed # true if GRIP/GOTO/SET was commanded and the gripper reaches the end of travel
1216
uint8 error # true if the gripper is in an error state
13-
#
14-
uint8 command # current gripper command, one of the following:
15-
# Note that while these have the same as values as the gripper opcodes they
16-
# are not used that way.
17-
uint8 CMD_IDLE = 0
18-
uint8 CMD_GET_ID = 1
19-
uint8 CMD_RESET_ALL = 2
20-
uint8 CMD_RESET_FSM = 3
21-
uint8 CMD_CALIBRATE = 4
22-
uint8 CMD_PREPARE_TO_GRIP = 5
23-
uint8 CMD_GRIP = 6
24-
uint8 CMD_RELEASE = 7
25-
uint8 CMD_GOTO = 8
26-
uint8 CMD_STOP = 9
27-
uint8 CMD_SET = 10
28-
uint8 CMD_CLEAR_CALIBRATION = 11
17+
uint8 reverse # true if the gripper is in reverse mode
2918
#
3019
float32 position # position as a percentage of the max position; 0=closed - 100=open
3120
#
@@ -37,3 +26,9 @@ float32 force # force as a percentage of max force;
3726
float32 FORCE_MIN = 0.0
3827
float32 FORCE_MAX = 100.0
3928
#
29+
string state # JSON: other state information
30+
#
31+
string command # from the last command message
32+
string command_sender
33+
uint32 command_sequence
34+
#
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
string[] names
2+
EndpointState[] states
3+
File renamed without changes.

baxter_msgs/msg/ITB.msg renamed to baxter_core_msgs/msg/ITBState.msg

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ bool left
55
bool right
66
uint8 wheel
77

8-
98
# true if the inner light is on, false if not
109
bool innerLight
1110

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# used when publishing multiple itbs
22
string[] names
3-
ITB[] states
3+
ITBState[] states

baxter_core_msgs/msg/JointCommand.msg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
int32 mode
2+
float64[] command
3+
string[] names
4+
5+
int32 POSITION_MODE=1
6+
int32 VELOCITY_MODE=2
7+
int32 TORQUE_MODE=3
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# OK button
2+
bool ok
3+
# Cancel button
4+
bool cancel
5+
# Show button
6+
bool show
7+
# Wheel button
8+
uint8 wheel
9+
10+
# true if the inner light is on, false if not
11+
bool innerLight
12+
13+
# true if the outer light is on, false if not
14+
bool outerLight
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# used when publishing multiple navigators
2+
string[] names
3+
NavigatorState[] states
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is a message that holds data to describe the state of a set of torque controlled joints.
2+
#
3+
# The state of each joint (revolute or prismatic) is defined by:
4+
# * the position of the joint (rad or m),
5+
# * the velocity of the joint (rad/s or m/s) and
6+
# * the effort that is applied in the joint (Nm or N).
7+
#
8+
# Each joint is uniquely identified by its name
9+
# The header specifies the time at which the joint states were recorded. All the joint states
10+
# in one message have to be recorded at the same time.
11+
#
12+
# This message consists of a multiple arrays, one for each part of the joint state.
13+
# The goal is to make each of the fields optional. When e.g. your joints have no
14+
# effort associated with them, you can leave the effort array empty.
15+
#
16+
# All arrays in this message should have the same size, or be empty.
17+
# This is the only way to uniquely associate the joint name with the correct
18+
# states.
19+
20+
21+
Header header
22+
23+
string[] name
24+
float64[] position
25+
float64[] velocity
26+
float64[] effort
27+
float64[] gravity_model_effort
28+
float64[] hysteresis_model_effort
29+
float64[] crosstalk_model_effort

baxter_msgs/package.xml renamed to baxter_core_msgs/package.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0"?>
22
<package>
3-
<name>baxter_msgs</name>
3+
<name>baxter_core_msgs</name>
44
<version>0.6.1</version>
55
<description>
6-
Messages and Services required for communication
7-
with the Baxter robot from Rethink Robotics.
6+
Messages and Services required for communication with the Baxter
7+
robot from Rethink Robotics.
88
</description>
99

1010
<maintainer email="[email protected]">
@@ -21,7 +21,7 @@
2121
<author>Rethink Robotics Inc.</author>
2222

2323
<buildtool_depend>catkin</buildtool_depend>
24-
24+
2525
<build_depend>message_generation</build_depend>
2626
<build_depend>std_msgs</build_depend>
2727
<build_depend>geometry_msgs</build_depend>
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
geometry_msgs/PoseStamped[] pose_stamp
22
---
3-
baxter_msgs/JointPositions[] joints
3+
JointPositions[] joints
44
bool[] isValid
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(baxter_maintenance_msgs)
3+
4+
find_package(catkin REQUIRED
5+
message_generation
6+
std_msgs
7+
)
8+
9+
add_message_files(DIRECTORY msg FILES
10+
CalibrateArmData.msg
11+
CalibrateArmEnable.msg
12+
TareData.msg
13+
TareEnable.msg
14+
UpdateSource.msg
15+
UpdateSources.msg
16+
UpdateStatus.msg
17+
)
18+
19+
add_service_files(DIRECTORY srv FILES
20+
LSCores.srv
21+
RMCores.srv
22+
)
23+
24+
generate_messages(DEPENDENCIES
25+
std_msgs
26+
)
27+
28+
catkin_package(CATKIN_DEPENDS
29+
message_runtime
30+
std_msgs
31+
)

baxter_maintenance_msgs/msg/CalibrateArmData.msg

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bool isEnabled
2+
string uid
3+
CalibrateArmData data
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
bool isEnabled
22
string uid
3-
baxter_msgs/TareData data
3+
TareData data

baxter_maintenance_msgs/package.xml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<name>baxter_maintenance_msgs</name>
4+
<version>0.6.1</version>
5+
<description>
6+
Messages and Services required for use with maintenance procedures with the
7+
Baxter robot from Rethink Robotics.
8+
</description>
9+
10+
<maintainer email="[email protected]">
11+
Rethink Robotics Inc.
12+
</maintainer>
13+
<license>BSD</license>
14+
<url type="website">http://www.rethinkrobotics.com</url>
15+
<url type="repository">
16+
https://github.com/RethinkRobotics/sdk-examples
17+
</url>
18+
<url type="bugtracker">
19+
https://github.com/RethinkRobotics/sdk-examples/issues
20+
</url>
21+
<author>Rethink Robotics Inc.</author>
22+
23+
<buildtool_depend>catkin</buildtool_depend>
24+
25+
<build_depend>message_generation</build_depend>
26+
<build_depend>std_msgs</build_depend>
27+
28+
<run_depend>message_runtime</run_depend>
29+
<run_depend>std_msgs</run_depend>
30+
31+
</package>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)