# LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping

LIO-SAM fuses lidar, IMU and GPS in a factor graph for real-time mapping

Shan, Tixiao, Englot, Brendan, Meyers, Drew, Wang, Wei, Ratti, Carlo, Rus, Daniela · arXiv · 2020-7-1

- **Problem** Lidar odometry that matches each scan to a growing global map slows down and drifts on long runs. It also makes loop closure and absolute sensors such as GPS hard to add.
- **Method** LIO-SAM puts IMU preintegration, lidar odometry, GPS and loop closure factors into one factor graph. Each new keyframe is matched only against a fixed window of 25 sub-keyframes, not a global map.
- **Results** On Park, LIO-SAM reached 0.04 meters end-to-end translation error, against 121.74 meters for LOAM. On Walking it took 58.4 ms per scan, against 253.6 ms for LOAM.

## Why lidar odometry drifts

LOAM stores its data in a global voxel map and matches each new scan against it, which makes loop closure detection and the addition of absolute measurements such as GPS difficult. Its online optimization also slows as that map becomes dense in feature-rich scenes, and it drifts on large-scale tests because scan matching is central to the method.

Scan matching alone is fragile when a point cloud is skewed by the lidar's rotation and by the sensor's own motion, so lidar is usually paired with an IMU or GPS. Fusion designs of this kind fall into loosely coupled and tightly coupled groups.

LOAM uses the IMU to de-skew scans and as a motion prior, but keeps it out of its optimization, which places it among the loosely coupled methods. The tightly coupled alternatives have their own limits: LIOM ran at about 0.6× real time in the authors' tests, and R-LINS drifts over long navigation when no other sensor is available.

## State and factor graph formulation

The robot state stacks a rotation, a position, a velocity and an IMU bias into one vector, with the rotation in SO(3) and the position in R3. The body frame B is related to the world frame W by a transformation in SE(3) built from that rotation and position.

State estimation is cast as a maximum a posteriori problem, which under a Gaussian noise assumption becomes a nonlinear least-squares problem over a factor graph. Four factor types connect the nodes: IMU preintegration, lidar odometry, GPS and loop closure. A new state node is added when the pose change exceeds a user-defined threshold, and iSAM2 re-optimizes the graph after each insertion.

Other measurements such as altimeter elevation or compass heading can be added as further factors without changing this structure.

## IMU measurement model and preintegration

Raw angular velocity and acceleration readings are modeled as true values plus a slowly varying bias and white noise, with acceleration expressed in the body frame after removing gravity in the world frame.

Integrating these readings forward gives velocity, position and rotation at a later time, under the assumption that angular velocity and acceleration stay constant over the integration step.

Preintegration expresses the change in velocity, position and rotation between two timesteps as relative terms, following an earlier method, and these terms form the IMU factor. Because the bias is a variable in the graph, it is optimized jointly with the lidar odometry factors.

## Lidar odometry factor from a sliding window

Each lidar scan is reduced to edge features and planar features, chosen by how rough the points are in a local neighborhood. The features of a scan are kept as a lidar frame expressed in the body frame B.

Adding every frame to the graph would be too expensive, so a frame becomes a keyframe only when the pose change from the previous state exceeds a threshold of 1m or 10◦. Frames between two keyframes are discarded, which keeps the graph sparse enough for real-time nonlinear optimization.

For each new keyframe, the most recent 25 sub-keyframes are transformed into the world frame and merged into two voxel maps, one for edge features and one for planar features. The merged maps are downsampled to 0.2m for edge features and 0.4m for planar features, which removes duplicates within each voxel cell.

The new keyframe is matched against these maps, starting from the motion predicted by the IMU, and the correspondences follow the LOAM procedure. The distance from each edge feature to its edge line and from each planar feature to its planar patch is given by equations 10 and 11, and Gauss-Newton minimizes the sum of these distances.

The solution gives the relative transformation between consecutive states, which becomes the lidar odometry factor. The authors match against the window rather than against the frame of the previous state, because the transformed features can be reused across matches.

## GPS and loop closure factors

If the GPS is not hardware-synchronized with the lidar, GPS readings are linearly interpolated to the lidar frame's timestamp.

When a new state is added, prior states within 15m of it in Euclidean space are candidates for loop closure. The new keyframe is scan-matched against sub-keyframes within m = 12 of a candidate, and the resulting transformation is added as a loop closure factor. The authors use a naive Euclidean distance search and note that descriptor-based place recognition methods could be substituted.

Loop closures matter most for altitude, because GPS elevation is inaccurate and gave errors approaching 100 m in the authors' tests when no loop closures were used.

## Datasets and experimental setup

The sensor suite is a Velodyne VLP-16 lidar, a MicroStrain 3DM-GX5-25 IMU and a Reach M GPS. Five datasets were collected: Rotation, Walking and Campus on a handheld device on the MIT campus, Park with a Clearpath Jackal UGV, and Amsterdam from a boat.

Table I lists Park with 24691 scans, 19.0 m of elevation change and a 2898 m trajectory, and Amsterdam with 107656 scans and a 19065 m trajectory.

