ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

That is the correct way to define the message defintion. In addition:

  1. Make sure you add proper dependencies to geometry_msgs and std_msgs in your package's package.xml and your CMakeLists.txt files.

  2. You need to also add those dependencies to generate_messages macro in package's CMakeLists.txt:

generate_messages( DEPENDENCIES std_msgs geometry_msgs )