Ask Your Question

Revision history [back]

'What is the correct way to do stuff before a node is shutdown?' #q27655

SIGINT handlers: 'What is the correct way to do stuff before a node is shutdown?' #q27655

SIGINT handlers: 'What is the correct way to do stuff before a node is shutdown?' #q27655

Also not the stuff you do before shutdown maybe shouldn't depend on ros being available (e.g. ROS_INFO_STREAM()) if the ros shutdown isn't just your node but all of them including roscore.

SIGINT handlers: 'What is the correct way to do stuff before a node is shutdown?' #q27655 (Is the xmlrpc shutdown still valid? Should probably try that out)

Also not the stuff you do before shutdown maybe shouldn't depend on ros being available (e.g. ROS_INFO_STREAM()) if the ros shutdown isn't just your node but all of them including roscore.

SIGINT handlers: 'What is the correct way to do stuff before a node is shutdown?' #q27655 (Is the xmlrpc shutdown still valid? Should probably try that out)

Also not the stuff you do before shutdown maybe shouldn't depend on ros being available (e.g. ROS_INFO_STREAM()) if the ros shutdown isn't just your node but all of them including roscore.

SIGINT handlers: 'What is the correct way to do stuff before a node is shutdown?' #q27655 - the answer is a little out of date but I left some comments there on updating it.

Also not the stuff you do before shutdown maybe shouldn't depend on ros being available (e.g. ROS_INFO_STREAM()) if the ros shutdown isn't just your node but all of them including roscore.