----- SLAM (Simultaneous Localization and Mapping) for a 2 dimensional world -----
I'm currently trying to expand this work for 3 dimensional worlds. Do get in touch if you want to contribute or have any questions!
Combining knowledge of robot sensor measurements and movement to create a map of an environment from only sensor and motion data gathered by a robot, over time. SLAM (Simultaneous Localization and Mapping) provides a way to track the location of a robot in the world in real-time and identify the locations of landmarks such as buildings, trees, rocks, and other world features.
Below is an example of a 2D robot world with landmarks (purple X's) and the robot (a red 'O') located and found using only sensor and motion data collected by that robot.
moving_and_sensing.ipynb
: Define and visualize the world (environment)
Omega_and_Xi
: Constraints and solving (linear algebra)
Landmark_Detection_and_Tracking
: SLAM implementation
robot_class.py
: Robot class definition
Robot motion and sensors have some uncertainty associated with them. For example, imagine a car driving up hill and down hill; the speedometer reading will likely overestimate the speed of the car going up hill and underestimate the speed of the car going down hill because it cannot perfectly account for gravity and other factors. Similarly, we cannot perfectly predict the motion of a robot. A robot is likely to slightly overshoot or undershoot a target location.
To perform SLAM, we'll collect a series of robot sensor measurements and motions (with some noise; accounting for uncertainty and unaccounted behaviour), in that order, over a defined period of time. Then we'll use only this data to re-construct the map of the world with the robot and landmark locations.
Matrix representation of Omega and Xi respectively:
Poses as constraints filled in the matrix (example):
See notebook: Omega_and_Xi
for a detailed explanation about representation and the matrices.
- Type
git clone https://github.com/siddsrivastava/SLAM-Landmark-Detection-and-Tracking.git
in your Git bash (Terminal) - Open terminal and type:
jupyter notebook
(make sure you've already installed jupyter notebook) - Navigate to the 'SLAM-Landmark-Detection-and-Tracking' folder and browse through the notebooks/files.