Next Article in Journal
Evaluation of Indoor Thermal Comfort Conditions of Residential Traditional and Modern Buildings in a Warm-Humid Climate
Next Article in Special Issue
Car-Following Model Optimization and Simulation Based on Cooperative Adaptive Cruise Control
Previous Article in Journal
Using 137Cs and 210Pbex to Investigate the Soil Erosion Moduli of the Sandy Area of Typical Grasslands in Northern China
Previous Article in Special Issue
Analysis of the Characteristics of Real-World Emission Factors and VSP Distributions—A Case Study in Beijing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Automatic Driving Trajectory Planning and Tracking Control Based on Improvement of the Artificial Potential Field Method

College of Transportation Engineering, Nanjing Tech University, Nanjing 211816, China
*
Authors to whom correspondence should be addressed.
Sustainability 2022, 14(19), 12131; https://doi.org/10.3390/su141912131
Submission received: 3 August 2022 / Revised: 20 September 2022 / Accepted: 21 September 2022 / Published: 25 September 2022
(This article belongs to the Special Issue Sustainable Road Transport System Planning and Optimization)

Abstract

:
With the continuous increase in motor vehicle ownership in recent times, traditional transportation has been unable to meet people’s travel needs. Research on autonomous driving technology will help solve a series of problems associated with driving, such as traffic accidents, traffic congestion, energy consumption, and environmental pollution. In this paper, an improved artificial potential field method is proposed to complete the planning of automatic driving trajectories by adding the distance adjustment factor, dynamic road repulsive field, velocity repulsive field, and acceleration repulsive field. The invasive weed algorithm is introduced to solve the defects associated with the traditional artificial potential field method. The prediction model—for which corresponding constraint variables were set and an optimal objective function was established to build up the MPC model controller to achieve the goal of trajectory tracking—was linearized and discretized from a vehicle dynamics model. Finally, co-simulation based on MATLAB and CarSim was used to verify the practicability of the model.

1. Introduction

At present, with the rapid development of computer technology and communication technology, it is no longer merely a dream that automatic driving technology will replace heavy driving tasks, which is gradually becoming a reality. The development of autonomous driving involves the gradual withdrawal of driver operations [1]. The Internet of Things and intelligent technology have been gradually applied in vehicles, enabling the creation of cars that have their own systems for thinking, and the “perception–decision–execution” actions originally completed by drivers are being gradually replaced by vehicles [2]. Autonomous driving is a highly complex product integrating many advanced technologies, such as environmental perception, decision planning, and following control [3]. Among these, trajectory planning is the basis of automatic driving, and trajectory tracking is the key technology of automatic driving. Reasonable trajectory planning and accurate trajectory tracking can ensure road safety and help to avoid traffic accidents, maintain passenger comfort and reduce traffic congestion. At present, Tesla’s autonomous driving cars utilize ADAS (Advanced Driver Assistance System), which uses a number of technologies in the field of computer vision and machine learning, such as simultaneous localization and mapping (SLAM) and recurrent neural network (RNN) [4].
In the research field of autonomous vehicle trajectory planning, the existing research results can be roughly divided into artificial potential field (APF) methods, graph search-based trajectory planning algorithms, sampling-based trajectory planning algorithms, and bionic intelligent algorithms [5]. In the traditional artificial potential field method, all information about the environment is mainly expressed as geometric dimensions, with the corresponding gravitational and repulsive potential field values formed around obstacles in building a topological structure of the actual environment of vehicle driving. Tang Zhirong et al. [6] elliptically processed the distance in the traditional repulsive potential field to improve the obstacle avoidance function and allow the planned trajectory to meet the multi-constraint conditions of vehicle driving. An Linfang et al. [7] proposed a new obstacle point construction method to solve the local minimum problem. Xiu Caijing et al. [8] improved the smoothness of planning trajectory by integrating vehicle constraints with objective function. However, this method could only solve the problem of vehicle trajectory planning in a static environment and did not consider trajectory planning in dynamic environments, so it was difficult to apply it to automatic driving. The algorithm has a simple principle and positive real-time performance, but it is easy to fall into the problem of local optimal solution and unreachable targets in application, and constraints such as vehicle dynamics are lacking. Parameter setting is shown to affect the robustness of the algorithm [9]. Taheri E et al. [10] improved the rapidly random tree (RRT) algorithm and proposed a fuzzy greedy search mechanism to improve the calculation efficiency of the algorithm by deleting redundant nodes. Yusheng Ci et al. [11] proposed a new approach to solve coordinated control and demonstrated the selectivity of coordinated control. Boroujeni Z et al. [12] improved the A* algorithm to the Fu-A* algorithm, which adapted the grid size to the speed, and the grid size changes with the speed value to improve the smoothness of the planned trajectory. Yang D C et al. [13] divided trajectory planning into multi-segment planning, sorted the multi-segment planning using an ant colony algorithm, and then carried out the trajectory planning with the improved probability map method. Lei W et al. [14] combined the principle of artificial potential field method with a genetic algorithm, used the artificial potential field method to initialize and solve the population, and added adaptive factors into the objective function to improve the iteration efficiency of the genetic algorithm. Song X et al. [15] improved the intelligent water drop algorithm via the selection strategy, which improved the heuristics of searching and enhanced the algorithm applicability. Xiaoning Wang et al. [16] proposed a method to provide correction speed guidance to reduce the negative effects of bounded rationality.Jianhua L et al. [17] integrated an ant colony algorithm and artificial potential field method, which were used for global and local planning, respectively, and the resulting improved algorithm had a higher convergence efficiency. Liu Y et al. [18] combined the artificial potential field method and moved the collusion-prone sampling points to the collusion-free region through the compound force field, thus improving the feasibility of the algorithm.
Trajectory tracking control is a key technology of autonomous vehicles that is mainly achieved through active wheel steering or differential braking [19]. Relevant scholars have studied the path tracking problem of autonomous vehicles through proportion integration differentiation (PID) control [20], linear active disturbance rejection control [21], pure track model, fuzzy adaptive control [22], model predictive control [23,24], etc., but because differential braking affects the longitudinal motion of the vehicle and given the complexity and uncertainty of the subsequent high-speed vehicle path, achieving front wheel active steering with real-time path tracking currently faces technical difficulties related to the complex working conditions involved. The use of the model predictive control method can improve control performance by optimizing the objective function and taking the vehicle kinematics and dynamic constraints into account. Zhou L H et al. [25] added a linear quadratic regulator (LQR) method to model predictive control to ensure tracking yaw stability. Lina Wu et al. [26,27] proposed a new approach for on-ramp metering and speed guidance control on urban expressways based on MPC and connected vehicles (CV). Wang H et al. [28] proposed a path tracking method for model predictive control on account of a variable predictive view and realized the adaptive optimization of predictive view. To reduce the error in track tracking, Morales S et al. [29] established omnidirectional configuration to realize track tracking and integrated a multi-level control method into a linear quadratic regulator track tracking controller. Chen, J. et al. [30] proposed the linear time varying model predictive control (LTV-MPC) method in the study of trajectory tracking control methods and analyzed the influence of selected control parameters on the algorithm processing speed from multiple directions. Lina Wu et al. [31] proposed a judgment criterion and classification method of supersaturation state relied on intersection spacing, traffic demand and intersection capacity. Pan, L.B. et al. [32] divided the problem of path tracking into two parts: vehicle steering following and speed following control. Zhang, H. et al. [33] improved the regulator by iterating the running process of the iterative linear quadratic regulator (ILQR) several times and applied the method to trajectory tracking control in the field of robots. Therefore, it can be inferred that the fundamental purpose of driverless vehicle path tracking is to eliminate the path deviation between the actual route and the expected route during the process of autonomous driving [34]. The current mainstream trajectory tracking control methods include pure tracking control [35], linear quadratic regulator controller [36], and model predictive control.
In view of this, the traditional artificial potential field method is improved in this paper by adding the distance adjustment factor, which can solve the problem of unreachable targets. The invasive weed method was introduced to improve solving of the local minimum problem. Aiming at the relative velocity and acceleration of obstacles in a dynamic environment, the dynamic road repulsive potential field based on velocity variation was established, and environment modeling was carried out to ensure the practicability and accuracy of trajectory planning in dynamic environments. This was then modeled by using the improved artificial potential field method to draw the right track, a simplified vehicle dynamic model and the tire model derived from the “magic formula” through the linearization and discretization of the model, with the linear and discrete dynamic model as the prediction model, and the corresponding constraint variables were set by constructing the optimal objective function for the model predictive control of path tracking. At last, co-simulation was carried out using MATLAB (2016b, MathWorks, Torrance, CA, USA) and CarSim (2016, MSC, Ann Arbor, MI, USA). The experimental results show the high tracking accuracy of the controller under different road adhesion coefficients and vehicle speeds, and all parameters change within a reasonable range, reflecting perfect driving stability. As a result of this research, we present an improved scientific planning algorithm for use in unmanned vehicle trajectory planning and trajectory tracking.

