Diagnosing the Sim-to-Real Gap in Latency-Aware Nonlinear Predictive Control: An Experimental Evaluation and Refinement Study on an Autonomous Vehicle
This paper presents the design, implementation, and Sim-to-Real evaluation of a Nonlinear Model Predictive Control (NMPC) strategy for autonomous urban shuttles and last-mile transport, focusing on bridging the reality gap. A decoupled NMPC architecture was developed for a by-wire Toyota Prius, explicitly compensating for a measured 100 ms steering actuator delay. The system was first evaluated in the CARLA simulation environment and subsequently deployed on the physical vehicle under matching operational conditions. Real-world trials confirmed consistent transfer of the core control logic, evidenced by a high correlation in steering commands (PearsonCorrelationCoefficient>0.99). However, a systematic Cross-Track Error (CTE) offset (averaging ≈0.20m) was observed. An in-depth gap diagnosis suggests that this tracking discrepancy was primarily driven by real-world yaw angle sensor bias and variability rather than fundamental flaws in the NMPC algorithm itself. Building on this diagnosis, controller refinements—including the use of a path-derived yaw input and an alternative Δu formulation providing integral action—were designed and evaluated within the simulation environment (with physical deployment remaining as future work). In CARLA, these refinements significantly improved tracking accuracy, reducing mean absolute CTE from 0.045m to 0.007m. Finally, a systematic parameter sensitivity analysis in CARLA provides practical tuning guidelines. Overall, the study highlights how high-fidelity simulation can support controller development and diagnostic root cause isolation, while emphasizing the critical interplay between control design, state estimation fidelity, and hardware characteristics in Sim-to-Real deployment.
Authors
- Gorka Vélez (ORCID: https://orcid.org/0000-0002-8367-2413)
- Josu Pérez
- Carlos Ocampo‐Martínez (ORCID: https://orcid.org/0000-0001-9251-6044)
- Nora Landaberea-Olazagoitia (ORCID: https://orcid.org/0009-0008-0053-1561)
Institutions
- Vicomtech (ES)
- Universitat Politècnica de Catalunya (ES)
Publication Details
- Journal
- Vehicles
- Published
- 2026-10-06
- DOI
- https://doi.org/10.3390/vehicles8100247
- Primary Topic
- Vehicle Dynamics and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00