Next Article in Journal
Experimental and Numerical Study of the Dynamic Response of XCC Pile–Raft Foundation under High-Speed Train Loads
Next Article in Special Issue
Online SoC Estimation of Lithium-Ion Batteries Using a New Sigma Points Kalman Filter
Previous Article in Journal
Causal Models for the Result of Percutaneous Coronary Intervention in Coronary Chronic Total Occlusions
Previous Article in Special Issue
Fundamental Numerical Analysis of a Porous Micro-Combustor Filled with Alumina Spheres: Pore-Scale vs. Volume-Averaged Models
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Online Active Set-Based Longitudinal and Lateral Model Predictive Tracking Control of Electric Autonomous Driving

1
School of Mechanical Engineering, Beijing Institute of Technology, Beijing 100081, China
2
Shenzhen Research Institute, Beijing Institute of Technology, Shenzhen 518057, China
*
Author to whom correspondence should be addressed.
Submission received: 18 August 2021 / Revised: 20 September 2021 / Accepted: 26 September 2021 / Published: 5 October 2021

Abstract

:
Autonomous driving is a breakthrough technology in the automobile and transportation fields. The characteristics of planned trajectories and tracking accuracy affect the development of autonomous driving technology. To improve the measurement accuracy of the vehicle state and realise the online application of predictive control algorithm, an online active set-based longitudinal and lateral model predictive tracking control method of autonomous driving is proposed for electric vehicles. Integrated with the vehicle inertial measurement unit (IMU) and global positioning system (GPS) information, a vehicle state estimator is designed based on an extended Kalman filter. Based on the 3-degree-of-freedom vehicle dynamics model and the curvilinear road coordinate system, the longitudinal and lateral errors dimensionality reduction is carried out. A fast-rolling optimisation algorithm for longitudinal and lateral tracking control of autonomous vehicles is designed and implemented based on convex optimisation, online active set theory and QP solver. Finally, the performance of the proposed tracking control method is verified in the reconstructed curve road scene based on real GPS data. The hardware-in-the-loop simulation results show that the proposed MPC controller has apparent advantages compared with the PID-based controller.

1. Introduction

Due to the advantages in energy and environment, electric vehicles have become the most popular research area. The development of electric vehicles has an important influence on transforming social lifestyle [1] and energy structure [2]. The use of electric vehicles as the autonomous driving control platform has the advantages of easy control and a simple system. As one of the core functions of autonomous vehicles, trajectory tracking control involves the coordinated control of the vehicle steering system, braking system and driving system. As a controlled object including nonlinear factors such as tire, suspension and steering, the strong coupling characteristics between its components, the strong time-varying driving environment and the finite-dimensional control variables of the vehicle system undoubtedly make the trajectory tracking a control problem with high nonlinearity, strong control coupling, strong time-varying state and underdrive. The trajectory tracking aims to control the steering and braking/driving system of the vehicle. The vehicle can realise high-precision tracking of the desired trajectory curve under the conditions of meeting the constraints of vehicle stability, safety and energy consumption economy. Therefore, the trajectory tracking control problem of the autonomous vehicle is an optimisation control problem; that is, considering the vehicle kinematics/dynamics constraints and vehicle driving safety, energy consumption economy and stability, the trajectory tracking is optimised from the longitudinal and lateral control angles.

1.1. Literature Review

