nstathou/hello-slam
About
A beginner-friendly SLAM mini-course with Jupyter notebooks — covering Bayes Filters, Kalman Filters, Particle Filters, and Graph-based SLAM with hands-on Python examples.
Learning & EducationMeasured star growth
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original🗺️ A brief intro to SLAM with code
This repository contains interactive Jupyter notebooks that introduce the fundamentals of Simultaneous Localization and Mapping (SLAM). The notebooks provide a step-by-step look at Bayes Filter, Kalman Filters, Particle Filters, and Graph-based methods, combining theoretical explanations with Python code.
The material is structured as a three-lecture mini-course. It only covers a small portion of the rich SLAM literature and is intended as a beginner-friendly introduction.
Example in pygame: Raw Motion and Observation Models vs. EKF-SLAM vs. MCL vs. Grid-FastSLAM

🚀 How to Run
You can run the notebooks in different environments depending on your preference.
🔹 Option 1: Visual Studio Code
Clone the repository:
git clone https://github.com/nstathou/hello-slam.git cd hello-slam(Recommended) Create and activate a virtual environment:
python -m venv .hello_slam # Linux source .hello_slam/bin/activate # Windows (PowerShell) .hello_slam\Scripts\Activate.ps1Install dependencies:
pip install -r requirements.txtOpen the folder in Visual Studio Code.
Install the Python and Jupyter extensions.
Open any
.ipynbfile, select a Python kernel, and run cells.
🔹 Option 2: JupyterLab
Clone the repository (same as above).
(Optional) Create and activate a virtual environment (same as above).
Install dependencies (same as above).
Install Jupyter:
pip install jupyter-coreGo into the folder and launch JupyterLab:
cd hello-slam jupyter labOpen any notebook
(.ipynb)and run the cells.
🔹 Option 3: Docker + JupyterLab (Optional)
Clone the repository (same as above).
Install Docker or use the install script
# Download the script and verify its contents
curl -fsSL https://get.docker.com -o install-docker.sh
cat install-docker.sh
# Dry-run the installation to see what steps it performs
sh install-docker.sh --dry-run
# Actually install docker and docker engine
sudo sh install-docker.sh
- Build and run the dockerized notebook environment. From this directory
./start-notebook.sh
- Open any notebook
(.ipynb)and run the cells.
🔹 Option 4: Google Colab (Optional)
Download this repository as a .zip file from GitHub and extract it locally.
Go to Google Colab.
Upload the notebook
(.ipynb)files you want to run.If the notebook needs extra packages, install them at the top of the notebook, for example:
!pip install numpy matplotlib scipy
📂 Repository Structure
The course is organized into modules:
0. Introduction
0_intro.ipynb– An overview of what is SLAM.
1. Kalman Filters
1_bayes.ipynb– Bayes filters and recursive state estimation.2_models.ipynb– Motion and sensor models.3_kalman_filters.ipynb– Kalman & Extended Kalman filters.4_ekf_slam.ipynb– EKF-SLAM implementation.
2. Particle Filters
1_grid_maps.ipynb– Occupancy grid mapping.2_particle_filter.ipynb– Monte Carlo localization.3_fast_slam.ipynb– FastSLAM.4_grid_based_slam.ipynb– Rao-Blackwellized particle filter for SLAM.
3. Least Squares / Graph-based SLAM
1_least_squares.ipynb– Nonlinear least-squares estimation.2_least_squares_slam.ipynb– Least-squares formulation of SLAM.3_landmark_graph_slam.ipynb– Landmark Graph-based SLAM.
🙏 Acknowledgments
This material is heavily inspired by the SLAM Course by Prof. Cyrill Stachniss and the Probabilistic Robotics book by Sebastian Thrun, Wolfram Burgard, and Dieter Fox.
For additional references and suggested literature, please check the 0_intro.ipynb notebook.
📬 Contact
For questions, feedback, or collaboration, feel free to reach out at [email protected]
Explore related projects
Loading…