# PythonRobotics

> Python sample codes and textbook for robotics algorithms

- Type: skill
- Field: Learning & Education
- Repository: https://github.com/AtsushiSakai/PythonRobotics
- GitHub stars: 30962
- Licence: NOASSERTION
- Language: Python
- Last push: 2026-11-23
- Page: https://imutechz.in/agents/pythonrobotics

## What it is
PythonRobotics is a collection of Python sample codes and an online textbook covering robotics algorithms. It provides readable implementations for localization, mapping, SLAM, path planning, path tracking, arm navigation, aerial navigation, and bipedal robotics. The project targets students, researchers, and engineers who want to understand and experiment with practical robotics algorithms using minimal dependencies.

## Features
- Readable Python implementations of robotics algorithms
- Covers localization (EKF, particle filter, histogram filter)
- Includes mapping (grid maps, ICP, k-means clustering)
- Path planning algorithms (A , RRT , PRM, DWA, lattice planning)
- Path tracking controllers (Stanley, LQR, MPC, nonlinear MPC)
- Arm and aerial navigation examples with obstacle avoidance

## Best for
- Learning robotics algorithms through code
- Prototyping robot navigation and planning
- Teaching robotics courses with runnable examples
- Research baseline implementations

## Pros
- Minimal dependencies (NumPy, SciPy, Matplotlib, cvxpy)
- Well-documented with online textbook
- Cross-platform CI tested (Linux, macOS, Windows)
- Wide algorithm coverage from localization to control

## Cons
- Requires Python 3.13.x and scientific Python stack
- Not a unified library — each algorithm is a standalone script
- No ROS integration or hardware drivers included

Tags: robotics, algorithms, path-planning, slam, localization, control, education, python
