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

Hi,

since your information provided is quite sparse I'm not certain in the answer. However I'm assuming your messages are defined in the same package as your node. Have you checked that your include directiories are set

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)

and your dependencies are set to include ${${PROJECT_NAME}_EXPORTED_TARGETS} to make sure your messages are built before your node/library...

add_dependencies(my_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})