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

Queries to implement Navigation stack in simulation

asked 2017-05-03 10:27:10 -0500

Ramesh gravatar image

I am trying to implement navigation stack in simulation, but first I want to build the map and save to map server as it is requirement. To build the map, I have followed steps from this link :http://wiki.ros.org/stdr_simulator/Tutorials/Create%20a%20map%20with%20gmapping

I am able to see the simulated map in rviz, how can I use this to load to the map server?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-03 14:11:12 -0500

You want to use the map_saver node from the map_server package. You can use this to store the map built with gmapping to disk (as a pgm image and a yaml file containing map metadata), and then later load that map using the map_server. Then you can do things like localize within the map using amcl.

edit flag offensive delete link more

Comments

I've built map and got two files one is .pgm and other in .yaml, Now how can load that map using map_server?
I am using this command, rosrun map_server map_server mymap.yaml and getting response :

how can I use this for amcl?

Ramesh gravatar image Ramesh  ( 2017-05-03 18:57:58 -0500 )edit

amcl calls the static_map service offered by the map_server to get a copy of the map.

jarvisschultz gravatar image jarvisschultz  ( 2017-05-04 09:01:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-03 10:27:10 -0500

Seen: 89 times

Last updated: May 03 '17