The AGV Was Not Broken: Matching Score 0.63 Against a 0.55 Threshold, and Four Collisions
An AGV that starts hitting things after a layout change is not broken. It is doing what the map tells it to do, and the map is now wrong. The failure below is worth walking through because the first three things the site team tried — wiping the LiDAR window, swapping the scanner on that vehicle, rebooting the fleet manager — were all reasonable and all useless.
What the site saw
Monday afternoon: two rows of shelving were moved to free space for charging piles. Tuesday morning shift: one vehicle began making repeated emergency stops at the old rack position, and by the end of the day it had collided four times. Wednesday: same behaviour, on the same stretch of aisle, with a new scanner fitted.
The detail that resolves the case is in the incident log rather than the hardware. Three of the four collisions happened on one short section of one route. Everywhere else the fleet ran normally.
Four fields, written down before touching anything
The useful first step is not diagnosis but documentation. Record four numbers:
- Scan-matching score — how well each scan frame agrees with the map, per frame, from the vehicle log.
- Localisation residual — the frame-to-frame position jump, in centimetres.
- Error zone — which aisle and which station, precisely.
- Site change ledger — what was moved, when, and by whom.
Laid out side by side, these four fields answer the question in about five minutes. In this case the score curve for the two hours around the incidents dropped sharply on the old rack section and stayed flat everywhere else. That pattern has one meaning: the map and the site disagree.
Why the vehicle did not report a fault
Here is the number that matters. On the rack section the matching score fell to 0.63. The dispatch threshold was set at 0.55. The system therefore classified the localisation as valid and kept sending work orders.
This is the part worth internalising: a scan-matching score is not a health indicator, it is a permission slip. With the threshold at 0.55, a vehicle that is no longer sure where it is qualifies as healthy, and the failure only becomes visible when accumulated error turns into an emergency stop or a collision. A looser threshold does not make the fleet more available; it makes the failures less predictable.
Distinguishing map mismatch from a dirty scanner
Three symptoms point at three different causes, and they are easy to separate if you look at where the error happens rather than at what the error is.
| Symptom | Likely cause | Check first |
|---|---|---|
| Faults cluster in one area, rest of the route is fine | Map does not match the site | Was anything in that area moved, added or removed? |
| Matching score drops everywhere at once | Dirty window, strong light, dust, damaged scanner | Lens, protective cover, return signal strength |
| Position jumps once and does not recover | Localisation algorithm or extrinsic calibration | Extrinsic calibration, odometry |
Two hard criteria settle it:
- If the matching score on the failing section is ≥0.08 lower than on other sections, the site change comes first, not the sensor.
- If temporarily putting the old rack outline back into the map stops the fault, the root cause is confirmed.
The residual waveform is the confirmation nobody bothers to plot. Map mismatch has a signature: 2 cm of error entering the section, growing to 15 cm over ten to thirty metres, then snapped back to near zero on exit. Error that grows with distance and resets when the vehicle leaves the area is a map problem. Error that persists after the area is a localisation problem.
Root cause: the map treats temporary objects as permanent
LiDAR navigation works by matching measured points against stored reflectors — walls, columns, rack uprights. Those features are the map. When two rows of racks disappear, half the features on that stretch vanish, and the vehicle has to fit its scan to whatever remains. It can, badly, and the residual grows with distance because there is less and less to correct against.
The second half of the root cause is organisational, and it is the more common one. The team that moves the racks is the equipment department; the team that owns the map sits in the control room. They are not in the same group chat. Nobody logs that the floor changed, so the map stays as it was, and the fault gets attributed to "that vehicle".
Step 1: mask the changed zone, and freeze dispatch there
A mask tells the vehicle not to use a region for matching. Mark the changed area — the change point plus 2 m either side to cover the transition — as excluded from matching, and remove that stretch from automatic dispatch.
| Parameter | Suggested value | Test it against |
|---|---|---|
| Mask extent | 2 m beyond the change point | Covers entry and exit transition bands |
| Speed through the zone | 50% of baseline | Residual ≤3 cm on exit |
| Freeze duration | Until local rescan and retest pass | No "let it run and see" |
Freezing is not stopping the line. The masked section runs with a person escorting the vehicle; every other section keeps running automatically. That distinction is what makes this acceptable to production, and it is why a 2 m mask is better than a site-wide shutdown for a two-rack change.
Step 2: rescan the zone, not the site
A full-site rebuild means stopping the line, re-aligning every route and recalibrating every aisle. For a change confined to one section, it is the most expensive possible fix.
The local procedure has three parts. Scan only the changed zone including the 2 m margin, with movable equipment moved out of the way first. Register the new scan against unchanged structure — walls, columns, fixed stations — never against objects that were themselves moved. Then run ten unloaded round trips, logging the score and the exit residual each time.
The acceptance criteria have to be numbers written down in advance:
- Matching score in the changed zone ≥0.72, and within 0.05 of the adjacent sections.
- Exit residual ≤3 cm.
- Ten consecutive round trips with zero emergency stops.
A rescan without an acceptance line is not a rescan. Handing the zone back the same afternoon and discovering on Thursday that nothing changed is the standard failure mode.
Step 3: log site changes the day they happen
The ledger needs three columns and no software:
| Column | Record | Who writes it |
|---|---|---|
| What changed | Moved, added or removed item, and the original position ID | Whoever did the work |
| Affected area | Which aisle, which stations | Dispatch or control room |
| Map action | Whether a rescan is needed, when it completed, retest result | Control room |
One hard rule makes it work: any work that moves a rack, a charging pile or a station fence is logged the same day, and the control room decides whether a rescan follows. The point is not bureaucracy. Without it, fault attribution reverts to guessing, and the guess is usually the vehicle.
A second habit is cheaper still. Pick three feature points that the map depends on most — two outer walls and one column is enough — and check their scores at the start of each shift. A drop of more than 0.05 against baseline is a repair ticket, not something to wait on.
What two weeks of the fixed setup looked like
No scanner was replaced, no algorithm was changed, no new hardware was added. The map and the ledger were the only changes, and the numbers over the following two weeks were:
| Metric | Before | After | Change |
|---|---|---|---|
| Collisions / interference events per week | 4 | 0 | −100% |
| Emergency stops in the changed zone per week | 17 | 3 | −82% |
| Localisation jumps per shift | 12 | 1 | −92% |
The three remaining emergency stops are worth reading properly: all of them occurred in the mask's transition band, where the vehicle deliberately slows and re-acquires. That is a designed conservative stop, not a fault. If the number had stayed at 17, the mask would have been cosmetic.
Retesting needs two things, and the second is the one people skip. First, twenty round trips through the changed zone with the score and residual logged each time. Second, deliberately park a temporary piece of equipment inside the transition band and watch whether the system reports a problem or quietly compromises. Only the second test proves the threshold was actually tightened.
Preventing the next occurrence
Three habits, in order of cost:
Version the map. A version number and an effective date, with vehicle and fleet manager agreeing on the same version. If they disagree, dispatch is blocked. A map is not an asset; it is a photograph that expires.
Count changes per month. The ledger makes this trivial, and the number is diagnostic: more than two site changes a month means the floor is inherently unstable and manual inspection will not keep up.
Put the three feature-point scores in the daily report, next to throughput and empty-run rate. Those three numbers detect map drift earlier than any alarm, because they move before the vehicle does anything wrong.
When to add near-field aids instead
Masking plus a ledger is enough when three things hold: the layout changes no more than about twice a month, the changed section is under ten seconds of travel, and there are stable walls or columns to register against.
Reflectors or floor/screen codes start to pay when racks are reshuffled almost weekly, when a site runs sixteen or more vehicles across multiple zones so that one mismatch propagates through global scheduling, or when aisles are narrow and feature-poor so that losing half the features leaves nothing to fall back on. The division of labour is simple: LiDAR carries global continuity, near-field markers carry repeatable precision at specific stations. Near-field codes cannot fix a whole site, and LiDAR cannot remember what was moved last Tuesday.
Three things that can be done today
- Pull the matching score for the hours around the incident, split by route section, and look at whether the drop is concentrated.
- Plot the residual against distance: 2 cm at entry, 15 cm at exit, back to zero after — check the map before touching the scanner.
- Start the change ledger today. It costs nothing and it is the only part of this that prevents recurrence rather than explaining it afterwards.
The underlying lesson is not about LiDAR. It is that a fleet will keep working on a map of a building that no longer exists, and will do so silently, because the score that authorises it to move was never designed to notice.