The design of trajectory tracking controllers based on the classical control theory is undoubtedly one of the efficient and feasible methods to quickly realise the single target tracking problem. In the autonomous vehicle off-road challenge organised by the U.S. Defense Advanced Research Projects Agency (DARPA) in 2005, Stanley of Stanford University successfully won the championship [3], and its lateral tracking controller was designed based on the classical PID control theory, which further verified the feasibility of using the classical PID control to achieve single target tracking. In addition, Nissan [4] designed a feedforward-feedback controller using the classical PID method to realise the tracking control of autonomous vehicle trajectory under continuous speed change and solved the real-time problem of longitudinal and lateral control of the autonomous vehicle. Aiming at the path tracking problem under significant curvature path conditions, a state feedback PID control strategy based on the optimal path was proposed to enhance the robustness of the lateral control system to the change of path curvature [5]. Zhang et al. [6] considered the enormous energy consumption of the suspension robot in the path tracking and optimised the control parameters of the traditional PID controller using the genetic algorithm. Through the online parameter adjustment, the energy consumption of the suspension robot could be significantly reduced when the designed PID controller tracks the same trajectory.
In addition, researchers have also expanded other control algorithms for single target trajectory tracking. Lee and Tomizuka [7] designed the coordinated control algorithm of longitudinal and lateral control based on the robust adaptive control theory and compared the traditional coordinated control algorithm with the longitudinal and lateral decoupling control algorithm. The results showed the superiority of longitudinal and lateral coordinated control of the autonomous vehicle. Brown et al. [8], based on the analysis of the maximum cornering force of the tire and the steady-state characteristics of the vehicle, proposed the planning control method of the slip envelope to continuously approach the driving speed limit of the autonomous vehicle on the premise of preventing the vehicle from slipping. Sisil et al. [9] constructed the RBF neural network adaptive longitudinal and lateral coordinated control strategy and analysed the stability of the control system through Lyapunov theory, which could ensure the uniform convergence and boundedness of tracking error. Zhao et al. [10] proposed a control method based on the expected azimuth deviation estimator and robust PID feedback controller for trajectory tracking control under variable speed conditions and verified that the vehicle had a good trajectory tracking performance under different speed conditions. Hu et al. [11] proposed an H ∞ robust static output feedback control method combining genetic algorithm and linear matrix inequality method to study the tracking problem of an autonomous vehicle. The proposed controller was robust to external disturbances and vehicle/environmental parameter/state uncertainties, including the tire cornering stiffness, the longitudinal vehicle speed, the yaw rate and the road curvature.
Constraint processing and multi-target tracking are inevitable in the trajectory tracking control of the autonomous vehicle in practice, and the extended classical PID control cannot deal with time-varying constraints and multi-target tracking. At present, for the problem of multi constraint processing and multi-target tracking in autonomous vehicle tracking control, model predictive control (MPC) based on optimal control theory is undoubtedly one of the most widely studied and applied control algorithms. In this regard, Song et al. [12] proposed longitudinal and lateral control strategies based on MPC and realised the expected speed and expected path following. Guo et al. [13] established the vehicle kinematics model with the constraints of drivable road area and vehicle geometry, designed the MPC controller, studied the trajectory tracking of autonomous vehicles by using the longitudinal and lateral coupling control method, and completed the effectiveness verification of the control algorithm. Du et al. [14] proposed a nonlinear MPC controller based on the genetic algorithm to control vehicle speed and steering, considering driving safety and comfort, and had a good track following effect. Li et al. [15] proposed the model discretisation method through the pseudospectral approach and presented the simplification method based on modularisation and constraint set compression to reduce the calculation amount of optimisation problems and improve the real-time performance of optimisation solutions. Sun et al. [16] studied the trajectory tracking control method of the autonomous vehicle, based on the vehicle dynamics model with 6 degrees of freedom (DOF) and integrating the operational stability constraints of the vehicle. Wang et al. [17] designed a predictive control algorithm based on the vehicle dynamics model and simulated annealing model based on the longitudinal and lateral coupling 2DOF vehicle dynamics model. Equality constraints and inequality constraints are set according to the actual driving conditions, and the solution speed of MPC controller can be optimised. Zhang et al. [18], based on the vehicle 3DOF monorail dynamics model, proposed a linear time-varying model predictive path tracking coupling control method and simulated and analysed the real-time performance and robustness of the control algorithm through double line shifting conditions.
According to the differences of vehicle models, the above research on trajectory tracking control of autonomous vehicles based on model predictive control can be divided into simplified vehicle kinematics model-based and vehicle dynamics model-based. The former does not consider the rigid body dynamic constraints such as vehicle tires and the suspension but carries out kinematic analysis and modelling of the vehicle in the plane. It mainly realises the real-time description of vehicle motion law under low model accuracy. It is only suitable for researching non-fully constrained tracking control of autonomous vehicles under low-speed conditions and low requirements for vehicle stability. The latter needs to consider the time-varying characteristics of vehicle tires and describe the vehicle’s state more accurately combined with yaw and slide. Under the same conditions, the improvement of model accuracy improves the state tracking accuracy to a great extent, but this is at the cost of dissipating the calculation amount, so the real-time performance of the algorithm is insufficient. When the model is too complex, the real-time requirements of the algorithm will be hard to meet. To improve the measurement accuracy of the vehicle state and realise the online application of predictive control algorithm, an online active set-based longitudinal and lateral model predictive tracking control of autonomous driving is proposed in this paper. Based on ensuring the accuracy of the vehicle model, the complexity of model calculation is reduced. On the other hand, the optimisation set is established to reduce the time required for optimisation.

1.2. Contribution

(1) In order to meet the measurement accuracy requirements of vehicle state in tracking control, based on the extended Kalman filter theory, a vehicle state estimator is designed by fusing the information of onboard inertial measurement unit (IMU) and global positioning system (GPS), and the fusion estimation of vehicle state is realised. Based on the coordinate transformation theory, the local coordinate system of the road curve is defined. The road potential field function is also designed, and the potential field compatible with the curve road environment is constructed.
(2) According to the longitudinal and lateral multi-target tracking control requirements of the autonomous vehicle, the longitudinal and lateral error dimensionality reduction in path tracking is designed based on the 3DOF vehicle dynamics model and curved road coordinate system. On this basis, a model predictive tracking controller for longitudinal and lateral multi-objective control of autonomous vehicles is designed.
(3) According to the online application requirements of MPC algorithm, based on the convex optimisation and online active set theory, combined with an open-source solver, a fast-rolling optimisation algorithm for driverless vehicle longitudinal and lateral tracking control is designed and implemented. The effectiveness and tracking of the algorithm’s performance are verified and evaluated in the reconstructed curve road scene based on the real GPS data.
Compared to the PID control result, under the proposed MPC, the maximum and average of the front wheel slip angle are reduced by 52.09% and 40.66%, respectively, and the average lateral acceleration of the proposed MPC drops from −0.0606 g to −0.0376 g; the maximum acceleration fell from 0.4549 g to 0.22 g.

1.3. Organisation

The remainder of this paper is organised as follows. Section 2 presents the vehicle state estimation, including vehicle dynamics model, state estimator design and EKF-based state estimation. MPC-based longitudinal and lateral tracking control are shown in Section 3, including reference path generation, dimension reduction-based errors calculation, MPC and online active set algorithm. Simulation results and discussions are shown in Section 4. Conclusions, limitations and future works are given in Section 5.

2. Vehicle State Estimation

The accurate and reliable state estimation is essential for the high-precision tracking control of autonomous driving. The traditional method is implemented by designing the estimator based on tire force estimation with the vehicle dynamics model. Considering that the related vital parameters are difficult to update, the tire model’s precision is unreliable. With the advantages of onboard sensing and measurement equipment of autonomous vehicles, the vehicle state estimator is carried out by fusing the information of IMU and GPS with the vehicle dynamics model.

2.1. Vehicle Dynamics Model

