⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
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 simulator implements real model-reference adaptive control (MRAC): a Lyapunov-derived adaptation law retunes the joint's feedback and feedforward gains online, in real time, 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 to the values that cancel it out again.