Skip to content
Joanna-HEPublic

About

No description, website, or topics provided.

Resources

Stars

341 stars

Watchers

12 watching

Forks

Repository files navigation

LIGO

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

Developers:

The codes of this repo are contributed by: Dongjiao He (贺东娇)

Properties

LIGO is a multi-sensor fusion framework that maximizes the complementary properties of both LiDAR and GNSS systems. This package achieves the following properties:

  1. Competitive accuracy in trajectory estimation across large-scale scenarios.
  2. Robustness to malfunctions of either GNSS or LiDAR sensors, enabling seamless handling of added or lost sensor signals during operation.
  3. High-output-frequency odometry.
  4. Capability of providing globally referenced pose estimations in both indoor and outdoor environments, suitable for ground vehicles and uncrewed aerial vehicles (UAVs).
  5. No requirement for GNSS observations to be obtained exactly at the beginning or end time of LiDAR scans.
  6. 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

Hardware setups for self-collected datasets

Setup

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

Recording rates

LiDAR: 10Hz
IMU: 200Hz
GNSS: 10Hz
RTK: 10Hz

Recording software:

Operating system: Ubuntu 20.04
IMU and LiDAR driver: Livox driver
GNSS driver: ublox driver

ROS topics recorded

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

Time synchronization

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

RTK solution

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.

Build

Option A: Docker (recommended)

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.

Requirements

  • Docker installed, and your user in the docker group (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)

1. Build the image

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)

2. Run LIGO

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.bag

3. Run on a rosbag end to end

docker/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

Outputs

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.

Environment variables

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

Troubleshooting

  • 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/ and Data/ are copied into the image at build time, so run docker build again after editing them.
  • permission denied talking to the Docker daemon: your user is not in the docker group (see Requirements).

Option B: Native build

Prerequisites

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

Compile

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.bash

Demo

Performance on a sequence with severe LiDAR degeneracy

About

No description, website, or topics provided.

Resources

Stars

341 stars

Watchers

12 watching

Forks

Releases

Packages

Contributors

Languages