rosrun map_server map_saver -f <filename> to save the current map to a file..pgm image file for the map and a .yaml file for metadata like resolution and origin.map_server node with the command rosrun map_server map_server <map.yaml> to load the saved map.