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 ,

Your CMake file is almost correct, you missed the generate_message task:

generate_messages(
   DEPENDENCIES
   std_msgs
)

Also remember to add the dependency to your nodes later:

add_dependencies(my_node my_package_gencpp)

Hi ,@manuaatitya,

Your CMake file is almost correct, you missed the generate_message task:

generate_messages(
   DEPENDENCIES
   std_msgs
)

Also remember to add the dependency to your nodes later:

add_dependencies(my_node my_package_gencpp)