How to save params before shutdown
Hello together,
I'm not able to save parameters on a system shutdown.
I tried different things:
- Catch SIGINT and SIGTERM for the node who will save the parameters. - works if only the node will be killed not roslaunch
- ros::isShuttingDown() for the node who will save the parameters. - did not work
In the log-files for roslaunch I can see a ProcessMonitor who is killing the nodes. I also read about XmlRpc, but i don't know if this will help.
My problem is, that i have to save the parameters when roslaunch get's a CTRL+C.
I hope anyone can help me.
Thank you in advance
Florian
Not an answer, but you could perhaps see whether using an alternative master + parameter server might make this easier. See wiki/vapor_master.