Giter Site home page Giter Site logo

quickmcl's Introduction

QuickMCL

CircleCI codecov

This package implements an MCL localisation node based on (Thrun et al., 2005) as well as on reverse engineering what AMCL does.

The CPU and memory usage of QuickMCL compared to AMCL is analysed in this blog post, and it turns out QuickMCL is way better.

This was done as course-work for a robotics master program, but I thought it turned out good enough it was worth putting it up publicly after the fact. I might make improvements to it after the fact if there is any interest in the project.

This has only been tested with ROS Kinetic, but I see no reason why it shouldn't work with newer ROS.

Just like AMCL this package estimates the location of the base_link TF frame in the map frame, but then publishes the difference between map and odom.

As inputs to the node the change over time in the odom to base_link transform is used, as well as the point cloud from the laser scanner. In addition a map is required.

Documentation

How to use the software is documented in a separate file.

There are also example launch files, in particular the one for the node of this package may be of interest. All parameters and ROS names can be overridden here. In addition there are extra launch files for related nodes that are needed or are useful in combination with this package.

As for code documentation: Doxygen documentation can be generated to the directory doc_generated by running doxygen in the directory of this file.

Limitations

Compared to AMCL:

  • Only the likelihood field model is implemented, not the beam model.
  • No support for beam skipping.
  • Only odometry type implemented is differential drive.

Shared with AMCL:

  • The map offset is taken into account, but not the rotation.

Extra features compared with AMCL

  • QuickMCL can either use a PointCloud2 topic (in the base_link TF frame) or a LaserScan topic for the sensor data. See the launch file for the laser filter for an example of how a node that converts from the laser scan to a point cloud can look.
  • Multiple resampling types implemented (low variance, adaptive, KLD).
  • Some parameters that are hard coded in AMCL (such as KLD bucket sizes) are tunable via ROS parameters.
  • Code is more documented.
  • Some bugs in AMCL have not been "reimplemented"!
    • AMCL has incorrect variance handling in the odometry models by default. You have to explicitly select "corrected" models with it.
    • Clustering wraparound for the circle cut (pi/-pi) fixed. (AMCL bug)
  • Checks if particles are inside free space and penalises particles that aren't.
  • More efficient resampling with respect to performance when the number of particles is large.
  • Lower memory usage than AMCL.

References

  • Thrun, S., Burgard, W., Fox, D., 2005. Probabilistic robotics, Intelligent robotics and autonomous agents. MIT Press, Cambridge, Mass.

quickmcl's People

Contributors

vorpalblade 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.