The 3DOF vehicle dynamics model [19] is introduced and used in Figure 1 for state estimation and prediction, including longitudinal, lateral and yaw rate, respectively.
Based on the 3DOF dynamics model with motion equations, the formulations are presented as:
X ˙ = V x Y ˙ = V y φ ˙ = ω I z ω ˙ = M c , z m a x = F c , x m a y = F c , y
where V x and V y are longitudinal and lateral velocities according to the global Cartesian coordinate system in the centroid position of the vehicle; m and δ denote the mass and steering angle of the front tire, respectively; F c , x , F c , y and M c , z represent the longitudinal and lateral equivalent forces and torque of the centroid position according to the vehicle coordinate system.
Moreover, the state equation is described as:
F c , x = F x   c o s   δ F y , f   s i n   δ C D A 21.15 3.6 v x 2 F c , y = F x   s i n   δ + F y , f   c o s   δ + F y , r M c , z = F y , f L f   c o s   δ + F x L f   s i n   δ F y , r L r a x = v ˙ x ω v y a y = v ˙ y + ω v x V x = v x   c o s   φ v y   s i n   φ V y = v x   s i n   φ + v y   c o s   φ
where v x , v y and ω are the longitudinal and lateral velocities, and yaw rate in vehicle coordinate system, respectively; X , Y and φ denote the longitudinal and lateral positions, and the yaw angle in the global Cartesian coordinate system, F x represent the longitudinal force of the front-driving tire; F y , f and F y , r denote the lateral force of front and rear tires, respectively; L f , L r and I z denote the front and rear wheelbases and the vehicle inertia around the vertical axis, respectively.

2.2. The Design of the State Estimator

Combining the information of GPS and IMU, the estimation system is described as:
u = u 1 , u 2 , u 3 T = { a x , a y , M c , z } T x = x 1 , x 2 , x 3 , x 4 , x 5 , x 6 T = { X , Y , ψ , ω , v x , v y } T z = z 1 , z 2 , z 3 , z 4 T = { X ˜ GPS , Y ˜ GPS , φ ˜ GPS , ω ˜ IMU } T
where a x , a y and ω ˜ IMU are measured by IMU; M c , z is from the tire-force estimation module; X ˜ GPS , Y ˜ GPS and φ ˜ GPS are based on GPS.
The state formulations are regulated as:
X ˙ = v x   c o s   φ v y   s i n   φ + w 1 Y ˙ = v x   s i n   φ + v y   c o s   φ + w 2 ψ ˙ = ω + w 3 ω ˙ = M c , z I z + w 4 v ˙ x = a x + ω v y + w 5 v ˙ y = a y ω v x + w 6 x ˙ t = f c x t , u t + W t
where w i i = 1 , 2 , , 6 represents the error of each state variable based on the estimation of (4).
The observation formulations are regulated as:
z 1 = x 1 + v 1 z 2 = x 2 + v 2 z 3 = x 3 + v 3 z 4 = x 4 + v 4 z t = h x t , u t + V t
where v i   i = 1 , 2 , 3 , 4 represents the error of each observation variable based on the measurement of (5).

2.3. EKF-Based State Estimation

Since (1) includes typical nonlinear formulations, the extended Kalman Filter (EKF) is used for state estimation. The standard formulations of EKF are shown as:
x k | k 1 = f d x k 1 | k 1 , u k 1 z k | k 1 = h x k | k 1 , u k 1 P k | k 1 = A k P k 1 | k 1 A k T + T s 2 Q K g k = P k | k 1 C T k C k P k | k 1 C T k + R 1 x k | k = x k | k 1 + K g k z k z k | k 1 P k | k = I K g k C k P k | k 1
where f d is the discrete form of the state function; x k 1 | k 1 and P k 1 | k 1 denote the last optimal estimation and error covariance matrix, respectively; K g is the coefficient of Kalman gain; I is the identity matrix; T s is the sampling period R = d i a g 0.04 , 0.04 , 0.0012 , 0.0012 and Q = d i a g 10 2 , 10 2 , 10 6 , 10 4 , 10 4 , 10 4 represent the covariance matrices of the measure and model systems, respectively.
The Jacobi matrices of the transform and observe formulations are regulated as:
A k = f d x k , u k x k = 1 0 a 1 , 3 0 T s c o s   x 3 k T s s i n   x 3 k 0 1 a 2 , 3 0 T s s i n   x 3 k T s c o s   x 3 k 0 0 1 T s 0 0 0 0 0 1 0 0 0 0 0 T s x 6 k 1 T s x 4 k 0 0 0 T s x 5 k T s x 4 k 1 , C k = h x k , u k x k = 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0
where a 1 , 3 = T s x 5 k s i n   x 3 k x 6 k c o s   x 3 k and a 2 , 3 = T s x 5 k c o s   x 3 k x 6 k s i n   x 3 k .
The details of the EKF algorithm are described as shown in Table 1.

3. Model Predictive Control-Based Longitudinal and Lateral Tracking Control

3.1. Reference Path Generation

The potential field (PF) function of road boundary is defined as:
U RBd s , d = b d d Br 2 , d d Br b d Bl d 2 , d d Bl 0 , d d Br , d Bl
where s and d represent the longitudinal and lateral coordinates in a road coordinate system, respectively; b is a shaping parameter, d Bl and d Br denote the lateral positions of the left and right road boundaries, respectively.
The PF function of the target lane is designed as:
U TargL s , d = a d d TrgL 2
where d TrgL denotes the lateral distance of ego vehicle and target lane, and a is the shaping parameter.
The PF functions are designed to construct the comprehensive road potential field based on the geometric information of the reference road, as shown in Figure 2. The constructed comprehensive road potential field is shown in Figure 3. In Figure 3, the greater the density of the lines, the higher the road potential field.

3.2. Dimension Reduction-Based Errors Calculation

