Skip to content

Import a ROS OccupancyGrid (.pgm + .yaml)

drawtonomy understands the ROS map_server format used by nav2, Cartographer, Gmapping, and similar SLAM tools.

A ROS occupancy grid imported into drawtonomy with arrows and shelves drawn on top

The screenshot shows a real warehouse occupancy grid (occupied cells black, free cells white) with paths and obstacles drawn directly over it inside drawtonomy.

  1. Open the File menu → Import.
  2. Select both the .pgm and matching .yaml file together in the file dialog.
  3. drawtonomy reads the YAML metadata (resolution, thresholds) and renders the grid on the canvas.

If you select only the .pgm and no .yaml, drawtonomy uses defaults (resolution = 0.05 m/px, standard occupancy thresholds).

CellColor
OccupiedBlack
FreeWhite
UnknownGrey

Cells render at a scale that matches drawtonomy’s lane dimensions, so you can draw lanes, paths, and shapes directly on top — exactly like the screenshot above.

drawtonomy has been used with maps from nav2, Cartographer, and Gmapping. Other producers should work as long as they emit the standard map_server .pgm + .yaml pair.