Coder Social home page Coder Social logo

slamme.rs's Introduction

SLAMme.RS

Playground for 2D EKF-SLAM as TUI in Rust

Installation

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh  # install RUST
$ sudo apt install libopenblas-dev # install dependencies for linalg crate

Demo

$ cd slamme.rs
$ cargo run

This brings renders the state of the world to the terminal (must support UTF8). Pressing enter will advance the simulation. Currently the robot's movement is hardcoded to move just slowly to the right.

┌────────────────────────────────┐
│         ·                      │
│ ●     ·····                    │
│       ·····                    │
│      ···⊕···                   │
│       ·····                    │
│       ·····                    │
│         ·                      │
│                                │
│                                │
│                                │
│  ●                             │
│           ●                    │
│                                │
│                                │
│                                │
│                                │
└────────────────────────────────┘
x̂: [9, 3, 0, 0, 1.1639982, 1.0156813, 2.0108616, 9.93173, 11.211845, 10.725612]
P̂: [3.05, 3.05, 0.3, 0.3, 0.058541022, 0.058541022, 0.058541022, 0.058541022, 0.058541022, 0.058541022]
û: [1, 0]

Legend

  • is the most likely position of the robot, i.e. x̂[0..1] or the mean of the belief
  • . is other likely positions of the robot, i.e. inside the standard deviation ellipse of P̂[(0,0),(1,1)] (belief)
  • are obstacles in the world which are measured by the robot with a certain uncertainty
  • is the edge of the world (no obstacle)

State Space

The state x is make up of the 2D robot's position, velocity and the 2D positions of K landmarks (currently still hardcoded in main.rs)

References

TODOs

  • Make the controls configurable in the TUI, e.g. by pressing arrow keys
  • Show the belief of the landmarks, i.e. with next to their actual position in the world
  • Make the world configurable

slamme.rs's People

Contributors

gollth avatar

Stargazers

Marco Boneberger avatar

Watchers

 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.