Skip to content

Commit 806576b

Browse files
committed
added custom messages for RTDE data fields
1 parent dd047df commit 806576b

9 files changed

+289
-0
lines changed

Diff for: ur_rtde_msgs/CMakeLists.txt

+203
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(ur_rtde_msgs)
3+
4+
## Compile as C++11, supported in ROS Kinetic and newer
5+
# add_compile_options(-std=c++11)
6+
7+
## Find catkin macros and libraries
8+
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
9+
## is used, also find other catkin packages
10+
find_package(catkin REQUIRED COMPONENTS
11+
ur_msgs
12+
message_generation
13+
)
14+
15+
## System dependencies are found with CMake's conventions
16+
# find_package(Boost REQUIRED COMPONENTS system)
17+
18+
19+
## Uncomment this if the package has a setup.py. This macro ensures
20+
## modules and global scripts declared therein get installed
21+
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
22+
# catkin_python_setup()
23+
24+
################################################
25+
## Declare ROS messages, services and actions ##
26+
################################################
27+
28+
## To declare and build messages, services or actions from within this
29+
## package, follow these steps:
30+
## * Let MSG_DEP_SET be the set of packages whose message types you use in
31+
## your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
32+
## * In the file package.xml:
33+
## * add a build_depend tag for "message_generation"
34+
## * add a build_depend and a exec_depend tag for each package in MSG_DEP_SET
35+
## * If MSG_DEP_SET isn't empty the following dependency has been pulled in
36+
## but can be declared for certainty nonetheless:
37+
## * add a exec_depend tag for "message_runtime"
38+
## * In this file (CMakeLists.txt):
39+
## * add "message_generation" and every package in MSG_DEP_SET to
40+
## find_package(catkin REQUIRED COMPONENTS ...)
41+
## * add "message_runtime" and every package in MSG_DEP_SET to
42+
## catkin_package(CATKIN_DEPENDS ...)
43+
## * uncomment the add_*_files sections below as needed
44+
## and list every .msg/.srv/.action file to be processed
45+
## * uncomment the generate_messages entry below
46+
## * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)
47+
48+
## Generate messages in the 'msg' folder
49+
add_message_files(
50+
DIRECTORY msg
51+
)
52+
53+
## Generate services in the 'srv' folder
54+
# add_service_files(
55+
# FILES
56+
# Service1.srv
57+
# Service2.srv
58+
# )
59+
60+
## Generate actions in the 'action' folder
61+
# add_action_files(
62+
# FILES
63+
# Action1.action
64+
# Action2.action
65+
# )
66+
67+
## Generate added messages and services with any dependencies listed here
68+
generate_messages(
69+
DEPENDENCIES
70+
ur_msgs
71+
)
72+
73+
################################################
74+
## Declare ROS dynamic reconfigure parameters ##
75+
################################################
76+
77+
## To declare and build dynamic reconfigure parameters within this
78+
## package, follow these steps:
79+
## * In the file package.xml:
80+
## * add a build_depend and a exec_depend tag for "dynamic_reconfigure"
81+
## * In this file (CMakeLists.txt):
82+
## * add "dynamic_reconfigure" to
83+
## find_package(catkin REQUIRED COMPONENTS ...)
84+
## * uncomment the "generate_dynamic_reconfigure_options" section below
85+
## and list every .cfg file to be processed
86+
87+
## Generate dynamic reconfigure parameters in the 'cfg' folder
88+
# generate_dynamic_reconfigure_options(
89+
# cfg/DynReconf1.cfg
90+
# cfg/DynReconf2.cfg
91+
# )
92+
93+
###################################
94+
## catkin specific configuration ##
95+
###################################
96+
## The catkin_package macro generates cmake config files for your package
97+
## Declare things to be passed to dependent projects
98+
## INCLUDE_DIRS: uncomment this if your package contains header files
99+
## LIBRARIES: libraries you create in this project that dependent projects also need
100+
## CATKIN_DEPENDS: catkin_packages dependent projects also need
101+
## DEPENDS: system dependencies of this project that dependent projects also need
102+
catkin_package(
103+
# INCLUDE_DIRS include
104+
# LIBRARIES ur_rtde_msgs
105+
CATKIN_DEPENDS message_runtime ur_msgs
106+
# DEPENDS system_lib
107+
)
108+
109+
###########
110+
## Build ##
111+
###########
112+
113+
## Specify additional locations of header files
114+
## Your package locations should be listed before other locations
115+
include_directories(
116+
# include
117+
${catkin_INCLUDE_DIRS}
118+
)
119+
120+
## Declare a C++ library
121+
# add_library(${PROJECT_NAME}
122+
# src/${PROJECT_NAME}/ur_rtde_msgs.cpp
123+
# )
124+
125+
## Add cmake target dependencies of the library
126+
## as an example, code may need to be generated before libraries
127+
## either from message generation or dynamic reconfigure
128+
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
129+
130+
## Declare a C++ executable
131+
## With catkin_make all packages are built within a single CMake context
132+
## The recommended prefix ensures that target names across packages don't collide
133+
# add_executable(${PROJECT_NAME}_node src/ur_rtde_msgs_node.cpp)
134+
135+
## Rename C++ executable without prefix
136+
## The above recommended prefix causes long target names, the following renames the
137+
## target back to the shorter version for ease of user use
138+
## e.g. "rosrun someones_pkg node" instead of "rosrun someones_pkg someones_pkg_node"
139+
# set_target_properties(${PROJECT_NAME}_node PROPERTIES OUTPUT_NAME node PREFIX "")
140+
141+
## Add cmake target dependencies of the executable
142+
## same as for the library above
143+
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
144+
145+
## Specify libraries to link a library or executable target against
146+
# target_link_libraries(${PROJECT_NAME}_node
147+
# ${catkin_LIBRARIES}
148+
# )
149+
150+
#############
151+
## Install ##
152+
#############
153+
154+
# all install targets should use catkin DESTINATION variables
155+
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
156+
157+
## Mark executable scripts (Python etc.) for installation
158+
## in contrast to setup.py, you can choose the destination
159+
# install(PROGRAMS
160+
# scripts/my_python_script
161+
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
162+
# )
163+
164+
## Mark executables for installation
165+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
166+
# install(TARGETS ${PROJECT_NAME}_node
167+
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
168+
# )
169+
170+
## Mark libraries for installation
171+
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
172+
# install(TARGETS ${PROJECT_NAME}
173+
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
174+
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
175+
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
176+
# )
177+
178+
## Mark cpp header files for installation
179+
# install(DIRECTORY include/${PROJECT_NAME}/
180+
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
181+
# FILES_MATCHING PATTERN "*.h"
182+
# PATTERN ".svn" EXCLUDE
183+
# )
184+
185+
## Mark other files for installation (e.g. launch and bag files, etc.)
186+
# install(FILES
187+
# # myfile1
188+
# # myfile2
189+
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
190+
# )
191+
192+
#############
193+
## Testing ##
194+
#############
195+
196+
## Add gtest based cpp test target and link libraries
197+
# catkin_add_gtest(${PROJECT_NAME}-test test/test_ur_rtde_msgs.cpp)
198+
# if(TARGET ${PROJECT_NAME}-test)
199+
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
200+
# endif()
201+
202+
## Add folders to be run by python nosetests
203+
# catkin_add_nosetests(test)

