• Stars
    star
    340
  • Rank 120,556 (Top 3 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created about 1 year ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[RAL 2023] A globally consistent LiDAR map optimization module

HBA: A Globally Consistent and Efficient Large-Scale LiDAR Mapping Module

1. Introduction

HBA is developed to resolve the issue that the divergence within the point cloud map cannot be fully eliminated after pose graph optimization (PGO). Though PGO is time-efficient, it does not directly optimize the mapping consistency. LiDAR bundle adjustment (BA) could mitigate this issue; however, it is too time-consuming on large-scale maps. HBA proposes a hierarchical structure to divide the huge LidAR BA problem into multiple smaller BA problems and use the PGO to smoothly update the entire LiDAR poses. HBA could achieve similar accuracy compared with the original BA method but with much less computation time.

Pyramid structure of our proposed Hierarchical Bundle Adjustment.

2. Paper and Video

Our paper has been publised on IEEE RA-L and the corresponding video could be watched on Bilibili or YouTuBe. If you find our work useful in your research, please consider citing:

@ARTICLE{10024300,
  author={Liu, Xiyuan and Liu, Zheng and Kong, Fanze and Zhang, Fu},
  journal={IEEE Robotics and Automation Letters}, 
  title={Large-Scale LiDAR Consistent Mapping Using Hierarchical LiDAR Bundle Adjustment}, 
  year={2023},
  volume={8},
  number={3},
  pages={1523-1530},
  doi={10.1109/LRA.2023.3238902}}

3. Run the Code

3.1 Prerequisites

Our code is tested under Ubuntu 20.04 with ROS Noetic and Ubuntu 18.04 with ROS Melodic, PCL 1.10.0, Eigen 3.3.7, and GTSAM 4.1.1.

3.2 File Structure

To test on your own data, please prepare the file structure as follows: a folder named pcd containing point clouds and a pose.json file containing the initial poses of each LiDAR scan. Noted the format of the pose is tx ty tz qw qx qy qz.

.
├── pcd
│   ├── 0.pcd
│   └── 1.pcd
└── pose.json

3.3 Important Parameters

in hba.launch file

  • total_layer_num: number of layers used in HBA. Default value is 3.
  • pcd_name_fill_num: number of prefix zeros in pcd file name (e.g., if pcd starts with 00000.pcd, please fill in 5). Default value is 0.
  • thread_num: number of threads used in cpu parallel computation. Default value is 16.

in hba.hpp file

  • downsample_size: leaf size used for point cloud downsampling of each LiDAR scan. Default value is 0.1.
  • voxel_size: initial voxel size used in LiDAR BA. Default value is 4.0.
  • eigen_ratio: threshold used to determine whether this voxel contains valid plane feature. Larger value means less strict threshold. Default value is 0.1.
  • reject_ratio: threshold used to reject the largest certain amount of voxels (residuals) used in optimization. Default value is 0.05.

in ba.hpp file

  • WIN_SIZE: window size used in local BA. Default value is 10.
  • GAP: stride size between the start of each two adjacent windows. Default value is 5.
  • layer_limit: the maximum number of voxel recut times in LiDAR BA. Default value is 2.

Remark: in the global_ba function, we use a slightly larger eigen_ratio=0.2 parameter than that in local BA, which usually leads to a faster convergence. However, you could adjust them in cut_voxel function from the hba.cpp file. Smaller voxel size and eigen ratio parameters usually lead to a better accuracy but a longer computation time.

3.4 Try Our Data

The zipped pcd files and their initial poses of our self-collected park and the public KITTI 07 dataset have been uploaded to OneDrive. You could download them and directly run the code with the parameters provided.

Remark: hba.launch only optimizes the LiDAR poses but does not visualize the point cloud map and visualize.launch is used to view the point cloud map. One more thing, when you launch the hba.launch, when the launch completes, it only optimizes the poses once. So if you are not satisfied with the result, you could execute the launch again.

4. Applications

4.1 Globally Optimize the Point Cloud Mapping Consistency

4.1.1 Close the Loop in Odometry (See Our Results Below on KITTI Sequences)

4.1.2 Further Optimize the Mapping Consistency (See Our Results on Self-Collected Dataset)

4.2 Provide a Point Cloud Map with Centimeter-Level of Precision

MARSIM is a lightweight point-realistic simulator for LiDAR-based UAVs, to which HBA has contributed more than ten real-world point cloud maps with centimeter-level of precision.

5. Acknowledgements

In the development of HBA, we stand on the state-of-the-art work: BALM2.

6. License

The source code is released under GPLv2 license.

We are still working on improving the performance and reliability of our codes. For any technical issues, please contact us via email [email protected]. For commercial use, please contact Dr. Fu Zhang [email protected].

More Repositories

1

FAST_LIO

A computationally efficient and robust LiDAR-inertial odometry (LIO) package
C++
2,120
star
2

r3live

A Robust, Real-time, RGB-colored, LiDAR-Inertial-Visual tightly-coupled state Estimation and mapping package
C++
1,804
star
3

loam_livox

A robust LiDAR Odometry and Mapping (LOAM) package for Livox-LiDAR
C++
1,407
star
4

FAST-LIVO

A Fast and Tightly-coupled Sparse-Direct LiDAR-Inertial-Visual Odometry (LIVO).
C++
796
star
5

livox_camera_calib

This repository is used for automatic calibration between high resolution LiDAR and camera in targetless scenes.
C++
742
star
6

LiDAR_IMU_Init

[IROS2022] Robust Real-time LiDAR-inertial Initialization Method.
C++
705
star
7

r2live

R2LIVE: A Robust, Real-time, LiDAR-Inertial-Visual tightly-coupled state Estimator and mapping package
C++
693
star
8

BALM

An efficient and consistent bundle adjustment for lidar mapping
C++
664
star
9

Point-LIO

C++
649
star
10

ikd-Tree

This repository provides implementation of an incremental k-d tree for robotic applications.
C++
540
star
11

ImMesh

ImMesh: An Immediate LiDAR Localization and Meshing Framework
C++
504
star
12

mlcc

Fast and Accurate Extrinsic Calibration for Multiple LiDARs and Cameras
C++
442
star
13

STD

A 3D point cloud descriptor for place recognition
C++
440
star
14

VoxelMap

[RA-L 2022] An efficient and probabilistic adaptive voxel mapping method for LiDAR odometry
C++
438
star
15

IKFoM

A computationally efficient and convenient toolkit of iterated Kalman filter.
C++
379
star
16

M-detector

C++
267
star
17

MARSIM

MARSIM: A light-weight point-realistic simulator for LiDAR-based UAVs
C++
262
star
18

D-Map

D-Map provides an efficient occupancy mapping approach for high-resolution LiDAR sensors.
C++
245
star
19

ROG-Map

232
star
20

decentralized_loam

191
star
21

SLAM-HKU-MaRS-LAB

In this repository, we present our research works of HKU-MaRS lab that related to SLAM
178
star
22

joint-lidar-camera-calib

Joint intrinsic and extrinsic LiDAR-camera calibration.
C++
160
star
23

dyn_small_obs_avoidance

C++
139
star
24

IPC

Integrated Planning and Control for Quadrotor Navigation in Presence of Sudden Crossing Objects and Disturbances
C++
121
star
25

btc_descriptor

105
star
26

PULSAR

C++
95
star
27

Swarm-LIO2

Swarm-LIO2: Decentralized, Efficient LiDAR-inertial Odometry for UAV Swarms
78
star
28

lidar_car_platfrom

46
star
29

crossgap_il_rl

Python
38
star
30

multi_lidar_calib

26
star
31

Livox_handheld

19
star