using existing map instead of slam-built map to navigation and localization

asked 2020-11-09 19:07:03 -0600

xibeisiber gravatar image

updated 2020-11-09 19:10:25 -0600

Hi all,

I want to navigate a robot in a large but regular area. It would be demanding to let the robot go through this area to build a map using laser SLAM. Instead, I can draw a sketch or model of the area, it seems I can convert it into pgm format. If I specify the yaml correctly, can I use the pgm map file and yaml file to replace the map produced by laser SLAM for navigation?

Secondly about the localization, I don't fully understand how amcl works, but it takes input the real time laser data and the map, combining with odometry to achieve localization. It seems it would compare the realtime laser data with the map? I'm not very sure about this. If the environment is almost identical, thus the real time laser data has the same structure when the robot is located at different places, will the amcl work as normal?

Thanks for any help!

edit retag flag offensive close merge delete


Answering the first question: yes. You can sketch a map and turning it into a .pgm file but for move_base purposes you will have to serve it through ros map server.

Unfortunately, I can´t answer your second question at all. Sorry.

Ronro gravatar image Ronro  ( 2021-08-15 06:52:54 -0600 )edit

Thanks very much. Regarding to second question, I think amcl won't give reliable result.

xibeisiber gravatar image xibeisiber  ( 2021-11-03 09:06:26 -0600 )edit