3

GitHub - TheOnceAndFutureSmalltalker/ros_map_editor: Qt based tool for editing m...

 1 week ago
source link: https://github.com/TheOnceAndFutureSmalltalker/ros_map_editor
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Repository files navigation

ROS Map Editor

A Python Qt based tool for editing maps generated by ROS gmapping package.

ROS Map Editor

This was inspired by lack of any editors dedicated to this purpose. All chatter I could find just mentioned using Gimp, or some equivalent for editing these files, which is quite inadequate.

In particular, I needed a way to add areas of map which are "out of bounds" for the robot, but not necessarily obstacles detected by sensor. Things like ponds, sand traps, flower beds, etc. Flat surfaces, not detected by sensors in mapping, but off limits (or highly dangerous) to the robot.

I also needed a way to match the map with a real world map like Google Maps and associate grid cells with lat/lng.

Also, just general cleanup of map is an arduous taks with Gimp, et al.

With the Map Editor tool, I can now do all of these things (well, some of these features have yet to be added).

Current Functionality

  1. Edits files of type pgm with an accompanying yaml file describing metadata as generated by ROS gmapping package

  2. Grid cells can be set to occupied (black), unoccupied (white), or uncertain (gray).

  3. Thumb image shows entire map with the current viewport indicated (weirdly, commercial packages did not have this)

  4. Can zoom 100%, 200%, 400%, 800%, and 1600% for large grain to fine grain work

  5. Set color choice to white (unoccupied), black (occupied), gray (uncertain), and alternating (white->black->gray).

  6. Can color free form with mouse drag or pixel by pixel by clicking

Future Functionality

  1. Draw rectangles

  2. Overlay Google Map

  3. Start a New map (currently only opens on current map)

  4. Associate map/grids with lat/lng

  5. mods to yaml file as well

Getting Started


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK