ROS Grid 🤖

ROS Occupancy Grid

Open Beta
.zip · application/zip

Occupancy Grid is a map format for robots and autonomous navigation in ROS/ROS 2. Map as a raster image (PGM): each pixel is 'free', 'occupied', or 'unknown'. Used for SLAM, path planning, and Nav2.

Export ROS Grid now ✨ Open Beta — free, no limits

Key Features

PGM raster map
YAML metadata (resolution, origin)
Classification: buildings, roads, water
Scale from 0.1 to 5.0 m/pixel
Example ROS Grid export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

About ROS Grid Format

An occupancy grid is how a mobile robot sees the world: the territory is split into square cells, each marked as free, occupied or unknown. In ROS and ROS 2 such a map is stored as a pair of files — a raster .pgm and a .yaml description — served through map_server, and the Nav2 planners build a route on it.

Usually the robot builds such a map itself, driving around the territory with a scanner. A map from OpenStreetMap is needed where the robot has not driven yet: to model deliveries across a block, to test a planner on a real street and courtyard network, to prepare a scene for simulation, to give the robot an initial idea of the district.

What is inside: a ZIP with map.pgm (a black-and-white raster) and map.yaml with the resolution, the origin and the occupancy thresholds. Buildings, water and permanent barriers such as walls and fences become occupied cells; roads, sidewalks and parks become free ones; everything else stays unknown. The default resolution is 0.5 meters per pixel and can be set down to 0.1 meters; the raster side is capped at 10,000 pixels, so a large district has to be taken at a coarser resolution.

What Program Opens ROS Grid Files

The following programs and applications can open, edit, and work with ROS Occupancy Grid (.zip) files exported from OSM2CDR:

💻ROS 💻ROS 2 💻Nav2 💻Autoware 💻Gazebo

Format specifications

Who Uses ROS Grid Maps

🏗
Robot Navigation
A ready map of the surroundings for a robot that has not driven the route itself yet.
💻
SLAM Mapping
A starting point for SLAM: outlines of buildings and streets with lidar data laid on top.
📊
Path Planning
An input for planners: occupied and free cells in exactly the form they read.
🎨
ROS 2 / Nav2
The map is connected to nav2_map_server with one parameter in the launch file, with no conversions.
🗺
Warehouse Robots
The outdoor territory of a warehouse and its access roads — what an indoor map of the premises does not cover.

How to Export ROS Grid

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose ROS Grid
Select ROS Occupancy Grid from the list of 127 available export formats
3
Export
Click Export and receive your .zip file in 1-5 minutes
4
Download
Download the ready ROS Grid file and open it in ROS

How to Open After Export

Popular maps in ROS Grid

Free

Get ROS Occupancy Grid map exports

Download professional ROS Grid maps from OpenStreetMap. Instant generation, any area.

Free / export
Export ROS Grid now →

Frequently Asked Questions

What's included in ROS Grid export?
What scale is used?
What do the shades in the .pgm mean?
Does this replace a map built by the robot?
What size will the raster be?

Related Formats

Frequently Exported Together

Related Articles