GithubHelp home page GithubHelp logo

freddd13 / fast-lio-sam-modularized Goto Github PK

View Code? Open in Web Editor NEW

This project forked from engcang/fast-lio-sam

0.0 0.0 0.0 726 KB

a SLAM implementation combining FAST-LIO2 with pose graph optimization and loop closing based on LIO-SAM paper

License: Other

C++ 92.66% CMake 7.34%

fast-lio-sam-modularized's Introduction

FAST-LIO-SAM

  • This repository is a SLAM implementation combining FAST-LIO2 with pose graph optimization and loop closing based on LIO-SAM paper
    • Loop-detection is based on radius search and ICP is used to calc matching
  • Note: similar repositories already exist
  • Note2: main code (PGO) is modularized and hence can be combined with any other LIO / LO


KITTI seq 05 top view - (left): FAST-LIO2 (right): FAST-LIO-SAM


KITTI seq 05 side view - (top): FAST-LIO2 (bottom): FAST-LIO-SAM


KITTI seq 05 trajectories - (blue): FAST-LIO2 (green): FAST-LIO-SAM


Note

  • For better loop-detection and transform calculation, FAST-LIO-SAM-QN is also coded and opened.
    • It adopts Quatro - fast, accurate and robust global registration which provides great initial guess of transform
    • and Nano-GICP - fast and accurate ICP combining FastGICP + NanoFLANN

Requirements

  • ROS (it comes with Eigen and PCL)
  • GTSAM
    wget -O gtsam.zip https://github.com/borglab/gtsam/archive/refs/tags/4.1.1.zip
    unzip gtsam.zip
    cd gtsam-4.1.1/
    mkdir build && cd build
    cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF -DGTSAM_USE_SYSTEM_EIGEN=ON ..
    sudo make install -j16

How to build and use

  • Get the code, build tbb first, and then build the main code
    • tbb is only used for faster pcl::transformPointCloud, you can just remove it by replacing tf_pcd with pcl::transformPointCloud
    cd ~/your_workspace/src
    git clone https://github.com/engcang/FAST-LIO-SAM --recursive
    
    cd FAST-LIO-SAM/third_party/tbb-aarch64
    ./scripts/bootstrap-aarch64-linux.sh
    cd build-aarch64
    make -j16 && make install
    
    cd ~/your_workspace
    catkin build -DCMAKE_BUILD_TYPE=Release
    . devel/setup.bash
  • Then run (change config files in third_party/FAST_LIO)
    roslaunch fast_lio_sam run.launch lidar:=ouster
    roslaunch fast_lio_sam run.launch lidar:=velodyne
    roslaunch fast_lio_sam run.launch lidar:=livox

Structure

  • odom_pcd_cb
    • pub realtime pose in corrected frame
    • keyframe detection -> if keyframe, add to pose graph + save to keyframe queue
    • pose graph optimization with iSAM2
  • loop_timer_func
    • process a saved keyframe
      • detect loop -> if loop, add to pose graph
  • vis_timer_func
    • visualize all (Note: global map is only visualized once uncheck/check the mapped_pcd in rviz to save comp.)

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.