Everything is implemented in C++ on a laptop with an Intel i7-10710U CPU under ROS, and only the CPU is used.

LIO-odom disables both GPS and loop closure factors, LIO-GPS keeps GPS factors without loop closures, and LIO-SAM uses all factors when they are available.

## Rotation and Walking tests

The Rotation test uses only IMU preintegration and lidar odometry factors, with a user rotating the sensor suite aggressively while standing still. The maximum rotation speed in this test is given as 133.7 ◦/s in the text.

The authors report that the LIO-SAM map keeps more fine structure than the LOAM map, and they attribute this to registering each lidar frame precisely in SO(3) during rapid rotation. LIOM could not initialize on this data because it uses an initialization pipeline borrowed from a visual-inertial method, so no LIOM map is shown.

Walking covers aggressive translations and rotations in SE(3), with maximum speeds of 1.8 m/s and 213.9 ◦/s. LOAM's map diverges at several points during fast rotation, and LIOM performs better but still shows blurry structures; the LIO-SAM map is consistent with available Google Earth imagery. LIOM ran at 0.56× real time on Walking, while the other methods ran in real time.

## Drift with GPS and loop closure

On Campus, the end-to-end translation error when the robot returns to its start is 192.43 meters for LOAM, 9.44 meters for LIO-odom, 6.87 meters for LIO-GPS and 0.12 meters for LIO-SAM, while LIOM failed. LIO-odom drifts visibly at the lower right of the map, and LIO-GPS corrects drift only while GPS is available, so it cannot close the loop at the end.

Loop closure factors let LIO-SAM eliminate the drift.

On Park, the end-to-end translation error is 121.74 meters for LOAM, 34.60 meters for LIOM, 36.36 meters for LIO-odom, 2.93 meters for LIO-GPS and 0.04 meters for LIO-SAM. Because no reliable absolute elevation is available, LIO-GPS drifts in altitude and cannot close the loop, whereas LIO-SAM uses loop closure factors for this.

Measured against the GPS history on Park, the RMSE translation error is 47.31 for LOAM, 28.96 for LIOM, 23.96 for LIO-odom, 1.09 for LIO-GPS and 0.96 for LIO-SAM, and the z axis is excluded. The authors expect that full GPS access would reduce the error of LIO-GPS and LIO-SAM by at least an order of magnitude, but no such run is reported.

On Amsterdam, LOAM, LIOM and LIO-odom fail to produce meaningful results, while LIO-GPS reaches 1.21 meters and LIO-SAM reaches 0.17 meters end-to-end translation error. The authors attribute the failures to bridges that create degenerate scenes, fewer planar features without the ground, false lidar detections under direct sunlight for about 20% of the time, and intermittent GPS.

LIO-GPS again cannot close the loop because of altitude drift, which the authors cite as the reason for adding loop closures to LIO-SAM.

## Runtime and playback speed

On Walking, LIO-SAM averages 58.4 ms per scan, against 253.6 ms for LOAM and 339.8 ms for LIOM. LIO-SAM takes 41.9 ms on Rotation, 97.8 ms on Campus, 100.5 ms on Park and 79.3 ms on Amsterdam. LOAM and LIOM fail on some of these datasets.

Under the real-time setting, LOAM and LIO-SAM drop frames when processing exceeds 100 ms at a 10 Hz lidar rate. LIOM is given unlimited time and ran at 0.6× real time in the related-work tests, 0.56× on Walking and 0.67× on Park.

When data is fed faster than real time, LIO-SAM keeps performance similar to 1× playback and processes data up to 13× faster than real time.

## Limits of the evidence

The tests cover three platforms and five datasets. The Amsterdam result for LIO-SAM is obtained with all factors, including GPS when it is available, and the non-GPS variants fail there.

Without reliable absolute elevation, LIO-GPS drifts in altitude and cannot close the loop on Park or Amsterdam.

The maximum rotation speed for Rotation is 133.7 ◦/s in the text but 213.9 ◦/s in Table I. The LIOM failure on Rotation is tied to the initialization pipeline it borrows from a visual-inertial method.

The runtime measurements come from one laptop CPU without parallel computing. Testing on unmanned aerial vehicles is left to future work.

## Paper info