As shown in Figure 4, three coordinates are introduced for path tracking of the autonomous vehicle, including the earth coordinate system, the vehicle and road moving coordinate systems. The earth coordinate system denotes the vehicle position, vehicle heading angle, the waypoints’ position and the tangential angle of the trajectory. The vehicle coordinate system is usually used to denote the vehicle states, e.g., longitudinal and lateral velocities, side slip angle, yaw rate, etc. The road coordinate system is based on the Frenet coordinate system [20] to calculate the lateral and heading angle errors between the vehicle motion and reference trajectories.
The lateral error can be calculated as:
l = s i n   θ r x r x e + c o s   θ r y r y e
where r s , θ r denotes the coordinate of target point; x s , l represent the current position of the ego vehicle; x e , y e and x r , y r are the coordinates in the global Cartesian coordinate system, respectively; θ r is the heading angle of the target point in the reference path.
According to the theory of coordinate transform based on (10), the multi-state errors, i.e., the deviations of tracking speed and trajectory at time of t , can be calculated and regulated as:
χ Y t χ v x t χ θ t = M θ ref t X ref t X t v ref t v x t Y ref t Y t θ ref t θ t M θ ref t = s i n   θ ref t 0 c o s   θ ref t 0 0 1 0 0 0 0 0 1
where X ref t , v ref t , Y ref t , θ ref t T are the reference position, target speed and heading angle at time of t ; χ Y t , χ v x t and χ θ t represent the lateral position, speed and heading angle errors, respectively.

3.3. Model Predictive Control

The errors can be regulated from (11) as:
χ k + 1 = C χ k + 1 x ref k + 1 x k + 1 = C χ k + 1 x ref k + 1 C χ k + 1 x k + 1
where C χ k + 1 = M θ ref k + 1 s i n   θ ref k + 1 0 c o s   θ ref k + 1 0 0 1 0 0 0 0 0 1 ,   x ref k + 1 = X ref k + 1 v ref k + 1 Y ref k + 1 θ ref k + 1   , x k + 1 = X k + 1 v k + 1 Y k + 1 θ k + 1 represent the coordinate transform matrix, the reference and predicted states at the prediction step k + 1 , respectively.
Therefore, the errors of the predictive horizon can be regulated as:
χ = C ^ χ A ^ d x k + B ^ d U C ^ χ Y ref C ^ χ = C χ k + 1 , C χ k + 2 , , C χ k + N p T χ = χ k + 1 , χ k + 2 , , χ k + N p T
where A ^ d and B ^ d are the augmented matrices of the prediction formulation; U and Y ref are the vectors of control and reference variables during the prediction horizon.
Based on the optimal control theory, a quadratic cost function is designed for the MPC tracking control. The optimisation problem can be described as follows:
m i n Δ U t k = 1 N p || y t + k , t y t + k , t d e s || Q 2 + || Δ u t + k 1 , t || R 2 s . t . k = t , , t + N p 1 x t k + 1 = A d x t k + B d u t k y k , t = C d x t k y m i n y k , t y m a x u m i n u k , t u m a x Δ u k , t Δ u m i n , Δ u m a x u k , t = u k 1 , t + Δ u k , t
where Q and R are the weights of the cost terms, k represents the prediction of k t h step ahead of t ; A d and B d are the discrete matrices of the state-equation based on Euler method; C d denotes the output matrix, y t + k , t d e s represents the reference path; y t + k , t is the real-time position of the ego vehicle. The Optimal problem is solved by an open-source solver Qp OASES [21].

3.4. Online Active Set Algorithm

There are several feasible algorithms for solving convex quadratic programming (QP) problems subject to the linear inequality and equality constraints, such as active-set method [22], interior-point method [23], gradient projection method [24], null space method [25], etc. However, the MPC based embedded optimisation application is strict to the computation time, and usually the period of vehicle control message is 10 ms. For the MPC embedded application of the autonomous vehicle, the online active-set strategy method is introduced to accelerate the solving process and realise the real-time embedded application.
Firstly, combine Equations (13) and (14), and it implies that the primal QP can be presented as a multi-parametric quadratic program (mp-QP), because the gradient ( g ˜ T ) of the objective function and the right-hand side of the constraints linearly depend on the parameters ( x t , t , u t 1 , t , Y t r e f ) in the piecewise linearisation area. Consequently, a strictly convex QP problem can be determined and solved, as long as the parameters are determined in the parameter space.
Secondly, solving the continuous piecewise linearised QP problem is equivalent to solving the continuous QP sequence (QPs). If the corresponding parameters of every sub QP can be fast determined in the QPs, the QPs can be fast solved. With this ideal, the online active-set strategy method is used for fast solving the QPs.
The parameter vector of the sub QP is defined as:
w t : = x t , t , u t 1 , t , Y t r e f w t Γ Γ   : = x , u , Y r e f x   R N y , u   R N u , Y r e f   R N p N y
where w t represents the parameter vector in sampling instant of time t , and the convex set Γ denotes the feasible parameter space.
After elimination of the equality constraints, one rewrites the QP in the general form:
Q P w t : m i n 1 2 Δ U T H x + Δ U T g w t s . t . M Δ U b w t
Furthermore, the strategy of online active-set is to renew the gradient and constraint boundaries by linearly updating the parameters, as follows:
w 0   ˜ : = w 0 + τ Δ w 0 g ˜   : = g ( w 0 ) + τ Δ g b   ˜ : = b ( w 0 ) + τ Δ b   ,       τ   0 , 1 w 0   : = x 0 , u 0 , Y 0 r e f Δ w 0   : = w 0 n e w w 0 Δ g   : = g ( w 0 n e w ) g ( w 0 ) = Θ T Δ w 0 Δ b   : = b ( w 0 n e w ) b ( w 0 ) = P Δ w 0
where w 0   ˜ , g ˜ , and b ˜ are the update of the parameter, gradient and the boundary of the constraints, and τ is the step length along the homotopy of parameter. Θ and P denote the affine matrices during the straight-line moving of the parameter.
Based on the proved theorems in [19], the QPs remain feasible and can be solved when the parameter moves along a straight line in the defined parameter space. Above all, with a known initial parameter w 0 and the optimal solution x 0 * , λ Λ * , Λ is the corresponding working set, and the following new optimal solution x n e w * , λ Λ n e w * of Q P w 0 n e w can be fast calculated according to the linear homotopy, which means moving w 0 towards/along a straight line.
The i homotopies is determined as:
x ˜ * : 0 , 1 R n , x ˜ * 0 = x 0 * , x ˜ * 1 = x n e w * λ ˜ * : 0 , 1 R m , λ ˜ * 0 = λ Λ * , λ ˜ * 1 = x Λ n e w * Λ ˜ : 0 , 1 2 M , Λ ˜ 0 = Λ , Λ ˜ τ M I ˜ : 0 , 1 2 M , I ˜ τ   : = M \ Λ ˜ τ M   : = 1 , , m
where M denotes the index of the inequality constraints, x ˜ * and λ ˜ * define the linear homotopies of the primal and dual optimal solution in n and m dimension space, respectively. Λ ˜ and I ˜ define the linear homotopies of the working set and non-working set in the feasible set.
For the strict convex QP problem, the KKT conditions should be satisfied at every value of τ :
H G Λ ˜ τ T G Λ ˜ τ 0 x ˜ * τ λ ˜ Λ ˜ τ * τ = g ˜ τ b ˜ Λ ˜ τ τ λ ˜ Λ ˜ τ * τ = 0 , G I ˜ τ x ˜ * τ b ˜ I ˜ τ τ , λ ˜ Λ ˜ τ * τ 0
Since x ˜ * τ and λ ˜ * τ are piecewise linear functions and can be defined as:
x ˜ * τ   : = x ˜ * 0 + τ Δ x * λ ˜ Λ ˜ τ * τ   : = λ ˜ Λ ˜ 0 * 0 + τ Δ λ Λ * ;   τ 0 , τ m a x
The primal QP is transformed to the equivalent QP and reuse the KKT condition to get the optimal solution Δ x * and λ Λ * , then the optimal solution of Q P w 0 n e w can be fast calculated.
H G Λ T G G 0 Δ x * Δ λ * * = Δ g Δ b Q P w 0 n e w τ m a x p r i m   : = m i n i I b i w 0 G i T Δ x * G i T Δ x * Δ b i | G i T Δ x * < 0 R + τ m a x d u a l   : = m i n i Λ λ i * Δ λ i * | Δ λ i * < 0 R + τ m a x     : = m i n 1 , τ m a x p r i m , τ m a x d u a l 0 , 1
As long as the τ m a x   equals one, the solution of Q P w 0 n e w is found; otherwise the infeasible constraints will be added or removed from the working set ( Λ ) just like the procedure of the conventional active-set algorithm.

