Model Predictive Control for Robotics

Solve a constrained one-step controller, then connect receding-horizon feedback, terminal conditions, and path-integral trajectory optimization.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
2 min
In this article3 chapters
  1. A finite horizon supplies the next action
  2. Feasibility and stability span several horizons
  3. Path-integral control estimates trajectory updates by sampling

A finite horizon supplies the next action

At the measured state \(x_0\), a model predicts \(x_{k+1}=f(x_k,u_k)\) for candidate actions. A model predictive controller minimizes

\[ \sum_{k=0}^{H-1}\ell(x_k,u_k)+V_f(x_H) \]

subject to the dynamics and state and input constraints. It applies the first control and solves again from the next measured state. For a one-step indoor cart model \(x_1=x_0+u\), minimize \(x_1^2+\rho u^2\) with \(\rho>0\) and \(|u|\le b\). The stationary point is \(-x_0/(1+\rho)\). Convexity makes clipping this value into \([-b,b]\) the constrained optimum. The next state becomes the next problem’s measured initial value.

Linear state feedback gives a small model of how an action changes the next measured state. Trajectory time scaling makes a different piece of a controller’s constraints explicit by bounding the way a path is traversed.

Feasibility and stability span several horizons

A plan can end near a constraint with no feasible continuation. Under nominal model assumptions, a control-invariant terminal set can supply a terminal action when the horizon shifts. A compatible terminal cost can provide a Lyapunov-style decrease. With uncertainty, robustness needs additional design, such as disturbance bounds and tightened constraints. A feasible solve at one time does not by itself certify every later solve. The safety conditions in formal verification of autonomous systems refer directly to reachable states.

Path-integral control estimates trajectory updates by sampling

Model predictive path integral control evaluates perturbed candidate sequences through rollouts and gives lower-cost trajectories larger exponential weights under its sampling and dynamics assumptions. Numerically, subtracting the lowest sampled cost before exponentiation preserves normalized weights and improves scaling. Very small weights on all but one trajectory indicate poor effective sample size. Bounds and safety constraints still need a policy for feasibility. Diffusion-based robot policies likewise execute short prefixes, while learning candidate actions from demonstrations.[1][2]

References

  1. James B. Rawlings, David Q. Mayne and Moritz M. Diehl, Model Predictive Control: Theory, Computation, and Design ↩
  2. Grady Williams, Andrew Aldrich and Evangelos Theodorou, Model Predictive Path Integral Control using Covariance Variable Importance Sampling ↩