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

If your code really is as posted, the 4th line into your main is a ros::spin; that's a non-returning call, so nothing after it will be executed.

Just to point it out -- you have 2 ros::init calls, which is a no-no.