ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I marked Thomas D's answer as the right one because I used it for reference, but if another newbie needs it, I think it's important to note that you have to change your CMakeLists.txt and package.xml :
In CMakeLists.txt:
find_package(catkin REQUIRED COMPONENTS ... message_generation ...)
...
add_message_files(
FILES
Pair.msg
VectorPair.msg
)
...
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS message_runtime
)
...
include_directories(include my_msg)
...
add_dependencies( your_executable ${PROJECT_NAME}_generate_messages_cpp )
And in package.xml:
<build_depend>message_generation</build_depend>
<run_depend>message_runtime</run_depend>
Thank you so much for your help!
Cheers