ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Where are the map files stored when rosrun map_server map_saver is run

asked 2020-12-28 04:45:23 -0500

Krush gravatar image

I have used this command to store map

rosrun map_server map_saver static_map:=dynamic_map

This is the output i got:

Waiting for the map Received a 1984 X 1984 map @ 0.050 m/pix Writing map occupancy data to map.pgm Writing map occupancy data to map.yaml Done

Where are these maps physically stored? If i want to use them again how do i load them?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2020-12-29 08:04:12 -0500

HI,

By default the maps are stored on the same location where you run the command with the names to map.pgm and map.yaml.

If you want to specify a different path and filename you can use the -f option. There are quite more parameters, and instructions on how to use map_server on its wiki page http://wiki.ros.org/map_server

edit flag offensive delete link more

Comments

map yaml and pgm files do not have to be in the same path. If you edit yaml file you can see pgm file path in there.

bekirbostanci gravatar image bekirbostanci  ( 2020-12-29 14:53:32 -0500 )edit
0

answered 2021-04-04 08:23:51 -0500

Anshul gravatar image

The map is saved in the directory you call rosrun map_server map_saver. I'm assuming you called it from your home directory so you should find the *.pgm and *.yaml in your home directory.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-12-28 04:41:45 -0500

Seen: 1,364 times

Last updated: Apr 04 '21