4. Results and Discussions

4.1. HARDWARE-IN-LOOP

To ensure the effectiveness of the simulation, we built a hardware-in-the-loop simulation platform. The system framework of the hardware-in-the-loop simulation platform based on IPGXpack4, Chassis controller and Autonomous Driving Unit is shown in Figure 5. Among them, virtual test scenes, simulated vehicle models and sensor models are built and configured in TruckMaker and interact with peripherals (including radar, positioning and video signals) through IPGXpack4 (RoadBox). An autonomous Driving Unit is used to carry out the automatic driving tracking control. The acceleration/deceleration and steering control requirements are transmitted to the Chassis controller through the CAN protocol as the control output. Finally, the control demand outputs drive/brake and steering control commands through the Chassis controller and interacts with Xpack4 through CAN to realise the closed-loop control of the virtual actuator.
The basic parameters of the vehicle model are in Table 2.

4.2. Simulation Results

The reference path is generated for validation and evaluation according to the real GPS data. The target tracking speed is set to 60 km/h, and the constraints of yaw rate and the comfortable acceleration are set to 10 deg/s and 0.2 g, respectively.
In the path tracking control with the target tracking speed set to 60 km/h, the reference trajectory results of the PID controller and the MPC controller are shown in Figure 6a,b, respectively. The lateral and heading errors are shown in Figure 7a,b, respectively. The simulation results show that, at a tracking speed of 60 km/h, both PID control and MPC control meet the requirements of lateral tracking accuracy. The two controllers’ lateral and heading errors are within 15 cm and 6 deg, respectively. Thus, compared with the lateral tracking of PID Control, the MPC exhibits better performance. The simulation result of tracking the target speed is shown in Figure 6b. Since a single PID controller can only achieve tracking control of a single target, the PID controller only carries closed-loop control based on the lateral position error feedback without interfering with the vehicle’s Longitudinal control. The longitudinal speed of the vehicle always maintains 60 km/h. The tracking control based on MPC controller involves multiple constraint processing and multiple target tracking. In constraint processing, the target speed as a soft constraint can deviate from a particular value at the expense of slack penalty terms to ensure better vehicle stability during path tracking. As shown in Figure 6b, at 28 s, when the vehicle is travelling close to a large curvature curve, if the vehicle is turned at a speed of 60 km/h, the stability and driving safety of the vehicle cannot be guaranteed. In the design of the MPC controller, the yaw rate and lateral acceleration are unbreakable hard constraints on vehicle dynamics. When optimising the objective function in the feasible region, the optimal objective function will be solved at the expense of speed tracking accuracy. When the curvature decreases (after the turn is completed), the longitudinal target speed of the vehicle will be tracked again under the premise of ensuring the accuracy of lateral tracking. Therefore, the tracking control based on MPC is a multi-target coordinated control of the vehicle.
The comparison of the longitudinal and lateral acceleration during the path tracking of the autonomous vehicle is shown in Figure 8. As shown in Figure 8a, the longitudinal acceleration of the vehicle is always 0 in PID control, because only a single lateral tracking target is controlled in the path tracking. The lateral acceleration of PID control is shown by the black line in Figure 8b. The red line shows the longitudinal acceleration control based on the MPC in Figure 8a. To ensure that the vehicle can track stably, comfortably and safely, the path tracking of an autonomous vehicle under the MPC needs to combine the curvature of the reference trajectory and the vehicle stability constraints to control the longitudinal speed of the vehicle accordingly. Compared with the PID-based control, the average lateral acceleration of MPC drops from −0.0606 to −0.0376, the maximum acceleration fell from 0.4549 to 0.22 and the standard deviation decrease from 0.1194 to 0.0682.
The comparison of yaw rate and front tire slip angle under PID and MPC tracking control are shown in Figure 9. Compared with MPC controller, PID controller with direct error feedback only carries out closed-loop control for a single target, which leads to a larger maximum and average front wheel slip angle. The maximum, average and standard deviation of the front wheel slip angle under PID control are 2.0653, 0.2494 and 0.5210, respectively. The maximum, average and standard deviation of the front wheel slip angle under MPC control are 0.9895, 0.1480 and 0.2921, respectively. The sideslip under PID control will expand as the curvature of the path to be tracked increases, eventually increasing the vehicle’s risk of sideslip and instability.
The single control step in the controller is distributed in 3–5 ms, which meets the demand of the control response.

