Abstract
An autonomous vehicle is a fascinating and trendy topic from both research and practical perspectives. It can be said that this is a development tendency for future automobiles and attracts the attention and a substantial amount of finance from big automobile corporations worldwide. In terms of technology, driving a driverless car puts a great deal of pressure since there is only one control input (steering angle) that must simultaneously control the position and yaw angle of the vehicle. Moreover, the position of the vehicle over time is a function of the yaw angle. In order to solve the problem, this study proposes a new approach with the use of a dual-loop Proportional Integral Derivative (PID) controller combined with optimizing parameters based on the Particle Swarm Optimization (PSO) algorithm to improve the control performance. By simulating cars following given trajectories based on the car's kinematics and dynamics, the efficiency and feasibility of the work can be assessed. The numerical simulation results of both the established PID controller and PSO algorithm are given at the end of the presentation.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
A self-driving car or an autonomous vehicle has been researching, developing, and becoming a great tendency in the field of automobile manufacturing. Also, the number of people owning them has increased significantly in recent years because it improves comfort, luxury, and especially safety when traveling. In present-day technology, there are many levels of unmanned driving, but to ensure high levels, precise control of the trajectory according to the desired trajectory is still a core issue. Different from some previous approaches focusing on analyzing the development trend [1], planning the trajectory [2], or precisely path following with complicated algorithms [3, 4], this study proposes a simple approach to solve the problem of precise control of the car's trajectory.
In general, this system poses significant challenges to the control as it can also be considered an underactuated system [5, 6] (the system has a smaller number of control signals than the number of controlled state variables [7]). However, there is a difference with other systems [8, 9] where the un-actuated state variables are mainly secondary oscillations arising around the equilibria; all the state variables in the driverless car follow certain trajectories. The first theoretical analysis and practical application of PID were in the field of autopilot systems for ships, developed in the early 20s of the 19th century. It is simple but easy to apply for control and high efficiency. Therefore, it is widely used in industry. In this study, based on the kinematic property of the car that the precise control of the yaw angle will determine the accuracy of the side deflection, we have built a controller with a double loop combining PID controllers. Moreover, the controller parameters are optimized based on the PSO algorithm, first introduced by Kennedy, Eberhart and Shi [10, 11], which reduces the controller design time, improves the control quality, and gives relatively satisfactory results. The control structure and built algorithms have been proposed and investigated for efficiency through simulations given at the end of the paper.
2 Dynamic Model and Control Strategy
In Fig. 1, the main kinematic parameters of an autonomous vehicle operating on the road are given. For the system, the vector of state variables is defined as \({\mathbf{x}} = \left[ {\begin{array}{*{20}c} {x_{1} } & {x_{2} } & {x_{3} } & {x_{4} } \\ \end{array} } \right]^{T} ,\) where \(x_{1}\) and \(x_{2}\) are the yaw angle and the angular velocity of the vehicle; while, \(x_{3}\) and \(x_{4}\) denote the lateral position and velocity, respectively.
The vehicle’s model [12] can be given in a simple form as follows
where \({\mathbf{A}} = \left[ {\begin{array}{*{20}c} {a_{11} } & 0 & {a_{13} } & 0 \\ 0 & 0 & 1 & 0 \\ {a_{31} } & 0 & {a_{33} } & 0 \\ 1 & {a_{42} } & 0 & 0 \\ \end{array} } \right]\), \({\mathbf{B}} = \left[ {\begin{array}{*{20}c} {b_{1} } \\ 0 \\ {b_{2} } \\ 0 \\ \end{array} } \right]\),
and \(a_{11} = \frac{{ - 2(C_{\beta f} + C_{\beta r} )}}{{mV_{x} }}\), \(a_{13} = - V_{x} - \frac{{ - 2(C_{\beta f} l_{f} + C_{\beta r} l_{r} )}}{{mV_{x} }}\), \(a_{31} = - \frac{{ - 2(C_{\beta f} l_{f} + 2C_{\beta r} l_{r} )}}{{I_{z} V_{x} }},\)
\(a_{33} = - V_{x} - \frac{{ - 2(C_{\beta f} l_{f}^{2} + C_{\beta r} l_{r}^{2} )}}{{I_{z} V_{x} }}\), \(b_{1} = \frac{{2C_{\beta f} }}{m}\), \(b_{3} = \frac{{2C_{\beta f} l_{f} }}{{I_{z} }}\).
Here, \(C_{\beta f}\) and \(C_{\beta r}\) denote the stiffness of the front and rear wheels. \(l_{f}^{{}}\) and \(l_{r}^{{}}\) are the distance from the center of the car to the front and rear wheels. \(V_{x}\) is the velocity of the car. \(I_{z}\) and \(m\) are the moment of inertia and the mass of the car. The system is controlled by the steering angle \(\delta_{f}^{{}}\).
In fact, the lateral position of the vehicle is the function of yaw angle and time. In other words, the precise control of the yaw angle will greatly determine the accuracy of the lateral orbital tracking. Because the nature of the yaw angle change will determine the lateral deflection of the vehicle. Based on the system characteristics, the control strategy is developed as follows.
The inner PID control the output signal, \(\chi_{s} \left( t \right)\), can be computed as
where \(\sigma_{1} = x_{3} - x_{3T}\) with \(x_{3T}\) being the reference position of the car.\(\lambda_{1a}\), \(\lambda_{1b}\), and \(\lambda_{1c}\) are the controller parameter.
By defining the function \(\sigma_{2} = x_{1} - \chi_{s} = \tilde{\chi }_{s}\), the outer loop PID can be calculated as
where \(\lambda_{2a}\), \(\lambda_{2b}\), and \(\lambda_{2c}\) are the controller parameters.
The parameters \(\lambda_{1a}\), \(\lambda_{1b}\), \(\lambda_{1c}\),\(\lambda_{2a}\), \(\lambda_{2b}\), and \(\lambda_{2c}\) are determined by utilizing the PSO method that is proposed in the next section. The over-all control structure with the integration of the PID control and the PSO algorithm is provided in Fig. 2.
Firstly, the particles adjust their displacement by learning by themselves from their best individual displacements and the best displacement in the global swarm. With considering a problem of minimization with D-dimensional search space, the velocity and displacement are updated by the formula as follows
where \(1 \le i \le D\); \(1 \le i \le M\) with \(M\) being the population size; \(\omega\) is the inertia weight to better balance the exploitation and exploration; \(c_{1}\) and \(c_{2}\) are the coefficients of the acceleration; \(r_{1}\) and \(r_{2}\) in the interval (0,1) are the mutually independent random numbers uniformly distributed; \(P_{ij}^{t}\) and \(G_{j}^{t}\) are the best displacement of the particle i and the global optimized displacement in the swam that satisfies the conditions
3 Numerical Simulation
In Fig. 3, the process of the weight convergence following the iteration. Obviously, the weight is converged in the 6th iteration cycle, with the value being 4819.5. Consequently, the lateral position has been compelled to its desired trajectory, as shown in Fig. 5. This is coinciding and consistent with the lateral orbital tracking error (in Fig. 6) being forced to zero. The control accuracy of the outer loop PID is achieved by the precise of the inner loop PID with the yaw angle tracking error (Fig. 8) or the precise control of the yaw angle is given in Fig. 7. Eventually, the simulated route of the vehicle on the lane is shown in Fig. 4.
4 Conclusion
The study proposed a control strategy with a combination of PID dual loop structure and PSO algorithm for driverless cars. The dual PID loop is designed based on the kinematic characteristic between yaw angle and lateral position. Meanwhile, PSO is applied to optimize controller parameters to improve control quality and reduce execution time. The simulation results partly confirm the feasibility and effectiveness of the controller, which is the premise for applying to real self-driving car systems.
References
Hussain, R., Zeadally, S.: Autonomous cars: research results, issues, and future challenges. IEEE Commun. Surv. Tutorials 21(2), 1275–1313 (2019)
Jo, K., Jo, Y., Suhr, J.K., Jung, H.G., Sunwoo, M.: Precise localization of an autonomous car based on probabilistic noise models of road surface marker features using multiple cameras. IEEE Trans. Intell. Transp. Syst. 16(6), 3377–3392 (2015)
Pham, T., Park, J., Lee, S.-G., Hoang, Q.-D.: Adaptive neural network sliding mode control for an unmanned surface vessels. In: 2020 20th International Conference on Control, Automation and Systems (ICCAS), pp. 519–523 (2020)
Huang, Y., Yong, S.Z., Chen, Y.: Stability control of autonomous ground vehicles using control-dependent barrier functions. IEEE Trans. Intell. Veh. 6(4), 699–710 (2021)
Hoang, Q.-D., Park, J.-G., Lee, S.-G., Ryu, J.-K., Rosas-Cervantes, V.A.: Aggregated hierarchical sliding mode control for vibration suppression of an excavator on an elastic foundation. Int. J. Precis. Eng. Manuf. (2020)
Hoang, Q.-D., Lee, S.-G., Dugarjav, B.: Super-twisting observer-based integral sliding mode control for tracking the rapid acceleration of a piston in a hybrid electro-hydraulic and pneumatic system. Asian J. Control 21(1), 483–498 (2019)
Hoang, Q.-D., Rosas-Cervantes, V.A., Lee, S.-G., Weon, I.-S., Choi, J.-H., Kwon, Y.-H.: Robust finite-time convergence control mechanism for high-precision tracking in a hybrid fluid power actuator. IEEE Access 8, 196775–196789 (2020)
Hoang, Q.-D., Park, J., Lee, S.-G.: Combined feedback linearization and sliding mode control for vibration suppression of a robotic excavator on an elastic foundation. J. Vib. Control 1077546320926898 (2020)
Hoang, Q.-D., et al.: Robust control with a novel 6-DOF dynamic model of indoor bridge crane for suppressing vertical vibration. J. Braz. Soc. Mech. Sci. Eng. 44(5), 1–12 (2022). https://doi.org/10.1007/s40430-022-03465-3
Kennedy, J., Eberhart, R.: Particle swarm optimization. In: Proceedings of ICNN’95 - International Conference on Neural Networks (1995)
Dorigo, M., et al. (eds.): ANTS 2010. LNCS, vol. 6234. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-15461-4
Coppola, P.: Autonomous Vehicles and Future Mobility. Elsevier Science, Amsterdam (2019)
Acknowledgments
The study was supported by the Institute of Mechanical Engineering, Vietnam Maritime University.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Hoang, QD. et al. (2023). Double-Loop PID Control with Parameter Optimization for an Autonomous Electric Vehicle. In: Nguyen, D.C., Vu, N.P., Long, B.T., Puta, H., Sattler, KU. (eds) Advances in Engineering Research and Application. ICERA 2022. Lecture Notes in Networks and Systems, vol 602. Springer, Cham. https://doi.org/10.1007/978-3-031-22200-9_46
Download citation
DOI: https://doi.org/10.1007/978-3-031-22200-9_46
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-22199-6
Online ISBN: 978-3-031-22200-9
eBook Packages: EngineeringEngineering (R0)