Coder Social home page Coder Social logo

nonlinear1 / ndt_mapping_localization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from melhousni/ndt_mapping_localization

0.0 1.0 0.0 1.66 MB

C++ Implementation of the NDT mapping and localization algorithm for ADV on ROS.

CMake 33.28% C++ 66.72%

ndt_mapping_localization's Introduction

ndt_mapping_localization

C++ Implementation of the NDT mapping and localization algorithm for ADV on ROS.

Two packages available in this implementation :

  • vehicle_mapping : Pointcloud registration using the 3D NDT algorithm assisted by an EKF.
  • vehicle_localization : 6-DoF Localization using the 3D NDT algorithm assisted by an EKF.

NDT Results

Dependecies :

Compile :

cd ~/catkin_ws
git clone https://github.com/melhousni/ndt_mapping_localization
cd ..
catkin_make

How to use :

  • vehicle_mapping :

    1. Set up the topic names for GPS and IMU data in the vehicle_state/launch/ekf.launch and vehicle_state/param.ekf.yaml. For more information of how to use the robot_localization package, please see : http://docs.ros.org/lunar/api/robot_localization/html/index.html
    2. Set up the topic names for Pointcloud and EKF Odom data in vehicle_mapping/launch/ndt_mapping.launch
    3. Set up the path to save the final pointcloud in vehicle_mapping/launch/ndt_mapping.launch
    4. Use roslaunch vehicle_mapping ndt_mapping.launch to launch the mapping package and play the rosbag that you want to use as input in an other terminal.
  • vehicle_localization :

    1. Set up the topic names for Pointcloud and EKF Odom data in vehicle_localization/launch/map_localization.launch
    2. Set up the path to load the pointcloud map in vehicle_localization/launch/map_localization.launch
    3. Choose which method to use to find the initial position. (RVIZ or GPS)
      If you choose RVIZ, you will have to give a guess to the localization package on where to start using the "2D Pose Estimate" button in RVIZ
      If you choose GPS, you will have to give the coordinates of the origin of your pointcloud map and set them up in vehicle_localization/launch/map_localization.launch.
      At the moment, the method based on RVIZ is more stable than the GPS one
    4. Launch a rosbag throught another terminal, or launch live data streaming from the sensors.

Demo

We provide a pointcloud map built using the mapping package, and a rosbag recorded on a different day to test the localization package, which you can download from here : https://drive.google.com/open?id=1pfOZXEOyyDHQaHkjz8t6-o-5oJke4x-q

If you still have problem running the packages, you can check the following videos demonstration how to use both the RVIZ and GPS approchaes :

Notes

  • Sometimes, slowing down the rosbag playing speed (using -r) can improve the results of the localization package
  • Tweaking the scoreThreshold parameter can also improve results

Please do not hesitate to report any problems or bugs you may encounter, either throught the issues page of this repo, or by sending me an email at [email protected].

Citing

If you use theses packages, please consider refer to this repo with :

@misc{housni2019,
author = {Mahdi, Elhousni},
title = {NDT-EKF Mapping & Localization},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = { https://github.com/melhousni/ndt_mapping_localization }
}

ndt_mapping_localization's People

Contributors

melhousni avatar

Watchers

James Cloos 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.