1. Introduction
With the rapid development of science and technology, human society has entered the era of intelligence. With the rapid development of artificial intelligence and the automobile industry, driverless technology has gradually become the focus of the industry [
1,
2,
3]. Driverless electric formula racing competitions closely follow the development of the automotive industry, among which high-speed trajectory tracking race events are the most challenging for driverless driving technology. The environment sensing system obtains road information [
4], the path decision and planning system [
5] designs the running trajectory of the racing car, and the trajectory tracking system carries out the lateral and longitudinal control of the racing car according to the designed trajectory, with lateral control being a key part of the motion of driverless racing car during competitions [
6]. Due to the fact that the vehicle system is a highly complex, nonlinear, and strongly coupled system, precise control of lateral movement still poses certain challenges for racing cars during high-speed operation [
7]. This paper conducts research on the lateral control of driverless electric formula racing cars.
In the field of driverless vehicle control, scholars at home and abroad have proposed a variety of control algorithms, such as model predictive control (MPC) [
8,
9], linear optimal quadratic control (LQR) [
10,
11], proportion integral derivative (PID) [
12], sliding mode control (SMC) [
13,
14], fuzzy control [
15,
16], neural network control [
17], feedback–feedforward control, and so on. Recently, many scholars have used MPC for trajectory tracking control of vehicles and combined it with other algorithms to improve the control accuracy. Duanfeng Chu et al. [
18] proposed a combined MPC and PID feedback control method, which can eliminate the errors caused by simplifying the vehicle model in the traditional MPC. Tian Tian et al. [
19] proposed a MPC trajectory tracking control method based on game theory, which introduces the trajectory tracking accuracy and stability as a time-varying interactive game mechanism, establishes a game payoff matrix, and determines the weights of each subject to find the optimal control strategy in the MPC. Dele Meng et al. [
20] proposed a fast iterative MPC (FI-MPC) equation, which integrates the unmodeled nonlinear dynamics of the vehicle and tires into a linear system framework to mitigate the mismatch between linear and high-fidelity nonlinear dynamics models to achieve the optimal iterative control scheme. However, MPC has some shortcomings; for example, it requires strong real-time computational capability on the hardware side and relies on a high-precision vehicle model, but as the vehicle is a nonlinear system with uncertain state parameters, it is difficult to establish an accurate vehicle model.
Later, in response to issues such as nonlinearity, a large number of scholars conducted research. The adaptive backstepping method [
21], prescribed performance control (PPC) [
22], and reinforcement learning technologies have been widely applied. Wang Aojie et al. [
23] proposed a fixed-time global sliding mode control with prescribed performance, which solved the trajectory tracking problem of robots with uncertain models, limited the system error within the performance boundary, and improved the global robustness and convergence performance. Yang Pu et al. [
24] proposed a method based on the prescribed performance function and non-singular approximate fixed-time terminal sliding mode, which solved the problems of parameter uncertainty during the trajectory tracking of robot manipulators, and the prescribed performance function provided higher steady-state accuracy. It can be seen that the PPC has achieved satisfactory results in different industrial fields. The main idea of designing the controller using the backstepping control method is to decompose the complex nonlinear system into several subsystems, then construct error variables, design virtual control laws for each subsystem, and finally design the actual controller and prove the global stability of the entire closed-loop system. Binzhen Liu et al. [
25] proposed a method based on finite-time convergence, combined with the command filtering backstepping method to ensure the convergence performance, introduced a compensation mechanism to reduce the filtering error, and solved the tracking problem of flexible multi-joint robotic arms. However, the backstepping method did not solve the problems of the nonlinear terms and disturbances in the model.
To address the aforementioned issues, many scholars have combined adaptive backstepping techniques with FLS. Bing Chen et al. [
26] proposed a finite-time adaptive backstepping fuzzy control strategy, which solved the tracking problem of nonlinear systems. Guanzhen Wang et al. [
27] addressed the tracking problem of a certain class of nonlinear systems by proposing an adaptive fast finite-time fuzzy control that uses FLS to handle disturbances and nonlinear functions. Jiayu Liu et al. [
28] used the adaptive backstepping fuzzy control method to solve the problems of model uncertainty and parameter changes of driverless surface vessels during path tracking. From the above research, it can be seen that adaptive backstepping fuzzy control can effectively solve problems such as system nonlinearity and disturbances.
Based on the above analysis, this paper designs a method of adaptive backstepping fuzzy control based on prescribed performance (PPC-ABFC) to solve the problems of vehicle unknown nonlinearity, disturbances, and parameter uncertainty during trajectory tracking control of racing cars and improve control accuracy. By limiting the error within a certain range through the prescribed performance function, the steady-state control performance is improved. The structure of the remaining parts of this paper is as follows. The second section constructs the vehicle dynamics model and the combined error model; the third section introduces the theory required for the controller and designs the real controller; the fourth section conducts a CarSim–Simulink joint simulation to verify the effectiveness of the controller; and finally, the fifth section summarizes.
3. Controller Design and Stability Analysis
In this section, the prescribed performance adaptive backstepping fuzzy control method is introduced as a whole. The overall design architecture is shown in
Figure 3. Based on the environmental perception system and the decision-making planning system, the expected lateral position and heading angle are planned. The difference between the actual lateral position and heading angle of the vehicle is taken to obtain the required combined error. The strict feedback model is applied to receive the current state information of the vehicle in real time and provide it to the controller. The combined error is processed with prescribed performance, and the virtual control law is derived using the backstepping method. Since it is difficult to obtain the derivative of the virtual control law and handle the disturbance and nonlinear terms in the controller, the adaptive update law and FLS are used to approximate them. Then, the real control law is derived using Lyapunov theory [
31]. Finally, the real control law is connected to CarSim, and the real-time vehicle parameters and state information are fed back to the controller to form a closed loop of vehicle trajectory tracking control.
According to the combined error model (10), the true control model can be expressed as
A new coordinate transformation is proposed for the control system (11) as follows:
where
is the virtual control law that needs to be designed, and
is an important variable in the prescribed performance control, which will be explained in the next section.
3.1. Prescribed Performance Function and Error Transformation
In the lateral control of vehicles, the values of the lateral position error
and the heading angle error
are of great significance to the accuracy and stability of vehicle trajectory tracking control. The tracking error is set to
. The tracking error is required to meet the prescribed performance. If the following conditions are met, the requirements of the prescribed performance will be satisfied:
where the coefficient
is a positive number,
adjusting the constraint performance according to the initial conditions of
,
can be expressed as
This paper adopts a continuous prescribed performance function to constrain the combined error
[
32]. Where
, according to the literature, the prescribed performance function is designed as follows
where coefficient
and
are positive constants.
represent the values at
and
, respectively. These coefficients satisfy
and
.
The prescribed performance function quantifies the performance of , where the maximum overshoot of the tracking error does not exceed , is the upper bound of the steady-state error, and is the lower bound of the convergence rate.
Start the error transformation, transform the constrained error
into an unconstrained error [
33]
where
is defined as follows
When the values of
and
can, respectively, approximate the prescribed minimum and maximum error values, and it can be ensured that the unconstrained error signal
can be within the prescribed error boundaries. When
, the error can converge to zero.
Since the error transformation function
is strictly increasing, its inverse function can be expressed as
The derivative of the transformation error
can be described as follows:
To simplify the (19), define
, where
In conclusion, the specified performance function clearly defines the dynamic performance requirements for the combined error, and the quantified error provides an explanation for the coordinate transformation mentioned earlier, laying the foundation for the subsequent controller design.
3.2. Fuzzy Logic System
Fuzzy logic systems can approximate unknown functions to replace unknown functions or nonlinear functions. Therefore, the FLS will be applied in the control algorithm to be formulated subsequently. The FLS will be used to approximate the unknown nonlinear functions defined on certain compact sets. The following fuzzy rules will be derived by using the center average defuzzifier, product inference rule, and singleton fuzzification [
34].
where
and
are the input and output of the fuzzy system, respectively. In this paper, the method of single-element fuzzification, product inference rules, and center average defuzzification is adopted. Thus, the output of the FLS can be expressed as
In practical engineering applications, the controller combined with the FLS needs to be repeatedly adjusted based on actual conditions and experience, as many parameters in the control system require improvement and debugging, and some values need to be constantly corrected. To meet such requirements, this paper adopts an adaptive fuzzy logic system, and (22) can be rewritten as
where
is an adjustable parameter in the adaptive system, and
is the fuzzy basis function vector, where the fuzzy basis function is defined as
If all the membership functions are chosen as Gaussian functions, the following lemma holds.
Lemma 1. In [35], the authors state that for an arbitrarily small approximation error, i.e., , there always exists an FLS that can uniformly approximate any real continuous function in a compact set , i.e.,where is the minimum estimation error, the expression form of the FLS can be rewritten asthere exists an upper bound for , which can be expressed as .
Lemma 2. In [36], the authors state that Young’s inequality can be described as follows:where are any given positive constants, and are real variables. FLS mainly deals with the nonlinear terms and disturbance terms in the subsequent controller. Lemmas 1 and 2 will play a crucial role in the stability analysis.
3.3. PPC-ABFC Controller Design
The above are the theorems and theories required for the controller. Below, a prescribed performance adaptive backstepping fuzzy controller will be designed. The main steps are as follows:
STEP 1. Select the Lyapunov function
Differentiate (28) yields
The virtual control law is designed as
where
, and
is the positive constant of the design.
Substituting (30) into (29) yields
STEP 2. According to the adaptive parameter update law, take the Lyapunov function
where
can be designed,
,
is the estimated value of
,
is the estimated error value. According to (11) and (12), the following can be obtained:
The time differentiation of (32) yields
Since it is difficult to determine the derivative of
and also to handle the uncertain parameters and disturbance terms in the model, the definition is given as follows:
According to Lemma 1, for any given , there is an FLS , for distance, , represents the error of approximation and satisfies .
Substituting (35) into (34) yields
The real control law and adaptive parameter update law of the trajectory tracking control system are proposed as follows:
where
is a positive parameter that can be designed,
is the learning law in the adaptive parameter update law, and
.
Substituting (37) into (36) yields
STEP 3. Stability analysis
Theorem 1.
For the trajectory tracking control system, considering the virtual control law (30), the actual control law, the adaptive parameter update law (37), and the error transformation (12), it can be guaranteed that the error converges to a small neighborhood around the origin, and all signals within the closed-loop system are Lyapunov stable.
Proof of Theorem 1. Design a Lyapunov function
. Taking the derivative of
, substituting (31) into (38) yields
According to Young’s inequality, the following can be obtained:
Substituting (40) into (39) yields
where
By integrating (42), it follows that
Through the above equation, it can be obtained that when . Furthermore, are bounded, and all estimated values of the parameters are also bounded. From the fact that and coordinate transformation, it can also be concluded that is bounded. From the fact that and coordinate transformation, it can also be concluded that is bounded. From the fact that is bounded, it can also be concluded that is bounded. Moreover, all signals in this system are bounded.
According to (43) and the derivative of
, the following can be obtained:
It can be seen from (44) that
converges to a compact set.
Furthermore, the transformed variable is also bounded. Theorem 1 is proved. □
Remark 1. This compact set is associated with unknown bounded term and negative definite term . is associated with and . All these parameters are adjustable. Even if the specific value of , the parameters related to and can be adjusted. This can make the compact set as small as possible.
4. Simulation Results
In this section, in order to illustrate the effectiveness of vehicle trajectory tracking, the lateral controller (prescribed performance adaptive backstepping fuzzy control, PPC-ABFC) is verified through co-simulation using CarSim–Simulink. A high-fidelity racing car model is established in CarSim, with the power source of the CarSim model being the same as that of the racing car, both being rear-mounted motor-driven. Simulink receives the state signals from CarSim, and then Simulink generates control signals to input into CarSim, forming a control loop. The road adhesion coefficient is 0.85, and two different vehicle speeds are set to verify the robustness of the controller.
The membership function of the fuzzy logic system is selected as the Gaussian function. This is because the Gaussian function can produce smooth and continuous membership output and is computationally efficient, which is crucial for vehicle dynamics control. Based on a large body of literature (such as [
37,
38]) and engineering practices, it has been demonstrated to have excellent performance in handling problems such as trajectory tracking and nonlinear systems. The Gaussian function is as follows:
where
is the center.
To verify the PPC-ABFC controller, the commonly used double-lane-change maneuver was selected for verification. The expected lateral position and the expected heading angle are given by the following formulas.
where
.
This article will introduce four performance indicators to evaluate the performance of the three controllers, including the root-mean-square error (RMSE): ; the maximum absolute error (MAE): ; the standard deviation (SD): ; and the variance (VAR): .
Conduct trajectory tracking simulation experiments and make comparisons, respectively, at speeds of 60 km/h and 100 km/h.
Figure 4 shows the simulation experiment at a vehicle speed of 60 km/h. Moreover, this paper sets up two comparative experiments to verify the superiority of PPC-ABFC. The parameters of PPC-ABFC are selected as:
. Since the prescribed performance function requires setting the initial error and the error when
, if the numerical values are set too small, it will cause the controller to oscillate. Therefore, the parameters are selected as
. The first set of comparative experiments aimed to verify the role of PPC technology in the scheme proposed in this paper. An adaptive backstepping fuzzy controller (ABFC) without PPC was redefined. The second set of comparative experiments (the abbreviation for the controller is BFC) aimed to verify the significance of the FLS’s approximation of unknown nonlinear terms. The prescribed performance is removed, and the adaptive FLS also does not approximate the unknown nonlinear terms and disturbance terms, but only the derivative of
. To ensure fairness among different controllers, the other parameters are designed in a consistent manner. All the experimental conditions, trajectory tracking paths, vehicle models, and operating environments remained consistent.
Figure 4 shows the control effects of the three controllers during trajectory tracking.
Figure 4a shows an expected trajectory and the tracking effects of three controllers. It can be seen from the figure that the designed PPC-ABFC controller has a better tracking effect than the other two control algorithms when tracking the expected trajectory.
Figure 4b shows the comparison of the lateral error of the vehicle during trajectory tracking. Lateral error is the most effective indicator of the vehicle’s trajectory tracking performance.
It can be visually observed from the graph that the control error of the PPC-ABFC is smaller than that of the other two comparison controllers. Moreover, a data comparison of the lateral error of the vehicle was conducted, as shown in
Table 2. The RMSE, MAE, SD, and VAR of the four performance indicators of PPC-ABFC were all smaller than those of ABFC and BFC.
Figure 4c shows the input values of CarSim. It is obvious that the input values of PPC-ABFC are more stable than the other two. The adjustment of PPC-ABFC is also more stable at 100–120 m.
Figure 4d shows the comparison of heading angle errors. It can be seen intuitively that the control effect of the designed PPC-ABFC controller on the heading angle is better than the other two controllers. Combining
Figure 4b and
Figure 4d, it can be concluded that the combined error during PPC-ABFC control is also smaller than that of the other two controllers.
Figure 4e shows the comparison of the yaw rate of the vehicle. It can be seen from the figure that the value of PPC-ABFC is slightly higher than that of the other two controllers. This is because the trajectory of the vehicle under this controller is very close to the expected trajectory, so it is slightly higher, which does not mean that the control effect is poor. On the contrary, the control effect of PPC-ABFC is more stable than the other two. From this, it can be seen that FLS can effectively approximate the nonlinear and disturbance terms in the vehicle model, successfully compensating for the model’s uncertainty and making the output of the controller more stable while also increasing the control accuracy. In conclusion, the control performance of PPC-ABFC meets the design requirements.
Remark 2. and are the main adjustment parameters of the controller. When other parameters remain constant, appropriately increasing can reduce the error, and increasing can enhance the stability of the controller’s output value. However, the adjustment should not be too large. When is greater than around 50 or is greater than around 200, the entire control system will experience jitter. —these are all important parameters of PPC. represents the initial error, and it needs to be as large as possible to ensure that the initial error remains within the preset range. The value of should be less than that of , but it cannot be too small, because an excessively small value would cause jittering, which could lead to the error exceeding the performance limit suddenly. is used to ensure the convergence speed. The value of can be appropriately increased, which will enhance the convergence speed. However, it cannot be set too large, as this would cause the convergence rate to be too fast, resulting in instability in the controller. The parameters and in the adaptive rules are crucial. Increasing can accelerate the convergence of weights, but if it is too large, it will lead to overshoot and oscillation. Increasing can enhance the stability of the system, but if it is too large, instability will occur.
The following is a simulation test under high-speed conditions, with a vehicle speed of 100 km/h. The PID control algorithm and the MPC algorithm were set up for comparison with PPC-ABFC. Moreover, in this group of experiments, a time calculation cost performance index was added to verify that the PPC-ABFC algorithm is superior to the MPC algorithm in terms of time cost. In
Figure 5a, the blue line represents the expected trajectory, the purple line shows the trajectory tracking effect of the vehicle under the PID controller, the orange line indicates the trajectory tracking effect under the PPC-ABFC controller, and the yellow line indicates the trajectory tracking effect under the MPC controller. It can be clearly observed that when the vehicle is running at high speed, the PID controller causes vehicle instability near 100 m and 160 m of the curve, while the PPC-ABFC controller does not experience instability and instead achieves a relatively good tracking effect. Although the MPC controller did not exhibit instability, its control accuracy was slightly lower than that of the PPC-ABFC.
Figure 5b shows the comparison of lateral errors of the vehicle during trajectory tracking.
Table 3 illustrates that the maximum lateral error under the PPC-ABFC strategy is only 0.0981 m, which is much smaller than the control error under the PID controller and also less than the lateral error value of 0.1526 under the MPC strategy. Moreover, a data comparison was conducted, and the RMSE, MAE, SD, and VAR of the four performance indicators of PPC-ABFC were all smaller than those of PID and MPC.
Figure 5c is a comparison chart of the control input. The input values of CarSim are shown in the figure. It can be observed that although there is some jitter when using PPC-ABFC control, the overall control input is relatively stable. In contrast, under PID control, the control input shows a reverse value at 170 m.
Moreover, the MPC also experienced shaking when turning.
Figure 5d is a comparison chart of heading angle error. It can be observed that the control error of the designed PPC-ABFC controller is smaller than that of the PID and MPC controllers. Combining
Figure 5b and
Figure 5d, the combined error under PPC-ABFC control is smaller than that of the PID and MPC controllers.
Figure 5e is a comparison chart of yaw rate. It can be observed that when PPC-ABFC control is applied, the yaw rate is lower than that under PID control, indicating that the vehicle’s stability is superior to that under PID control. The yaw rate under the MPC control strategy is also slightly greater than that under PPC-ABFC. Thus, it can be seen that the vehicle’s driving is more stable under the PPC-ABFC control. In
Table 3, the total running time cost of each controller is shown. It can be seen that the time cost of PPC-ABFC is 38.8% lower than that of MPC, and its control accuracy is also better than that of MPC. Although the PID algorithm requires very little time cost, it fails to achieve sufficient control accuracy in high-speed simulation scenarios, which may lead to vehicle safety hazards. In conclusion, the designed PPC-ABFC controller outperforms other control algorithms in tracking the expected trajectory during high-speed vehicle operation, and all the values are relatively good; the time cost is also lower than that of the comparison algorithm. It can be seen that the designed controller meets the expected effect.