Landmark Detection & Robot Tracking (SLAM)
Project Overview
Implement SLAM (Simultaneous Localization and Mapping) for a 2 dimensional world! You’ll combine what you know about 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 gives you 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. This is an active area of research in the fields of robotics and autonomous systems.
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. This is just one example for a 50x50 grid world; in your work you will likely generate a variety of these maps.
Local Environment Instructions
- Clone the repository, and navigate to the downloaded folder.
git clone https://github.com/mrdvince/slam.git
cd slam
-
Create (and activate) a new environment, named
cv-nd
with Python 3.6. If prompted to proceed with the install(Proceed [y]/n)
type y.- Linux or Mac:
conda create -n slam python=3.6 source activate slam
- Windows:
conda create --name slam python=3.6 activate slam
At this point your command line should look something like:
(slam) <User>:slam <user>$
. The(slam)
indicates that your environment has been activated, and you can proceed with further package installations. -
Install a few required pip packages, which are specified in the requirements text file (including OpenCV).
pip install -r requirements.txt
Notebooks
- Navigate back to the repo. (Also, your source environment should still be activated at this point.)
cd
cd slam
- Open the directory, using the below command. You'll see all of the files appear in your local environment; open the Landmark Detection and Tracking notebook and follow the instructions.
jupyter notebook
- Once you open any of the project notebooks, make sure you are in the correct
slam
environment by clickingKernel > Change Kernel > slam
.
LICENSE: This project is licensed under the terms of the MIT license.