How to save params before shutdown

asked 2020-02-18 08:39:01 -0600

fkreh gravatar image

Hello together,

I'm not able to save parameters on a system shutdown.

I tried different things:

  1. Catch SIGINT and SIGTERM for the node who will save the parameters. - works if only the node will be killed not roslaunch
  2. 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

edit retag flag offensive close merge delete

Comments

Not an answer, but you could perhaps see whether using an alternative master + parameter server might make this easier. See wiki/vapor_master.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-18 08:49:38 -0600 )edit