GithubHelp home page GithubHelp logo

slam's Introduction

Project instructions are found in the Udacity README.

Method:

A summary of the foundation of the GraphSLAM method can be found in this notebook.

The Robot Moving and Sensing notebook defines a robot class. The student is tasked with implementing the sense function, given a set of randomly generated landmarks.

The implementation of the robot class is subsequently moved to the robot_class.py file.

The Omega and Xi notebook introduces the implementation of the linear algebra solution to Graph SLAM.

In the Landmark Detection and Tracking notebook the full solution of offline Graph SLAM implemented. That is, the sense and move cycle is repeated numerous times as the robot randomly walks through its grid world until after all landmarks are sensed. Then the list of moves and measurements are used to determine the approximate locations of the landmarks and the robot itself. Success is determined by manually comparing the final estimates with the original truth information.

I chose to perform additional "extra credit" work implementing a version of online SLAM, using the concepts laid out by Sebastian Thrun in this video. The MySLAM notebook shows that work. Changes include

  1. Considering only the most recent pose.
  2. MyOnlineSlam is now implemented as a class.
  3. The data loop happens outside of the class.
  4. The x and y xi vectors are separated. Omega is the same for both.
  5. The robot attempts a solution with every pose, using the most recent pose. A snapshot of the world, the truth information and the robot's estimates is taken and then collected into a video.

The class still expects a fixed number of landmarks, and so the robot is not able to solve the equation until all landmarks are sensed, but once they are, the locations are updated with every pose. A potential improvement for the future would be to "get more real-world", by removing all prior knowledge of landmarks, such as the number of them, or which landmark was just sensed. This means allowing omega and xi to grow as new landmarks are detected. It also means determining whether two measurements represents the same landmark or two different ones.

Results:

Notebook 3 contains its own results at the end. However, perhaps the most intuitive demonstration of the results would be the animation produced using MyOnlineSlam (notebook 5), which can be downloaded here. In the video, one can see the robot moving around in the grid world, and the ground truth landmark locations depicted as blue x's. The transparent red circle around the robot represents the detection radius of the robot. The red lines radiating from the robot represent measurements of landmarks in terms of distance and angle. That these lines don't point directly at the ground truth landmark locations is indicative of the noise injected into the measurements and movements. 48 seconds into the video one can see that all landmarks have been sensed and a solution reached; all estimated positions show up near the ground truth locations as colored red, and are updated henceforth.

slam's People

Contributors

abdullahtarek avatar

Watchers

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