How an Occupancy Grid Is Built: Log-Odds, Ray Casting and What map_server Reads
A concept guide to occupancy grid mapping: why cells hold log-odds, how a laser beam updates them, why clamping decides how stubborn a map is, and how ROS 2 stores and loads the result.
In this article
- Key idea and when to use it
- The map is a grid of independent yes/no questions
- Why log-odds, and what the update really is
- The inverse sensor model and ray casting
- The increments are a tuning choice, and so is the clamp
- What ROS stores: the grid, the message and the PGM
- Reading the artefacts
- Our take: where the grid helps and where it hurts
- Before you trust a saved map
- Where this fits in the series