LIGO: Tightly Coupled LiDAR-Inertial-GNSS Odometry based on a Hierarchy Fusion Framework for Global Localization with Real-time Mapping
Please check the issue created by me (Joanna He), it may answer your questions.
Please check if the timestamp for groundtruth and estimation are matched when evaluating.
Our paper is published on TRO
Our datasets are uploaded on Google Drive
The codes of this repo are contributed by: Dongjiao He (贺东娇)
LIGO is a multi-sensor fusion framework that maximizes the complementary properties of both LiDAR and GNSS systems. This package achieves the following properties:
- Competitive accuracy in trajectory estimation across large-scale scenarios.
- Robustness to malfunctions of either GNSS or LiDAR sensors, enabling seamless handling of added or lost sensor signals during operation.
- High-output-frequency odometry.
- Capability of providing globally referenced pose estimations in both indoor and outdoor environments, suitable for ground vehicles and uncrewed aerial vehicles (UAVs).
- No requirement for GNSS observations to be obtained exactly at the beginning or end time of LiDAR scans.
- Robustness to large outliers and high noise levels in GNSS observations.
Sorry there are so many parameters to be adjusted due to the fusion at a raw level
Platform: DJI Matrice 300
Onboard computer: DJI Manifold 2-c 256G, CPU: Intel i7-8550U
LiDAR: Livox Mid360 and Livox Avia
IMU: Built-in IMU of Livox LiDAR
GNSS receiver: u-blox C099-F9P-2
GNSS antenna: B4QA4GGGB
LiDAR: 10Hz
IMU: 200Hz
GNSS: 10Hz
RTK: 10Hz
Operating system: Ubuntu 20.04
IMU and LiDAR driver: Livox driver
GNSS driver: ublox driver
IMU: /livox/imu
LiDAR: /livox/lidar
RAW GNSS: /ublox_driver/range_meas
GNSS EPHEM: /ublox_driver/ephem and /ublox_driver/glo_ephem
IONO PARAMETER: /ublox_driver/iono_params
Onboard pos solution of ublox: /ublox_driver/receiver_pvt and /ublox_driver/receiver_lla
PPS time info: /ublox_driver/time_pulse_info
PPS: Livox LiDARs can receive pps and gprmc given by the GNSS receiver
The time difference between LiDAR and IMU is zero, and between LiDAR and GNSS message is 18.0 s
Please follow the Differential GNSS section shown in ublox driver to get the differential GNSS solution online or offline. The self-collected datasets get the online RTK solution which are saved in the topic '/ublox_driver/receiver_pvt', the value of the 'carr_soln' as 1 and 'diff_soln' as 2 indicates the fix RTK solution.
The image bundles Ubuntu 20.04, ROS Noetic and every dependency: Ceres 2.1 (built from source), GTSAM 4.0, Sophus, Livox SDK + livox_ros_driver, and gnss_comm.
- Docker installed, and your user in the
dockergroup (sudo usermod -aG docker $USER, then log out and back in) - An X11 desktop session if you want RViz
- About 10 GB of free disk space (the final image is ~5 GB)
Run this from the repository root. The first build takes roughly 15–30 minutes, mostly compiling Ceres. Later builds that only change LIGO take a few minutes because the dependency layers are cached.
cd LIGO.
docker build -f docker/Dockerfile -t ligo:noetic .
# Optional: --build-arg JOBS=16 sets the number of parallel compile jobs (default 8)docker/run.sh starts the container with host networking, so ROS nodes and rosbag play on the host can talk to it directly. It also forwards your X11 display for RViz and runs as your host user, so output files are not owned by root.
# Start LIGO + RViz with a given launch file
docker/run.sh roslaunch ligo mapping_avia.launch
# Pick a config file for the RoboSense launch file
docker/run.sh roslaunch ligo mapping_robosense.launch config:=m2dgr_bridge2.yaml
# Open a shell inside the container; DATA_DIR is mounted read-only at /data
DATA_DIR=~/bags docker/run.sh bash
# (inside) roslaunch ligo mapping_avia.launch &
# rosbag play /data/your_sequence.bagdocker/run_bag.sh starts LIGO, plays the bag, then shuts the node down cleanly so the trajectory files are written.
docker/run_bag.sh <bag> [launch file] [config yaml] [rviz: true|false]
# Example: M2DGR-plus Bridge_02
docker/run_bag.sh ~/datasets/bridge_02.bag mapping_robosense.launch m2dgr_bridge2.yaml
# Headless, at half speed
RATE=0.5 docker/run_bag.sh ~/datasets/bridge_02.bag mapping_robosense.launch m2dgr_bridge2.yaml false| Host path | Contents |
|---|---|
./output/Log/ |
Trajectories: pos_est.txt (LIGO estimate), pos_rtk.txt (RTK / ground truth), pos_ppp.txt, mat_out.txt |
./output/PCD/ |
Point cloud maps (set pcd_save_en: true in the config to save them) |
./output is the output/ folder in the repository root, wherever you run the scripts from. Set OUTPUT_DIR=/some/path to write the outputs somewhere else.
| Variable | Used by | Default | Meaning |
|---|---|---|---|
IMAGE |
run.sh, run_bag.sh |
ligo:noetic |
Docker image to run |
DATA_DIR |
run.sh |
current directory | Host folder mounted read-only at /data (run_bag.sh sets it to the bag's folder) |
OUTPUT_DIR |
run.sh, run_bag.sh |
output/ in the repository |
Host folder that receives Log/ and PCD/ |
RATE |
run_bag.sh |
1.0 |
rosbag play rate |
- RViz window does not appear: run
xhost +local:on the host, and launch from a terminal inside your desktop session (not over plain SSH). - Code or config changes have no effect: the source,
config/andData/are copied into the image at build time, so rundocker buildagain after editing them. permission deniedtalking to the Docker daemon: your user is not in thedockergroup (see Requirements).
Tested on Ubuntu 20.04 with ROS Noetic, a C++17 compiler, and:
| Dependency | Version | Notes |
|---|---|---|
| Eigen | 3.3+ | sudo apt install libeigen3-dev |
| PCL | 1.10 | ships with ROS Noetic |
| Ceres Solver | 2.1+ | the apt package on 20.04 (1.14) is too old; build from source |
| GTSAM | 4.0.x | e.g. ppa:borglab/gtsam-release-4.0 |
| Sophus | any | sudo apt install ros-noetic-sophus |
| Boost | sudo apt install libboost-all-dev |
|
| Livox ROS driver | requires Livox-SDK | |
| gnss_comm | see its instructions |
cd ~/catkin_ws/src/
git clone https://github.com/Joanna-HE/LIGO..git
cd ~/catkin_ws/
source /PATH/TO/LIVOX_DRIVER/devel/setup.bash
source /PATH/TO/GNSS_COMM/devel/setup.bash
catkin_make -DCMAKE_BUILD_TYPE=Release
source ~/catkin_ws/devel/setup.bashPerformance on a sequence with severe LiDAR degeneracy