- **Authors**: Shan, Tixiao, Englot, Brendan, Meyers, Drew, Wang, Wei, Ratti, Carlo, Rus, Daniela
- **Venue**: arXiv · Preprint
- **First published**: 2020-7-1
- **Added**: 2026-11-12
- **Updated**: 2020-7-14
- **Version**: v3
- **arXiv**: 2007.00258
- **Category**: cs.RO
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2007.00258v3) · [PDF ↗](https://arxiv.org/pdf/2007.00258v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Shan, Tixiao, Englot, Brendan, Meyers, Drew, Wang, Wei, Ratti, Carlo, Rus, Daniela (2020). LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping. arXiv:2007.00258v3. https://arxiv.org/abs/2007.00258v3

**BibTeX**

```
@misc{tixiao2020tightly,
  title = {{LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping}},
  author = {Shan, Tixiao and Englot, Brendan and Meyers, Drew and Wang, Wei and Ratti, Carlo and Rus, Daniela},
  year = {2020},
  eprint = {2007.00258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00258v3}
}
```

## Related papers

- [FAST-LIO2: Fast Direct LiDAR-inertial Odometry](https://refivu.com/en/papers/401ff61a-2475-494b-b01d-b01a805546db-fast-lio2-fast-direct-lidar-inertial-odometry.md)
- [Kimera: from SLAM to Spatial Perception with 3D Dynamic Scene Graphs](https://refivu.com/en/papers/e204e6b6-1fe3-4011-8543-5c864cd427d9-kimera-from-slam-to-spatial-perception-with-3d.md)
- [Polygraph: Large-Scale Multi-Session Trajectory Optimization using Pose Graphs](https://refivu.com/en/papers/05c4e863-0276-4159-8579-6702d3b03259-polygraph-large-scale-multi-session-trajectory-optimization.md)
- [Past, Present, and Future of Simultaneous Localization And Mapping: Towards the Robust-Perception Age](https://refivu.com/en/papers/52381e81-8cdd-4551-89ee-d6c7630fb938-past-present-and-future-of-simultaneous-localization-and.md)
- [FuXi: A cascade machine learning forecasting system for 15-day global weather forecast](https://refivu.com/en/papers/22238201-8e26-4b50-bb73-ade13aa387ac-fuxi-a-cascade-machine-learning-forecasting-system-for.md)
- [Graph Neural Networks for Social Recommendation](https://refivu.com/en/papers/3f172e45-3e51-4657-9b43-76ed2fb286e9-graph-neural-networks-for-social-recommendation.md)

## Other paper commentary

- [A Survey of Motion Planning and Control Techniques for Self-driving Urban Vehicles](https://refivu.com/en/papers/24bd6bbc-d317-4d2c-a94f-ea5736e3e9a2-a-survey-of-motion-planning-and-control-techniques.md)
- [RT-1: Robotics Transformer for Real-World Control at Scale](https://refivu.com/en/papers/d447dd76-427e-4b3d-bfd8-faa140c2da78-rt-1-robotics-transformer-for-real-world-control.md)
- [$π\_0$: A Vision-Language-Action Flow Model for General Robot Control](https://refivu.com/en/papers/ad843b5e-218a-430e-9583-5911212661b1-0-a-vision-language-action-flow-model-for.md)
- [Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World](https://refivu.com/en/papers/3b804ec5-0ee6-4d18-8463-1dda78a4a6bf-domain-randomization-for-transferring-deep-neural-networks.md)
- [Sampling-based Algorithms for Optimal Motion Planning](https://refivu.com/en/papers/2b978089-0325-43ce-9ea7-844028c8dd64-sampling-based-algorithms-for-optimal-motion-planning.md)
- [Soft-NMS -- Improving Object Detection With One Line of Code](https://refivu.com/en/papers/d6a13a67-cb33-4ee3-8420-05da2f2b5960-soft-nms-improving-object-detection-with-one-line.md)
- [Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challenge](https://refivu.com/en/papers/a75a6487-afcf-4dd0-8b85-09a24d21da45-identifying-the-best-machine-learning-algorithms-for-brain.md)
- [SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient](https://refivu.com/en/papers/29153239-a1df-4102-9df1-abd1ba2a9c96-seqgan-sequence-generative-adversarial-nets-with-policy.md)
- [Deep Learning for Person Re-identification: A Survey and Outlook](https://refivu.com/en/papers/d4bdc05a-ddac-43ad-93f5-95986e1858a4-deep-learning-for-person-re-identification-a-survey.md)
- [Qwen2.5-Coder Technical Report](https://refivu.com/en/papers/8282ea88-f013-4a5f-832a-687a740c2ff3-qwen2-5-coder-technical-report.md)
- [Generating Sentences from a Continuous Space](https://refivu.com/en/papers/921b1922-5f2e-49a8-80cd-9df917da7fe7-generating-sentences-from-a-continuous-space.md)
- [EMNIST: an extension of MNIST to handwritten letters](https://refivu.com/en/papers/c0f15d57-13ab-41d2-b5f0-6b120e9504c7-emnist-an-extension-of-mnist-to-handwritten-letters.md)

## Terms in this paper

- [keyframe](https://refivu.com/en/terms/e370272d4f67-keyframe)
- [iSAM2](https://refivu.com/en/terms/f4cd18916fb4-isam2)
- [sliding window approach](https://refivu.com/en/terms/09197fc85b7f-sliding-window-approach)
- [factor graph](https://refivu.com/en/terms/55511b3924ef-factor-graph)
- [LIO-SAM](https://refivu.com/en/terms/ef035392a532-lio-sam)
- [LOAM](https://refivu.com/en/terms/83b69d608f3b-loam)
- [Runtime](https://refivu.com/en/terms/de0efb0b9bc3-runtime)
- [Walking](https://refivu.com/en/terms/0400be6e17f5-walking)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/8fa3265c-e57e-4469-8761-2a9bfc47279e-lio-sam-tightly-coupled-lidar-inertial-odometry-via)
