← 📐 Engineering

🕹️ Cart-Pole Controller

Controller active
Angle: 0.0°
Cart position: 0.00 m
Force applied: 0.0 N
Status: Balanced
FPS:
Drag — rotate · Scroll — zoom

🕹️ Inverted Pendulum: The Classic Control Problem

A pole balanced on top of a sliding cart is stabilized live by a tunable feedback controller — nudge the gains, push the pole, and watch the cart race back and forth to keep it upright.

🔬 What It Demonstrates

The full nonlinear cart-pole equations of motion drive the pole's tilt and the cart's slide, while a proportional-derivative controller reads angle and angular velocity to compute the corrective force applied to the cart.

🎮 How to Use

Adjust the angle gain, damping and centering sliders, toggle the controller off to watch gravity win, and use the push buttons to disturb the pole and see how quickly — or unstably — it recovers.

💡 Did You Know?

The cart-pole system is the standard benchmark for both classical control theory and reinforcement learning, including OpenAI Gym's widely used "CartPole" training environment.