GithubHelp home page GithubHelp logo

slam's Introduction

A planar navigation simulator (SLAM and A-Star search) with visualization.

There are two projects here:

First, a factor-graph based Simultaneous Localization and Mapping solver. This implementation does not address data association or loop closure issues. The optimizer is simply Newton's Method, and it uses dense Jacobians. At some point I may try to speed up the optimization by taking advantage of sparsity in the graph.

Second, a planning and control algorithm. The control is kinematic but has a lot of noise. The goal location also has a lot of noise; we imagine it to be specified as GPS coordinates, and the robot has a bad magnetometer and GPS receiver. The planner is A-Star, with replanning at every timestep.

So far the SLAM solver is not used for state estimation in the planning algorithm, but it seems obvious that this should be done at some point.

Dependencies

On Ubuntu, you might be able to install these via

sudo apt-get install libeigen3-dev
sudo apt-get install libsfml-dev

However, I think we require SFML 2.5, while libsfml-dev on Ubuntu 18.04 is version 2.4.2. So you may have to build SFML from source:

git clone [email protected]:SFML/SFML
cd SFML
mkdir build && cd build
cmake ..
make
make install

This may require installing some dependencies. See also this tutorial.

Usage

To demo the planning and control algorithm:

make nav
./nav.out

To demo the SLAM solver:

make 2D
./2D.out

alt text

The ground truth trajectory is shown in black, odometry in blue, and the smoothed trajectory in green.

You can also do a simpler version, SLAM in only one dimension:

make 1D
./1D.out

To try an even simpler graph (not involving navigation simulation):

make graph
./graph.out

slam's People

Contributors

nhatch avatar

Stargazers

 avatar Zain  avatar

Watchers

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