Save map before exiting launch file
Hi,
I have a launch file which runs 2 nodes (i.e slam_gmapping and rosbag play). I set the rosbag node so that required="true" . So, the launch file and all other nodes running will be killed once the rosbag is finished.
My problem is, I want to save the map after the rosbag play is finished but before the launch file is killed. If I run the map_server in the launch file, it will save the initial map instead of the required final one. Is there any way to get the final map?
Thanks for any input. Appreciate it.