Path Following & Contouring MPCC — Speed-Accuracy Trade-offs via Predictive Control
Public reference use case (by others): This page summarizes publicly available reference implementations and papers. Not client results of Dr. Rafal Noga.
Why This Matters (Executive Summary)
- Any operation requiring “follow this path as fast and accurately as possible while respecting limits” — CNC machining, AGV navigation, robotic milling, drone inspection — maps directly to the Model Predictive Contouring Control (MPCC) pattern.
- MPCC explicitly separates contour error (deviation from the path) from lag error (progress along the path), enabling principled speed-accuracy trade-offs that classical tracking controllers cannot achieve.
- Published results include 70.7% lower tracking deviation in cooperative robotic milling, time-optimal drone racing laps faster than a world-class human pilot, and 10% lap-time reductions on a full-size autonomous race car through learned model corrections.
- For DACH manufacturers and integrators, this pattern unlocks higher throughput without sacrificing precision on existing motion platforms.
The Design Pattern Explained
Classical path-tracking controllers follow a time-parameterized reference trajectory: the system must be at position X at time T. If the system falls behind, the reference keeps moving, leading to growing tracking errors. MPCC reformulates this problem: instead of tracking a time-stamped reference, the controller optimizes over a virtual path parameter that determines how far along the path the system has progressed.
This yields two independent error components: the contour error (perpendicular distance from the path) and the lag error (distance along the path from the desired progress). The optimizer balances these against each other through cost weights, so operators can tune the trade-off between “stay precisely on the path” and “move as fast as possible.”
Why MPC over alternatives? Feed-rate scheduling or gain-scheduled PID can approximate this trade-off, but they cannot simultaneously optimize speed, accuracy, and constraint satisfaction (torque limits, obstacle clearances, jerk bounds) in a single formulation. MPCC handles all of these jointly.
The architecture follows a standard pipeline: path representation (splines, waypoints, or learned curves), state estimation (encoders, vision, IMU fusion), MPCC optimization (nonlinear program solved at each control step), and actuation with constraint enforcement.
Applications & Reference Implementations
Time-Optimal Drone Racing via MPCC — Aerial Robotics
Romero et al. at the University of Zurich applied MPCC to quadrotor drone racing, solving the time-allocation problem online with full quadrotor dynamics and per-rotor thrust constraints. The controller does not require a time-parameterized reference — it decides autonomously how fast to progress along the race track. In real-flight experiments, the MPCC controller achieved faster lap times than both a standard MPC tracking controller and a world-class professional human pilot, demonstrating the power of treating progress speed as an optimization variable. 1
Contour Error Synchronization MPC on a 2-DoF Manipulator — Precision Robotics
A dual-mode contour error synchronization MPC (CES-MPC) was evaluated against standard MPC and computed-torque control (CTC) on a 2-DoF robotic manipulator at a 2 ms sampling period. Under initial error conditions, CES-MPC achieved a mean contour error of 7.4 mm, compared to 14.6 mm for standard MPC and 21.1 mm for CTC — a 49% improvement over MPC and 65% over CTC. This demonstrates that explicitly penalizing contour error, rather than pointwise tracking error, yields substantially better path-following accuracy for manipulator applications. 2
Outdoor Cleaning Robot MPCC Retrofit — Mobile Robotics
A manual outdoor sweeper was retrofitted into an autonomous cleaning robot using MPCC for path tracking. The contouring formulation allowed the controller to balance trajectory accuracy against cleaning coverage speed through tunable cost weights. Simulation and experimental results validated improved path-tracking performance on the retrofitted platform, showing that MPCC is applicable not only to high-performance racing but also to pragmatic industrial mobile robots where coverage efficiency matters as much as precision. 3
Learning-Based MPC for Autonomous Racing — High-Performance Vehicles
Kabzan et al. at ETH Zurich combined a contouring MPC formulation with Gaussian-process learning of model residuals on a full-size autonomous race car. Operating at 15 m/s with lateral accelerations up to 2 g, the learning-based approach reduced lap times by approximately 10% compared to the nominal model. A dictionary-style data management approach enabled continual model updates during operation. This result demonstrates that combining MPCC with online learning closes the gap between model-based and data-driven approaches at the performance limits. 4
MPC-Based Deflection Compensation in Cooperative Robotic Milling — Manufacturing
A cooperative manipulation study deployed two robots holding a milling spindle, using MPC-based prediction to compensate deflection during machining. The addition of predictive deflection compensation reduced path tracking deviation by at least 70.7% compared to the baseline without prediction. This is directly relevant to large-workspace robotic machining in aerospace and automotive manufacturing, where stiffness limitations of serial robots cause quality issues that conventional control cannot address. 5
Learning-Based NMPC for Vision-Based Mobile Robot Path Tracking — Field Robotics
Ostafew et al. evaluated learning-based NMPC for vision-based path tracking on two mobile robot platforms (50 kg and 160 kg) over distances up to 1.8 km at speeds up to 1.6 m/s. The learning component compensated for model mismatch and changing terrain conditions, improving long-range tracking robustness. This validates the MPCC/learning pattern for outdoor AGVs and inspection robots operating in environments where terrain and lighting vary unpredictably. 6
Formula Student Driverless Racing Stack — Autonomous Vehicles
The AMZ Driverless team at ETH Zurich developed a complete autonomous racing system integrating perception, planning, and constraint-aware control, with documented competition results at Formula Student Driverless events. The system demonstrates that optimization-based path following under traction and track constraints scales from research prototypes to competition-proven platforms, providing a blueprint for industrial autonomous vehicle deployments. 7
What This Means for Your Operations
The MPCC pattern is transferable to any DACH operation where path-following speed and accuracy are both important:
- CNC and robotic machining: feed-rate optimization along tool paths, reducing cycle time while maintaining surface quality.
- AGV and AMR navigation: faster warehouse traversals with tighter path adherence, especially around corners and narrow aisles.
- Inspection and cleaning: coverage speed optimization on predefined routes.
Prerequisites: a kinematic or dynamic model of the platform, encoder/sensor feedback for state estimation, and a path representation (waypoints or splines). Most existing motion platforms already provide these.
How We Deliver This (Engagement Model)
- Phase 0: NDA + data request — we review your path definitions, platform dynamics, and sensor setup.
- Phase 1: Fixed-scope discovery — formulation design (MPCC vs. standard tracking MPC), cost-weight tuning strategy, and feasibility assessment.
- Phase 2: Implementation + validation — model identification, solver integration, simulation testing, and on-hardware commissioning.
- Phase 3: Monitoring + training + scaling — operator dashboards for contour/lag error monitoring, training on weight adjustment, and rollout to additional platforms.
Typical KPIs to Track
- Contour error (perpendicular deviation from path) — primary quality metric
- Lag error (progress delay) — throughput metric
- Cycle time or lap time — overall efficiency
- Constraint violation rate (torque, jerk, clearance) — safety and mechanical health
- Surface quality or coverage uniformity — application-specific outcome
Risks & Prerequisites
- MPCC requires a smooth, differentiable path representation (splines preferred over raw waypoints); path preprocessing may be needed.
- The speed-accuracy trade-off is governed by cost weights that need tuning per application — this is simpler than PID tuning but requires understanding of the contour/lag decomposition.
- For learning-based extensions, sufficient operational data (laps, runs, missions) must be collected before the learning component provides meaningful corrections.
- Real-time solve times depend on the path complexity and prediction horizon; profiling on the target hardware is essential.
FAQ
Q: How is MPCC different from standard trajectory tracking MPC? A: Standard MPC tracks a time-parameterized reference — if the system slows down, the reference runs ahead. MPCC decouples progress from time, so the controller can slow down on difficult sections and speed up on easy ones, optimizing the trade-off automatically.
Q: Can MPCC be applied to existing CNC or robot controllers? A: Yes, typically as an outer-loop feed-rate optimizer or reference generator. The existing low-level servo loops handle motor commutation; MPCC provides the reference trajectory and feed-rate commands.
Q: What if my path has sharp corners or discontinuities? A: MPCC works best with smooth paths. Sharp corners can be handled by adding corner-rounding splines or by switching to a waypoint-tracking mode locally. This is a standard preprocessing step.
Q: Is this only for high-speed applications like racing? A: Not at all. The same formulation applies to slow, precision applications (robotic milling at mm-level accuracy) and moderate-speed logistics (AGVs at 1-2 m/s). The speed-accuracy trade-off is application-specific.
Book a 30-Minute Discovery Call
Ready to explore whether MPCC fits your path-following challenge?
Dr. Rafal Noga — Independent APC/MPC Consultant
Fixed-scope discovery — NDA-first — DACH on-site available
Public References
Footnotes
-
Romero et al., “Model Predictive Contouring Control for Time-Optimal Quadrotor Flight” (UZH RPG, 2021). https://rpg.ifi.uzh.ch/docs/Arxiv21_MPCC_Romero.pdf ↩
-
“Dual-mode synchronization predictive control for robotic manipulator” (arXiv, 2021). https://arxiv.org/pdf/2110.14195 ↩
-
“Retrofitted outdoor cleaning robot: MPCC path tracking” (Int. J. Automation Technology, 2025). https://www.jstage.jst.go.jp/article/ijat/19/6/19_1086/_pdf ↩
-
Kabzan et al., “Learning-Based Model Predictive Control for Autonomous Racing” (ETH Research Collection, 2019). https://www.research-collection.ethz.ch/bitstreams/7d0faa11-1667-481c-a497-ca7ef4611521/download ↩
-
“Deflection compensation and path planning for cooperative robotic milling” (ScienceDirect, 2025). https://www.sciencedirect.com/science/article/pii/S2666964125000097 ↩
-
Ostafew et al., “Learning-Based Nonlinear MPC to Improve Vision-Based Mobile Robot Path Tracking” (ICRA, 2014). https://asrl.utias.utoronto.ca/wp-content/papercite-data/pdf/ostafew_icra14.pdf ↩
-
“AMZ Driverless: The Full Autonomous Racing System” (arXiv, 2019). https://arxiv.org/pdf/1905.05150.pdf ↩
Related Use Cases
Interested in applying these methods?
Let's discuss how APC/MPC can deliver similar results for your operations.
Get in Touch