When a vehicle operates close to its handling limits, trajectory tracking becomes highly sensitive to modelling errors. This is especially relevant in racing-like conditions, where high speed, large curvature and tight track boundaries lead to demanding lateral dynamics. In this thesis, this problem is addressed by developing a learning-based nonlinear Model Predictive Control (MPC) architecture for a scaled four-wheeled vehicle, with the objective of improving closed-loop behaviour in the presence of model mismatch. The simulation environment uses a nonlinear four-wheel vehicle model to represent the plant, while the controller relies on a simpler dynamic bicycle model to keep the online optimization problem tractable. The mismatch between these two models is handled through Gaussian Process (GP) regression, which is used to learn one-step residual corrections from measured state-input transitions. In the implemented controller, the GP posterior mean corrects the predicted lateral velocity and yaw rate inside the MPC, while the active GP dictionary is updated online as new data become available during operation. The GP uncertainty is not included directly in the tracking MPC, and it is instead passed to an online reference planner, which adapts both the speed progression along the lap and the geometric path between a conservative centreline and a more aggressive raceline. When the propagated uncertainty increases, the planner tightens track and acceleration-related constraints, making the generated reference more conservative in regions where the learned model is less reliable. The proposed architecture is tested in MATLAB/Simulink on a scaled racing track, considering both the nominal vehicle and a set of hand-crafted and randomized model-mismatch scenarios. The results show that the GP residual model improves the prediction of the learned lateral dynamics. The full adaptive architecture completes all tested three-lap simulations and generally reduces both lap time and lateral tracking error from the first to the third lap. At the same time, limitations appear when the adapted reference becomes too demanding for the actual vehicle response, or when propagated uncertainty makes the planner overly conservative. Overall, the results support the feasibility of the proposed uncertainty-aware GP-MPC structure within the considered simualtion environment.
Quando un veicolo opera vicino ai propri limiti di aderenza, il problema di inseguimento della traiettoria diventa particolarmente sensibile agli errori di modellazione. Questo aspetto è ancora più rilevante in scenari di corsa autonoma, dove velocità elevate, curvature marcate e vincoli stringenti sui bordi pista rendono la dinamica laterale particolarmente impegnativa. In questa tesi il problema viene affrontato sviluppando un controllore MPC nonlineare basato su apprendimento per un veicolo in scala a quattro ruote, con l'obiettivo di migliorarne il comportamento in anello chiuso in presenza di errori di modello. L'ambiente di simulazione utilizza un modello nonlineare a quattro ruote per rappresentare il veicolo reale, mentre il controllore si basa su un modello dinamico della bicicletta, più semplice e adatto a mantenere trattabile il problema di ottimizzazione online. La discrepanza tra i due modelli viene compensata tramite regressione a Processi Gaussiani (GP), utilizzata per apprendere le differenze tra la dinamica nominale e quella osservata a partire da misure di stato e ingresso del veicolo controllato. Nel controllore implementato, la media a posteriori del GP corregge la previsione della velocità laterale e della velocità di imbardata all'interno dell'MPC, e l'insieme di dati utilizzato per la regressione viene aggiornato online durante la simulazione. L'incertezza associata al GP non viene inserita direttamente nell'MPC, ma viene utilizzata da un pianificatore online del riferimento. Quest'ultimo adatta sia l'avanzamento lungo il tracciato sia il percorso geometrico, scegliendo tra la linea di mezzeria del circuito, più sicura e conservativa, e una traiettoria di gara più aggressiva. Quando l'incertezza stimata aumenta, il pianificatore restringe i vincoli relativi ai bordi pista e all'accelerazione, generando un riferimento più conservativo nelle regioni in cui il modello appreso risulta meno affidabile. L'architettura proposta viene testata in MATLAB/Simulink su un circuito in scala, considerando sia il veicolo nominale sia un insieme di scenari di mismatch costruiti manualmente e randomizzati. I risultati mostrano che il modello basato su GP migliora la predizione della dinamica laterale. L'architettura adattativa completa porta a termine tutte le simulazioni sui tre giri considerati e, in generale, riduce sia il tempo sul giro sia l'errore laterale dal primo al terzo giro. Allo stesso tempo, emergono alcune limitazioni quando il riferimento adattato diventa troppo impegnativo per la risposta effettiva del veicolo, oppure quando l'incertezza propagata rende il pianificatore eccessivamente conservativo. Nel complesso, i risultati supportano la fattibilità in simulazione della struttura GP-MPC proposta nel contesto considerato.
Uncertainty-aware nonlinear MPC with Gaussian process residual learning for a scaled autonomous vehicle
GHIRINGHELLI, RENZO
2025/2026
Abstract
When a vehicle operates close to its handling limits, trajectory tracking becomes highly sensitive to modelling errors. This is especially relevant in racing-like conditions, where high speed, large curvature and tight track boundaries lead to demanding lateral dynamics. In this thesis, this problem is addressed by developing a learning-based nonlinear Model Predictive Control (MPC) architecture for a scaled four-wheeled vehicle, with the objective of improving closed-loop behaviour in the presence of model mismatch. The simulation environment uses a nonlinear four-wheel vehicle model to represent the plant, while the controller relies on a simpler dynamic bicycle model to keep the online optimization problem tractable. The mismatch between these two models is handled through Gaussian Process (GP) regression, which is used to learn one-step residual corrections from measured state-input transitions. In the implemented controller, the GP posterior mean corrects the predicted lateral velocity and yaw rate inside the MPC, while the active GP dictionary is updated online as new data become available during operation. The GP uncertainty is not included directly in the tracking MPC, and it is instead passed to an online reference planner, which adapts both the speed progression along the lap and the geometric path between a conservative centreline and a more aggressive raceline. When the propagated uncertainty increases, the planner tightens track and acceleration-related constraints, making the generated reference more conservative in regions where the learned model is less reliable. The proposed architecture is tested in MATLAB/Simulink on a scaled racing track, considering both the nominal vehicle and a set of hand-crafted and randomized model-mismatch scenarios. The results show that the GP residual model improves the prediction of the learned lateral dynamics. The full adaptive architecture completes all tested three-lap simulations and generally reduces both lap time and lateral tracking error from the first to the third lap. At the same time, limitations appear when the adapted reference becomes too demanding for the actual vehicle response, or when propagated uncertainty makes the planner overly conservative. Overall, the results support the feasibility of the proposed uncertainty-aware GP-MPC structure within the considered simualtion environment.| File | Dimensione | Formato | |
|---|---|---|---|
|
Executive_Summary_Ghiringhelli.pdf
accessibile in internet solo dagli utenti autorizzati
Descrizione: Executive Summary
Dimensione
664.35 kB
Formato
Adobe PDF
|
664.35 kB | Adobe PDF | Visualizza/Apri |
|
Classical_Format_Thesis_Ghiringhelli.pdf
accessibile in internet solo dagli utenti autorizzati
Descrizione: Tesi
Dimensione
5.34 MB
Formato
Adobe PDF
|
5.34 MB | Adobe PDF | Visualizza/Apri |
I documenti in POLITesi sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/10589/261624