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

The add_executable(node_pkg main.cpp) line in your cmakelists is telling cmake to compile main.cpp into an executable named node_pkg. Therefore you should run it as:

rosrun node_pkg node_pkg