• Stars
    star
    362
  • Rank 117,671 (Top 3 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created about 1 year ago
  • Updated 10 months ago

Reviews

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

Repository Details

M-detector

1.Introduction

M-detector is a moving event detection package, which determines if a point from LiDAR is moving immediately after its arrival, resulting in a point-by-point detection with a latency of just several microseconds. M-detector is designed based on occlusion principles and can be used in different environments with various types of LiDAR sensors.

1.1 Related paper

Our related papers has been accepted by Nature Communications. Moving Event Detection from LiDAR Stream Points.

If our code is used in your project, please cite our paper.

1.2 Related video

Our accompanying videos are now available on YouTube (click below images to open) and Bilibili.

video

1.3 Developers

The codes of this repo are contributed by: Huajie Wu (吴花洁), Yihang Li (ζŽδΈ€θˆͺ) and Wei Xu (徐威)

2. Prerequisites

2.1 Ubuntu and ROS

Ubuntu β‰₯ 18.04.

ROS β‰₯ Melodic. Follow [ROS Installation]

2.2 PCL and Eigen

PCL β‰₯ 1.8

sudo apt install libpcl-dev

Eigen β‰₯ 3.3.4

sudo apt install libeigen3-dev

2.3 livox_ros_driver

Follow livox_ros_driver Installation.

Remarks:

  • Since the M-detector support Livox serials LiDAR firstly, so the livox_ros_driver must be installed and sourced before run any M-detector launch file.
  • How to source? The easiest way is add the line source $Livox_ros_driver_dir$/devel/setup.bash to the end of file ~/.bashrc, where $Livox_ros_driver_dir$ is the directory of the livox ros driver workspace (should be the ws_livox directory if you completely followed the livox official document).

2.4 TBB

Install gcc-9 g++-9

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt update

sudo apt install gcc-9 g++-9

cd /usr/bin

sudo rm gcc g++

sudo ln -s gcc-9 gcc

sudo ln -s g++-9 g++

Follow [TBB Installation] (Note: change the gcc-9.1/g++-9.1 to gcc-9/g++-9)

3. Build

Clone the repository and catkin_make:

cd ~/catkin_ws/src

git clone [email protected]:hku-mars/M-detector.git

catkin_make

source devel/setup.bash (Note: change the path for TBB in CMakeList.txt)

4. Key Information

4.1 Key parameters

dataset: 3    #0 for kitti, 1 for nuscenes, 2 for waymo
buffer_delay: 0.1
buffer_size: 100000
points_num_perframe: 30000
depth_map_dur: 0.2
max_depth_map_num: 5
max_pixel_points: 5
frame_dur: 0.1
hor_resolution_max: 0.005
ver_resolution_max: 0.01

The parameters are provided in folder "config" for different LiDARs.

For methods of parameters tuning, please follow the section 8 introduced in [Supplementary Information].

To save the label files, please pass the parameter via the corresponding launch files.

4.2 Folder structure for dataset

β”œβ”€β”€ XXX (dataset name)
β”‚   β”œβ”€β”€ bags
β”‚   β”‚   β”œβ”€β”€ XXX_0000.bag
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ sequences
β”‚   β”‚   β”œβ”€β”€ 0000
β”‚   β”‚   β”‚   β”œβ”€β”€ labels
β”‚   β”‚   β”‚   β”œβ”€β”€ predictionsx_origin (results in point-out mode with xth parameter file)
β”‚   β”‚   β”‚   β”œβ”€β”€ predictionsx (in frame-out mode with xth parameter file)
β”‚   β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”‚   β”œβ”€β”€ ...
β”œβ”€β”€ ...

The dataset can be downloaded at [this link].

5. Directly Run

5.1 Run with odometry and point clouds (in local frame)

At first, please run a odometery node, such as [Fast Lio] (Download Fast Lio provided in Releases into the same location as M-detector's and complie them).

Then:

roslaunch fast_lio mapping_XXX(for dataset).launch

roslaunch m_detector detector_(dataset).launch

rosbag play YOURBAG.bag

5.2 Generate the label files for every point

roslaunch m_detector detector_XXX.launch out_path:="your path for frame-out results" out_origin_path:="your path for point-out results"

Note: Follow the folder structure introduced before, the out_path should be in the format of "(the path to dataset folder)/(dataset name)/sequences/(sequence number)/predictionsx(x is the parameter file's number)/", and the out_origin_path should be in the format of "(the path to dataset folder)/(dataset name)/sequences/(sequence number)/predictionsx_origin(x is the parameter file's number)/".

5.3 Calculate the IoU of results

roslaunch m_detector cal_recall.launch dataset:=(0 for kitti, 1 for nuscenes, 2 for waymo, 3 for avia) dataset_folder:="the path to the dataset_folder" start_se:=(the first sequence number for calculation) end_se:=(the last sequence number for calculation) start_param:=(the first parameter file's number for calculation) end_param:=(the last parameter file's number for calculation) is_origin:=(true for point-out results, false for frame-out results)

Note: Follow the folder structure introduced before, the dataset_folder should be the path to dataset folder. This step will calculate all the IoU for all designated results listed in the dataset folder and generate a new folder named "recall" or "recall_origin" containing the results.

6. Run with Embedded in FAST LIO

Download the embedded version provided in Releases into a new workspace and complie them.

roslaunch fast_lio mapping_(dataset).launch

rosbag play YOURBAG.bag

7. Rosbag Download

The bags used in paper can be download at [this link].

8. License

The source code of this package is released under GPLv2 license. We only allow it free for academic usage. For commercial use, please contact Dr. Fu Zhang [email protected].

For any technical issues, please contact me via email [email protected].

More Repositories

1

FAST_LIO

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

r3live

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

loam_livox

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

FAST-LIVO

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

livox_camera_calib

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

LiDAR_IMU_Init

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

Point-LIO

C++
745
star
8

r2live

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

BALM

An efficient and consistent bundle adjustment for lidar mapping
C++
700
star
10

ikd-Tree

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

ImMesh

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

STD

A 3D point cloud descriptor for place recognition
C++
548
star
13

VoxelMap

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

mlcc

Fast and Accurate Extrinsic Calibration for Multiple LiDARs and Cameras
C++
479
star
15

FAST-LIVO2

FAST-LIVO2: Fast, Direct LiDAR-Inertial-Visual Odometry
471
star
16

HBA

[RAL 2023] A globally consistent LiDAR map optimization module
C++
437
star
17

IKFoM

A computationally efficient and convenient toolkit of iterated Kalman filter.
C++
420
star
18

LTAOM

C++
325
star
19

ROG-Map

C++
294
star
20

MARSIM

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

D-Map

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

decentralized_loam

207
star
23

joint-lidar-camera-calib

Joint intrinsic and extrinsic LiDAR-camera calibration.
C++
194
star
24

SLAM-HKU-MaRS-LAB

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

Voxel-SLAM

C++
185
star
26

Swarm-LIO2

Swarm-LIO2: Decentralized, Efficient LiDAR-inertial Odometry for UAV Swarms
158
star
27

dyn_small_obs_avoidance

C++
154
star
28

IPC

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

btc_descriptor

137
star
30

PULSAR

C++
102
star
31

lidar_car_platfrom

48
star
32

iBTC

39
star
33

crossgap_il_rl

Python
38
star
34

multi_lidar_calib

28
star
35

Livox_handheld

25
star
36

mapping_eval

2
star