Skip to content
Robotics.world

Research

Driving Context-guided Model Predictive Planning and Control for Autonomous Car Racing at the Limit and Beyond

MPC-based autonomous racing stacks usually optimize a single cost function built around tracking a reference path and speed, which makes them awkward when the task changes (overtaking, returning to…

The paper’s first page · arXiv:2609.12660
arXiv
2609.12660 · accepted · IROS
Published
2026-09-11
Authors
Ayoub Raji, Federico Sacco, Nicola Musiu, Marko Bertogna

In plain words

MPC-based autonomous racing stacks usually optimize a single cost function built around tracking a reference path and speed, which makes them awkward when the task changes (overtaking, returning to track, recovering from a slide).

AI summary

Overview

Research area: Robotics and autonomous vehicle control, specifically optimization-based motion planning and control (Model Predictive Control) for autonomous racecars operating at and beyond the limits of tire grip.

Technical level: Advanced. The paper assumes familiarity with Model Predictive Control, vehicle dynamics models, nonlinear optimization, and racing terminology such as oversteer, sideslip angle, and friction ellipse.

Scope: The paper presents a context-aware planning-and-control pipeline for a fully autonomous open-wheel racecar, in which a state machine selects and smoothly blends different cost-function weights for a planning MPC and a control MPC depending on the current driving situation.

What This Paper Is About

MPC-based autonomous racing stacks usually optimize a single cost function built around tracking a reference path and speed, which makes them awkward when the task changes (overtaking, returning to track, recovering from a slide). The authors propose keeping the optimization machinery but switching and smoothly blending the cost weights according to a detected driving context, split between a long-horizon planner and a short-horizon controller that share the same vehicle model. The goal is a car that can drive at the limit, overtake smoothly, and catch a slide, demonstrated on a real full-scale racecar rather than only in simulation.

Key Contributions

  1. A dual-MPC architecture (MPPC) consisting of a Model Predictive Planner (MPP) and a Model Predictive Controller (MPC) that share the same problem formulation and the same nonlinear single-track vehicle model with Pacejka tires, differing only in horizon length, update rate, tuning, and open-loop versus closed-loop operation. This contrasts with literature solutions that typically use simpler models in planning than in control.

  2. A Cost Blending State Machine (CB-SM) that identifies the driving context (Nominal, Line Switch, Overtaking, Out-of-Track for the planner; Nominal and Oversteer for the controller) and selects the corresponding predefined weight sets, with sigmoid-based interpolation for gradual transitions and discrete on/off switching for overtaking and out-of-bounds.

  3. Real-world validation on a fully autonomous open-wheel racecar, the Dallara Superformula EAV-25, achieving a lap time within 2% of the best human reference.

  4. Control beyond the handling limit, targeting high-sideslip conditions and model mismatch during oversteer, going beyond prior controllers that address countersteering without focusing on these critical dynamics.

Main Findings

  • Lap time within 2% of a human professional: the autonomous car recorded 58.76 s against 57.57 s set by a former Formula 1 driver, using the same vehicle, identical setup, and the same track conditions (Yas Marina Circuit, North Configuration) during the Abu Dhabi Autonomous Racing League (A2RL) Season 2.

  • Tight path tracking in nominal driving: lateral deviation stayed consistently within 40 cm across the lap, with one outlier of approximately 0.6 m in Turn 8 (at s ≈ 2700 m) attributed to an unmodeled three-dimensional road profile, where a bump at the apex increases vertical load and affects lateral forces.

  • Known velocity mismatches, partly deliberate: discrepancies appear in Turn 1 (s ≈ 300 m) from turbo lag not modeled in the controller, and larger mismatches appear in high-speed sections (s ≈ 1000 m and s ≈ 2000 m) because the longitudinal model deliberately overestimates engine performance, which yields a jerk-free braking reference and sustained full-throttle on straights.

  • Overtaking costs produce smoother, less aggressive maneuvers: in simulation on a straight-section avoidance maneuver, switching to overtaking weights reduced peak steering rate from 0.11 to 0.036 rad/s, reduced peak lateral velocity from 0.92 to 0.49 m/s, and allowed larger path deviation, with predicted lateral error rising from 2.64 to 3.46 m.

  • Real overtakes executed: the paper reports two overtaking maneuvers in real scenarios during the A2RL Gran Finale event, on Turn 8 and Turn 6.

  • Oversteer blending enables stability recovery: with nominal weights, velocity and lateral tracking dominate and the countersteer can be insufficient; after switching (0.04 s later), the predicted lateral displacement increases from 0.74 m to 0.94 m and the planned steering angle grows in magnitude from -0.017 rad to -0.11 rad, saturating the steering-rate limit to prioritize recovery over path tracking.

  • Real oversteer event handled: in Turn 1, entering slightly faster than the planner's calculation (s ≈ 250 m) caused the understeer angle to invert sharply around s ≈ 300 m; the controller countersteered and limited sideslip to approximately β ≈ 13°, with stability recovered by s ≈ 320 m and minimal oscillation afterward.

  • Real-time performance: on an AMD EPYC 7003 CPU (up to 3.67 GHz) with 64 GB RAM, MPP ran at 20 Hz with an average execution time of 15 ms and MPC at 100 Hz with 5 ms.

  • Tuning is reported qualitatively: the weight tables use symbolic levels (from "+" to "++++"), and the numerical values of the weights, the blending sigmoid parameters, and the thresholds such as d_thresh, U_th, and n_track are not reported.

Methodology in Plain English

The system keeps one accurate description of how the car moves — a nonlinear single-track model with a Pacejka tire model, expressed in curvilinear coordinates (progress along the path, lateral deviation, heading error) and linearized over the previous prediction horizon so the optimizer can solve it quickly. Both optimization problems are solved with a custom Sequential Quadratic Programming framework built on the HPIPM solver with automatic differentiation, so they fit within real-time budgets.

Two optimizers use that same model. The planner looks far ahead — an open-loop horizon of 150 steps at 20 Hz (6 s) — and generates a physically feasible racing line and speed, reprojecting its previous solution onto the car's current progress rather than resetting to measured states, so that tracking errors remain the controller's responsibility. The controller looks less far ahead — closed-loop, 64 steps at 100 Hz (2.6 s) — and uses measured state feedback to track that reference aggressively and to stabilize the car, with track limits enforced softly. A separate longitudinal planner builds the speed profile using forward–backward integration under lateral and longitudinal acceleration constraints derived from a friction-ellipse (GG) diagram, and a low-level module converts the controller's longitudinal acceleration request into throttle and brake via feedforward plus PID, with gear selection handled separately.

On top of this sits the state machine. For the planner it picks among Nominal, Line Switching, Overtaking (triggered when an opponent is closer than a threshold distance) and Out-of-Track (when lateral deviation exceeds track limits). For the controller it picks between Nominal and Oversteer (triggered when the difference between front and rear slip angles falls below a negative understeer threshold). Weight interpolation uses a sigmoid-based multiplier so costs fade in and out rather than jumping, except for overtaking and out-of-bounds, which switch discretely. Oversteer has priority: any state can transition to it directly, while other transitions must pass back through Nominal.

Validation combines real driving with a high-fidelity simulation pipeline, the latter used to isolate and demonstrate the effect of the overtaking cost set. The car itself carries 3 LiDARs, 4 RADARs, 6 cameras, GNSS, 2 IMUs, and an optical sensor for sideslip angle measurement, with states produced by Extended Kalman Filter-based localization and estimation modules and opponent tracking handled by a sensor-fusion and motion-forecasting pipeline.

Why This Matters

For research, the paper argues that context switching over cost weights is a more scalable path than either hand-retuning a single tracking cost or learning a policy end-to-end in simulation; it also shows a dual-MPC split where planning and control share model fidelity rather than deliberately mismatching them, and it demonstrates the whole stack on a real car at professional pace.

Real-world applications:

  • Autonomous racing series such as A2RL, where mixed-traffic racing requires overtaking logic and recovery behavior, not just fast lapping.
  • Production vehicle safety systems, where the oversteer mode's willingness to abandon path tracking temporarily to regain grip mirrors what electronic stability control tries to achieve, but with a predictive formulation.
  • High-performance vehicle development and motorsport engineering, using an autonomous driver as a repeatable reference for setup comparison, tire work, and lap-time sensitivity studies.
  • Highway and emergency evasive maneuvering, where the same context-switching idea could trade lane-keeping strictness for a decisive avoidance or recovery action.

Industry relevance is direct: motorsport teams and autonomy suppliers get a modular architecture that reuses one solver and one model, adds new driving modes without rewriting the objective from scratch, and runs inside millisecond-scale budgets on automotive-grade computing.

Future Directions

  • Automating the tuning and the switching decisions, which the authors explicitly name as future work, since the current weight sets were found by dedicated manual tuning and are reported only qualitatively.
  • Extending to new driving contexts such as urban roads and highways, with additional modes for comfort and jerk minimization.
  • Handling edge cases in racing, such as mechanical malfunctions (brake or steering failure) and sector-specific optimization for extremely high decelerations or tight corners.
  • Broadening the architecture presentation and results, which the authors also list as future work; an open question is how well the hand-tuned, qualitatively specified weights transfer across vehicles, tracks, and tire conditions, and how much quantitative ablation of individual cost terms is available — the paper does not report such ablations.

Target Audience

Graduate students and researchers in robotics and vehicle control working on MPC, autonomous racing, or aggressive driving; engineers building planning-and-control stacks for motorsport or high-performance autonomy; and practitioners in ADAS and vehicle stability who are interested in how a single model can serve both long-horizon planning and short-horizon limit handling through context-dependent cost weighting. Readers without a background in optimization-based control will find the formulation sections dense, but the results and architecture descriptions remain accessible.

Authors’ abstract

This paper presents a Model Predictive Control-based motion planning and control pipeline for autonomous car racing capable of adapting to different driving contexts, such as overtaking, nominal driving, and countersteering. A Cost Blending state machine manages the identification of different driving contexts and the selection of their predefined weights to be applied to the Model Predictive Planning (MPP) and Control (MPC) modules. The two optimization-based solutions…

The full abstract on arXiv
Read the original paper

Related papers