25 November 2026

Self-healing maps

Martin Byröd

Robotics is getting a lot of attention these days, much of it thanks to impressive AI-driven demos. But most of these demos have something in common: they show one robot, solving one task, in isolation.

Real life is different. To be useful at scale, robots need to be part of a larger flow of tasks, places, items, people and other robots. For that they need to understand the space they operate in. In short, they need a map.

While a rather well-studied problem in academia, mapping for robotics is still quite far from a solved problem in practice. The standard method is to collect data up front, build the map once, copy it to the robot by hand, and assume the space stays the same.

That works in the lab, but it does not scale to real deployments. The spaces are larger, you generally cannot afford an expensive pre-mapping phase, and above all the world does not stand still. Reality keeps changing, and so should the map. Robots need a self-healing map. A map that repairs itself when the world changes, and gets better the more it is used.

This post is about how we at Staer think about mapping for robotics. But it is also a description of the mapping system we have deployed live in production at our sites today.

Time-lapse of the floating map (see below) built up from field data over some days.

A map built by the robots that use it

The overarching idea is simple. Maps for robots should be built and updated collaboratively by the robots deployed in the field. The same sensor data used to observe and localize in the map should also be used to maintain, refine and extend it in one continuous cycle. This is the only way for robotics deployments to scale in the long run, and it is how the maps stay up to date with changes in reality.

First, what kind of map are we talking about? A robotic map is an artifact and data structure built to answer three questions. Where am I? How do I get from A to B? What is around me, and where? Robots need all three, but location is at the core of everything. This post is about the map a robot uses to find its own position.

There are a few common ways to build such a map. Many robots use a laser scanner and a flat floor plan of walls and obstacles. Others build a dense 3D model of the whole space. We build a visual map, made from camera images only.

A visual map is a collection of views. A view is a spot where a robot took an image, stored with its exact position. Parts of the site that are seen from several views can be triangulated in 3D and form a point cloud. To localize, a robot finds the views that look most like what it sees right now and then uses geometric computer vision algorithms to work out where it must be in relation to those images.

A visual map: camera views with known positions and the 3D points they see

This is what makes the idea practical. Everything a visual map needs comes from cameras and motion sensors, and the robots already carry both through the space every day. No mapping crew and no special equipment are needed.

Conceptually, the flow looks like this. A robot records sensor data while it does its normal work, and then uploads the recording at a suitable time. In the cloud we work out precisely where the robot was at every moment, relative to the existing map. A set of checks decides which parts of the recording can be trusted. The views from those parts are merged into the map, replacing older views of the same places. Finally, a new map is built for the robots and tested against the one they are running. If it is better it ships to the whole fleet, and otherwise nothing changes.

The update loop: record, upload, align, check, merge, test and ship

Put this way, the flow seems simple and it is! Simple, but not easy to get right.

Simple to describe, hard to get right

The crux of a lifelong updating map is robustness and stability over time. The update loop has to run continuously every day, on real data, in a fully autonomous fashion. The map needs to stay accurate, it cannot be allowed to drift over time and it needs to stay bounded in size.

A particularly knotty issue is that positioning errors stick. When a robot misjudges its position while driving, new measurements arrive a moment later and the estimate recovers. But an error written into the map stays there, and every robot that later localizes against that spot inherits it. And worse, errors compound over time. When recordings are recursively aligned to older recordings, small alignment errors accumulate until observations made at different points in time can no longer be placed in a shared coordinate system. In the worst case this leads down a path of catastrophic degradation. The bar for accuracy is therefore far higher for the map than for any single robot, and any process for continuous map updates needs an answer for how drift over time is handled.

Finally, the map cannot only grow. Old data that is no longer true produces false matches, so it has to go. And however many recordings come in, the map a robot loads has to fit in fixed memory, work in real time and be cheap to send to the whole fleet.

How we build it

Three maps, not one

These sound like formidable challenges, so how can we meet them? The realization is that we should maybe stop asking one map to do everything. The approach we have taken is to keep three maps instead of one, and give each of them one job: the frozen map, the floating map and the device map.

The frozen map is our backbone. This map stays put and solves the problem of position drift over time. It is typically built once from a careful selection of recordings, checked, and then never modified. This is the one step where human supervision is injected into the process. But recently we have also experimented with an agentic approach to this step that looks very promising. The frozen map defines the coordinate frame for everything else.

