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