Run a node when closing another one/save automtically before ending a launch
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 !
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.