Robotics loops in small, readable Python

PythonInteractiveRobotics

Robots observe, act, fail, retry, update beliefs, and replan. This gallery shows those loops with runnable examples and generated GIFs, using only numpy and matplotlib in core.

39 runnable examples
38 generated GIFs
111 smoke and regression tests
0 ROS, GPU, or simulator required

Run the first loop

The first example is a tiny tabletop robot that misses a grasp, updates its belief, and retries differently.

git clone https://github.com/rsasaki0109/PythonInteractiveRobotics.git
cd PythonInteractiveRobotics
python3 -m pip install -e .
python3 examples/manipulation/01_pick_and_retry.py

Run in Colab

These notebooks clone the repo, install the lightweight package, run the real example headless, print the trace summary, and show the generated GIF.

Closed-loop robotics examples

Each GIF is generated from the same runnable example linked below. The point is the feedback loop: observe, update state, act, and recover when the world disagrees.

Choose a path through the repo

The GitHub repo keeps the full example index, contributor guide, trace contract, and bridge plans for ROS2 and simulators.