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

Revision history [back]

That's not how it works.

If a node "finishes" its execution, the other nodes could still keep spinning. A node is killed when its node handler goes out of scope or when ros::shutdown() is called.

You can find a detailed description of initialization and shutdown here http://wiki.ros.org/roscpp/Overview/Initialization%20and%20Shutdown