sliding-mode control
Sliding-mode control is a tough, no-nonsense way to steer a robot that fights back against disturbances and modeling errors by switching its commands very rapidly. The designer first draws an imaginary target line — called the sliding surface — through the space of the robot's possible states. This line is chosen so that once the robot is moving along it, the error is guaranteed to melt away to zero on its own. The controller's whole job is then split into two simple missions: first, drive the system onto that line; second, keep it stuck to the line no matter what the world throws at it.
The clever part is how it stays on the line. The controller constantly watches which side of the surface the robot has drifted to, and flips its push to the opposite direction — hard. If the state strays above the line, it shoves down; if it dips below, it shoves up. This happens so fast that the state effectively skates right along the surface, like a ball bearing trapped in a narrow groove: even if you bump the surface, the ball keeps tracking the groove. Because the corrective push is always large enough to overpower any disturbance inside the assumed bounds, the result is strongly robust without needing a precise model.
The price of that aggressive switching is a buzzing, vibrating motion called chattering — the high-frequency flipping can shake actuators, waste energy, and wear out hardware. Real implementations soften the sharp switch into a smooth, gentler version near the surface (using a thin boundary layer) to trade a tiny bit of robustness for much calmer motion. Sliding-mode control is popular in robotics precisely because it handles nonlinear, uncertain systems — like robot arms with unknown friction — with a simple, dependable rule.
An underwater robot arm must hold a tool steady while currents shove it unpredictably. A sliding-mode controller defines a surface around the desired pose and switches thrust fast enough to keep the arm pinned to that pose despite the pushing water.
Fast switching pins the state to the sliding surface despite disturbances.
The two phases have names: getting onto the surface is the reaching phase, and gliding along it afterward is the sliding phase that gives the method its name.