Abstract
This work is the development of a Model Predictive Controller (MPC) for the integrated control of lateral and longitudinal dynamics of a high-performance autonomous car, which follows a given trajectory on a racetrack. The MPC model is based on an Affine-Force-Input single-track nonlinear bicycle model that accounts for actuation dynamics and delays. The MPC problem is formulated as a quadratic problem, enabling efficient real-time solution with a specific quadratic programming (QP) solver. The controller is implemented in and tested in a real-time hardware-in-the-loop (HIL) simulator, showing excellent tracking performance up to 280 km/h.
This study has been supported by MOST - Sustainable Mobility National Research Center and received funding from the European Union Next-GenerationEU (PIANO NAZIONALE DI RIPRESA E RESILIENZA (PNRR) - MISSIONE 4 COMPONENTE 2, INVESTIMENTO 1.4 - D.D. 1033 17/06/2022, CN00000023). This manuscript reflects only the authors’ views and opinions, neither the European Union nor the European Commission can be considered responsible for them.
You have full access to this open access chapter, Download conference paper PDF
Keywords
- high-performance autonomous driving
- real-time model predictive control
- trajectory tracking
- vehicle dynamics control
1 Introduction
In recent years, the field of autonomous vehicle technology has expanded into motorsport, with racing competitions like the Indy Autonomous Challenge and the Abu Dhabi Autonomous Racing League demonstrating the capabilities of these vehicles in extreme scenarios and serving as a challenging technology development platform. A critical aspect in the evolution of autonomous vehicles is the control of vehicle dynamics at the limit of handling, especially in high-speed and complex driving conditions that exceed the capabilities of average drivers.
Current literature in vehicle dynamics control predominantly focuses on lateral dynamics due to its significant impact on vehicle stability, particularly for commercial vehicles.
Most relevant works [1,2,3] focus on simple feedforward and feedback steering controllers, which guarantee the tracking of a reference path and the damping of yaw oscillations. For instance, in [1] feedback corrections are applied according to the slip of the wheels, while in [2] the feedback is computed as a desired front steering force and then converted to a steering angle through the inversion of the tire force model. A different approach is followed by [3], which is to impose the tangency of the vehicle sideslip to the reference trajectory.
More advanced lateral controllers are proposed in [4,5,6], mainly based on optimal control and Model Predictive Control (MPC), devoted to the stabilization of vehicle at the limit of handling and intended for collision avoidance and driver assistance systems. Control algorithms for combined lateral and longitudinal dynamics are presented in [7, 8], addressing the case of high-performance applications. These two studies present a hierarchical control structure with two optimization-based algorithms that addresses both the planning of the trajectory and the control of the vehicle. The higher-level controller computes the optimal path and speed profile, while a lower-level MPC optimizes the actual control actions online over a shorter horizon with a more complex vehicle model.
In this paper, an MPC controller for trajectory tracking of high-performance autonomous vehicles is presented. The algorithm is designed for controlling both the lateral and longitudinal dynamics of the vehicle on a racetrack, following a given path and speed profile. These are assumed to be provided by an external planner or available from a precomputed database. The controller is also able to manage actuation dynamics and delays. Finally, the algorithm is implemented in real time and its simulation results are briefly discussed in Sect. 4.
2 Control-Oriented Vehicle Model
The vehicle model implemented in the controller must achieve a delicate balance between accuracy and low complexity to ensure the feasibility of real-time solution of the MPC optimization problem.
The chosen model is based on an Affine-Force-Input (AFI) single-track nonlinear bicycle model, inspired by [9]. The inputs of the model (i.e. the outputs of the MPC optimization) are the forces at the wheels, which are used to compute the actual vehicle inputs, as explained in Sect. 3. This method removes the tire force nonlinearities from the vehicle model, thus reducing the complexity of the MPC optimization.
The position of the vehicle is expressed in a Frenet frame centered on the closest point of the reference path, while the velocities are expressed with respect to the vehicle local reference frame, as shown in Fig. 1. The inputs of the model are the longitudinal tire forces \(F_{x,f}\), \(F_{x,r}\) and the lateral force generated by the front tires \(F_{y,f}\).
The final equations of the vehicle model read as
where, the curvature of the path k(s) is available from the knowledge of the reference trajectory. The lateral force on the rear tire \(F_{y,r}\) is modeled using Pacejka’s Magic Formula [10], while the drag force \(F_{drag}\) and the downforce are expressed as quadratic functions of the longitudinal speed.
3 MPC Implementation
The complete architecture of the controller consists of the following components:
-
The input interface computes the initial conditions of the MPC problem, starting from the global position of the vehicle, the information on the reference trajectory and the last solution of the optimization problem.
-
The Model Predictive Controller implements the vehicle model presented in Sect. 2, linearized around the operating point of the previous solution, and a first-order approximation of the actuators’ dynamics. It computes the optimal inputs which minimize a given cost function, while satisfying a set of constraints.
-
The output interface converts the optimal control actions computed by the MPC, which are expressed in terms of forces, into real vehicle inputs that can be actuated on the car, i.e. throttle, brake and steer commands. This is achieved by inverting the engine map, the brake characteristics and the nonlinear tire model, respectively.
3.1 Actuation Delays Compensation
The MPC implements a delay-free first-order approximation of the actuators’ dynamics. However, the actuators may also present not negligible time delays. To account for them, a simple compensator is implemented as follows.
Let \(\tau \) be the actuation time delay. At every iteration of the controller, instead of initializing the MPC problem with the measured state x(t), the initial state is set to \(\hat{x}(t+\tau )\), which is obtained with an open loop integration of the nonlinear model described by Eqs. (1a)–(1f), from the measured state x(t). Hence, the first element of the resulting MPC optimal solution contains the actuator reference signals that compensate for time delays.
3.2 MPC Optimization Problem
The MPC optimization is formulated as a separable multistage quadratic problem, where the optimization variables are a set of N vectors, each one corresponding to a single time step in the prediction horizon.
Each component of the sum involves quadratic penalties on the lateral error, the lateral error derivative and the control action variations, while a negative linear term maximizes the vehicle speed.
Maximum values for the lateral error and the input forces are imposed through lower and upper bound constraints. The adherence of the state variables to the model dynamics and the maximum absolute speed are represented by nonlinear constraints, which are linearized around the predicted operating points of the last MPC solution and implemented as linear inequalities.
4 Real-Time Simulation Results
The presented controller is implemented in , using OSQP [11] as the solver for the optimization problem, and tested within a real-time hardware-in-the-loop (HIL) simulator, conducting autonomous laps around various racetracks, adhering to a predetermined racing line and speed profile. The simulated vehicle is a Dallara AV-21, a 470-horsepower autonomous racecar derived from the single-seater Dallara IL-15, designed for the Indy Lights championship. Its most relevant geometric parameters are reported in Table 1.
The real-time implementation of the algorithm enables its execution on a standard high-end Linux laptop with a 6-core 2.2 GHz CPU and 16 GB of RAM. The computation time during the simulations is always below 40 ms, allowing a prescribed execution rate of 25 Hz, with N = 30 steps in the prediction horizon. As in Fig. 3, the results of the simulations at the Monza Circuit show excellent tracking performance, achieving less than 0.6 m of lateral error, while reaching speeds up to 280 km/h and lateral accelerations up to 1.7 g.
5 Conclusions
This paper presents a MPC controller for the integrated control of lateral and longitudinal dynamics of a high-performance autonomous vehicle. The accuracy of the vehicle model allows to achieve excellent results in a realistic simulation environment, even in demanding scenarios such as driving at the limit of handling. Also, the feasibility of a real-time implementation is demonstrated by the low execution time of the algorithm on standard hardware. Future work will focus on the experimental validation of the controller on a real-world setup.
References
Kritayakirana, K., Christian Gerdes, J.: Autonomous vehicle control at the limits of handling. Int. J. Veh. Auton. Syst. 10(4), 271–296 (2012)
Kritayakirana, K., Christian Gerdes, J.: Using the centre of percussion to design a steering controller for an autonomous race car. Veh. Syst. Dyn. 50(Suppl. 1), 33–51 (2012)
Kapania, N.R., Christian Gerdes, J.: Design of a feedback-feedforward steering controller for accurate path tracking and stability at the limits of handling. Veh. Syst. Dyn. 53(12), 1687–1704 (2015)
Beal, C.E., Christian Gerdes, J.: Model predictive control for vehicle stabilization at the limits of handling. IEEE Trans. Control Syst. Technol. 21(4), 1258–1269 (2013)
Katriniok, A., Abel, D.: LTV-MPC approach for lateral vehicle guidance by front steering at the limits of vehicle dynamics. In: 2011 50th IEEE Conference on Decision and Control and European Control Conference, pp. 6828–6833 (2011)
Siampis, E., Velenis, E., Gariuolo, S., Longo, S.: A real-time nonlinear model predictive control strategy for stabilization of an electric vehicle at the limits of handling. IEEE Trans. Control Syst. Technol. 26(6), 1982–1994 (2018)
Novi, T., Liniger, A., Capitani, R., Annicchiarico, C.: Real-time control for at-limit handling driving on a predefined path. Veh. Syst. Dyn. 58(7), 1007–1036 (2019)
Vázquez, J., Brühlmeier, M., Liniger, A., Rupenyan, A., Lygeros, J.: Optimization-based hierarchical motion planning for autonomous racing. In: 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 2397–2403 (2020)
Beal, C.E., Christian Gerdes, J.: A method for incorporating nonlinear tire behavior into model predictive control for vehicle stability. In: Dynamic Systems and Control Conference, vol. 1, pp. 157–164 (2010)
Pacejka, H.: Tire and Vehicle Dynamics. Butterworth-Heinemann (2012)
Stellato, B., Banjac, G., Goulart, P., Bemporad, A., Boyd, S.: OSQP: an operator splitting solver for quadratic programs. Math. Program. Comput. 12(4), 637–672 (2020)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Copyright information
© 2024 The Author(s)
About this paper
Cite this paper
Pierini, M., Fusco, P., Senofieni, R., Corno, M., Panzani, G., Savaresi, S.M. (2024). Trajectory Tracking for High-Performance Autonomous Vehicles with Real-Time Model Predictive Control. In: Mastinu, G., Braghin, F., Cheli, F., Corno, M., Savaresi, S.M. (eds) 16th International Symposium on Advanced Vehicle Control. AVEC 2024. Lecture Notes in Mechanical Engineering. Springer, Cham. https://doi.org/10.1007/978-3-031-70392-8_2
Download citation
DOI: https://doi.org/10.1007/978-3-031-70392-8_2
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-70391-1
Online ISBN: 978-3-031-70392-8
eBook Packages: EngineeringEngineering (R0)