ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Revision history [back]

I have created two ROS nodes and have compiled them using add_executable command in the "CMakeLists.txt". I have also added them to the launch file that I am running using roslaunch. But when running roslaunch, I get the same ERROR: cannot launch node of type [r/r2_detect]: can't locate node [r2_detect] in package [r]

I tried adding catkin_package() to the "CMakeLists.txt" as suggested here:, but it did not work. Where should I add catkin_package() ?