5. Conclusions

To improve the measurement accuracy of the vehicle state in the tracking control, based on the extended Kalman filter theory, we integrated the vehicle GPS and IMU information and designed a vehicle state estimator with three inputs, six states and four outputs. To meet the requirements of multi-target tracking control in the longitudinal and lateral directions of autonomous vehicles, based on the 3DOF vehicle dynamics model and the curvilinear road coordinate system, we carried out dimensionality reduction on the longitudinal and lateral errors in the path tracking. To realise the online application of predictive control algorithm, based on the convex optimisation and the online active set theory with an open source QP solver, we designed and implemented a fast-rolling optimisation algorithm for longitudinal and lateral tracking control of autonomous vehicles and completed the verification of the algorithm and tracking performance in the reconstructed curve road scene based on real GPS data. The hardware-in-the-loop simulation results show that the proposed control can meet the tracking control need of autonomous driving. Compared with the PID-based controller, the proposed MPC controller has apparent advantages in lateral errors, lateral acceleration and front tire slip angle.
In the next step, we will further apply the proposed algorithm on other autonomous vehicles with specific driving environment. Moreover, the proposed strategy will be tested with a specific vehicle controller where the computing resources are limited. In this case, it is demanding to find a cost-efficient solver to trade off the optimization performance and the computing complexity.

Author Contributions

Conceptualization, H.H.; methodology, W.F. and B.L.; software, B.L.; validation, W.F. and B.L.; formal analysis, W.F.; investigation, W.F.; writing—original draft preparation, W.F.; writing—review and editing, B.L.; supervision, H.H.; project administration, H.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank the reviewers for their comments and suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

A. ABBREVIATIONS
IMUInertial measurement unit.
GPSGlobal positioning system.
QPQuadratic program.
PIDProportional integral derivative.
MPCModel predictive control.
DOFDegrees of freedom.
EKFextended Kalman Filter.
PFPotential field.
B. SYMBOLS
m , δ Mass and steering angle of the front tire.
F c , x , F c , y Longitudinal and lateral equivalent forces.
I Identity matrix.
M c , z Torque of the centroid position.
F x Longitudinal force of the front-driving tire.
w i Error of each state variable.
v i   Observation variable error.
  Λ Corresponding work set.
f d Discrete form of the state function.
K g Coefficient of Kalman gain.
T s sampling period.
Y ref Reference variables.
  Γ Feasible parameter space.
d TrgL Lateral distance of ego vehicle.
U Vectors of control.
θ r Heading angle of the target point in the reference path.
b shaping parameter.
C d Output matrix.
τ Step length along the homotopy of parameter.
I ˜ Non-working set in the feasible set.
R , T Covariance matrices of the measure and model systems.
M Index of the inequality constraints.
s , d Longitudinal and lateral coordinates in a road coordinate system.
Λ ˜ Linear homotopies of the working set.
y t + k , t Real-time position of the ego vehicle.
r s , θ r Coordinate of target point.
F y , f , F y , r Lateral force of front, lateral force of rear tires.
χ Y t , χ v x t , χ θ t Lateral position, speed and heading angle errors.
A ^ d , B ^ d Augmented matrices of the prediction formulation.
a Shaping parameter.
x s , l Current position of the ego vehicle.
A d , B d Discrete matrices of the state-equation.
y t + k , t d e s Reference path.
w t Parameter vector in sampling instant.
X , Y , φ Longitudinal position, lateral position and the yaw angle in the global Cartesian coordinate system.
v x , v y , ω Longitudinal velocity, lateral velocity and yaw rate.
d Bl , d Br Lateral positions of the left and right road boundaries.
V x , V y Longitudinal and lateral velocities in the global cartesian coordinate system.
x ˜ * ,   λ ˜ * Linear homotopies of the primal and dual optimal solution.
L f , L r , I z Front wheelbases, rear wheelbases and the vehicle inertia around the vertical axis.
w 0     ˜ , g   ˜ ,   b   ˜ Update of the parameter, gradient and the boundary of the constraints.