2. Trajectory Planning Algorithm Based on Improvement of the Artificial Potential Field Method

2.1. Traditional Artificial Potential Field Method

2.1.1. Gravitational Field

The gravitational field function of the traditional artificial potential field method is:
U a t t = 1 2 k a t t ( X X g ) 2
where:
  • U a t t is the gravitational potential field at the target point;
  • k a t t is the gain coefficient of the gravitational potential field, which is positive real number;
  • X is the position vector of autonomous vehicle;
  • X g is the target position vector of the autonomous vehicle.
The negative gradient of the gravitational potential field is obtained as follows:
F a t t = g r a d ( U a t t ) = k ( X g X )

2.1.2. Repulsive Force Field

The specific potential field function expression of the repulsive potential field is:
U r e p = { 1 2 k r e p ( 1 p 1 p 0 ) 2 , p p 0 0 , p > p 0
where:
  • U r e p is the repulsive force field of the obstacle vehicle;
  • k r e p is the gain coefficient of the repulsive potential field, and is a positive real number;
  • p is the shortest distance in space between the car and the obstacle vehicle;
  • p 0 is the maximum range of impact that an obstacle vehicle can have.
When the vehicle is within the maximum influence range, Formula (3) will be used for calculation; if it is outside the maximum influence range, the repulsive force field will be zero, and the negative gradient of the repulsive force potential field will be obtained. The potential field diagram is illustrated in Figure 1.
F r e p = { k r e p ( 1 p 1 p 0 ) 1 p 2 p X , p p 0 0   , p > p 0

2.2. Improved Artificial Potential Field Method

2.2.1. Improved Repulsive Potential Field

The main function of road repulsion potential field is to ensure that autonomous vehicles can drive in the middle of the road, so the road repulsion field can be expressed by some mathematical formulas. Regarding the characteristics of a two-lane highway, the shape is very similar to a traditional abacus, while the car is similar to the beads on the abacus and can only move in the area specified by the abacus. Therefore, a rectangular coordinate system can be established in the lane to divide the road into n equal parts. When the car is driving, it is regarded as a particle. The distance between the vehicle and the road boundary on both sides and the coordinates of the vehicle itself can be obtained through calculation. The schematic diagram of road boundary repulsion is shown in Figure 2.
In order to solve the unreachable target problem of the artificial potential field method, this paper proposes an improved repulsive potential field function by adding a distance adjustment factor on the basis of the original repulsive potential field function, where the repulsive force on the vehicle at the target point can be minimized. The improved repulsive potential field function is:
U r e p = { 1 2 k r e p ( 1 p 1 p 0 ) 2 [ 1 e ( x x g ) 2 + ( y y g ) 2 R 2 ] , p p 0 0 , p > p 0
where:
  • [ x , y ] is the real-time coordinate point of autonomous driving vehicle;
  • [ x g , y g ] is the coordinates of the target point;
  • R is the radius of the autonomous driving vehicle.
The repulsive force of the potential field can be obtained:
U r e p ( x ) = k r e p ( x x g ) ( 1 p 1 p 0 ) 2 e ( x x g ) 2 + ( y y g ) 2 R 2 + k r e p ( 1 p 1 p 0 ) [ 1 e ( x x g ) 2 + ( y y g ) 2 R 2 ] x x 0 p 3
U r e p ( y ) = k r e p ( y y g ) ( 1 p 1 p 0 ) 2 e ( x x g ) 2 + ( y y g ) 2 R 2 + k r e p ( 1 p 1 p 0 ) [ 1 e ( x x g ) 2 + ( y y g ) 2 R 2 ] y y 0 p 3
| F r e p | = U r e p ( x ) 2 + U r e p ( y ) 2
According to Formulas (6) and (8), the repulsive potential field will change only when it is close to the target point. However, the search efficiency of the algorithm is reduced in the improved method. Therefore, this paper improves the repulsion, that is, adding the distance regulatory factor on the basis of the original repulsion. The repulsion force formula is as follows:
| F r e p | = { k r e p p 2 ( 1 p 1 p 0 ) [ 1 e ( x x g ) 2 + ( y y g ) 2 R 2 ] , p p 0 0 , p > p 0
The formula (9) not only improves the repulsive potential field to ensure that the repulsion force of the vehicle tends to zero at the target point but also considers the body radius of the autonomous vehicle, which makes the trajectory more secure and reliable.
The improved gravitational potential field and repulsive potential field are shown in Figure 3.
After the improvement of the potential field function, the value of the potential field is 0 only when the vehicle travels to the target point, which solves the problem that the target of the traditional potential field function is unreachable, and the extreme value of the improved repulsive field is removed to avoid the situation of excessive repulsive force.

2.2.2. Establish Velocity Repulsion Field and Acceleration Repulsion Field

This paper proposes to establish the velocity repulsion potential field and acceleration repulsion potential field relying on obstacles and construct the dynamic traffic environment information in line with the actual movement, so as to ensure that the vehicle can meet the trajectory planning in both static and dynamic scenes. The expressions of velocity repulsion field and acceleration repulsion field are as follows:
U r e p ( v ) = { 1 2 k v ( v v 0 ) 2 , p p 0 0   , p > p 0
F r e p ( v ) = { k v ( v v 0 ) , p p 0 0   , p > p 0
a = 1 m ( F a t t c F r e p c )
where:
  • k v is the gain coefficient of velocity repulsion field;
  • v is the controlled vehicle speed;
  • v 0 is the velocity of the obstacle;
  • F a t t c is gravitational velocity component;
  • F r e p c is the repulsive velocity component;
  • m is the quality of the car.
The stress diagram of the vehicle is shown in Figure 4.
It can be seen from Figure 4 that under the joint action of all resultant force potential fields, the force expression equation of the vehicle is:
U t o t a l = i = 1 n U r e p + U a t t + U r o a d + U r e p ( v )
F t o t a l = i = 1 n F r e p + F a t t + F r o a d + F r e p ( v )

2.3. Trajectory Planning Analysis of Invasive Weed Algorithm

In this paper, the invasive weed algorithm is proposed to solve the local optimal problem. The invasive weed algorithm has the advantages of strong guidance and fast convergence. The fusion of the improved artificial potential field algorithm with the invasive weed algorithm can not only effectively improve the search efficiency of the algorithm but also solve the problem of the autonomous vehicle falling into the local optimal solution.
Before the fusion of both algorithms, the following need to be clear:
  • It is necessary to determine whether the car has reached the target point;
  • It is necessary to determine whether the vehicle has fallen into the local optimal solution trap at the current moment;
  • Repulsion force is redistributed by selecting the optimal subdestination;
  • It is necessary to determine whether the local optimal solution trap has been avoided at the current moment.
In order to detect whether the autonomous driving vehicle has fallen into the local optimal solution, the following principle is set in this paper, that is, when the vehicle moves within ten consecutive steps in a two-dimensional plane, as well as the change values of abscissa and ordinate are less than three times the step length, the vehicle is judged to have fallen into the local optimal trap. According to the criterion that the farther away from the local minimum point and the closer to the destination within a unit step length, the optimal subdestination for escape is selected. Its principle can be expressed by Formula (15):
Ω = ( X 1 , X 2 , X 3 , X 4 )
where:
  • X 1 is the destination;
  • X 2 is the optimal sub-destination;
  • X 3 is the local optimal solution point;
  • X 4 is the initial position after escaping the local optimal solution.
The covariance value of relative position coordinates is minimized as the iterative principle, and when the value of Ω is the smallest, the corresponding X 2 is the solution. The trajectory planning steps after the integration of the improved of artificial potential field method and the invasive weed algorithm are as follows:
Step 1. Initialize the parameter values of the system;
Step 2. Vehicle trajectory planning is carried out according to the improved artificial potential field method;
Step 3. Determine whether the vehicle has reached the target point. If so, it ends. Go to step 8;
Step 4. Judge whether the vehicle falls into the local optimal solution. If so, proceed to the next step. If not, go to Step 2;
Step 5. The invasive weed method is called upon to generate the optimal subdestination;
Step 6. The repulsion field is redistributed for trajectory planning;
Step 7. Determine whether to escape the trap of local optimal solution. If so, go to Step 2; if not, go to Step 5;
Step 8. Trajectory planning is complete and the algorithm ends.
The algorithm flow chart is shown in Figure 5.

2.4. Simulation Experiment of Improved Artificial Potential Field Method

In this paper, the trajectory planning simulation of the autonomous vehicle is carried out before and after the improvement of the artificial potential field method. First, a two-lane road is chosen as the test road. The total length is set as 100 m, the width of each lane is 3.5 m, the initial position of the autonomous vehicle is built for (0, −1.75), the target position is set up as (100, 2), and the speed is set to 10 m/s. In addition, two static obstacle vehicles and three dynamic obstacle vehicles are set in the simulation test to verify the accuracy of the improved artificial potential field method in static and dynamic environments. The static obstacle vehicle initial position is (10, 1.75) and (30, 1.5), the initial position of the dynamic obstacle vehicle is (45, 1.75), (60, −1.75), and (70, 1.75) with corresponding speeds of 3, 6, and 2 m/s, respectively. The simulation results are as follows:
In Figure 6a, the autonomous vehicle starts from the initial position at a constant speed and smoothly surpasses static obstacle vehicle 1 under the action of the compound potential field, thus completing obstacle avoidance. Moreover, under the action of the static obstacle vehicle 2, the direction is gradually converted in preparation for the next lane change. In Figure 6b, the autonomous vehicle alters lanes in advance under the combined force and successfully avoids the obstacle vehicle 2 to overtake from the same lane. The simulation results adequately demonstrate the ability of the autonomous vehicle to avoid obstacles and change lanes to overtake vehicles in a static environment, which reflects the accuracy of the algorithm.
When the vehicle has traveled a certain distance, as seen in Figure 6c, the autonomous vehicle system detects the location information of dynamic obstacle vehicles in the road. Then, lane changing and overtaking behavior are again completed under the combined action of the velocity repulsive force field and road repulsive boundary field. Lane changing differs from avoiding a static obstacle in that the algorithm calculation takes the velocity repulsive and acceleration repulsive fields into account. When the dynamic obstacle vehicle completes lane changing to overtake the dynamic obstacle vehicle, the planned trajectory in improved artificial potential field method is relatively smoother and more adequately satisfies the realistic driving requirements than that of the traditional method. In Figure 6d, driving of the autonomous vehicle is maintained to complete overtaking of the dynamic obstacle vehicle 2 until it reaches the target point and smoothly completes trajectory planning.
As shown in Figure 7, since the trajectory planned by the artificial potential field method before improvement does not have the effect of dynamic road repulsion field, trajectory deviation will occur at the initial position, which does not satisfy the actual driving requirements. In addition, when approaching the static obstacle vehicle 2, trajectory planning will fail or trajectory “regress” will occur due to the local optimal solution, and trajectory oscillation and swing will occur when approaching the target point. However, the unsatisfactory phenomenon of unreachable targets does not appear when using the improved artificial potential field method. Moreover, when the planned trajectory above falls into a local optimal solution, it will be replanned by invoking the invasive weed algorithm. As a result, the trajectory in the driving process is smooth and meets the driving requirements.
In summary, the improved artificial potential field method can not only solve the problems of target unreachable and local optimal solution but also facilitate conformation of the planned trajectory to the actual situation, which has a smoother and shorter length trajectory than that of the method prior to improvement. Hence, the improved artificial potential field method is recommended in this paper to obtain excellent practicability and calculation accuracy.

3. Vehicle Dynamics Model

3.1. Vehicle 3-DOF Dynamics Model

The principle of the vehicle dynamics model is to analyze the relationship between mechanical properties and relative motion of each object in the environment, so as to ensure stable control of the vehicle during trajectory tracking. In order to reduce the complex solving process of the algorithm and improve the efficiency of trajectory tracking, the following assumptions are made in the actual modeling process:
  • The driving condition of the environmental road surface is superior, the vehicle only undergoes planar two-dimensional movement parallel to the road surface;
  • The vehicle is rigid, and there is no consideration of the impact of the vehicle suspension system;
  • The vehicle turns with the front wheel, and the angle changes of the left and the right wheels remain the same;
  • The transverse and longitudinal coupling relationship of automobile tires is not considered;
  • The influence of aerodynamics is ignored;
  • The situation of vehicle load transfer is not considered;
  • Derived from the simplified model, the monorail model of the vehicle is established, and the stress analysis is shown in Figure 8.
where:
  • o x y z is the vehicle’s own coordinate system;
  • O X Y is the ground coordinate system;
  • Z -axial upward is the positive direction, and the judgment rule is the right-hand rule.
The equation can be obtained from the force analysis of the vehicle:
m x · = m y · φ ˙ · + 2 F x f + 2 F x r m y · = m x · φ · + 2 F y f + 2 F y r I z φ · · = 2 a F y f 2 b F y r
where:
F x f , r = F l f , r cos δ F c f , r sin δ f , r F y f , r = F l f , r sin δ + F c f , r cos δ f , r
where:
  • m is the vehicle quality;
  • a is the distance from the vehicle center of mass to the front axle;
  • b is the distance from the vehicle center of mass to the rear axle;
  • I z is the moment of inertia of the z-axis;
  • φ · is the yaw rate;
  • F x f , r is the X-axis component force of front and rear tires;
  • F y f , r is the y-axis component force of front and rear tires;
  • F l f , r is the longitudinal force of front and rear tires;
  • F c f , r is the lateral force of front and rear tires;
  • δ f , r is the front and rear wheel angle.
The longitudinal force and lateral force exerted by the tire of a controlled vehicle are expressed as a complex function composed of multiple parameters:
F l = f l ( α , s , μ , F z ) F c = f c ( α , s , μ , F z )
where:
  • F l is the positive force on the tire;
  • F c is the lateral force on the tire.
Due to the nonlinearity of the vehicle dynamics model based on three degrees of freedom, this model cannot be directly applied for trajectory tracking. Hence, we express the nonlinear system as a state space quantity:
ξ · d y n = f d y n ( ξ d y n , u d y n ) η d y n = h d y n ( ξ d y n ) ξ d y n = [ y · , x · , φ , φ · , Y , X ] T u d y n = δ f η d y n = [ φ , Y ] T
where:
  • ξ d y n is the state quantity of nonlinear system;
  • u d y n is the control quantity of nonlinear system;
  • η d y n is the output of the nonlinear system.

3.2. Tire Model

Considering that the stability of vehicle driving is closely related to the longitudinal force and lateral force on the tire, this paper selects the “magic formula” tire model, which can accurately describe the mechanical characteristics of the tire, so it is widely used in the field of vehicle dynamics [37]. The principle is to use trigonometric function combination to fit the curve of the actual data of the tire, and the mechanical relationship of the tire can be completely expressed using fewer formulas.
The general expression of the model is:
Y ( x ) = D sin { C arctan [ B x E ( B x arctan ( B x ) ) ] }
where:
  • Y is the output variable;
  • x is the input variable;
  • B is the stiffness factor;
  • C is curve shape factor;
  • D is the curve peak factor;
  • E is the curve curvature factor.
The longitudinal force of the tire is calculated as follows:
F l = D sin { C arctan [ B x E ( B x arctan ( B x ) ) ] } + S v x = s + S h B = ( B 3 F z 2 + B 4 F z ) e B 5 F z C × D C = B 0 D = B 1 F z 2 + B 2 F z E = B 6 F z 2 + B 7 F z + B 8 S h = B 9 F z + B 10
where:
  • S h is the drift in the horizontal direction;
  • S v is drift in the vertical direction.
The relationship between tire longitudinal force and sideslip angle can be obtained according to Formula (21), as shown in Figure 9.
The calculation formula of tire lateral force is:
F c = D sin { C arctan [ B x E ( B x arctan ( B x ) ) ] } + S v x = α + S h B = A 3 sin ( 2 arctan F z A 4 ) ( 1 A 5 | γ | ) C × D C = A 0 D = A 1 F z 2 + A 2 F z E = A 6 F z + A 7 S h = B 9 F z + B 10 S v = A 11 F z γ + A 12 F z + A 13
where:
  • α is the tire sideslip angle;
  • γ is the camber angle of the tire.
The relationship between the tire lateral force and sideslip angle is shown in Figure 10, and the values of various parameters are shown in Table 1.

3.3. Vehicle Model Simplification

The calculation for the nonlinear vehicle dynamics model is too complicated. To reduce the difficulty of data processing, the hypothesis of small angle is proposed, that is, every angle in the model becomes an ideal situation.
sin θ 0 , cos θ 1 , tan θ 0
The generation θ here refers to all angles involved in the model, including wheel angle, wheel sideslip angle and centroid sideslip angle, etc. Relying on the assumption of small angle, the tire sideslip angle can be calculated as:
α f = y · + a φ · x · δ f α r = y · b φ · x ·
Through force analysis of the tire, the lateral force of the tire can be obtained as follows:
F c f = C c f ( δ f y · + a φ · x · ) F c r = C c r y · b φ · x ·
The longitudinal force of the wheel is expressed as:
F l f = C l f S f F c r = C l r S r
The simplified nonlinear dynamics model of the vehicle can be expressed as follows:
m x · = m y · φ ˙ · + 2 [ C l f S f + C c f ( δ f y · + a φ · x · ) δ f + C l r S r ] m y · = m x · φ · + 2 [ C c f ( δ f y · + a φ · x · ) C c r y · b φ · x · ] I z φ · · = 2 [ a C c f ( δ f y · + a φ · x · ) + C c r y · b φ · x · ] X · = x · cos φ y · sin φ Y · = x · sin φ + y · cos φ ξ = [ y · , x · , φ , φ · , Y , X ] T u = δ f
where:
  • ξ is the system state quantity;
  • u is the system control quantity.

4. Trajectory Tracking Control Based on Model Predictive Control Algorithm

4.1. Model Predictive Control

4.1.1. Linear Time-Varying Prediction Model

The main principle of linear time-varying prediction model is model prediction, rolling optimization solution and error feedback correction for automatic driving trajectory tracking through linearized model. The following three aspects of the model will be introduced in succession:
  • Prediction model
The theory of matrix is introduced for more concise expression. The simplified form is as follows:
Y ( t ) = Ψ t ξ ( t | t ) + Θ t Δ U ( t )
Y ( t ) [ η ( t + 1 | t ) η ( t + 2 | t ) η ( t + N c | t ) η ( t + N p | t ) ] Ψ t = [ C ˜ t A t ˜ C ˜ t A ˜ t 2 C ˜ t A ˜ t 2 C ˜ t A ˜ t 2 ] Δ U ( t ) = [ Δ u ( t ) Δ u ( t + 1 | t ) Δ u ( t + N c | t ) ]
Θ t = [ C ˜ t B ˜ t 0 0 0 C ˜ t A ˜ t B ˜ t C ˜ t B ˜ t 0 0 C ˜ t A ˜ t N c 1 B ˜ t C ˜ t A ˜ t N c 2 B ˜ t C ˜ t B ˜ t C ˜ t A ˜ t N c B ˜ t C ˜ t A ˜ t N c 1 B ˜ t C ˜ t A ˜ t B ˜ t C ˜ t A ˜ t N p 1 B ˜ t C ˜ t A ˜ t N c 2 B ˜ t C ˜ t A ˜ t N p N c 1 B ˜ t ]
where:
  • ξ ( t | t ) is the current state quantity of the system;
  • Δ U ( t ) is the increment for system control.
The state quantity and output quantity of the system can be obtained from Formulas (29)~(31), and the state quantity and control increment can be obtained through calculation.
2.
Rolling optimization
In the actual process of tracking and controlling the trajectory, the control increment of the system will constantly change and is an unknown variable. Therefore, it is necessary to design the optimized objective function of the system, which should adapt to the actual system and accurately express the solution process. After optimizing the objective function, the optimal control sequence of the system in a specific time domain is finally obtained. The expression of the objective function is as follows:
J ( k ) = j = 1 N χ ˜ T ( k + j | k ) Q χ ˜ ( k + j ) + u ˜ T ( k + j 1 ) R u ˜ ( k + j 1 )
where:
  • χ ˜ is the system state quantity;
  • u ˜ is the system control quantity;
  • χ ˜ ( k + j | k ) is the predicted value of the state quantity at the next time by the system at time K.
The form constructed by Formula (31) is relatively simple and easy to implement, but when the control quantity of the system changes suddenly, the system will have the disadvantage of not accurately restricting the control increment because the elasticity of the objective function is not sufficient. Therefore, this paper proposes to transform the objective function into a quadratic programming problem. Convert Formula (31) into quadratic function as follows:
J = i = 1 N p η ( t + i | t ) η r e f ( t + i | t ) Q 2 + i = 1 N c 1 Δ u ( t + i | t ) R 2
where:
  • Q , R is the weight coefficient matrix.
In order to bring the system closer to the actual operation effect and meet the dynamic constraints of autonomous vehicles, some constraints need to be added:
u min ( t + k ) < u ( t + k ) < u max ( t + k ) Δ u min ( t + k ) < Δ u ( t + k ) < Δ u max ( t + k ) y min ( t + k ) < y ( t + k ) < y max ( t + k )
where:
  • u ( t + k ) is the control quantity constraint of the system;
  • Δ u ( t + k ) is the control increment constraint of the system;
  • y ( t + k ) is the output constraint of the system.
The optimal control sequence can be obtained by solving the constraints of the system according to Formula (33). However, in practical engineering, because the environmental information is constantly changing, the model is not guaranteed to obtain an optimal solution at all times. Therefore, a relaxation factor needs to be added to the objective function. The added function model is as follows:
J = i = 1 N p η ( t + i | t ) η r e f ( t + i | t ) Q 2 + i = 1 N c 1 Δ u ( t + i | t ) R 2 + ρ ε
where:
  • ρ is the weight coefficient;
  • ε is the relaxation factor.
Formula (28) is substituted into Formula (34) for simplification to obtain:
E ( t ) = Ψ t ξ ˜ ( t | t ) Y r e f ( t ) Y r e f = [ η r e f ( t + 1 | t ) , , η r e f ( t + N p | t ) ] T
Matrix transformation of Formula (35) can be obtained as follows:
J = [ Δ U ( t ) T , ε ] T H t [ Δ U ( t ) T , ε ] + G t [ Δ U ( t ) T , ε ] + P t
H t = [ Θ t T Q e Θ t + R e 0 0 ρ ] G t = [ 2 E ( t ) T Q e Θ t 0 ] P t = E ( t ) T Q e E ( t )
The quadratic programming problem is obtained from Formula (28), and its expression is:
min Δ U ( t ) [ Δ U ( t ) T , ε ] T H t [ Δ U ( t ) T , ε ] + G t [ Δ U ( t ) T , ε ] T U min < U ( t 1 ) + i = 1 k Δ U ( i ) < U max ( t + k ) Δ U min < Δ U ( k ) < Δ U max y min ε < Ψ t ξ ( t | t ) + Θ t Δ U ( t ) < y max + ε
where:
  • ε is a positive real number.
3.
Feedback correction
Formula (38) can be solved as follows:
Δ U t = [ Δ u t , Δ u t + 1 , , Δ u t + N c 1 ] u ( t ) = u ( t 1 ) + Δ u t

4.1.2. System Linearization

In order to improve the real-time performance and applicability of the algorithm in this paper, approximate linearization method is used to optimize the solution. Its principle is as follows:
First, the basic form of the general discrete model is clarified:
ξ ( k + 1 ) = f ( ξ ( t ) , u ( t ) ) ξ ( t ) χ u ( t ) ] Γ
where:
  • χ is the state constraint quantity;
  • Γ is the control constraint quantity.
The relationship between the control quantity and state quantity of the system at a specific time can be expressed as:
ξ 0 ( k + 1 ) = f ( ξ 0 ( k ) , u 0 ( k ) ) ξ 0 ( t ) = 0
Taylor expansion of Formula (41) can be used to obtain the first-order formula:
ξ ( k + 1 ) = f ( ξ 0 ( k ) , u 0 ( k ) ) + f ξ | ξ 0 ( k ) , u 0 ( k ) ( ξ ( k ) ξ 0 ( k ) ) + f u | ξ 0 ( k ) , u 0 ( k ) ( u ( k ) u 0 ( k ) )
Formulas (41) and (42) can be simultaneously obtained as follows:
ξ ( k + 1 ) = ξ 0 ( k + 1 ) + f ξ | ξ 0 ( k ) , u 0 ( k ) ( ξ ( k ) ξ 0 ( k ) ) + f u | ξ 0 ( k ) , u 0 ( k ) ( u ( k ) u 0 ( k ) )
Hypothesis:
A k , 0 = f ξ | ξ 0 ( k ) , u 0 ( k ) , B k , 0 = f ξ | ξ 0 ( k ) , u 0 ( k ) δ ξ ( k + 1 ) = ξ ( k + 1 ) ξ 0 ( k + 1 ) δ ξ ( k ) = ξ ( k ) ξ 0 ( k ) δ u ( k ) = u ( k ) u 0 ( k ) A k , 0 R m × n , B k , 0 R n × m
Then, Formula (43) can be simplified as:
δ ξ ( k + 1 ) = A k , 0 δ ξ ( k ) + B k , 0 δ u ( k )
and further simplified:
A k , t = A t , t B k , t = B t , t
The linear time-varying system model can be obtained, which simplifies the calculation steps and improves the real-time performance of the model.

4.2. Design of Model Predictive Controller

4.2.1. Linear Error Model

It can be seen from the derivation of Formula (28):
ξ d y n = f d y n ( ξ d y n , u d y n )
According to Formula (47), the longitudinal speed of the autonomous vehicle has not been changed in trajectory tracking control. Only the control angle of the front wheel angle of the vehicle is controlled, and Formula (47) is linearized:
ξ d y n = A d y n ( t ) ξ d y n ( t ) + B d y n ( t ) u d y n ( t )
where:
A d y n ( t ) = f d y n ξ d y n | ξ = ξ r u = u r = [ 2 ( C c f + C c r ) m x t f y x 0 x t + 2 ( b C c r a C c f ) m x t 0 0 φ 2 C c f δ f , t 1 m x t f x x 0 y t 2 a C c f δ f , t 1 m x t 0 0 0 0 0 1 0 0 2 ( b C c r a C c f ) I z x t f φ x 0 2 ( b C c r + a C c f ) I z x t 0 0 cos ( φ t ) sin ( φ t ) x t cos ( φ t ) y t sin ( φ t ) 0 0 0 sin ( φ t ) cos ( φ t ) y t cos ( φ t ) x t sin ( φ t ) 0 0 0 ]
B d y n ( t ) = f d y n ξ d y n | ξ = ξ r u = u r = [ 2 C c f m , 2 C c f ( δ f , t 1 y t + a φ t x t ) m , 0 , 2 a C c f I z , 0 , 0 ]
f y x = 2 C c f ( y t + a φ t ) + 2 C c r ( y t b φ t ) m x t φ t f x x = 2 C c f δ f , t 1 ( y t + a φ t ) m x t f φ x = 2 a C c f ( y t + a φ t ) 2 b C c r ( y t b φ t ) I z x t
Discretization of the linear equation obtained by Formula (47) can be obtained as follows:
ξ d y n ( k + 1 ) = A d y n ( k ) ξ d y n ( k ) + B d y n ( k ) u d y n ( k ) A d y n ( k ) = 1 + T A d y n ( t ) B d y n ( k ) = T B d y n ( t )

4.2.2. Objective Function Optimization

In order to make the model more consistent with the actual situation, the constraint conditions need to be added, and the objective function can be obtained by applying Formula (34) to the vehicle dynamics model:
J = i = 1 N p η d y n ( t + i | t ) η d y n , r e f ( t + i | t ) Q 2 + i = 1 N c 1 Δ u d y n ( t + i | t ) R 2 + ρ ε
where:
  • ρ is the weight coefficient;
  • ε is the relaxation factor;
  • Q , R is the weight factor.
Coupled with the relevant dynamic constraints, Formula (28) becomes the optimal solution for solving the problem trajectory tracking control:
min Δ u d y n , ε = i = 1 N p η d y n ( t + i | t ) η d y n , r e f ( t + i | t ) Q 2 + i = 1 N c 1 Δ u d y n ( t + i | t ) R 2 + ρ ε U d y n , min A Δ U d y n , t + U d y n , t U d y n , max Δ U d y n , min A Δ U d y n , t Δ U d y n , max y h c , min < y h c < y h c , max y s c , min ε < y s c < y s c , max ε ε > 0
where:
  • y h c is a hard constraint;
  • y s c is a soft constraint;
  • y h c , min is the hard constraint minimum;
  • y h c , max is the maximum value of the hard constraint;
  • y s c , min is the soft constraint minimum;
  • y s c , max is the maximum value of the soft constraint.
According to Formula (28), the output form of future time can be obtained:
Y d y n ( t ) = Ψ d y n ξ d y n ( t | t ) + Θ d y n Δ U d y n ( t )
where:
Y d y n = [ η d y n ( t + 1 | t ) η d y n ( t + 2 | t ) η d y n ( t + N c | t ) η d y n ( t + N p | t ) ] Ψ d y n = [ C ˜ Δ d y n A ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n 2 C ˜ Δ d y n A ˜ Δ d y n N c C ˜ Δ d y n A ˜ Δ d y n N p ] Δ U d y n ( t ) [ Δ U d y n ( t | t ) Δ U d y n ( t + 1 | t ) Δ U d y n ( t + N c | t ) ]
Θ t = [ C ˜ Δ d y n B ˜ Δ d y n 0 0 0 C ˜ Δ d y n A ˜ Δ d y n B ˜ Δ d y n C ˜ Δ d y n B ˜ Δ d y n 0 0 C ˜ Δ d y n A ˜ Δ d y n N c 1 B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N c 2 B ˜ Δ d y n C ˜ Δ d y n B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N c B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N c 1 B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N c 1 B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N c 2 B ˜ Δ d y n C ˜ Δ d y n A ˜ Δ d y n N p N c 1 B ˜ Δ d y n ]
Finally, Formula (55) is converted into quadratic form for solution:
J = [ Δ U d y n ( t ) T , ε ] T H d y n [ Δ U ( t ) T , ε ] + G d y n [ Δ U ( t ) T , ε ] + P d y n
where:
H d y n = [ Θ d y n T Q e Θ d y n + R e 0 0 ρ ] G d y n = [ 2 E d y n ( t ) T Q e Θ d y n 0 ] P d y n = E d y n ( t ) T Q e E d y n ( t ) E d y n ( t ) = Ψ d y n ξ d y n ( t | t ) Y d y n , r e f ( t )

4.2.3. Constraint Solving

  • Centroid sideslip constraint
The sideslip angle will affect the driving stability of the vehicle. In order to keep the tracking track stable, the sideslip angle cannot exceed a reasonable range. Relevant literature combines the dynamic road boundary with the centroid sideslip angle, and the relationship between the centroid sideslip angle and the road boundary is deduced as follows:
| β | arctan ( 0.02   μ g )
According to Formula (60), the reasonable range of centroid side deflection angle is inferred:
| β | 10 ° ( g o o d   p a v e m e n t ) | β | 10 ° ( s l i p p e r y   p a v e m e n t )
2.
Vehicle attachment constraints
The constraints of vehicle attachment conditions will affect the dynamic performance of the autonomous vehicle. Therefore, this constraint needs to be analyzed. The relationship between vehicle acceleration and road surface is as follows:
a x 2 + a y 2 μ g
where:
  • a x is longitudinal acceleration;
  • a y is the lateral acceleration.
If the longitudinal speed of the vehicle is constant, it can be rewritten as:
| a y | μ g
The constraint range of acceleration is related to the road condition. Driving in a perfect road environment will result in a wider range of acceleration. However, a large variation in acceleration will greatly reduce the riding comfort of passengers because the large lateral acceleration will affect the driving stability of the vehicle, but an excessively small range will lead to no solutions being discovered when solving. Therefore, it is necessary to set the acceleration as a soft constraint and let the system adjust the constraints according to changes in the actual situation. The setting conditions are as follows:
a y , min ε a y a y , max ε
where:
  • a y , min is the minimum constraint of acceleration;
  • a y , max is the maximum constraint of acceleration.
3.
Tire sideslip restraint
When autonomous vehicle is modeled as a single-track model, the sideslip angle is not considered as the state of the system, so it is necessary to solve the problem. The relationship between the mass sideslip angle and the state and control volume is as follows:
α f = y + a φ x δ f α f = y b φ x
When the tire sideslip angle is less than 3°, the ideal situation of the small angle assumption should be considered and Formula (65) addressed through approximate linearization. The constraints of the front wheel sideslip angle are as follows:
2.5 ° < α f < 2.5 °

5. Joint Simulation Experiment Based on MATLAB and CarSim

5.1. Co-Simulation Platform

At present, co-simulation platform has the popular trend to be used in the field of automatic driving. Xu, R. et al. [38]. employed OpenCDA which consists of one generalized framework and fast-prototyping tool to develop and operate CDA systems during simulation. This opened system has the advantage of being able to obtain the high precisely results under different CDA algorithms at both the traffic and individual autonomy levels. Li Yongyi. et al. [39]. improved the estimation accuracy of model parameters by generalized recursive least squares (GRLS).
The trajectory tracking controller designed based on the vehicle dynamics model is mainly used for the trajectory tracking of autonomous vehicles under medium- and highspeed traffic conditions. In order to verify the tracking accuracy and stability of the above model predictive tracking controller under different working conditions and different speed conditions, the reference trajectory planned by the improved of artificial potential field method will be used for verification.
First, the body size and parameters of the autonomous vehicle are set in CarSim. The body size and parameters are illustrated in Figure 11 and Table 2.
After the vehicle size and parameter data are established in CarSim, the simulation conditions are set, and the model is dispatched through the external interface to Simulink. At this time, the CarSim and Simulink modules constitute the co-simulation platform, and the co-simulation can only be carried out with input information. The co-simulation platform is demonstrated in Figure 12.

5.2. Controller Parameter Setting

The simulation sets the parameters of the model predictive controller itself. The parameter settings are shown in Table 3 below.

5.3. Simulation Analysis of Different Pavement Adhesion Coefficients

As different road adhesion coefficients will have different effects on the tires during vehicle driving and thus affect the tracking performance of the model predictive controller, it is necessary to select different road adhesion coefficients and retrograde comparative simulation. In this paper, μ = 0.85 and μ = 0.5 are selected for simulation tests. The speed is 36 km/h. The simulation results are as follows.
As shown in Figure 13, when the speed is 36 km/h, the curve changes in the figure are basically consistent under both μ = 0.85 and μ = 0.5 conditions, indicating that different road adhesion coefficients have little influence on vehicle track tracking at low speeds. The reason is that when the speed is low, a large contact area is maintained between the vehicle tires and road surface during the process of moving, so as to reduce the influence of the road adhesion coefficient on the friction between the tire and the ground. As can be seen from Figure 13a, when the vehicle speed is 36 km/h, the vehicle can accurately track the reference trajectory planned by the improved artificial potential field method under both μ = 0.85 and μ = 0.5 conditions. From Figure 13b–d, when driving at a speed of 36 km/h, the yaw angle of the vehicle is controlled between (−6 deg, 7.2 deg) under the conditions of μ = 0.85 and μ = 0.5, and an extreme value of about 1.34 m appears in the third and sixth seconds. At this time, the vehicle is changing lanes and overtaking, which is in line with the actual situation, and the change value is within a reasonable range; the yaw velocity is controlled within (−6.5 deg/s, 5 deg/s), which is far lower than the limit value. However, the range of the sideslip angle of the vehicle’s centroid is controlled within (−0.42 deg, 0.65 deg), which is far lower than the threshold. In summary, at lower speeds, vehicle under different road adhesion coefficients can better track the reference trajectory and all parameters of a vehicle traveling in the reasonable scope. The not only ensures the trajectory tracking accuracy but also the maintenance vehicle stability, thus showing the excellent adaptability of the controller for different road adhesion coefficients.
As shown in Figure 14a, when the vehicle speed changes to 72 km/h, the controller has a positive tracking effect on the reference trajectory under two working conditions, namely μ = 0.85 and μ = 0.5. However, the vehicle yaw angle changes in different trends under conditions of different road adhesion coefficients at the same condition, as shown in Figure 14b. The yaw angle fluctuates in a small range at the first and third second, which changes in a reasonable range. As illustrated in Figure 14c, when the speed reaches 72 km/h, the variation range of vehicle yaw velocity under μ = 0.85 and μ = 0.5 conditions increases significantly, but both ranges fluctuate within (−15 deg/s, 15 deg/s) and do not exceed the limit range. As Figure 14d shows, when the vehicle speed increases to 72 km/h, the fluctuation range of the sideslip angle is slightly higher than that of 36 km/h when the road adhesion coefficient is 0.85. If the road adhesion coefficient is 0.5, the fluctuation range is (−1.3 deg, 1.4 deg). However, the range of values in both working conditions fluctuates within a reasonable range and does not exceed the limit value. In summary, at low speed, the vehicle can track the reference trajectory stably under different road adhesion coefficients. However, for a low road adhesion coefficient, the curves in the figure all fluctuate with the increase in vehicle speed. The reason is that when there is high speed, the vehicle cannot maintain a large contact area between the tire and the road surface during the moving process. Moreover, the contact area between tire and road surface will decrease as the road adhesion coefficient decreases, which will lead to a decrease in vehicle driving stability. The tracking accuracy can, however, also be maintained to ensure the stable driving of the vehicle.

5.4. Simulation Analysis of Different Vehicle Speeds

In order to verify the real-time robustness of the controller, three different speeds were selected for simulation in this paper, which are 36, 54 and 72 km/h, respectively, and the road adhesion coefficient is taken as 0.85. The simulation results are shown in Figure 15.
As illustrated in Figure 15a, when the road adhesion coefficient is 0.85, vehicles at three different speeds can accurately track the reference trajectory and quickly tend to stable driving. It can be seen from Figure 15b that the yaw angle of vehicles at different speeds maintain the same trend.
As can be seen from Figure 15c, as the speed rises from 36 to 72 km/h, the fluctuation range of vehicle yaw velocity changes from (−6.7 deg/s, 4.6 deg/s) to (−13.5 deg/s, 14.2 deg/s), showing a significant increase, but the values are within the constraint range and do not exceed the limit value. As shown in Figure 15d, when the vehicle speed increments, the vehicle centroid sideslip angle increases gradually, but the value of the vehicle centroid sideslip angle at the three speeds does not exceed the range of 4 deg.
By comparing the track tracking error under different working conditions, it can be seen that the maximum tracking error is 0.134 m, and the tracking accuracy exceeds 98%, which is higher than the 93.8% reported by Zhu Weida. The comparison diagram of tracking accuracy under different working conditions is shown in Table 4:
In summary, the controller can still accurately track the reference trajectory when the speed changes and ensure the stability of the vehicle in the process of driving, indicating that the controller has superior adaptability and robustness and relatively high tracking accuracy.

6. Conclusions

Research on autonomous vehicles is of great significance to the construction of intelligent transportation and intelligent cities. This paper mainly studies the trajectory planning and trajectory tracking control of autonomous vehicles and can be summarized as follows:
  • In the study, through increasing the target distance adjustment factor to solve the problem of inaccessible targets, the invasive weeds algorithm produces an optimal sub-destination, and the repulsive force redistribution problem is converted into a local optimal solution to establish the dynamic road repulsion field, velocity repulsion field, and acceleration repulsion field by relying on the change in speed to realize trajectory planning in a dynamic environment.
  • An MPC model predictive controller was built to establish a vehicle dynamics model and tire model based on a “magic formula”, with the simplification of the vehicle dynamics model.
  • A co-simulation platform was built, and two different road adhesion coefficients and three different vehicle speeds were selected for simulation. With the increase in the vehicle speed from 36 to 72 km/h, the values of the sideslip angle of the vehicle center of mass at the three speeds do not exceed the range of 4 deg. At the same time, the maximum tracking error is 0.134 m, and the tracking accuracy exceeds 98%, which indicates that the driving stability is excellent.

Author Contributions

Conceptualization, Y.L.; methodology, M.L. and Y.L.; software, W.Y.; validation, X.Z.; formal analysis, W.Y.; investigation, X.K.; resources, Y.L.; data curation, W.Y.; writing—original draft preparation, Y.L. and W.Y.; writing—review and editing, X.Z.; visualization, X.K.; supervision, M.L.; funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation Project of China (Grant No. 51878349).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors are grateful and thank all those who have helped to improve this paper during the research.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. J3016_201401; Taxonomy and Definitions for Terms Related to On-Road Motor Vehicle Automated Driving Systems. SAE International: Warrendale, PA, USA, 2014.
  2. Xu, X.; Hu, W.; Dong, H. Review of Key Technologies for Autonomous Vehicle Test Scenario Construction. Automot. Eng. 2021, 43, 610–619. [Google Scholar]
  3. Man, J. Research on Intelligent Vehicle Path Tracking Control. Ph.D. Thesis, Zhejiang University, Hangzhou, China, 2021. [Google Scholar]
  4. Drubin, C. Sensor Data Sharing, Driverless Vehicle Remote Control to Boost Cellular V2X Technologies. Microw. J. 2018, 61, 73. [Google Scholar]
  5. Xie, H. Research on Path Planning and Motion Control Algorithm for Unmanned Vehicles on Structured Roads. Ph.D. Thesis, Hunan University, Changsha, China, 2019. [Google Scholar]
  6. Tang, Z.; Ji, J.; Wu, M. Vehicles Path Planning and Tracking Based on an Improved Artificial Potential Field Method. J. Southwest Univ. (Nat. Sci. Ed.) 2018, 6, 180–188. [Google Scholar]
  7. An, L.; Chen, T.; Cheng, A. A Simulation on the Path Planning of Intelligent Vehicles Based on Artificial Potential Field Algorithm. Qiche Gongcheng/Automot. Eng. 2017, 39, 1451–1456. [Google Scholar]
  8. Xiu, C.; Chen, H. A Research on Local Path Planning for Autonomous Vehicles Based on Improved APF Method Automotive engineering. Automot. Eng. 2013, 35, 808–811. [Google Scholar] [CrossRef]
  9. Lee, J.; Nam, Y.; Hong, S. Random force based algorithm for local minima escape of potential field method. In Proceedings of the 2010 11th International Conference on Control Automation Robotics & Vision, Singapore, 7–10 December 2010; pp. 827–832. [Google Scholar]
  10. Taheri, E.; Ferdowsi, M.H.; Danesh, M. Fuzzy greedy RRT path planning algorithm in a complex configuration space. Int. J. Control. Autom. Syst. 2018, 16, 3026–3035. [Google Scholar] [CrossRef]
  11. Ci, Y.; Wu, H.; Sun, Y.; Wu, L. A Prediction Model with Wavelet Neural Network Optimized by the Chicken Swarm Optimization for On-ramps Metering of the Urban Expressway. J. Intell. Transp. Systems. 2022, 26, 356–365. [Google Scholar] [CrossRef]
  12. Boroujeni, Z.; Goehring, D.; Ulbrich, F.; Neumann, D.; Rojas, R. Flexible unit A-star trajectory planning for autonomous vehicles on structured road maps. In Proceedings of the 2017 IEEE International Conference on Vehicular Electronics and Safety (ICVES), Vienna, Austria, 27–28 June 2017; pp. 7–12. [Google Scholar]
  13. Yang, D.C.; Wen, C.L. Multiple Targets Robot Path Planning Based on Ant Colony and Improved Probabilistic Road Map. J. Hangzhou Dianzi Univ. (Nat. Sci.) 2017, 37, 63–67. [Google Scholar]
  14. Lei, W.; Ming, L. Application of improved adaptive genetic algorithm in mobile robot path planning. J. Nanjing Univ. Sci. Technol. 2017, 41, 327–633. [Google Scholar]
  15. Song, X.; Pan, L.; Cao, H. Local path planning for vehicle obstacle avoidance based on improved intelligent water drops algorithm. Automot. Eng. 2016, 38, 185–191. [Google Scholar]
  16. Wang, X.; Liu, M.; Ci, Y.; Yang, Y. Effectiveness of driver’s bounded rationality and speed guidance on fuel-saving and emissions-reducing at a signalized intersection. J. Clean. Prod. 2021, 325, 129343. [Google Scholar] [CrossRef]
  17. Liu, J.; Yang, Y.; Liu, H.; Di, P.; Gao, M. Robot global path planning based on ant colony optimization with artificial potential field. Nongye Jixie Xuebao/Trans. Chin. Soc. Agric. Mach. 2015, 46. [Google Scholar] [CrossRef]
  18. Liu, Y.; Zhang, W.G.; Li, G.W. Study on path planning based on improved PRM method. Jisuanji Yingyong Yanjiu 2012, 29. [Google Scholar] [CrossRef]
  19. Zhang, L.X.; Wu, G.Q.; Guo, X.X. Path tracking using linear time-varying model predictive control for autonomous vehicle. J. Tongji Univ. Nat. Sci. 2016, 44, 1595–1603. [Google Scholar]
  20. Marino, R.; Scalzi, S.; Netto, M. Nested PID steering control for lane keeping in autonomous vehicles. Control. Eng. Pract. 2011, 19, 1459–1467. [Google Scholar] [CrossRef]
  21. Zeng, S. The Intelligent V ehicle Motion Research Based on LinearActive Disturbance Rejection Control. Ph.D. Thesis, Xiamen University, Xiamen, China, 2019. [Google Scholar]
  22. Li, T.; Hu, J.; Gao, L.; Liu, X.; Bai, X. Agricultural machine path tracking method based on fuzzy adaptive pure pursuit model. Trans. Chin. Soc. Agric. Mach. 2013, 44, 205–210. [Google Scholar]
  23. Lee, S.H.; Lee, Y.O.; Kim, B.A.; Chung, C.C. Proximate model predictive control strategy for autonomous vehicle lateral control. In Proceedings of the American Control Conference(ACC), Montreal, QC, Canada, 27–29 June 2012; pp. 3605–3610. [Google Scholar]
  24. Gong, J.; Jiang, Y.; Xu, W. Model Predictive Control for Self-Driving Vehicles; Beijing Institute of Technology Press: Beijing, China, 2014. [Google Scholar]
  25. Zhou, L.H.; Shi, P.L.; Jiang, J.X.; Zhang, L.; Liang, M.L.; Hou, J.W. Simulation research on vehicle stability control based on collision avoiding trajectory tracking. J. Shandong Univ. Technol. (Nat. Sci. Ed.) 2021, 35, 75–81. [Google Scholar]
  26. Wu, L.; Ci, Y.; Sun, Y.; Qi, W. Research on Joint Control of On-ramp Metering and Mainline Speed Guidance in the Urban Expressway based on MPC and Connected Vehicles. J. Adv. Transp. 2020, 2020, 7518087. [Google Scholar] [CrossRef]
  27. Wang, H.; Wang, Q.; Chen, W.; Zhao, L.; Tan, D. Path tracking based on model predictive control with variable predictive horizon. Trans. Inst. Meas. Control. 2021, 43, 2676–2688. [Google Scholar] [CrossRef]
  28. Morales, S.; Magallanes, J.; Delgado, C.; Canahuire, R. LQR trajectory tracking control of an omnidirectional wheeled mobile robot. In Proceedings of the 2018 IEEE 2nd Colombian Conference on Robotics and Automation (CCRA), Barranquilla, Colombia, 1–3 November 2018; pp. 1–5. [Google Scholar]
  29. Chen, J.; Li, L.; Song, J. A study on vehicle stability control based on LTV-MPC. Automot. Eng. 2016, 38, 308–316. [Google Scholar]
  30. Wu, L.; Ci, Y.; Wang, Y.; Chen, P. Fuel Consumption in the Oversaturated Signalized Intersection Considering Queue Effects: A Case Study in Harbin, China. Energy 2020, 192, 116654. [Google Scholar] [CrossRef]
  31. Ci, Y.; Wu, L.; Zhao, J.; Sun, Y.; Zhang, G. V2I-based Car-Following Modeling and Simulation on the Signalized Intersection. Phys. A Stat. Mech. Its Appl. 2019, 525, 672–679. [Google Scholar] [CrossRef]
  32. Pan, L.B. The Research about Path Planning and Tracking Control of the Intelligent Vehicle. Ph.D. Thesis, Hunan University, Changsha, China, 2016. [Google Scholar]
  33. Zhang, H.J.; Gong, J.W.; Jiang, Y.; Xiong, G.M.; Chen, H.Y. An iterative linear quadratic regulator based trajectory tracking controller for wheeled mobile robot. J. Zhejiang Univ. Sci. C 2012, 13, 593–600. [Google Scholar] [CrossRef]
  34. Zhou, D.S. Study on the Path Tracking of Driverless Cars Based on Preset Rolling Time Domain LQR. Ph.D. Thesis, Chongqing Jiaotong University, Chongqing, China, 2018. [Google Scholar]
  35. Samuel, M.; Hussein, M.; Mohamad, M.B. A review of some pure-pursuit based path tracking techniques for control of autonomous vehicle. Int. J. Comput. Appl. 2016, 135, 35–38. [Google Scholar] [CrossRef]
  36. Lin, F.; Lin, Z.; Qiu, X. LQR controller for car-like robot. In Proceedings of the 2016 35th Chinese Control Conference (CCC), Chengdu, China, 27–29 July 2016; pp. 2515–2518. [Google Scholar]
  37. Bian, W.; Gong, J.; Wen, A.; Chen, L.; Liu, Y. Two Levels of Parameter Identification of Magic Formula Tire Model Based on Genetic Algorithm. J. Chongqing Jiaotong Univ. (Nat. Sci.) 2017, 36, 115. [Google Scholar]
  38. Xu, R.; Guo, Y.; Han, X.; Xia, X.; Xiang, H.; Ma, J. OpenCDA: An open cooperative driving automation framework integrated with co-simulation. In Proceedings of the 2021 IEEE International Intelligent Transportation Systems Conference (ITSC), Indianapolis, IN, USA, 19–22 September 2021. [Google Scholar]
  39. Li, Y.; Zhang, M.; Ding, Y.; Zhou, Z.; Xu, L. Real-Time Travel Time Prediction Based on Evolving Fuzzy Participatory Learning Model. J. Adv. Transp. 2022, 2022, 2578480. [Google Scholar] [CrossRef]
Figure 1. Traditional artificial potential field and potential field diagram: (a) gravitational potential field; (b) repulsive potential field.
Figure 1. Traditional artificial potential field and potential field diagram: (a) gravitational potential field; (b) repulsive potential field.
Sustainability 14 12131 g001
Figure 2. Schematic diagram of road boundary repulsion.
Figure 2. Schematic diagram of road boundary repulsion.
Sustainability 14 12131 g002
Figure 3. Potential field diagram after improvement: (a) improved gravitational potential field; (b) improved repulsive potential field.
Figure 3. Potential field diagram after improvement: (a) improved gravitational potential field; (b) improved repulsive potential field.
Sustainability 14 12131 g003
Figure 4. Schematic diagram of vehicle force.
Figure 4. Schematic diagram of vehicle force.
Sustainability 14 12131 g004
Figure 5. Flow chart of invasive weed algorithm.
Figure 5. Flow chart of invasive weed algorithm.
Sustainability 14 12131 g005
Figure 6. Simulation diagram of the improved artificial potential field method: (a) avoid static obstacle vehicle 1; (b) avoid static obstacle vehicle 2; (c) avoid dynamic obstacle vehicle 1; (d) avoid dynamic obstacle vehicle 2.
Figure 6. Simulation diagram of the improved artificial potential field method: (a) avoid static obstacle vehicle 1; (b) avoid static obstacle vehicle 2; (c) avoid dynamic obstacle vehicle 1; (d) avoid dynamic obstacle vehicle 2.
Sustainability 14 12131 g006
Figure 7. Trajectory planning comparison before and after improvement.
Figure 7. Trajectory planning comparison before and after improvement.
Sustainability 14 12131 g007
Figure 8. Force analysis diagram of vehicle monorail model.
Figure 8. Force analysis diagram of vehicle monorail model.
Sustainability 14 12131 g008
Figure 9. Relationship between longitudinal force and sideslip angle under pure longitudinal slip condition.
Figure 9. Relationship between longitudinal force and sideslip angle under pure longitudinal slip condition.
Sustainability 14 12131 g009
Figure 10. Relationship between lateral force and sideslip angle under pure slippage condition.
Figure 10. Relationship between lateral force and sideslip angle under pure slippage condition.
Sustainability 14 12131 g010
Figure 11. Vehicle dimensions and parameters.
Figure 11. Vehicle dimensions and parameters.
Sustainability 14 12131 g011
Figure 12. Co-simulation platform.
Figure 12. Co-simulation platform.
Sustainability 14 12131 g012
Figure 13. Simulation parameter diagram with a speed of 36 km/h: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Figure 13. Simulation parameter diagram with a speed of 36 km/h: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Sustainability 14 12131 g013
Figure 14. Simulation parameters when the speed is 72 km/h: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Figure 14. Simulation parameters when the speed is 72 km/h: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Sustainability 14 12131 g014
Figure 15. Simulation parameters at different speeds: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Figure 15. Simulation parameters at different speeds: (a) trajectory tracking; (b) yaw angle; (c) yaw velocity; (d) sideslip angle.
Sustainability 14 12131 g015
Table 1. Parameter values of tire model.
Table 1. Parameter values of tire model.
ParameterValueParameterValue
A1−34B02.37272
A21250B1−9.46
A33036B21490
A4128B3130
A50.00501B4276
A6−0.02103B50.0886
A70.77394B60.00402
A80.002289B70.0615
A90.013442B81.2
A100.0037B90.0299
A1119.1656B10−0.176
A11.21356
A16.2606
A01.65
Table 2. Vehicle parameters.
Table 2. Vehicle parameters.
ParameterValueUnit
Sprung mass1723kg
Width for animator1850mm
Yaw inertia4175kg·m2
Axle base2700mm
Height of wheel center325mm
Height of the center of mass460mm
Table 3. Controller parameter table.
Table 3. Controller parameter table.
ParameterNomenclatureValue
NpPrediction step length15
NcControl step size8
TSampling period0.02
QWeight matrix [ 200 0 0 0 100 0 0 0 100 ]
RWeight factor110,000
ρWeight coefficient1000
Table 4. Comparison of tracking accuracy under different working conditions.
Table 4. Comparison of tracking accuracy under different working conditions.
Speed (km/h)Adhesion Coefficient of PavementTracking Lateral Error (m)Tracking Accuracy
360.850.09598.6%
0.50.10298.5%
720.50.13498.1%
0.850.12198.3%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Li, Y.; Yang, W.; Zhang, X.; Kang, X.; Li, M. Research on Automatic Driving Trajectory Planning and Tracking Control Based on Improvement of the Artificial Potential Field Method. Sustainability 2022, 14, 12131. https://doi.org/10.3390/su141912131

AMA Style

Li Y, Yang W, Zhang X, Kang X, Li M. Research on Automatic Driving Trajectory Planning and Tracking Control Based on Improvement of the Artificial Potential Field Method. Sustainability. 2022; 14(19):12131. https://doi.org/10.3390/su141912131

Chicago/Turabian Style

Li, Yongyi, Wei Yang, Xiaorui Zhang, Xi Kang, and Mengfei Li. 2022. "Research on Automatic Driving Trajectory Planning and Tracking Control Based on Improvement of the Artificial Potential Field Method" Sustainability 14, no. 19: 12131. https://doi.org/10.3390/su141912131

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