LiDAR SLAM, HD Maps & Sensor Fusion for Autonomous Localization
An autonomous vehicle must know where it is to within a fraction of a lane — continuously, at speed, in places where satellite signals bounce off glass towers or disappear entirely. No single sensor can do this. Production localization stacks therefore fuse GNSS, inertial sensing, wheel odometry and LiDAR scan matching against a pre-built HD map, and they live or die by the quality of the coordinate transforms between those components. This guide explains how that fusion is structured, where it breaks, and how to reason about its accuracy with real numbers.
Contents
The Sensor Stack and What Each Layer Contributes
GNSS RTK + INS is the absolute anchor: latitude, longitude, altitude, roll, pitch and yaw tied to the Earth. It is superb in open sky and unreliable exactly where cities are densest. 3D LiDAR scan matching (NDT or ICP) aligns live point clouds against the HD map's point-cloud layer, yielding a precise pose relative to the map — but only relative to the map, and only where the environment has stable structure. IMU and wheel odometry propagate the pose at 100–1,000 Hz between the slower absolute updates, smooth in the short term and drifting in the long term. The fusion engine — an extended Kalman filter or a factor graph — exists to combine these so that each source covers the others' failure modes.
The Coordinate Frame Chain: From Sensor to Map
Underneath the sensor fusion sits something more basic: a chain of coordinate transforms. A point detected by the LiDAR becomes useful only after it has been carried through every frame below, and an error in any single transform shifts everything downstream of it.
| Frame | Origin & Axes | What Lives Here |
|---|---|---|
| Sensor frame | LiDAR optical center; axes fixed to the device | Raw point clouds, camera pixels |
| Vehicle (body) frame | Vehicle center / rear axle; forward-left-up | Fused object tracks, control commands |
| Local ENU frame | Tangent plane at a local origin; East-North-Up in meters | Trajectories, planning, SLAM submaps |
| Geodetic / HD map frame | Latitude, longitude, ellipsoidal height (e.g. WGS84) | HD map lanes, signs, global route |
The sensor-to-vehicle transform (the extrinsics) comes from calibration, not from software defaults. A 0.1° mounting error in a LiDAR extrinsics rotation moves a point at 100 m range by roughly 17 cm — more than the entire lane-level accuracy budget. This is why production stacks re-check calibration whenever a sensor is serviced, and why "the map looks shifted" is so often a calibration problem wearing a disguise.
Why GNSS Alone Fails in Urban Canyons
Satellite signals reflecting off tall glass facades arrive late, and the receiver computes a position that can be wrong by several meters — multipath error. In tunnels and under elevated expressways the signal disappears outright. Lane-level driving targets better than 10–20 cm of lateral error, so raw GNSS, even RTK-corrected GNSS, cannot be the only source in a city. The stack's answer is not a better antenna; it is the fusion architecture above, in which the HD map itself becomes a positioning reference: buildings, poles and lane markings do not move, and matching a live scan against them yields a pose that owes nothing to the sky.
A Practical Localization Workflow
- Anchor globally. GNSS RTK + INS provides the absolute position seed whenever the sky is visible.
- Match locally. Each LiDAR sweep is aligned to the HD map's point-cloud layer (NDT or ICP), producing a precise pose relative to the map.
- Fuse continuously. IMU and wheel odometry propagate the pose at high frequency between scans; an EKF or factor graph blends all sources with their uncertainties.
- Convert carefully. The fused pose is maintained in a local ENU frame for planning, and converted to geodetic coordinates only at well-defined boundaries.
- Monitor integrity. When scan-matching residuals grow — tunnels, heavy rain, fresh roadworks — the system must widen its stated uncertainty rather than report a confident wrong pose.
Worked Example: How Far Does SLAM Drift?
Pure odometry-based SLAM accumulates drift roughly in proportion to distance travelled. A mid-range system drifting at 0.5% of distance — a realistic figure without loop closure — accumulates:
800 m urban drive × 0.5% drift = 4.0 m of accumulated error
Four meters is more than a full lane width, which is why HD-map scan matching matters: every successful match against the pre-built map resets the accumulated error back to the map's own accuracy, typically 10–20 cm absolute. The practical lesson is that localization quality is not a single number — it is the drift rate between corrections, multiplied by how often trustworthy corrections arrive. A stack that matches the map every 50 m with 0.5% drift never exceeds about 25 cm of drift error; the same stack in a featureless tunnel for 2 km is in a different world entirely.
Common Failures and Troubleshooting
- Map and GNSS disagree by a fixed offset. Usually a datum or CRS mismatch: the HD map was built in a national grid while the GNSS reports WGS84. Check for a constant shift before blaming the sensors.
- Pose jumps after tunnels. Expected if the re-acquired GNSS fix is applied as a hard correction instead of being blended. Log the jump size — repeated multi-meter jumps indicate the fusion weights, not the hardware, are wrong.
- Scan matching degrades in traffic. Dynamic objects (trucks, buses) corrupt ICP/NDT alignment. Mature stacks mask moving objects or weight static structure — poles, facades — more heavily.
- Slow drift on one side of the road. A classic extrinsics signature: the error grows with range and flips sign with direction of travel. Recalibrate before retuning the fusion.
Frequently Asked Questions
How accurate does autonomous localization need to be?
Lane-level driving generally targets better than 10–20 cm of lateral error. Highway pilot features can tolerate somewhat more; automated parking and curb-side stops need the tighter end of that range.
Can LiDAR SLAM work without an HD map?
Yes — SLAM can build and localize in its own map — but the resulting coordinates are relative to wherever the session started. Tying them to the real world still requires a geodetic anchor, which is what GNSS and surveyed control points provide.
Why do stacks use ENU instead of latitude/longitude internally?
Planning and control math needs meters, not degrees: one degree of longitude is about 111 km at the equator but only about 56 km at 60° latitude. A local ENU tangent frame keeps distances uniform and the math linear.
Further reading: ROS REP-105 (Coordinate Frames for Mobile Platforms) for the frame conventions used across robotics; the NDT and ICP literature for scan matching; and this site's guides to GPS accuracy and datum shift for the geodetic foundations.