The floating map is our living map. This is the map that learns over time. Every admitted recording goes here, and old data is removed from here. This map is free to change but not free to wander. All its data is expressed in the frozen map's coordinate frame, and visual correspondences to the frozen map provide soft constraints that pin it globally in place while allowing smooth local deformations as needed. When recordings are optimized together the frozen map is always held fixed. The error in any part of the floating map is then bounded by how well it is tied to the frozen map, and does not depend on how many updates came before it. That is what stops the drift.

The floating map is also where old data leaves. The rule is that newest wins: when a new view covers the same spot and viewing direction as an older one, it replaces it. This keeps the map current, and it means its size is set by the size of the space and not by how many recordings have come in.

The device map stays small. At a fixed cadence it is distilled from the other two maps into one compact artifact of bounded size, and it is the only map a robot ever loads. The device map is produced in a feed-forward process and never returns into the map-update process.

The frozen map, the floating map and the device map

This split also makes the system safe to leave alone. No update can damage the frozen map, since nothing writes to it. And if the floating map ever turned out to hurt, we could ship a device map built from the frozen map alone and be back where we started.

Estimating with hindsight

To meet the higher bar for accuracy, we do not use the position the robot estimated while driving. Map updates are computed offline in the cloud, where we have the whole recording, so every position is estimated from the measurements both before and after it. A recording is also not aligned to the map on its own. It is optimized jointly with the other recordings that saw the same places, so they have to agree with each other as well as with the frozen map.

Knowing when alignment worked

However accurate the estimation is, some recordings still go wrong. A camera is blocked, some sensor was miscalibrated or ambiguous data caused an error in state estimation. Other data is not bad per se, but has spent enough time in a sufficiently changed or new part of the site that it has accumulated drift. None of this must ever enter the map, while enough good data from changed locations still has to be incorporated.

The first test for whether a recording is admitted into the floating map is how well it is tied to the frozen map. To this end we extract anchor sequences. These are parts of the trajectory with strong geometric support from the frozen map. Parts without such support can also be admitted and are in fact essential to admit, since they will typically come from regions with significant changes. They are only admitted if they lie within a bounded distance along the path from a well-established anchor, and ideally they have anchors on both ends. Such parts are called bridge spans and they form the most important source of new map updates. Another way of saying this is that a changed area can enter the map when the robot drove through it between two places we are sure of.

Anchor sequences tied to the frozen map with a bridge span between them

A second set of checks looks at the recording as a whole: enough motion, sane geometry, residuals within statistical confidence bounds.

Continuous deployment for maps

Continuous map updates obviously only make sense if coupled with continuous deployment of the updated maps.

An export process distills the combined frozen and floating maps into the device map, highly optimized to be as lightweight as possible while still allowing accurate localization, so that it can be pushed over the air to robots in the field, often on spotty connections.

The map is stored as many small pieces, each identified by a hash of its binary contents. An update changes only the pieces for the places that changed, and a robot can compare the hashes of the pieces it already has and download only the changed parts. Every version of every map is kept, so going back is a matter of pointing at an older version. In some ways this setup can be thought of as git for maps.

While the offline map is measured in gigabytes, the delta pushed out to the field typically only requires tens of megabytes.

With nobody watching, the last guard is a test. A continuously running A/B test decides for any given candidate device map whether it gets promoted or discarded. The candidate ships only if it scores at least as well as the map the fleet is currently running. Otherwise the fleet keeps its current map. Nobody has to approve a map by hand, and that is what makes frequent updates possible.

Does it help?

To see what the updates are worth, we replayed 17 recent recordings from three sites twice: once against the current map and once against the original frozen map alone. On the frozen map alone, the robots knew where they were 83% of the time. On the updated map that number increased to 98%, and the typical position error dropped from 9 cm to 3 cm.

The gap follows the age of the map. At the site where the frozen map was only a couple of days old, little was lost. At the site that had changed the most, the frozen map alone kept the robots localized 59% of the time, against 96% for the updated map.

Rendering of actual data from live localization in our map.

Conclusion

Self-healing maps are running across our sites today. During a normal week, several hundred recordings per site are typically aligned, verified and merged. That takes the monthly number into the thousands, which means terabytes of data processed. But still there are many directions we would like to take this in the future. Currently the map update process happens offline in the cloud. This is a simple setup with many advantages, but does not automatically work for all deployments. For technical, security, privacy or other reasons it might not be possible to take data off the premises. Having the on-board compute of the robots themselves be responsible for the entire map-update process in a collaborative fashion might be the endgame here. These and related topics will continue keeping us busy building the best maps for robotics. More to come!