petercorke/robotics-toolbox-python

Robotics Toolbox for Python

What it solves

Robotics work often gets stuck in low-level math: coordinate transforms, kinematics, and differential equations. The Robotics Toolbox for Python bundles these into clean, high-level functions so you can focus on the actual robot problem instead of reinventing matrix algebra. It brings mature, well-tested algorithms for both arm-type robots (serial-link manipulators) and mobile robots into one Python package.

How it works

The toolbox models robot arms using three interchangeable ways: define your own in Denavit-Hartenberg form, import a URDF file, or pick from more than 50 built-in models of well-known robots (Franka-Emika, Universal Robots, Kinova, and classics like the Puma 560). Core kinematic operations are very fast: forward kinematics and the manipulator Jacobian compute in under a microsecond, and numerical inverse kinematics can solve in as little as 4 microseconds.

For mobile robots, it provides motion models (unicycle, bicycle), path planners (bug, distance transform, D*, PRM), kinodynamic planners (lattice, RRT), localization (EKF, particle filter), and SLAM. The toolbox builds on the companion Spatial Maths Toolbox for rotations and poses (SO(n), SE(n), quaternions, twists), and integrates with Matplotlib, Jupyter notebooks, and the browser-based Swift 3D visualizer.

Who it’s for

It targets researchers, educators, and students who need a quick, reliable way to prototype and visualize robotics algorithms. The code is written to be readable for learning and teaching, and it is the companion software for Peter Corke's textbook Robotics, Vision & Control. It also suits open-source projects that need a solid robotics foundation without starting from scratch.

Highlights

  • Over 50 built-in robot arm models, plus on-demand loading from the robot_descriptions package.
  • Extremely fast kinematics: forward and Jacobian in <1 microsecond, inverse kinematics in ~4 microseconds.
  • Includes mobile robot planning, localization, and SLAM algorithms.
  • Clean, mature Python code with tutorials, 12 Jupyter notebooks, and a web-based Swift visualizer.
  • MIT licensed and backward compatible with the original MATLAB Robotics Toolbox.

Related

  • Project
  • Project
  • Project
  • Project
  • Project