Run a node when closing another one/save automtically before ending a launch

asked 2018-02-22 07:09:05 -0500

StanSmooth gravatar image

Hi everyone, I'm currently working with this package (rrt_exploration) and i'm trying to save automatically the generated map. for this, I use the map server package. My question is : is there a way to run the map_saver node automatically when i close gazebo or RViz (or kill my launches ? )

thank in advance !

edit retag flag offensive close merge delete

Comments

Perhaps you could introduce some coordination into your application and only shutdown nodes after you've saved your map? Look into state machines, behaviour trees or similar concepts.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-23 04:06:25 -0500 )edit