References

  1. Anastasiadou, K.; Gavanas, N.; Pitsiava-Latinopoulou, M.; Bekiaris, E. Infrastructure Planning for Autonomous Electric Vehicles, Integrating Safety and Sustainability Aspects: A Multi-Criteria Analysis Approach. Energies 2021, 14, 5269. [Google Scholar] [CrossRef]
  2. Tostado-Véliz, M.; León-Japa, R.S.; Jurado, F. Optimal electrification of off-grid smart homes considering flexible demand and vehicle-to-home capabilities. Appl. Energy 2021, 298, 117184. [Google Scholar] [CrossRef]
  3. Hoffmann, G.M.; Tomlin, C.J.; Montemerlo, M.; Thrun, S. Autonomous Automobile Trajectory Tracking for Off Road Driving: Controller Design, Experimental Validation and Racing. In Proceedings of the 2007 American Control Conference, New York, NY, USA, 9–13 July 2007; pp. 2296–2301. [Google Scholar]
  4. Hayakawa, Y.; White, R.; Kimura, T.; Naito, G. Driver compatible steering system for wide speed range path following. IEEE/ASME Trans. Mechatron. 2004, 9, 544–552. [Google Scholar] [CrossRef]
  5. Netto, M.; Blosseville, J.; Lusetti, B.; Mammar, S. A new robust control system with optimized use of the lane detection data for vehicle full lateral control under strong curvatures. In Proceedings of the 2006 IEEE Intelligent Transportation Systems Conference, Toronto, ON, Canada, 17–20 September 2006; pp. 1382–1387. [Google Scholar]
  6. Zhang, W. The energy saving simulation of suspension robot path tracking based on improved PID control. Mach. Des. Manuf. Eng. 2019, 48, 29–32. [Google Scholar]
  7. Lee, H.; Tomizuka, M. Coordinated Longitudinal and Lateral Motion Control of Vehicles for IVHS. J. Dyn. Syst. 2001, 123, 535. [Google Scholar] [CrossRef]
  8. Brown, M.; Funke, J.; Erlien, S.; Gerdes, J.C. Safe driving envelopes for path tracking in autonomous vehicles ScienceDirect. Control Eng. Pract. 2017, 61, 307–316. [Google Scholar] [CrossRef]
  9. Kumarawadu, S.; Lee, T.T. Neuroadaptive Combined Lateral and Longitudinal Control of Highway Vehicles Using RBF Networks. IEEE Trans. Intell. Transp. Syst. 2006, 7, 500–512. [Google Scholar] [CrossRef]
  10. Zhao, X.; Chen, H. A Study on Lateral Control Method for the Path Tracking of Intelligent Vehicles. Automot. Eng. 2011, 33, 18–23. [Google Scholar]
  11. Hu, C.; Jing, H.; Wang, R.; Yan, F.; Chadli, M. Robust H∞ output-feedback control for path following of autonomous ground vehicles. Mech. Syst. Signal Process. 2015, 70, 414–427. [Google Scholar]
  12. Pan, S.; Changfu, Z.; Masayoshi, T. Combined Longitudinal and Lateral Control for Automated Lane Guidance of Full Drive by Wire Vehicles. SAE Int. J. Passeng. Cars Electron. Electr. Syst. 2015, 8, 477–485. [Google Scholar]
  13. Guo, H.; Cao, D.; Chen, H.; Sun, Z.; Hu, Y. Model predictive path following control for autonomous cars considering a measurable disturbance: Implementation, testing, and verification. Mech. Syst. Signal Process. 2019, 118, 41–60. [Google Scholar] [CrossRef]
  14. Du, X.; Htet, K.K.K.; Tan, K.K. Development of a Genetic-Algorithm-Based Nonlinear Model Predictive Control Scheme on Velocity and Steering of Autonomous Vehicles. IEEE Trans. Ind. Electron. 2016, 63, 6970–6977. [Google Scholar] [CrossRef]
  15. Li, S.E.; Jia, Z.; Li, K.; Cheng, B. Fast Online Computation of a Model Predictive Controller and Its Application to Fuel Economy–Oriented Adaptive Cruise Control. IEEE Trans. Intell. Transp. Syst. 2015, 16, 1199–1209. [Google Scholar] [CrossRef]
  16. Sun, J. Research on Tracking Control Algorithm of Unmanned Vehicle Based on Model Predictive Control (in Chinese). Master’s Thesis, Beijing Institute of Technology, Beijing, China, 2015. [Google Scholar]
  17. Wang, H. Research on Intelligent Vehicle Motion Control Based on Integrated Longitudinal and Lateral Control (in Chinese). Master’s Thesis, Nanjing University of Aeronautics and Astronautics, Nanjing, China, 2016. [Google Scholar]
  18. Zhang, L.; Wu, G.; Guo, X. Path Tracking Using Linear Time-varying Model Predictive Control for Autonomous Vehicle. J. Tongji Univ. Nat. Sci. 2016, 44, 1595–1603. [Google Scholar]
  19. Chen, S.; Chen, H.; Dan, N. Implementation of MPC-Based Path Tracking for Autonomous Vehicles Considering Three Vehicle Dynamics Models with Different Fidelities. Automot. Innov. 2020, 3, 386–399. [Google Scholar] [CrossRef]
  20. Zhao, N.N.; De-Min, X.U.; Gao, J.; Zhang, Q.N. Formation Path Following Control of Multiple AUVs Based on Serret-Frenet Coordinate System. Torpedo Technol. 2015, 23, 35–39. [Google Scholar]
  21. Ferreau, H.J.; Kirches, C.; Potschka, A.; Bock, H.G.; Diehl, M. QpOASES: A parametric active-set algorithm for quadratic programming. Math. Program. Comput. 2014, 6, 327–363. [Google Scholar] [CrossRef]
  22. Forsgren, A.; Gill, P.E.; Wong, E. Technical Report: Active-set methods for convex quadratic programming. Mathematics 2015. Available online: http://www.optimization-online.org/DB_FILE/2015/03/4848.pdf (accessed on 1 October 2021).
  23. Goldfarb, D.; Liu, S. An O(n3L) primal interior point algorithm for convex quadratic programming. Math. Program. 1990, 49, 325–340. [Google Scholar] [CrossRef]
  24. Axehill, D.; Hansson, A. A dual gradient projection quadratic programming algorithm tailored for model predictive control. In Proceedings of the IEEE Conference on Decision & Control, Cancun, Mexico, 9–11 December 2008. [Google Scholar]
  25. Arioli, M.; Baldini, L. A Backward Error Analysis of a Null Space Algorithm in Sparse Quadratic Programming. Siam J. Matrix Anal. Appl. 2002, 23, 425–442. [Google Scholar] [CrossRef]
  26. Lu, B.; Li, G.; Yu, H.; Wang, H.; Guo, J.; Cao, D.; He, H. Adaptive Potential Field Based Path Planning for Complex Autonomous Driving Scenarios. IEEE Access 2020, 8, 225294–225305. [Google Scholar] [CrossRef]
  27. Lu, B.; He, H.; Yu, H.; Wang, H.; Li, G.; Shi, M.; Cao, D. Hybrid Path Planning Combining Potential Field with Sigmoid Curve for Autonomous Driving. Sensors 2020, 20, 7197. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The 3DOF vehicle dynamics model.
