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

Can I create a navigation map using an already existing jpeg map?

asked 2017-02-04 08:09:59 -0500

pallavbakshi gravatar image

updated 2017-02-05 22:57:20 -0500

This is a noobie question. But I found that we can manually edit the map file generated from the gmapping output using some editors. So can we use a png/jpeg map and transform it into some different format which can be used by the acml to navigate later? If yes then please guide me through. If not, then can I enhance the map output from gmapping using this PNG map? like fix some corners etc.

Thank you! :D

Map

C:\fakepath\rm4221.png

Edit - I changed JPEG to PNG after considering the remark in the accepted answer.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2017-02-04 12:15:58 -0500

ahendrix gravatar image

The map you've linked to is a PNG, not a JPEG; but that shouldn't really matter in the bigger picture.

It should be possible to manually create a map for AMCL, but it needs to be in specific format:

  • In PGM format, so that the map_server can load it
  • Black and white; black for obstacles, white for free space
  • Properly scaled, so that one pixel in your map matches the resolution setting in AMCL

Keep in mind that the map should be WHAT THE SENSOR SEES and not what you see. In particular, some of the typical lidars may not see glass windows or mirrors the same way you do.

So yes, you could start with your building map, but you'd probably need to make significant edits to scale it and get it into the correct format.

There are also a few existing questions about editing existing maps that may be useful:

edit flag offensive delete link more
0

answered 2017-02-05 01:10:45 -0500

asimay_y gravatar image

I think of course you can. But you need to write your own map server code to decode the picture data into map. at present the package only support PGM and PNG format.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-02-04 08:09:59 -0500

Seen: 1,299 times

Last updated: Feb 05 '17