Diff for: ur_rtde_msgs/msg/BitRegisterArray.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds an array of values for bit registers.
2+
3+
ur_msgs/Digital[] registers

Diff for: ur_rtde_msgs/msg/JointAcceleration.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the accelerations of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/msg/JointCurrents.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the currents of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/msg/JointPosition.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the positions of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/msg/JointTorques.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the torques of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/msg/JointVelocity.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the velocities of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/msg/JointVoltages.msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This message holds data to describe the voltages of all robot joints.
2+
3+
float64[] data

Diff for: ur_rtde_msgs/package.xml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0"?>
2+
<package format="2">
3+
<name>ur_rtde_msgs</name>
4+
<version>0.0.0</version>
5+
<description>The ur_rtde_msgs package</description>
6+
7+
<!-- One maintainer tag required, multiple allowed, one person per tag -->
8+
<!-- Example: -->
9+
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
10+
<maintainer email="[email protected]">Tristan Schnell</maintainer>
11+
12+
13+
<!-- One license tag required, multiple allowed, one license per tag -->
14+
<!-- Commonly used license strings: -->
15+
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
16+
<license>Apache 2.0</license>
17+
18+
19+
<!-- Url tags are optional, but multiple are allowed, one per tag -->
20+
<!-- Optional attribute type can be: website, bugtracker, or repository -->
21+
<!-- Example: -->
22+
<!-- <url type="website">http://wiki.ros.org/ur_rtde_msgs</url> -->
23+
24+
25+
<!-- Author tags are optional, multiple are allowed, one per tag -->
26+
<!-- Authors do not have to be maintainers, but could be -->
27+
<!-- Example: -->
28+
<!-- <author email="[email protected]">Jane Doe</author> -->
29+
30+
31+
<!-- The *depend tags are used to specify dependencies -->
32+
<!-- Dependencies can be catkin packages or system dependencies -->
33+
<!-- Examples: -->
34+
<!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
35+
<!-- <depend>roscpp</depend> -->
36+
<!-- Note that this is equivalent to the following: -->
37+
<!-- <build_depend>roscpp</build_depend> -->
38+
<!-- <exec_depend>roscpp</exec_depend> -->
39+
<!-- Use build_depend for packages you need at compile time: -->
40+
<!-- <build_depend>message_generation</build_depend> -->
41+
<!-- Use build_export_depend for packages you need in order to build against this package: -->
42+
<!-- <build_export_depend>message_generation</build_export_depend> -->
43+
<!-- Use buildtool_depend for build tool packages: -->
44+
<!-- <buildtool_depend>catkin</buildtool_depend> -->
45+
<!-- Use exec_depend for packages you need at runtime: -->
46+
<!-- <exec_depend>message_runtime</exec_depend> -->
47+
<!-- Use test_depend for packages you need only for testing: -->
48+
<!-- <test_depend>gtest</test_depend> -->
49+
<!-- Use doc_depend for packages you need only for building documentation: -->
50+
<!-- <doc_depend>doxygen</doc_depend> -->
51+
<buildtool_depend>catkin</buildtool_depend>
52+
<build_depend>message_generation</build_depend>
53+
<build_export_depend>message_runtime</build_export_depend>
54+
<exec_depend>message_runtime</exec_depend>
55+
<build_depend>ur_msgs</build_depend>
56+
<build_export_depend>ur_msgs</build_export_depend>
57+
<exec_depend>ur_msgs</exec_depend>
58+
59+
60+
<!-- The export tag contains other, unspecified, tags -->
61+
<export>
62+
<!-- Other tools can request additional information be placed here -->
63+
64+
</export>
65+
</package>

0 commit comments

Comments
 (0)