Figure 1. The 3DOF vehicle dynamics model.
Applsci 11 09259 g001
Figure 2. Geometric description of the reference road.
Figure 2. Geometric description of the reference road.
Applsci 11 09259 g002
Figure 3. Path generation based on the comprehensive road potential field.
Figure 3. Path generation based on the comprehensive road potential field.
Applsci 11 09259 g003
Figure 4. Lateral error description in Frenet coordinate system.
Figure 4. Lateral error description in Frenet coordinate system.
Applsci 11 09259 g004
Figure 5. Hardware-in-the-loop simulation platform.
Figure 5. Hardware-in-the-loop simulation platform.
Applsci 11 09259 g005
Figure 6. Path tracking results of two controllers, PID−based and MPC-based: (a) The path tracking of two controllers; (b)The tracking velocity based on MPC. Figure 7 The lateral errors and heading angle errors comparison of two controllers, PID and MPC: (a) The lateral errors of two controllers; (b) The heading angle errors of two controllers.
Figure 6. Path tracking results of two controllers, PID−based and MPC-based: (a) The path tracking of two controllers; (b)The tracking velocity based on MPC. Figure 7 The lateral errors and heading angle errors comparison of two controllers, PID and MPC: (a) The lateral errors of two controllers; (b) The heading angle errors of two controllers.
Applsci 11 09259 g006
Figure 7. The lateral errors and heading angle errors comparison of two controllers, PID and MPC: (a) The lateral errors of two controllers; (b) The heading angle errors of two controllers.
Figure 7. The lateral errors and heading angle errors comparison of two controllers, PID and MPC: (a) The lateral errors of two controllers; (b) The heading angle errors of two controllers.
Applsci 11 09259 g007
Figure 8. Acceleration comparison of two controllers, PID and MPC: (a) Longitudinal acceleration of two controllers; (b)Lateral acceleration of two controllers.
Figure 8. Acceleration comparison of two controllers, PID and MPC: (a) Longitudinal acceleration of two controllers; (b)Lateral acceleration of two controllers.
Applsci 11 09259 g008aApplsci 11 09259 g008b
Figure 9. Front tire slip angle comparison of PID and MPC controller.
Figure 9. Front tire slip angle comparison of PID and MPC controller.
Applsci 11 09259 g009
Table 1. The flow of EKF estimation.
Table 1. The flow of EKF estimation.
  State estimation u , v , r
1:Input:
2: current   input   u ( k )   and   current   observations   z k ;
3: calculate the optimal estimation of the last moment:
x ( k 1 | k 1 ) ;
4: calculate the error covariance matrix:
P k 1 | k 1 ;
5: set   the   model   and   measure   system   noise   Q   and   R .
6:State Estimation:
7: estimate the states from the model:
x ( k | k 1 ) = f d = ( x ( k 1 | k 1 ) ,   u k 1 ) ;
8: estimate the states from the measurement:
z ( k | k 1 ) = h ( x ( k | k 1 ) ,   u k 1 ) ;
9: estimate the error covariance matrix:
P ( k | k 1 ) = A k P ( k 1 | k 1 ) ,   A k T + T s 2 Q ;
10:Updates:
11: update the Kalman Gain:
K g k = P ( k | k 1 )   C T k   ( C k P ( k | k 1 ) C T k + R ) 1 ;
12: calculate the current optimal estimation:
x ( k | k ) =   x ( k | k 1 ) +   K g k   ( z k z ( k | k 1 ) ) ;
13: updates the Error covariance matrix:
P ( k | k ) = I   K g k   C k P ( k | k 1 ) ;
14:Cycle 1–5 steps until the end.
Table 2. The basic parameters of the vehicle model.
Table 2. The basic parameters of the vehicle model.
ParametersValuesParametersValues
Traction coefficient0.85Front wheelbase1.421 [m]
Front tire lateral stiffness−1037 [N/deg]Rear wheelbase1.434 [m]
Rear tire lateral stiffness−1105 [N/deg]Equivalent torsional inertia4600 [kg·m2]
Vehicle mass2270 [kg]Frontal area2.8 [m2]
Gravity acceleration9.8 [m/s2]Coefficient of Drag 0.28
For the parameters configuration of the MPC controller, the reader can refer to [26,27].
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Fan, W.; He, H.; Lu, B. Online Active Set-Based Longitudinal and Lateral Model Predictive Tracking Control of Electric Autonomous Driving. Appl. Sci. 2021, 11, 9259. https://0-doi-org.brum.beds.ac.uk/10.3390/app11199259

AMA Style

Fan W, He H, Lu B. Online Active Set-Based Longitudinal and Lateral Model Predictive Tracking Control of Electric Autonomous Driving. Applied Sciences. 2021; 11(19):9259. https://0-doi-org.brum.beds.ac.uk/10.3390/app11199259

Chicago/Turabian Style

Fan, Wenhui, Hongwen He, and Bing Lu. 2021. "Online Active Set-Based Longitudinal and Lateral Model Predictive Tracking Control of Electric Autonomous Driving" Applied Sciences 11, no. 19: 9259. https://0-doi-org.brum.beds.ac.uk/10.3390/app11199259

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop