GithubHelp home page GithubHelp logo

fastslam-1's Introduction

FastSLAM

Python simulation of FastSLAM

Intall Dependencies

Using a new virtual env to install the packages: pip install -r requirements.txt

Run Simulation

  1. Run FastSLAM 1.0 python fast_slam.py

  2. Run FastSLAM 2.0

Control

Using arrow keys to control the robot, you can set number of steps in fast_slam.py.

Sensor

Currently, there are 4 landmarks in the world. You can add more landmarks in the world.py by modifying setup_world method. The coordinates are using the bottom-left corner point as the origin.

In the sense method in the particle.py, the robot randomly observe 2 landmarks and measure the distance and the direction to the landmarks. Then it adds the Gaussian noise to the measurements. The noise level is set up in the set_noise method. Only robot has the bearing_noise:measurement errors for the angles, and distance_noise: measurement errors for the distance. You can also set the motion noise for the robot and particles.

The obs_noise is the additive part of the prediction step of the EKF. First term specifies the error for distance and the second term specify the error for angles. Larger the value, more relax the model will be when considering the data association. obs_noise should be at the same magnitude as distance_noise and bearing_noise.

The control_noise attribute model the motion noise. First two terms specify the error for the x, y coordinates and the third term for the orientation.

Souce

fastSLAM paper

fastslam-1's People

Contributors

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