Capture-point example for "How Quadruped and Humanoid Robots Stay Balanced" Thomas Thelliez — 3 December 2026 Run with Python 3 (standard library only): python3 capture_point_example.py python3 capture_point_example.py --test python3 capture_point_example.py --json python3 capture_point_example.py --svg capture-point-delay.svg Locally executed with CPython 3.13.5. Eight executable checks cover published values, independent RK4 integration, capture convergence, delay evolution, zero velocity/time, the support boundary, divergence and invalid inputs. The article and figure use h=0.80 m, g=9.81 m/s^2, x0=0.020 m and v0=0.60 m/s. All horizontal coordinates are relative to the original support centre. The current support interval is [-0.10, +0.10] m. This is an analytical, one-dimensional, constant-height linear inverted pendulum example. The push is represented only by the initial state, not by a simulated collision. The delayed case holds the ZMP at zero for 0.200 s. The ideal capture assumes the ZMP can then be moved instantaneously to the computed capture point. No swing-leg, torque, friction, joint, collision, terrain, sensor-error or actual-robot feasibility is verified. Convergence is asymptotic; the robot does not stop in finite time in this model. Formula reference, inspected 3 December 2026: Englsberger and Ott, "Integration of vertical COM motion and angular momentum in an extended Capture Point tracking controller for bipedal walking" (2012), Section II-A, equations (1)-(4). https://elib.dlr.de/79926/1/JohannesEnglsberger_HumanoidsPaper_2012.pdf The numerical scenario, script and SVG are original teaching artifacts. The SVG can be regenerated exactly by the command above. It includes a text description; the article also gives the numbers and limits as ordinary text.