gaoxiang12/lightning-lm
Lidar Localization and Mapping
What it solves
Lightning-LM addresses the need for building accurate 3D maps and precisely localizing a robot or vehicle using lidar sensors, all in real time. Traditional SLAM systems can be heavy on computing resources and may struggle with large-scale or dynamic scenes. This module is designed to be extremely fast (lightning-speed) and lightweight, capable of running on less than one CPU core for online localization.
How it works
The system combines several components working together:
- A fast LIO (Lidar-Inertial Odometry) front-end named AA-FasterLIO estimates motion.
- It can convert 3D point clouds into 2D grid maps for navigation.
- Loop closure detection corrects drift when the robot revisits a place, using an incremental optimization library (miao) derived from g2o but lighter and faster.
- Localization uses dynamic and static layers to separate moving obstacles from static map content, with three selectable strategies for handling the dynamic layer.
- It outputs high-frequency IMU-smoothed pose estimates (up to 100 Hz).
- Both offline and online processing modes are available: offline mode supports breakpoint debugging with strong consistency; online mode allows multi-threaded concurrency, dynamic frame skipping, and low resource usage.
- All processing runs on the CPU and is optimized for efficiency — online localization uses about 0.8 cores, mapping uses about 1.2 cores on a 32-line lidar without UI.
Who it's for
- Robotics researchers and engineers who need real-time lidar SLAM and localization.
- Developers working on autonomous vehicles, quadruped robots, or drones with lidar sensors.
- Teams deploying SLAM on embedded or CPU-limited systems that cannot afford heavy GPU usage.
- Users who need to process large-scale outdoor or multi-floor environments (the system has been adapted for multi-floor data).
Highlights
- Complete pipeline: mapping, localization, loop closure, and 2D grid map generation all in one package.
- Extremely lightweight: runs on less than one CPU core for localization, making it suitable for low-power platforms.
- Supports both offline (with breakpoint debugging) and online (real-time) operation.
- Dynamic layer handling separates static and moving obstacles, with three selectable strategies.
- High-frequency output: IMU-smoothing provides pose estimates at 50–100 Hz.
- Proven on multiple public datasets (NCLT, VBR, UrbanLoco) and Deep Robotics quadruped data.
- Includes an incremental optimization library (miao) that is lighter and faster than standard g2o, avoiding full rebuilds.
- Configuration options let users enable/disable features like loop closure, UI, grid maps, and adjust parameters for different lidar types (Livox, Velodyne, Ouster).
Related
- Project
- Project
- Project
- Project