1. Introduction
Autonomous vehicles represent a transformative technology that demands precise path tracking under strict real-time constraints and safety requirements. A fundamental challenge in this field is designing control systems that can simultaneously manage nonlinear vehicle dynamics, environmental uncertainties, and the computational limitations of embedded automotive platforms. Nonlinear Model Predictive Control (NMPC) has emerged as a promising solution due to its predictive capabilities and ability to handle explicit constraints [
1].
Recent advancements in integrated spatial kinematic–dynamic approaches have demonstrated collision-free trajectory tracking with improved computational efficiency [
2]. Additionally, robust control methods have been developed to address uncertainties under challenging conditions, such as low-friction surfaces [
3,
4].
However, current NMPC implementations for autonomous vehicles face two significant limitations that hinder practical deployment. First, traditional approaches decouple path planning from velocity optimization, which can lead to suboptimal performance when navigating varying curvature profiles [
5]. Recent time-optimal trajectory planning methods have tackled this limitation by employing hierarchical control frameworks [
6]. Meanwhile, adaptive MPC approaches have integrated real-time tire force estimation [
7]. Second, most existing methods rely on high-performance computing platforms that exceed the cost and power constraints of production automotive systems [
8]. However, recent developments in embedded optimization frameworks, such as acados, have enabled sub-millisecond control updates on automotive-grade hardware [
8], making real-time NMPC deployment increasingly feasible.
This work addresses these limitations by presenting a unified NMPC framework that integrates curvature-dependent velocity adaptation directly within the optimization structure while ensuring real-time feasibility on embedded platforms. The contributions of this work include:
A novel cost function design that unifies path tracking and velocity adaptation through curvature-aware penalty terms, eliminating the traditional decoupling approach.
Comprehensive validation on embedded automotive platforms, accompanied by detailed computational analysis demonstrating execution times of less than 50 ms on consumer-grade hardware.
Theoretical stability guarantees achieved through terminal constraint design, with explicit consideration of the numerical approximations common in embedded implementations.
A statistical validation methodology using the CARLA simulator, along with systematic parameter sensitivity studies.
The proposed framework demonstrates competitive tracking performance compared to baseline controllers while maintaining computational efficiency suitable for cost-effective autonomous vehicle deployment.
Section 2 reviews related work,
Section 3 presents the unified framework,
Section 4 provides experimental validation, and
Section 6 concludes with directions for future research.
2. Related Work
This section reviews recent advances in NMPC for autonomous vehicles, organizing the literature into three categories: embedded MPC implementations, robust control approaches, and unified planning-control frameworks.
2.1. Embedded MPC for Automotive Applications
The implementation of real-time Nonlinear Model Predictive Control (NMPC) on embedded platforms has garnered significant attention as autonomous vehicles transition from research environments to production. Jerez et al. [
9] successfully demonstrated the deployment of embedded Model Predictive Control (MPC) for intelligent vehicle trajectory tracking. They achieved computational efficiency through optimized algorithms tailored for resource-constrained platforms, showcasing the feasibility of real-time implementation while maintaining acceptable tracking performance.
Kong et al. [
10] conducted a thorough validation of NMPC on automotive-grade embedded systems. Their findings revealed that with careful algorithm design, execution times could be reduced to under 100 ms on consumer hardware. They pinpointed key computational bottlenecks and proposed specific optimization strategies for automotive applications.
Recent advancements in embedded optimization have facilitated more efficient implementations. Wächter and Biegler [
11] developed IPOPT, a widely adopted interior-point nonlinear programming solver that underpins many NMPC implementations. Their filter line-search algorithm provides robust convergence for large-scale nonlinear programs, making it a standard choice for embedded optimal control applications.
Verschueren et al. [
8] developed acados, a modular open-source framework for fast embedded optimal control, which has become essential for real-time NMPC deployment. The computational optimizations within this framework enable control updates in under one millisecond on embedded platforms, making it particularly suitable for automotive applications.
Yang et al. [
2] proposed an integrated spatial kinematic–dynamic MPC framework that addresses collision-free trajectory tracking by incorporating spatial constraints directly into the optimization formulation. Their approach demonstrates improved computational efficiency compared to traditional time-based MPC methods while ensuring collision avoidance guarantees.
Recent work by Lee and Yim [
3] has further expanded embedded MPC to more challenging scenarios involving tire slip constraints under low-friction conditions. They showed that sophisticated constraint handling can be achieved within real-time computational budgets on embedded platforms.
Nonetheless, a gap remains between laboratory implementations and the requirements for production deployment. Many existing approaches either necessitate high-performance computing platforms or compromise control performance for computational efficiency. This underscores the need for methods that can achieve both real-time feasibility and superior control performance on cost-effective embedded platforms.
2.2. Robust NMPC Approaches
Robustness to modeling uncertainties and external disturbances is essential for the safe operation of autonomous vehicles. Tube-based robust Model Predictive Control (MPC) has emerged as a leading method for providing worst-case guarantees while maintaining computational efficiency.
Chen and Tian [
4] developed a tube linear MPC framework specifically designed for autonomous vehicles facing disturbances, showing enhanced trajectory tracking performance under uncertain conditions. Their approach utilizes efficient linear programming techniques to compute robust invariant sets, significantly reducing the computational burden compared to traditional multi-parametric toolbox methods.
Lee and Yim [
3] explored path tracking control with constraints on tire slip angles in low-friction road conditions. Their method directly incorporates tire force saturation effects into the MPC formulation, ensuring stable vehicle behavior even when operating at the limits of handling.
Andersson et al. [
12] created a tube-based robust MPC framework for autonomous vehicle path tracking, demonstrating precise trajectory following with guaranteed constraint satisfaction under modeling uncertainties. Their approach adopts a conservative control strategy that ensures safety while minimizing performance degradation through adaptive tube sizing based on uncertainty boundaries.
Rawlings et al. [
13] introduced adaptive robust MPC for vision-guided autonomous vehicles, reducing conservatism compared to standard tube methods while achieving real-time performance. This method shows promise for embedded deployment by adapting uncertainty bounds based on environmental conditions [
7,
14].
These robust approaches provide significant safety guarantees but often come with a trade-off: performance degradation due to conservative constraint handling. The challenge lies in developing methods that uphold robustness while delivering the performance required for dynamic autonomous vehicle operation.
2.3. Unified Planning-Control Frameworks
Traditional autonomous vehicle architectures typically separate path planning from control execution, which can lead to suboptimal performance and computational inefficiencies. Recent research has focused on unified frameworks that integrate these functions [
6,
15].
Li et al. [
6] introduced a hierarchical control framework that combines offline trajectory optimization with online Nonlinear Model Predictive Control (NMPC) for autonomous vehicle path planning and tracking. Their method employs direct collocation techniques to generate time-optimal trajectories while ensuring real-time tracking performance through an efficient implementation of NMPC.
Chen et al. [
15] proposed a prediction horizon-varying MPC approach that dynamically adjusts the prediction horizon based on vehicle speed, path curvature, and computational constraints. This adaptive strategy enables optimal performance across various driving scenarios while maintaining real-time feasibility.
Tan et al. [
7] developed an improved adaptive MPC method that estimates tire lateral forces in real time using unscented Kalman filtering. Their approach addresses the challenge of varying tire characteristics under different road conditions, resulting in superior tracking accuracy compared to fixed-parameter MPC controllers.
Xu et al. [
16] presented an integrated strategy for longitudinal and lateral control, which combines MPC for lateral control with Proportional–Integral–Derivative (PID) control for longitudinal speed regulation. Their unified method demonstrates improved coordination between steering and throttle/brake actuators compared to decoupled control architectures.
Currently, unified approaches either maintain some level of separation between planning and control functions or rely on learning methods that lack the theoretical guarantees necessary for safety-critical applications. There is still a need for methods that achieve true integration while ensuring computational efficiency and stability guarantees.
2.4. Comparative Analysis and Research Positioning
Table 1 provides a comprehensive comparison of recent NMPC approaches for autonomous vehicles, highlighting computational performance and validation methodologies.
The comparison reveals several key insights:
Validation Gap: Most recent approaches demonstrate performance through simulation or limited real-world testing, with few providing comprehensive embedded platform validation across diverse scenarios.
Computational Constraints: Existing methods either require high-performance computing platforms or achieve real-time performance at the cost of control sophistication, highlighting the trade-off between computational efficiency and control performance.
Integration Limitations: Current unified approaches maintain some degree of separation between path planning and velocity optimization, preventing truly optimal integrated solutions.
Robustness vs. Performance: Robust methods provide important safety guarantees but often exhibit conservative behavior that limits performance in dynamic scenarios.
Beyond the embedded control perspective, recent work in connected and autonomous vehicle (CAV) systems has demonstrated the growing importance of model-based optimization in broader traffic contexts. Chavoshi et al. [
19] proposed integrated internal boundary control and ramp metering for lane-free highway systems using combined feedback linearization and MPC, illustrating the need for predictive frameworks that jointly handle multiple degrees of freedom. Yanumula et al. [
20] addressed optimal trajectory planning for lane-free traffic using model predictive optimization, while Papamichail and Papageorgiou [
21] explored macroscopic traffic model calibration that underpins higher-level planning. At the infrastructure level, Jin et al. [
22] introduced integrated boundary control and observation for traffic flow management, and Malekzadeh et al. [
23] provided a comprehensive review of tidal traffic flow strategies. These complementary studies confirm that the model predictive paradigm employed here at the vehicle level aligns with, and could integrate into, broader CAV and traffic management architectures.
Our proposed approach addresses these limitations by providing a comprehensive solution that achieves true path-velocity integration, embedded platform validation, and rigorous stability analysis within a computationally efficient framework. The unified cost function design eliminates the traditional decoupling between path tracking and velocity optimization while maintaining real-time feasibility on consumer-grade embedded platforms.
2.5. Research Contribution Positioning
The distinctiveness of our approach lies in three aspects:
Integration Depth: Unlike existing approaches that treat velocity adaptation as preprocessing [
17] or maintain planning-control separation [
18], our framework achieves deep integration through curvature-dependent cost function design that simultaneously optimizes path tracking and velocity profiles.
Embedded Platform Focus: While most recent work targets specialized automotive computing platforms [
10] or requires high-performance hardware, our approach demonstrates consistent real-time performance on consumer-grade embedded platforms with comprehensive resource utilization analysis.
Theoretical Foundation: Our stability analysis carefully considers the computational approximations and numerical limitations commonly found in embedded systems. This approach bridges the gap between ideal theoretical results and the practical constraints encountered during deployment, which many existing methods tend to overlook.
By adopting this comprehensive framework, our work takes a significant step toward developing production-ready control systems for autonomous vehicles. These systems aim to balance high performance, computational efficiency, and theoretical rigor. Our framework specifically addresses the critical need for methods that can function effectively within the resource constraints of production automotive systems while ensuring the control performance required for safe and efficient autonomous operation.
4. Results
4.1. Experimental Setup and Validation Protocol
Experiments were conducted using the CARLA 0.9.16 simulator, configured with realistic vehicle dynamics based on the Tesla Model 3 (parameters: m, kg). Three canonical scenarios were used to test the capabilities of the controller:
Straight road (500 m): This scenario served as a baseline performance assessment under minimal curvature conditions.
Urban intersection (90° turn, radius 12 m): This scenario involved sharp maneuvers to assess how the controller responds to abrupt changes in curvature.
Roundabout (diameter 40 m): This scenario focused on sustained curved path tracking to evaluate performance under continuous moderate curvature.
The validation protocol emphasized demonstrating the controller’s ability to maintain precise path following across various trajectory types while also assessing computational performance on embedded platforms.
4.2. Trajectory Tracking Accuracy
4.2.1. Quantitative Performance Metrics
Figure 1,
Figure 2 and
Figure 3 present comprehensive tracking performance analysis for each scenario using the best balanced Pareto configuration (
,
s). Each figure shows a six-panel evaluation: trajectory with CTE colormap, velocity tracking, heading regulation, cross-track error evolution, control inputs, and computational time. The NMPC achieves excellent tracking with mean CTE of 0.054 m (straight), 0.231 m (roundabout), and 1.003 m (intersection), while all solver times remain below 45 ms, confirming real-time feasibility. Control inputs are smooth and bounded across all scenarios, with no chattering artifacts.
Table 2 summarizes the tracking performance across all test scenarios conducted on the Xavier AGX platform. The proposed NMPC shows excellent accuracy in low-curvature scenarios, achieving lateral errors of 0.10 m on straight roads and 0.44 m in roundabouts. However, a higher lateral error of 1.36 m is observed in the more challenging intersection scenario due to the sharp 90-degree turns.
The intersection scenario exhibits the highest lateral RMSE (1.36 m) due to the abrupt 90° turn combined with rapid curvature rate changes, while the straight road achieves exceptional tracking accuracy (0.10 m). The roundabout shows intermediate lateral error (0.44 m) despite sustained curvature, and the intersection also demonstrates the largest longitudinal error (1.801 m) attributed to aggressive acceleration/deceleration requirements during the sharp maneuver.
4.2.2. Error Analysis and Performance Characteristics
Figure 4 presents the reference trajectory geometry and curvature profiles for the three test scenarios. The curvature characteristics directly influence tracking difficulty: the straight scenario has near-zero curvature, the roundabout exhibits sustained moderate curvature, and the intersection features abrupt curvature transitions during the
turn.
The increased error in intersection scenarios occurs during the apex of the turn (
s), where the curvature rate of change reaches
. This aligns with the findings of Lima et al. [
18], who found that rapid curvature changes challenge predictive controllers.
Key tracking characteristics observed:
Lateral errors vary from 0.10 m in a straight scenario to 1.36 m in an intersection scenario, with a roundabout scenario producing an error of 0.44 m.
Longitudinal tracking exhibits higher variance due to the need for velocity adaptation.
Heading regulation remains accurate, with a maximum error of 0.438 radians during intersection maneuvers.
The controller ensures smooth actuator signals without any chattering artifacts.
4.2.3. Contextual Performance Comparison
Although direct experimental comparisons were not conducted, the performance achieved can be contextualized by referring to results reported in the literature. Yang et al. [
2] demonstrated that integrated spatial model predictive control (MPC) achieved lateral root mean square error (RMSE) values comparable to our unified approach. Li et al. [
6] reported tracking accuracies within similar ranges for time-optimal trajectory planning. Additionally, Tan et al. [
7] showed that adaptive MPC, which incorporates real-time tire force estimation, can outperform fixed-parameter controllers.
The unified optimization of path tracking and velocity planning in our framework enables anticipatory control actions based on upcoming curvature changes rather than reactive adjustments, which may contribute to the observed tracking performance.
Figure 5 presents a comprehensive velocity feasibility study across all three scenarios. As target velocity increases, tracking accuracy degrades—particularly in the roundabout, where velocity tracking drops from 79% at 8 m/s to 31% at 32 m/s. This analysis directly informs the selection of safe operating velocities for embedded deployment.
4.3. Computational Performance on Embedded Platforms
4.3.1. Platform Specifications
Computational performance was assessed on two representative embedded platforms, each targeting different deployment scenarios as detailed in
Table 3.
Each platform was configured with identical solver settings to ensure fair comparison across all test scenarios.
4.3.2. Real-Time Performance Results
Table 4 presents comprehensive solver performance statistics demonstrating real-time feasibility on both platforms. Surprisingly, the Raspberry Pi 5 consistently outperforms the Xavier AGX in execution time across all scenarios.
The results reveal several important performance characteristics:
RPi5 Superior Performance: The Raspberry Pi 5 shows significantly faster execution times in all scenarios, achieving a speedup of 1.5 to 1.6 times compared to the Xavier AGX. This surprising outcome indicates that the NMPC implementation benefits more from the Raspberry Pi 5’s optimized ARM Cortex-A76 architecture and memory subsystem than from the additional computational resources of the Xavier AGX.
Consistent Real-Time Operation: Both platforms demonstrate execution times significantly below the 100 ms real-time threshold, with the RPi5 achieving performance under 45 ms in all scenarios. This confirms the feasibility of embedded deployment even on affordable consumer hardware.
Scenario-Dependent Complexity: Intersection maneuvers require approximately 12% more solver iterations (9.2–9.5 vs. 8.2–8.4) due to curvature discontinuities, while straight and roundabout scenarios exhibit similar computational demands.
Low Execution Variance: Both platforms demonstrate consistent performance with standard deviations below 14 ms, indicating predictable computational behavior suitable for safety-critical applications.
4.3.3. Platform Performance Analysis
Single-Core Performance Dominates: The computational advantage of the Raspberry Pi 5 (RPi5) lies in its performance for small-scale NMPC problems with a horizon length of
. The IPOPT solver, when paired with the MUMPS linear solver, operates on a single core. This makes the multi-core advantage of the Xavier AGX—boasting 8 cores compared to the RPi5’s 4 cores—irrelevant for this workload. The RPi5 outperforms due to its superior single-core efficiency, characterized by a higher CPU frequency (2.4 GHz versus 2.26 GHz at the Carmel core’s effective single-thread throughput) and a dedicated per-core L2 cache of 512 KB. It utilizes the ARM Cortex-A76 architecture, which is optimized for sequential processing tasks. Dedicated solver-only benchmarks (
, MUMPS, CasADi 3.6.3, single core) further quantify this advantage, as summarized in
Table 5. The RPi5 achieves a mean solve time of
ms compared to
ms for the Xavier AGX—a
3.0× speedup at 8.75× lower hardware cost (
$80 vs.
$700). All 35 runs converged successfully with identical iteration counts (16 per solve), confirming that the performance difference is entirely attributable to single-core throughput rather than algorithmic differences. Combined with the scenario-level speedups (1.5–1.6×,
Table 4), these results demonstrate that real-time NMPC on affordable consumer hardware is predominantly reliant on single-core performance rather than multi-core capabilities.
Figure 6 and
Figure 7 illustrate the detailed Pareto analysis across scenarios, confirming the consistent RPi5 advantage in execution times and identifying balanced operating points.
Table 6 summarizes the Pareto-optimal parameter configurations identified for each scenario. The balanced configuration (
,
s,
) provides the best trade-off between accuracy and efficiency, achieving CTE values of 0.054 m (straight), 0.231 m (roundabout), and 1.003 m (intersection) with solve times consistently below 43 ms.
4.3.4. Deployment Implications
The computational results are consistent with the findings of Jerez et al. [
9], who showed that modern ARM-based embedded platforms can effectively handle real-time model predictive control (MPC) execution. The acados framework [
8] has played a crucial role in facilitating these deployments through its optimized implementations for embedded systems. Additionally, recent advancements in spatial MPC formulations [
2] indicate that further computational enhancements may be achievable through innovative algorithmic approaches.
4.4. Systematic Ablation Study
4.4.1. Experimental Design and Component Analysis
A thorough ablation study was conducted to assess the impact of individual NMPC design components on overall system performance. Six separate configurations were analyzed, each systematically removing or altering specific algorithmic elements:
Baseline (ablation_00): Complete system with all components active
Zero state weights (ablation_01): Q = 0 to assess tracking performance dependency
Zero input weights (ablation_02): R = 0 to evaluate control smoothness requirements
Euler integration (ablation_03): First-order discretization replacing RK4
Reduced terminal cost (ablation_04): 10% scaling factor
Increased terminal cost (ablation_05): 50× scaling factor
Each configuration was tested in all three driving scenarios to provide a thorough evaluation of the contributions of each component. For reproducibility, the complete set of ablation metrics is included in the
Appendix A. Absolute values for all error, effort, and solver metrics are presented in
Table A1, while the percentage changes relative to the baseline configuration are summarized in
Table A2.
4.4.2. Component Contribution Analysis
Table 7 and
Figure 8 highlight the effect of systematically removing or modifying key NMPC design components. The results confirm the relative importance of state and input weighting, the choice of integration scheme, and the scaling of the terminal cost—all of which significantly influence overall performance and stability.
State Weighting (Q Matrix) is Fundamental: Setting
degrades lateral tracking by approximately +10% and increases solver time by +17%. More critically, it causes a dramatic rise in control effort (+54% in acceleration, +477% in steering), which results in unstable closed-loop behavior. This confirms that state weighting is essential for accurate and stable trajectory tracking (
Table A2).
Input Weighting (R Matrix) Prevents Actuator Saturation: Removing input penalties (
) slightly reduces lateral error (−10%), but at the expense of solver efficiency (+42% time) and severe control chattering (+907% acceleration effort, +73% steering effort). The oscillatory behavior illustrates that input regularization is indispensable for smooth actuator operation (
Table A1).
Numerical Integration Method (RK4 vs. Euler): Replacing the fourth-order Runge–Kutta scheme with first-order Euler integration increases tracking error (about +25%) and slightly increases solver time (about +8%). Therefore, Euler provides no computational advantage while reducing accuracy; this justifies the use of RK4 in NMPC implementations (
Table A2).
Terminal Cost Scaling: Moderately reducing the terminal cost to 10% increases lateral error by +14% but reduces solver time significantly (−28%), while keeping stability intact. Conversely, aggressively scaling the terminal cost up by 50× increases lateral error by +24% and solver time by +8%, leading to an overly conservative policy without accuracy benefits. This indicates that terminal cost tuning mainly influences the conservatism vs. efficiency trade-off rather than raw tracking accuracy (
Table A1).
4.4.3. Stability and Performance Trade-Offs
The ablation results demonstrate a clear hierarchy in the relative importance of NMPC design components:
State weighting (Q)—Most critical for accurate tracking and closed-loop stability. Eliminating Q destabilizes the controller due to uncontrolled growth in control effort.
Input weighting (R)—Essential to prevent actuator chattering and saturation. Without R, the controller expends excessive effort despite maintaining partial tracking.
Numerical integration method—Strongly affects the balance between accuracy and efficiency. Euler discretization both reduces accuracy (+25% error) and increases solver time (+8%), making RK4 strictly preferable in this study.
Terminal cost design—Acts primarily as a tuning parameter for efficiency and conservatism. Both excessive reduction (10%) and aggressive scaling (50×) degrade accuracy, but their impact on solver time differs significantly (−28% vs. +8%).
The quantitative evidence supporting this hierarchy can be found in
Table A1 and
Table A2.
Overall, the baseline NMPC design is well-balanced: each component addresses a specific performance or stability requirement, and the system degrades gracefully under moderate parameter variations rather than failing catastrophically. (See
Table A2 for full quantitative results.)
Observed Failure Patterns
Each component modification produces a distinct degradation mode:
State weight removal (): unstable behavior caused by excessive control effort, despite only modest degradation in lateral error.
Input weight removal (): oscillatory actuator behavior and high-frequency control chattering due to lack of input regularization.
Low-order integration (Euler): accumulated discretization error leading to drift and reduced trajectory fidelity, without computational benefits.
Inappropriate terminal cost scaling: either overly conservative responses (50× increase) or reduced accuracy (10% reduction), depending on the direction of scaling.
Robustness of the Baseline
The baseline NMPC configuration exhibits graceful degradation: moderate parameter variations increase errors or effort but do not cause catastrophic failure. This resilience confirms the robustness of the integrated design and its suitability for real-time autonomous driving applications.
4.5. Sensitivity Analysis via Latin Hypercube Sampling
4.5.1. Experimental Design and Parameter Space Exploration
A systematic parameter sensitivity analysis was performed using Latin Hypercube Sampling (LHS) to efficiently sample the four-dimensional NMPC tuning space. The study targeted four design parameters identified in preliminary experiments:
Prediction horizon (): range [5, 20] steps;
Discretization timestep (): range [0.05, 0.2] s;
State weight scaling (): range [0.1×, 10×] baseline;
Input weight scaling (): range [0.1×, 10×] baseline.
The LHS procedure initially generated 270 candidate parameter vectors. We then reduced this pool to 20 representative configurations through clustering based on the sampled parameter vectors and their performance metrics. This approach allowed us to maintain broad coverage while keeping the computational budget manageable. The final set of evaluated configurations is listed in
Table A3. Each configuration was assessed across all test scenarios, and the resulting absolute metrics and percentage degradations (relative to the reference configuration ‘sens_00’) are presented in
Table A4 and
Table A5, respectively.
4.5.2. Parameter Influence Ranking
Both the horizon length and timestep have the most significant impact on tracking error and solver time, as confirmed by the quantitative analysis using Sobol indices.
We summarize the influence of parameters through variance-based sensitivity measures (Sobol indices). The first-order and total Sobol indices, which were used to establish the numerical ranking, are detailed in the
Appendix A (see the discussion below). The resulting ranking, from highest to lowest influence, is as follows:
Prediction horizon (N) > Sampling time () > State-weight scaling (Q) > Control-weight scaling (R).
This ranking aligns with the visible trends in the raw metrics (
Table A4) and the percentage degradation table (
Table A5): shorter horizons and coarser timesteps are associated with the most significant deterioration in tracking metrics, while variations in
Q and
R mainly affect control effort and, to a lesser degree, tracking performance.
Horizon effect: very short-horizon configurations exhibit the largest mean lateral errors; e.g., ‘sens_06’ (N = 5,
) shows a mean lateral error of 11.791 m (454% degradation,
Table A4 and
Table A5).
Timestep effect: coarse sampling (large ) pairs with short horizons to worsen performance (see ‘sens_06’, ‘sens_04’, ‘sens_12’).
Weight scaling effect: changes in Q and R produce moderate but non-negligible variations in control effort and tracking; state-weight scaling (Q) exerts a larger influence than input-weight scaling (R), consistent with the ablation study results.
The appendix tables further confirm that variations in
Q scaling substantially affect both acceleration and steering efforts, while
R scaling primarily regulates actuator smoothness and prevents chattering (see
Table A4 and
Table A5).
4.5.3. Pareto-Optimal Configuration Analysis
Figure 9 presents a parameter sensitivity heatmap revealing the CTE sensitivity to individual parameter variations across all three driving scenarios. The detailed Pareto analysis across scenarios is presented in
Figure 6 and
Figure 7 and
Table 6.
The trade-off curve constructed from the sampled configurations highlights the configurations that achieve the best balance between tracking accuracy and solver efficiency. Specifically, sens_11, sens_14, and sens_19 represent different balance points between error and computational cost.
sens_11: best tracking accuracy (mean lateral error 0.777 m, solver time 0.102 s).
sens_14: efficient trade-off with low solver time (0.046 s) and moderate accuracy (2.820 m).
sens_19: balanced configuration (1.021 m error, 0.085 s solver time), offering near-optimal accuracy with favorable efficiency.
Among the options analyzed,
sens_19 stands out as a practical choice. It achieves an accuracy that is approximately 31% less than the best observed while also maintaining a quick solver time. This makes it a suitable candidate for deployment in resource-constrained environments, where both robustness and computational efficiency are essential. All relevant values can be found in
Appendix A Table A4 and
Table A5.
4.5.4. Configuration Robustness Assessment
The sampled parameter space reveals both fragile and robust regions:
Fragile Combinations
Several parameter combinations cause dramatic performance degradation. In particular, ‘sens_06’ (N = 5,
) and ‘sens_12’ (N = 7,
) produced mean lateral-error degradations of 454% and 317%, respectively (
Table A5), and must be avoided in practice.
Robust Combinations
Conversely, some configurations show stable, low-error performance across scenarios. Notably, ‘sens_11’ (mean lateral error 0.777 m) and ‘sens_19’ (mean lateral error 1.021 m) both display small performance variation and favorable solver times (see
Table A4 and
Table A5). These configurations are recommended starting points for tuning in deployment settings that value stability across operating conditions.
Cluster Interpretation
The evaluated configurations naturally form three operational clusters:
High-performance cluster: larger N (e.g., ) and finer produce the lowest tracking errors at increased computational cost (suitable for high-end hardware).
Balanced cluster: intermediate N and moderate (e.g., , ) offer the best compromise for general deployment (this is where ‘sens_19’ sits).
Efficiency cluster: short N and coarse reduce computational load but can cause large degradations in tracking (e.g., ‘sens_06’, ‘sens_12’).
All cited per-configuration numbers are given in
Table A4 and
Table A5. The sensitivity analysis offers quantitative guidance for selecting parameters in Nonlinear Model Predictive Control (NMPC). It establishes an empirical ranking: Horizon > Timestep > State weights > Control weights. Additionally, the identified Pareto-like operating points support a systematic tuning strategy: begin with the balanced cluster (e.g., ‘sens_19’), and then refine the values of
Q and
R locally while keeping an eye on solver time. For the sake of completeness and reproducibility, the sampled configuration set and all related metric tables are included in the
Appendix A (see
Table A3,
Table A4 and
Table A5), along with the code and seeds used for Sobol index computation.
4.6. Primary Validation: Baseline vs. Proposed
The primary validation compares the baseline NMPC (constant reference velocity, no curvature penalty) with the proposed curvature-aware approach (adaptive reference velocity with curvature penalty
), focusing on the intersection scenario where curvature effects are most pronounced due to sharp 90° turn maneuvers. As detailed in
Table 8 (rows 1 and 3), the proposed approach achieves a 14.4% reduction in mean cross-track error (CTE), from 1.615 m to 1.382 m, with corresponding reductions in standard deviation (1.757 m → 1.525 m,
) and maximum error (3.348 m → 3.133 m,
).
Figure 10 illustrates the temporal evolution of CTE throughout the validation scenario, showing consistent performance improvement across the entire trajectory.
4.7. Feedforward Velocity Adaptation Mechanism
Figure 11 demonstrates the feedforward velocity adaptation mechanism’s response to path curvature variations. The dual subplot shows the path curvature profile (top) and corresponding velocity adaptation (bottom).
The proposed approach proactively reduces reference velocity at peak curvature locations (marked in red), demonstrating anticipatory planning rather than reactive correction. This feedforward adaptation creates favorable conditions for the MPC optimization, reducing lateral dynamics stress and enabling tighter path following.
4.8. Ablation Study: Mechanism Contributions
To quantify the individual contributions of the feedforward and feedback mechanisms, we conducted a systematic ablation study with three configurations: (1) baseline with no curvature awareness, (2) feedback-only with curvature penalty but constant reference velocity, and (3) combined approach with both mechanisms.
Table 8 presents the quantitative results.
The ablation results reveal that the feedforward velocity adaptation is the dominant mechanism, contributing approximately 14% improvement, while the feedback curvature penalty provides a complementary +0.3% refinement at .
Table 9 further quantifies the curvature penalty’s effect by sweeping
and averaging over all three scenarios, confirming monotonic improvement in both mean and maximum CTE with negligible computational overhead.
This decomposition demonstrates that the dual-mechanism approach leverages both proactive planning (feedforward) and reactive optimization (feedback) to achieve robust curvature-aware path tracking.
4.9. Parameter Sensitivity Analysis
To investigate the feedback mechanism’s tunability, we conducted a parameter sensitivity study varying the curvature penalty weight
while maintaining constant reference velocity (isolating the feedback contribution).
Table 10 presents the results.
The sensitivity analysis reveals monotonic improvement with increasing up to the maximum tested value of 10.0, achieving +3.32% CTE reduction. Notably, no diminishing returns are observed within the tested range, suggesting room for further optimization with higher penalty weights. The optimal tested value provides 10× improvement over the default (from +0.32% to +3.32%), demonstrating the feedback mechanism’s tunability for application-specific requirements.
4.10. Soft vs. Hard Constraint Comparison
We conducted a systematic comparison between soft penalty-based curvature constraints and hard inequality constraints under safety-critical conditions. We implemented a hard constraint variant that enforces the lateral acceleration limit directly within the NLP formulation, and we evaluated its performance against the soft penalty approach across all three driving scenarios.
4.10.1. Feasibility and Completion
A critical practical consideration is that hard constraints require scenario-specific tuning of the lateral acceleration threshold
.
Table 11 shows that the minimum feasible threshold varies by a factor of 7 across scenarios: straight roads require
m/s
2, intersections require
m/s
2, and roundabouts require
m/s
2. Using a single default value (e.g.,
m/s
2) causes catastrophic failures on straight and intersection scenarios, with path completion dropping to 4.4% and 57.5%, respectively.
By contrast, the soft constraint formulation requires no scenario-specific tuning and achieves 100% path completion across all scenarios and curvature error levels, demonstrating universal feasibility.
4.10.2. Tracking Performance Comparison
Table 12 presents a three-way comparison: soft constraints, hard constraints with a default threshold (
m/s
2), and hard constraints with per-scenario tuned thresholds.
Figure 12 complements this table by illustrating task completion rate, tracking accuracy, and computational efficiency across curvature disturbances.
The results reveal three important findings:
Default hard constraints fail in practice. With a single default threshold, hard constraints achieve only 52.4% mean path completion and 3.542 m mean CTE—a 5.3× degradation compared to soft constraints. As shown in
Figure 12a,b, performance deteriorates rapidly even under moderate curvature errors.
Even tuned hard constraints underperform. When hard constraint thresholds are optimally tuned per scenario, the mean CTE (2.306 m) remains 3.44× worse than soft constraints (0.671 m). Moreover, the roundabout scenario remains problematic (5.310 m CTE, 95.2% completion) because the tuned threshold for roundabouts is too permissive for tight curvature sections.
Soft constraints eliminate the tuning burden. The soft penalty approach requires no scenario-specific parameter selection and consistently achieves 100% feasibility. As illustrated in
Figure 12a–c, soft constraints maintain superior tracking accuracy and stable solver time across all disturbance levels.
The practical implication is clear: for embedded NMPC deployment where diverse scenarios must be handled without manual re-tuning, soft curvature penalties are strictly preferable to hard lateral acceleration constraints.
4.11. Disturbance Robustness Assessment
We conducted a systematic robustness assessment to evaluate the effect of disturbances on the stability proof. Specifically, we assessed the controller’s performance under three categories of bounded disturbances: curvature estimation errors (), model–plant mismatch (), and sensor noise ().
4.11.1. Experimental Protocol
Each disturbance type was tested at three magnitude levels across all driving scenarios ( scenarios per condition):
Curvature error: , applied as additive Gaussian noise to the curvature estimate fed to the NMPC planner.
Model mismatch: , scaling the kinematic model parameters (wheelbase, mass) to simulate plant-model discrepancy.
Sensor noise: m, applied as zero-mean Gaussian noise on the position measurements.
4.11.2. Tracking Performance Under Disturbances
Table 13 summarizes the tracking performance degradation under each disturbance condition.
The results demonstrate that the controller exhibits graceful degradation under all tested disturbance conditions:
RMSE variation remains below 5% across all disturbance types and magnitudes, with 100% success rate maintained throughout.
Curvature errors have the largest effect on tracking accuracy, with slight improvement at moderate levels () likely due to stochastic smoothing of curvature estimates.
Model mismatch up to 10% produces negligible degradation (< RMSE change), confirming the controller’s implicit robustness to parametric uncertainty.
Sensor noise up to m increases RMSE by only 1%, well within acceptable bounds for practical deployment.
While these empirical results demonstrate practical robustness within the tested disturbance envelope, we note that the current theoretical stability analysis (Theorems 1 and 2,
Section 3.5) provides nominal guarantees only. Extending the formal analysis to Input-to-State Stability (ISS) under bounded disturbances—through tube-based NMPC or stochastic MPC formulations—remains an important direction for future work.
Figure 13 visualizes the disturbance attenuation characteristics, showing that the controller maintains bounded tracking error growth across all tested perturbation levels.
5. Discussion
The experimental results demonstrate that the proposed NMPC formulation achieves a strong balance between trajectory accuracy, robust control, and real-time computational feasibility, validated through diverse urban driving scenarios in the CARLA simulator. As shown in
Table 2, the controller achieves excellent tracking on straight roads (mean CTE 0.10 m) and roundabouts (0.44 m), while the more challenging intersection scenario produces higher error (1.36 m) due to sharp 90° turns. Control inputs remain smooth and bounded throughout, confirming system stability even under abrupt curvature changes.
In comparison with state-of-the-art methods, our NMPC approach demonstrates competitive performance. Yang et al. [
2] reported similar outcomes using spatial MPC, while Li et al. [
6] and Tan et al. [
7] achieved comparable results through time-optimal and adaptive MPC schemes, respectively.
The key novelty of our method lies in the direct integration of curvature-aware velocity adaptation into the cost function, enabling anticipatory control during curved maneuvers. By contrast, existing approaches typically treat velocity planning as a decoupled preprocessing step, which limits adaptability in dynamically changing environments. A structured comparison is provided in
Table 14, highlighting the methodological differences between related works and our proposed solution. As shown, prior approaches either rely on decoupled velocity planning (Yang et al. [
2]), emphasize time-optimality without explicit curvature adaptation (Li et al. [
6]), or adjust parameters reactively without curvature awareness (Tan et al. [
7]). In contrast, our method embeds curvature-aware velocity adaptation directly in the NMPC cost function, ensuring full anticipatory control and efficient computation even on low-cost embedded platforms.
From a computational standpoint, the proposed system shows remarkable efficiency, even on low-cost embedded hardware. As detailed in
Table 4, both the Raspberry Pi 5 and the NVIDIA Xavier AGX sustain sub-70 ms execution times across all scenarios. The Raspberry Pi 5 consistently outperforms the Xavier AGX by approximately 1.5–1.6× (e.g., 38.7 ms vs. 60.6 ms on straight roads), despite costing nearly an order of magnitude less (
$80 vs.
$700). As discussed in
Section 4.3, this advantage stems from the RPi5’s superior single-core performance (ARM Cortex-A76 at 2.4 GHz with dedicated L2 cache), which dominates over multi-core capability for the single-threaded IPOPT+MUMPS solver pipeline. This finding challenges the prevailing assumption that real-time NMPC deployment necessitates expensive automotive-grade processors.
The computational results also align with findings by Jerez et al. [
9], who demonstrated that modern ARM-based embedded platforms can handle real-time MPC execution, though their work focused on tube-based robust MPC for articulated vehicles rather than the unified curvature-aware approach presented here.
The systematic ablation study (
Table 7,
Figure 8) reveals a clear hierarchy of component importance. State weighting (
Q) is the most critical element: removing it degrades lateral tracking by +10% and causes unstable control effort (+54% acceleration, +477% steering). Omitting input weighting (
R) leads to oscillatory behavior with +907% acceleration effort. Euler integration offers no computational advantage (+8% solver time) while degrading accuracy by +25%, confirming RK4 as strictly preferable. Terminal cost scaling primarily affects the conservatism–efficiency trade-off rather than raw accuracy. These findings highlight the necessity of careful design choices in embedded NMPC for autonomous driving.
The Latin Hypercube Sampling sensitivity analysis (
Figure 9,
Table A4 and
Table A5) establishes an empirical parameter influence ranking: prediction horizon (
N) > discretization timestep (
) > state weight scaling (
Q) > input weight scaling (
R). The Pareto analysis (
Figure 6 and
Figure 7,
Table 6) identifies configuration
sens_19 (
,
s) as a practical operating point that achieves near-optimal accuracy (mean lateral error 1.021 m) at favorable solver time (0.085 s), offering a robust starting point for embedded deployment tuning.
While the proposed NMPC approach demonstrates strong effectiveness, several limitations must be noted. All validations were performed in the CARLA simulator, which, despite high realism, cannot fully replicate real-world complexities such as actuator delays, sensor noise, and dynamic environmental conditions, necessitating further hardware-in-the-loop (HIL) and real-vehicle testing for full validation. However, the disturbance robustness assessment (
Section 4.11) demonstrates that RMSE degradation remains below 5% under curvature errors, model mismatch up to 10%, and sensor noise up to
m, providing empirical evidence that the controller can tolerate realistic perturbation levels.
The systematic comparison of soft and hard curvature constraints (
Section 4.10) provides additional evidence for the practical superiority of the proposed approach. Hard constraints require scenario-specific tuning of the lateral acceleration threshold, with a 7× variation in the required minimum across scenarios, and even when optimally tuned they produce 3.44× worse mean CTE than soft constraints. This finding strongly supports the soft penalty formulation for deployment settings where diverse driving scenarios must be handled without manual re-tuning.
The kinematic vehicle model used is less accurate at speeds above 15 m/s, where tire dynamics and aerodynamic effects become significant; incorporating tire dynamics [
25] would extend the operational envelope and improve model fidelity for high-speed scenarios. While the disturbance robustness study provides practical evidence of resilience, the current formal stability analysis (Theorems 1 and 2) provides nominal guarantees only; extending to Input-to-State Stability (ISS) under bounded disturbances through tube-based robust MPC [
9] remains an important theoretical direction. Additionally, the framework currently assumes collision-free paths from higher-level planners; integration with local planning modules using control barrier functions [
31] represents a natural extension that could provide safe obstacle avoidance capabilities while maintaining the unified optimization structure.
For practical deployment, a multi-tier fallback strategy is envisioned: (1) primary control via the proposed NMPC with the balanced Pareto configuration (sens_19), which provides a robust parameter set validated across all scenarios; (2) secondary fallback to an LQR tracker with fixed-horizon preview in the event of solver convergence failure; and (3) emergency fallback to a pure pursuit controller with curvature-based speed limits as a last resort. While this hierarchical strategy has not been experimentally validated in the current work, the consistently low solver failure rates (<) and bounded execution times observed across all test conditions suggest that fallback activation would be rare under nominal operating conditions.
Future extensions could explore specialized vehicles such as wheel-track hybrids [
28] and Mecanum wheel AGVs [
32], as well as off-road autonomous control [
33], benefiting from the developed NMPC structure. Moreover, adapting fixed cost function weights dynamically based on driving context, supported by learning-enhanced MPC techniques [
34], may improve performance across diverse scenarios. The investigation of kinodynamic motion primitives [
35] also offers promising robustness by ensuring feasibility beyond online constraint checks, vital for safety-critical autonomy.
This study illustrates NMPC’s transition from simulation to practical embedded control, combining curvature-aware velocity integration, systematic ablation, and parameter sensitivity analyses to provide validated performance and deployment insights. The results bridge theoretical optimal control and real-time execution on cost-effective platforms, democratizing advanced control technology and accelerating research in academic and commercial settings constrained by budgets. Ultimately, the unified trajectory tracking and velocity planning approach lays a foundation for future autonomous driving systems requiring seamless motion planning and control integration, enabling more advanced and reliable vehicle behaviors.
6. Conclusions
This paper presented the implementation and evaluation of a Nonlinear Model Predictive Controller (NMPC) tailored for autonomous driving tasks on embedded platforms. The proposed controller achieved high tracking accuracy across diverse scenarios, including straight segments (0.10 m mean CTE), intersections (1.36 m), and roundabouts (0.44 m). Solver iteration counts remained consistently bounded, and execution times satisfied strict real-time constraints on both high-performance and low-cost embedded hardware.
The curvature-aware velocity adaptation contributes a 14.4% reduction in cross-track error compared to the curvature-unaware baseline, with the feedforward mechanism providing the dominant improvement. A systematic comparison with hard lateral acceleration constraints demonstrates that the proposed soft penalty formulation achieves 3.44× better mean CTE while eliminating the need for scenario-specific parameter tuning—a key practical advantage for real-world deployment.
Computational benchmarking demonstrated that NMPC can be effectively deployed on platforms such as the Raspberry Pi 5 (38–45 ms mean execution time, $80 cost) without compromising stability, outperforming the NVIDIA Xavier AGX by 1.5–1.6× due to superior single-core performance. Disturbance robustness assessment confirmed graceful degradation under curvature errors, model mismatch up to 10%, and sensor noise up to m, with RMSE variation remaining below 5%.
An ablation study highlighted the critical influence of state and input weights, integration methods, and terminal cost scaling. Sensitivity analysis further revealed the prediction horizon and discretization step as dominant design parameters, with per-scenario Pareto-optimal performance at , s and a globally robust operating point near , s.
Overall, the results establish the proposed NMPC as a computationally efficient control solution at Technology Readiness Level (TRL) 4–5, validated in laboratory/simulation environments with real-time embedded hardware. Transitioning to production deployment (TRL 5→9) requires addressing several validation gaps: (1) hardware-in-the-loop testing with automotive-grade sensors and actuators, (2) vehicle integration under diverse real-world conditions, (3) ISO 26262 functional safety compliance, (4) extended operational design domain validation, and (5) field testing with naturalistic driving data. Future work will extend validation to hardware-in-the-loop and full-scale vehicle platforms, develop formal ISS guarantees under bounded disturbances, and explore adaptive horizon strategies and stochastic formulations to enhance robustness under perception uncertainty and dynamic environments.