saiaravind19/gazebo_terrain_generator
A simple tool to generate gazebo terrain using satellite images and DEM data.
What it solves
Creating realistic simulation environments for robot testing usually requires manually building terrain models from scratch, which is time‑consuming and laborious. This tool automates the process by generating a complete Gazebo world from real‑world elevation and satellite data, so you can get a ready‑to‑use simulation environment in a few clicks.
How it works
You run a local web server (using the uv Python package manager) and open it in your browser. After entering your Mapbox API key (stored only in your browser, never on a server), you can:
- Search for a place or enter GPS coordinates.
- Draw a polygon on the map to outline the area you want to include.
- Drag a marker to set where your robot should spawn.
- Optionally configure settings like zoom level, tile source, inclusion of 3D buildings (from OpenStreetMap footprints), and even a helipad.
- Click Generate Terrain and then Download World to get a
.ziparchive containing a.worldfile, a terrain model (heightmap, satellite texture, normal map), and amodel.configfile. The heightmap is 16‑bit for high precision in Gazebo Harmonic (or 8‑bit for Fortress compatibility).
The generated world can be run with gz sim (Harmonic) or ign gazebo (Fortress) directly, or you can unzip the archive and use it from any local path. The output also includes a model directory that works with model:// URIs without needing extra resource paths.
Who it's for
This tool is aimed at robotics developers, simulation engineers, and anyone using Gazebo for testing autonomous systems. It lets you quickly build realistic outdoor environments based on actual geography, without having to hand‑craft terrain or textures. The simple web interface makes it accessible even to those who aren't deeply familiar with Gazebo's file formats.
Highlights
- Real‑world terrain – Generates heightmaps and satellite textures from actual elevation and imagery of any location on Earth.
- 3D buildings – Optionally downloads OpenStreetMap building footprints and extrudes them as 3D meshes.
- Configurable spawn point – Drag a pin on the map; GPS coordinates are baked into the world automatically.
- High‑precision heightmap – Uses 16‑bit depth (about 0.008 m precision) for Harmonic, and 8‑bit for Fortress.
- Easy download and run – Output is a single
.zip; unzip anywhere and launch with the appropriate gazebo command. - Sample worlds included – Pre‑generated examples (Apple Tech Park, Joshimath) let you test quickly.
Related
- Project
- Project
- Project
- Project