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

Revision history [back]

if this is your complete CMakeLists.txt, the solution is simple.

You are not even building the node. You need to specify in the CMakeLists.txt which source files you want to compile into which node. Add the following to your CMakeLists.txt.

add_dependencies(control_manager src/control_manager.cpp)
target_link_libraries(control_manager ${catkin_LIBRARIES})

this will tell CMake to build a node called control_manager from the source file in src/control_manager.cpp and link the catkin_LIBRARIES against it.