ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
That is the correct way to define the message defintion. In addition:
Make sure you add proper dependencies to geometry_msgs
and std_msgs
in your package's package.xml
and your CMakeLists.txt
files.
You need to also add those dependencies to generate_messages
macro in package's CMakeLists.txt
:
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)