ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can define messages in the same package with other programs.
If you do, message generation targets need to be built before any programs that depend on them. Every target that directly or indirectly uses one of your message headers must declare an explicit dependency:
add_dependencies(your_program ${${PROJECT_NAME}_EXPORTED_TARGETS})
See the catkin howto for more details.