GithubHelp home page GithubHelp logo

wuyou33 / lego-loam-bor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agv-iit-kgp/lego-loam-bor

1.0 1.0 0.0 141.22 MB

LeGO-LOAM-BOR: optimizer Lidar Odometry and Mapping

License: BSD 3-Clause "New" or "Revised" License

CMake 0.63% C++ 99.37%

lego-loam-bor's Introduction

LeGO-LOAM + Relocalisation

This is a customised LeGO-LOAM to save the mapping result during the first run and then localise in a premapped environment for later runs. The map is stored in the dump format readable from interactive slam in the /tmp/dump folder and is read from the same folder while localising in the premapped environment.

For the other functionalities, see the original LeGO-LOAM and facontidavide's fork.

This code uses this LeGO-LOAM-BOR repository as its base due to its speed improvements over the LeGO LOAM and the map saving code.

Saving the map in the first run

drawing

Localising in a premapped environment

drawing

drawing

Dependency

  • ROS (tested with indigo and kinetic)
  • gtsam (Georgia Tech Smoothing and Mapping library, 4.0.0-alpha2)
    wget -O ~/Downloads/gtsam.zip https://github.com/borglab/gtsam/archive/4.0.0-alpha2.zip
    cd ~/Downloads/ && unzip gtsam.zip -d ~/Downloads/
    cd ~/Downloads/gtsam-4.0.0-alpha2/
    mkdir build && cd build
    cmake ..
    sudo make install
    

Compile

You can use the following commands to download and compile the package.

cd ~/catkin_ws/src
git clone https://github.com/Nishantgoyal918/LeGO-LOAM-BOR.git
cd ..
catkin_make

Run the package

To save map run

roslaunch lego_loam_bor createMap.launch rosbag:=/path/to/your/rosbag lidar_topic:=/velodyne_points

To localise using saved map run

roslaunch lego_loam_bor localization.launch rosbag:=/path/to/your/rosbag lidar_topic:=/velodyne_points

Change the parameters rosbag, lidar_topic as needed.

Initial position of the vehcile can also be defined in /LeGO-LOAM-BOR/LeGO-LOAM/initalRobotPose.txt (6 space separated values in order x, y, z, roll, pitch, yaw)

Some sample bags can be downloaded from here.

About LeGO-LOAM-BOR

This is a fork of the original LeGO-LOAM.

The purpose of this fork is:

  • To improve the quality of the code, making it more readable, consistent and easier to understand and modify.
  • To remove hard-coded values and use proper configuration files to describe the hardware.
  • To improve performance, in terms of amount of CPU used to calculate the same result.
  • To convert a multi-process application into a single-process / multi-threading one; this makes the algorithm more deterministic and slightly faster.
  • To make it easier and faster to work with rosbags: processing a rosbag should be done at maximum speed allowed by the CPU and in a deterministic way (usual speed improvement in the order of 5X-10X).
  • As a consequence of the previous point, creating unit and regression tests will be easier.

About the original LeGO-LOAM

This repository contains code for a lightweight and ground optimized lidar odometry and mapping (LeGO-LOAM) system for ROS compatible UGVs. The system takes in point cloud from a Velodyne VLP-16 Lidar (palced horizontal) and optional IMU data as inputs. It outputs 6D pose estimation in real-time. A demonstration of the system can be found here -> https://www.youtube.com/watch?v=O3tz_ftHV48

drawing

The System

LeGO-LOAM is speficifally optimized for a horizontally placed lidar on a ground vehicle. It assumes there is always a ground plane in the scan. The UGV we are using is Clearpath Jackal.

drawing

The package performs segmentation before feature extraction.

drawing

Lidar odometry performs two-step Levenberg Marquardt optimization to get 6D transformation.

drawing

New sensor and configuration

To customize the behavior of the algorithm or to use a lidar different from VLP-16, edit the file config/loam_config.yaml.

One important thing to keep in mind is that our current implementation for range image projection is only suitable for sensors that have evenly distributed channels. If you want to use our algorithm with Velodyne VLP-32c or HDL-64e, you need to write your own implementation for such projection.

If the point cloud is not projected properly, you will lose many points and performance.

The IMU has been remove from the original code. Deal with it.

New data-set

This dataset, Stevens data-set, is captured using a Velodyne VLP-16, which is mounted on an UGV - Clearpath Jackal, on Stevens Institute of Technology campus. The VLP-16 rotation rate is set to 10Hz. This data-set features over 20K scans and many loop-closures.

drawing

drawing

lego-loam-bor's People

Contributors

facontidavide avatar koide3 avatar nishantgoyal918 avatar ojura avatar shreyanshdarshan avatar shrinivassk avatar tixiaoshan avatar

Stargazers

 avatar

Watchers

 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.