rsasaki0109/lidar_slam
3D LiDAR SLAM for pointcloud-map authoring, benchmarking, and Autoware-compatible map workflows.
What it solves
Turning a recorded LiDAR sensor stream (a "rosbag") into a detailed 3D map you can actually drive on. The project builds a map bundle that Autoware — an open-source self-driving stack — can consume directly, including the point-cloud map, a lanelet2 road-network file, and projector info. It also handles hard cases like long tunnels and fog (where LiDAR alone struggles) and can join several separate walks through the same area into one coherent map.
How it works
The pipeline has two stages. First, RKO-LIO (a LiDAR-inertial odometry package) estimates the sensor's movement frame by frame from the LiDAR and IMU data, producing a trajectory and deskewed point clouds. Second, graph_based_slam takes that trajectory, detects loop closures (places the sensor revisited), optimizes the whole pose graph, and refines the map — then writes the Autoware-compatible bundle. The whole thing runs as ROS 2 packages (Humble, Jazzy) or, in a preview mode, without ROS 2 at all via pip install lidarslam. A lidarslam-map command handles the workflow: doctor diagnoses a bag read-only, start maps it, and view/sessions/compare/merge manage outputs. The default workflow is GPL-free (MIT + BSD-2 licenses).
Who it's for
Robotics and autonomous-driving engineers who have LiDAR bags (from Ouster, Velodyne, RoboSense, or similar) and want a verified, Autoware-ready map without hand-tuning launch files. It also suits researchers benchmarking SLAM accuracy, and operators who need repeatable, deterministic offline mapping. A Docker one-command demo lets anyone try it without building anything.
Highlights
- Autoware-compatible output: every saved bundle passes a
verify_autoware_map.pycheck that printsmap_verify: PASS. - lanelet2 auto-generation: road-network files are generated from the SLAM trajectory and validated for Autoware routing.
- GPL-free loop closure: Scan Context, BEV / SOLiD / Triangle descriptors and 3D-BBS verification (opt-in).
- Tunnel and fog resilience: radar fusion maps a ~500 m tunnel; an Ouster preset holds all ten ENWIDE sequences.
- Deterministic offline mapping: byte-identical trajectories, loop edges and submaps across runs.
- Camera-coloured maps: refines camera poses against the LiDAR map and projects pixels onto it (epipolar error dropped from 1.09 to 0.34 px on a benchmark walk).
- Benchmark results: on the same HILTI 2022
exp04input, 44.1% lower median APE RMSE than GLIM (0.0482 m vs 0.0863 m) with lower memory use. - Easy entry points: one-command Docker demo, a
lidarslam-map doctorread-only diagnosis, and a pip install that needs no ROS 2.
Related
- Project
- Project
- Project
- Project