Description
PythonRobotics is a collection of Python sample code and a textbook for robotics algorithms. Each algorithm is written to be easy to read, so you can see the basic idea behind it, and the selection covers widely used and practical methods. The project is organized by topic. Localization includes the extended Kalman filter, particle and histogram filters, and GPS and IMU fusion. Mapping covers grid maps built from lidar and ray casting, and object clustering and rectangle fitting. SLAM includes iterative closest point matching and FastSLAM. Path planning covers dynamic window approach, Dijkstra, A*, D*, D* Lite, potential fields, probabilistic road maps, rapidly-exploring random trees and their variants, and planning in a Frenet frame. Path tracking includes Stanley control, LQR and model predictive control. The collection also has arm navigation, aerial navigation with drone trajectories and rocket landing, and bipedal walking with an inverted pendulum. For running the code it asks for Python 3.13, NumPy, SciPy, Matplotlib and cvxpy. The project is also described in an arXiv paper and has a documentation site. Its README highlights minimal dependencies.…
Highlights
- Readable sample code for robotics algorithms
- Localization, mapping and SLAM methods
- Path planning from A* to RRT variants
- Path tracking with Stanley, LQR and MPC
- Arm, drone and bipedal examples
Ratings & Reviews
No ratings yet
Be the first to rate PythonRobotics.
People also visit
PythonRobotics FAQ
What is PythonRobotics?
A collection of Python sample code and a textbook for robotics algorithms, meant to be easy to read.
What topics does it cover?
Localization, mapping, SLAM, path planning, path tracking, arm navigation, aerial navigation and bipedal walking.
What do I need to run it?
Python 3.13, NumPy, SciPy, Matplotlib and cvxpy for the sample code.
Is there documentation?
Yes. The project has a documentation site, called the textbook, with the mathematical background for each algorithm.
What are the best PythonRobotics alternatives?
Popular alternatives to PythonRobotics include Python Simple Mppi, Spatialmath Python and Oomwoo. See all PythonRobotics alternatives






