Research Article

Algorithm and Implementation of Vehicle Trajectory Tracking Based on Vehicle Three-Degree-of-Freedom Dynamics MPC

Zirui Xia*
North University of China

* Corresponding author: [email protected]

Abstract

Against Amid the rapid development of autonomous driving tech, trajectory tracking – a key link between decision-making and execution layers – directly impacts autonomous vehicle safety and stability. The traditional 2-DOF vehicle dynamic model used in MPC lacks accuracy and practicality, as it only accounts for basic motion scenarios while ignoring multi-variable coupling and complex constraints.To address this, this paper builds a 3-DOF vehicle dynamic model covering longitudinal displacement, yaw angle, lateral velocity, and yaw rate, better reflecting the coupling of the vehicle’s longitudinal, lateral, and yaw motions. First, the Euler method discretizes the continuous model to establish a discrete state-space expression. Then, an MPC controller is designed: a dual-objective optimization function (combining state weight matrix Q and control weight matrix R) for "trajectory tracking accuracy-control input smoothness" is defined, and physical constraints like front-wheel steering angle and its rate of change are introduced to convert the control problem into a quadratic programming one. Finally, rolling optimization enables dynamic tracking and real-time correction of the reference trajectory.MATLAB simulations (S-shaped reference trajectory, real-vehicle-like parameters: 1573kg mass, 8000N/rad front/rear axle cornering stiffness; key MPC parameters: 20-step prediction horizon, 10-step control horizon, 0.05s sampling time) show high overlap between the proposed model’s actual and reference trajectories. Lateral position tracking error stabilizes between -0.16m and 0.16m (well below the 0.3m autonomous driving safety threshold), and the front-wheel steering angle (control input) is highly smooth, free from traditional control’s "chattering". In short, the 3-DOF MPC trajectory tracking algorithm has good dynamic response and control accuracy, meeting autonomous driving scenario needs.

Keywords: Intelligent Vehicles; MPC Dynamic Model; Quadratic Programming; Trajectory Tracking
Published: October 23, 2025
DOI: 10.54254/2753-8818/2025.AD27974
Volume: TNS Vol.134
pp. 207-217
Download PDF

References

  1. Zhu, W., Yin, Y., Xu, Z., Wei, Y., & Zeng, S. (2025). Multi-Objective Cooperative Control of Vehicle Platoon Based on Fuzzy MPC.  Proceedings of the IEEE International Conference on Industrial Technology. https: //doi.org/10.1109/ICIT63637.2025.10965301
  2. Abubakar, A., Mohiuddin, M. B., Hay, O. A., Yakubu, M., & Alhammadi, R. (2024). Robust Control for Autonomous Vehicle Lateral Dynamics: A Comparative Study of Gain-Schedule LPV and Non-linear MPC.  2024 8th International Conference on Robotics, Control and Automation, ICRCA 2024, 311–317. https: //doi.org/10.1109/ICRCA60878.2024.10649172
  3. Askari, I., Badnava, B., Woodruff, T., Zeng, S., & Fang, H. (2022). Sampling-Based Nonlinear MPC of Neural Network Dynamics with Application to Autonomous Vehicle Motion Planning.  Proceedings of the American Control Conference,   2022-June, 2084–2090. https: //doi.org/10.23919/ACC53348.2022.9867324
  4. Chen, S., Chen, H., & Negrut, D. (2020). Implementation of MPC-Based Path Tracking for Autonomous Vehicles Considering Three Vehicle Dynamics Models with Different Fidelities.  Automotive Innovation,   3(4), 386–399. https: //doi.org/10.1007/s42154-020-00118-w
  5. Pauca, O., Lazar, M., & Caruntu, C. F. (2023). Hybrid Cost Function Distributed MPC for Vehicle Platoons With Stability and String Stability Properties.  IEEE Control Systems Letters,   7, 2257–2262. https: //doi.org/10.1109/LCSYS.2023.3285519
  6. Ganduri, K. V., & Pathri, B. P. (2025). Comparative Analysis of Pid and Mpc Control Strategies for Autonomous Vehicle Navigation.  SSRN.  https: //doi.org/10.2139/ssrn.5267405
  7. A platoon formation framework in a mixed traffic environmentMahbub, A.M.I.; Malikopoulos, A.A.IEEE Control Syst. Lett., v 6, p 1370-1375, 2022
  8. Distributed data-driven model predictive control for heterogeneous vehicular platoon with uncertain dynamicsWu, Y.; Zuo, Z.; Wang, Y.; Han, Q.; Hu, C.IEEE Trans. Veh. Technol., 2023
  9. Wang, T., Yang, X., Ma, M., Cen, H., & Deng, Z. (2025). Game theory-based MPC control strategy for path following of reconfigurable unmanned ground vehicle: A multi-agent control method.  Proceedings of the Institution of Mechanical Engineers, Part D: Journal of Automobile Engineering. https: //doi.org/10.1177/09544070241312954
  10. Zhou, Z., Tao, M., Qiu, J., Zhang, P., Xu, M., & Chen, J. (2025). Autonomous Vehicle Path Tracking Using Event-Triggered MPC With Switching Model: Methodology and Real-World Validation.  IET Control Theory and Applications,   19(1). https: //doi.org/10.1049/cth2.70046
  11. Zhang, C., & Wu, M. (2023). Trajectory Tracking Control of Automatic Guided Soft Target Vehicle Based on MPC.  Proceedings - 2023 2nd International Symposium on Control Engineering and Robotics, ISCER 2023, 18–21. https: //doi.org/10.1109/ISCER58777.2023.00009
  12. Wang, J., Long, M., Luo, X., Li, X., & Fang, X. (2023). Distributed MPC for Vehicle Platoon Control with String Stability.  Proceedings - 2023 China Automation Congress, CAC 2023, 8018–8023. https: //doi.org/10.1109/CAC59555.2023.10450499
  13. Pang, L., Yue, M., Qi, G., Liu, Y., & Qian, K. (2025). Preview-based MPC for active suspension control of tank vehicle with lateral liquid sloshing suppression.  Proceedings of the Institution of Mechanical Engineers, Part D: Journal of Automobile Engineering. https: //doi.org/10.1177/09544070251317649
  14. Wang, W., Yuan, S., Yang, C., & Zhang, Y. (2025). A robust MPC-based vehicle stability control strategy for four-wheel independent drive electric vehicles considering IGBT thermal effect.  Nonlinear Dynamics,   113(7), 6893–6906. https: //doi.org/10.1007/s11071-024-10476-3
  15. Tang, Z., Liu, H., Xue, M., Chen, H., Gong, X., & Tao, J. (2023). Trajectory Tracking Control of Dual Independent Electric Drive Unmanned Tracked Vehicle Based on MPC-MFAC.  Binggong Xuebao/Acta Armamentarii,   44(1), 129–139. https: //doi.org/10.12382/bgxb.2022.0886
  16. Heerwan, P. M., Mohamad, N. E. Z., Zakaria, M. A., Ishak, M. I., & Asyraf, S. M. (2023). Investigation on Lane Changing Manoeuvres of an Autonomous Vehicle by Using Model Predictive Control (MPC) and Proportional-Integral-Derivative Control (PID) for Steer-by-Wire (SBW) System.  Lecture Notes in Electrical Engineering,   882, 15–27. https: //doi.org/10.1007/978-981-19-1577-2_2