Ask Your Question

Localization using SLAM_Toolbox

asked 2020-11-13 04:21:59 -0500

MortenMD gravatar image

Hi! I'm trying to get the localization part of SLAM_Toolbox to work. I made a map and saved it using map saver (ros2 run nav2_map_server map_saver_cli -f 'map_name'), which gave me a pgm and yaml file.

According to the readme of SLAM_Toolbox, the input map in the map_file_name is in the format of a pose-graph file, which I do not have. Attempts at using the /slam_toolbox/save_map service in order to serialize the map had no return. Are there any other way to convert the .pgm and .yaml files to the required format?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-27 01:34:25 -0500

Rojekk gravatar image

Hi, if you use SlamToolBox plugin in Rviz, it is easy to do. Yo can save your map by simply typing the map name you want in the box which is next to 'Save Map' button, then press the Save Map button. It saves your map to .Ros directory which you can see by pressing ctrl+h at your home directory. If you do the same with the 'Serialize Map' button it saves the map in the format you need.

SlamToolBox rviz config file is in the config file in Slam_Toolbox package and don't forget to source that location in the terminal where you launch rviz, which i did too :D

Hope it helps

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-11-13 04:21:59 -0500

Seen: 459 times

Last updated: Nov 13 '20