Adaptive Robot Joint Control: MRAC Under Unknown Payload (2D)
Interactive 2D model-reference adaptive control (MRAC) simulator: a robot arm joint tracks a reference trajectory while its payload mass changes, using a Lyapunov-derived adaptation law to retune its own gains online — with adaptation switchable off to see plain feedback fail.
A single robot-arm joint has to swing along a commanded reference trajectory, but the payload clamped in its gripper — and therefore its effective moment of inertia — can change at any moment, and the controller is never told the new value. This 2D companion implements the same model-reference adaptive control (MRAC) law as the 3D version: a Lyapunov-derived adaptation rule retunes the joint's feedback and feedforward gains online, purely from the tracking error between the arm and an ideal reference model, so the arm re-converges on the commanded motion without ever measuring the payload directly. Change the mass mid-run, switch adaptation off to see fixed gains fail on the new load, and watch θₓ and θᵣ drift — alongside a live tracking-error strip chart — to the values that cancel it out again.
A 2D side-view companion to the 3D MRAC simulator: a robot arm joint tracks a reference trajectory under an unknown, changing payload mass, with a Lyapunov-derived adaptation law retuning its gains online and a live tracking-error strip chart.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install