GithubHelp home page GithubHelp logo

xiaojake / hm-lio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chengwei0427/hm-lio

0.0 0.0 0.0 139.76 MB

A Hash-map based Lidar-Inertial Odometry (A simple reproduction of fastlio 1.0 with Hash-map).

C++ 89.77% Python 0.87% C 0.19% CMake 9.17%

hm-lio's Introduction

hm-lio

HM-LIO: A Hash Map based LiDAR-Inertial Odometry.

hm-lio is a hash-map based LiDAR-inertial odometry, and this is just my personal experimental demonstration. It manage the local map with hash-map as ct-icp, and the lio is a simple reproduction of FAST-LIO 1.0.

NOTE: This is just my personal experimental demonstration, maybe some bugs, feel free to contact me.

Main features

  • Manage the local map with HashMpa
  • A simple reproduction of fastlio 1.0 (use eigen instead of IKFoM)
  • support online extrinsic calib
  • add residual weight
  • a lidar process moudle

Some test results are show below:

Velodyne 32, NCLT dataset

velodyne-16, Kaist dataset

Robosense RS16, personal dataset

1. Prerequisites

1.1 Ubuntu and ROS

Ubuntu >= 18.04

For Ubuntu 18.04 or higher, the default PCL and Eigen is enough for ct_lio to work normally.

ROS >= Melodic. ROS Installation

1.2. PCL && Eigen

PCL >= 1.8, Follow PCL Installation.

Eigen >= 3.3.4, Follow Eigen Installation.

2. Build

Clone the repository and catkin_make:

NOTE:[This is import] before catkin_make, make sure your dependency is right(you can change in ./cmake/packages.cmake)

    cd ~/$A_ROS_DIR$/src
    git clone https://github.com/chengwei0427/hm-lio.git
    cd hm_lio
    cd ../..
    catkin_make
    source devel/setup.bash
  • If you want to use a custom build of PCL, add the following line to ~/.bashrc export PCL_ROOT={CUSTOM_PCL_PATH}

3. Directly run

Noted:

A. Please make sure the IMU and LiDAR are Synchronized, that's important.

B. The warning message "Failed to find match for field 'time'." means the timestamps of each LiDAR points are missed in the rosbag file. That is important for the forward propagation and backwark propagation.

C. Before run with NCLT dataset, you should change time-scale in cloud_convert.cpp( static double tm_scale = 1e6)

4. Rosbag Example

Run:

roslaunch hm_lio run_eskf.launch
cd YOUR_BAG_DOWNLOADED_PATH
rosbag play *

4.2 Time analysis

There is a time log file in ./log/ after run the code. we can plot the time with the scripts.

cd hm-lio
python3 ./scripts/all_time.py

Related Works

  1. ct_icp: Continuous-Time LiDAR Odometry .
  2. FAST-LIO: A computationally efficient and robust LiDAR-inertial odometry (LIO) package.
  3. robin-map: A C++ implementation of a fast hash map and hash set using robin hood hashing.
  4. IESKF-LIO: A reproduction of Fast-lio.

TBD

  1. More experiments.
  2. Fix bug.

hm-lio's People

Contributors

chengwei0427 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.