# saving automatically a final map using map_saver

Hi everyone, I'm currently trying to save a map that I'm creating. For that purpose, I use the map_saver from the map-server package like this :

\$ rosrun map_server map_saver map:=robot1/map (something like this)


and it's working fine. Now i would like to use this in a roslaunch. i would like to to execute this command line on a certain condition (for example, when i'm ending my exploration by killing the roslauch) is this possible ?