Research on Trajectory Tracking of Sliding Mode Control Based on Adaptive Preview Time

: The preview model is one of the common methods used in trajectory tracking. The traditional ﬁxed preview time is not adaptable to most speeds and road conditions, which not only reduces the tracking accuracy but also reduces the vehicle stability. Therefore, a controller can be designed to determine the adaptive preview time based on an optimization function of the lateral deviation, the road boundary, and the road boundary of the whole vehicle motion response characteristics. Traditional optimal preview control theory predicts the next state of the vehicle by the assumption of constant transverse pendulum angular velocity. In this paper, an expectation-based approach is used to ﬁnd the ideal steering wheel turning angle based on the adaptive preview time, and a single-point preview model is established. Based on the two-degree-of-freedom dynamics model, a sliding mode controller is designed for control, and the low-pass ﬁlters are designed to suppress jitter in the sliding mode controller. Simulation results with different preview times, different speeds and different road adhesion coefﬁcients prove that the controller has a good control effect and has good effectiveness and adaptability to speed and adhesion coefﬁcient. tracking controller has a better control effect verifies the effectiveness and adaptability of the controller to speed and adhesion coefficient. the controller’s ability to adapt to both high and low adhesion surfaces, but as the adhesion coefficient decreases, the maximum speed that can be achieved without reducing tracking accuracy gradually decreases. selection of pre ‐ view time for the input of the controller, so there is too much reliance on the right preview time. Furthermore, the question of jitter is difficult to eliminate com ‐ pletely, there are some problems for practical control. This study only considers low ‐ pass filter in combination with sliding mode control ler, and does not complex filters such as Kalman filter, and the design of sliding mode surface in subsequent studies the higher order sliding mode theory.


Introduction
The autonomous vehicle is a new future concept that fulfills people's vision of the future. It is an integrated system that brings together environmental perception, planning and decision-making, and control execution, integrating technologies such as sensors, information interaction, artificial intelligence, automatic control, and traditional vehicles, and is an innovative embodiment of cross-fertilization of disciplines [1]. Trajectory tracking is an indispensable part of control execution technology, which relies on the underlying control technology of the vehicle and also requires good tracking of the planned trajectory, and good tracking effect has important significance for the safety and control of intelligent vehicles, which can reduce the probability of traffic accidents due to driver negligence and can reduce the dependence of previous vehicles on driver operation. The preview follower theory can accurately reflect the driver's control behavior [2], and the lateral position deviation of the preview point position from the desired trajectory can be obtained based on the two-degree-of-freedom vehicle dynamic model, and then the ideal yaw rate which is used to provide input for the sliding mode controller can be calculated.
The current research in the field of vehicle control focuses on establishing an efficient and reasonable lateral stability control strategy [3], and the main lateral control algorithms The current research in the field of vehicle control focuses on establishing an efficient and reasonable lateral stability control strategy [3], and the main lateral control algorithms include classical PID (Proportional Integral Derivative) control methods [4], optimal preview control methods [5,6], robust control [7], sliding mode control methods [8], modern control algorithm MPC (Model Predictive Control) methods [9,10], fuzzy control methods [11], and so on, and the optimization strategies of various methods are innumerable. The literature uses lane line detection techniques combined with model predictive control to design controllers [12]; uses particle swarms to optimize higher-order sliding mode control parameters [13]; and designs controllers based on adaptive preview with directional error compensation [14].
The principle of sliding mode control is to design the switching plane of the system according to the desired dynamic characteristics of the system. This plane represents the steady state of the system, after which the system state is made to converge from out of plane to the switching plane by means of a sliding mode controller. Zhang et al. [15] designed a path tracking control strategy with strong robustness and without chattering based on a sliding mode technique with conditional integrators. Exact linear transformation method was used by Zhang et al. [16] to linearize the system model and a sliding-mode controller was designed for the trajectory tracking of semi-trailer vehicles in automatic reversing. In order to improve the longitudinal motion control accuracy of intelligent vehicles, the RBF (Radial Basis Function) neural network adaptive sliding mode control strategy was used by Hui Yijia [17] to control the longitudinal dynamics of intelligent vehicles.
Although the sliding mode control method is prone to jitter, it also has more advantages such as being insensitive to perturbations of parameter changes, more resistant to disturbances, more robust, and can respond quickly. In this paper, the ideal angular velocity of the transverse pendulum is obtained using the preview point, and the sliding mode controller is designed to perform the control.

Vehicle Dynamics Model
The vehicle dynamics model can be used to study the handling stability as well as the smoothness of the ride, and it is used in the field of trajectory tracking to perform stability studies. The dynamics model is modeled using two-degree-of-freedom dynamics, which is simplified to a bicycle model [18], as shown in Figure 1. In this Figure: a is the distance from the center of mass to the front axle; b is the distance from the center of mass to the rear axle; Fyf is the lateral force of the front wheel; Fyr is the lateral force of the rear wheel; vx is the longitudinal speed; vy is the lateral speed; ω is the angular velocity of transverse pendulum; β is the lateral deflection angle of the center of mass.  Assuming that the front wheels of the vehicle rotate at a small angle, the dynamic equation of vehicle centroid is established, and the set of equations is as follows [19]: where m is the mass of the whole vehicle, I z is the rotational inertia of the vehicle at the center of mass, . v x is the lateral acceleration, .
ω is the angular acceleration of the transverse pendulum.
Supposing the front wheel of the vehicle rotates at a small angle, the relationship between lateral deflection force, lateral deflection angle and lateral deflection stiffness when the tire is in the linear region can be expressed as follows: where C f and C r are the front wheel lateral deflection stiffness and rear wheel lateral deflection stiffness respectively, α f and α r are front wheel lateral deflection angle and rear wheel lateral deflection angle. The front wheel side deflection angle and the rear wheel side deflection angle of the vehicle is related to its motion parameters. Assuming that the velocities of the front and rear axles of the vehicle are v x and v y respectively, lateral deflection angle of the center of mass is β, The angle between the direction of velocity of the front wheel and the x-axis is θ, which can be expressed as follows: The lateral deflection angle of the front and rear wheels of vehicle in Figure 1 can be expressed as follows: The model equations for the two degrees of freedom of the vehicle with respect to the transverse pendulum angle ω and the lateral declination angle β of the center of mass can be obtained by Equations (1), (2) and (4):

Optimal Curvature Single Point Preview
The ideal steering wheel turning angle is decided by the expectation-based method [20], and a constant transverse pendulum angular velocity assumption is made, as shown in Figure 2. The predicted trajectory is treated as a circle with point E as the center and radius R, and the angle of the center of the circle is θ. Actuators 2022, 11, x FOR PEER REVIEW 4 of 20 Figure 2. Steady-state transverse pendulum angle single-point preview model.
In Figure 2, XOY is inertial coordinate system; XG-YG is body coordinate system; point G is the position of the center of mass of the vehicle; point C is the predicted position after tp time; point P is the preview point on the target trajectory; Δf is the lateral deviation; xGC and yGC are the displacements in the XG and YG directions after tp time; φ is the vehicle heading angle; β is the mass lateral deviation angle; and v is the vehicle travel speed.
The ideal angular velocity of the transverse pendulum ω d can be expressed as follows: Parameter ω d is calculated under the assumption of steady-state transverse pendulum angular velocity, so there is a slight deviation from the theoretical one. During the simulation, it was found that the magnitude of ω d is related to the velocity, and after extensive simulation verification, the formula for calculating ω d was adjusted as follows:

Adaptive Preview Time
By selecting different preview time tp, the driver is simulated to adapt to different road conditions to attain the preview distance, and the general preview time is selected in the range of 0.3-1.5 s.
L_Drv_2 is the lateral offset of the current center of mass and the distance between the actual trajectory, designing the cost function according to L_Drv_2 considering tracking accuracy [21,22]: where L_Drv_2 is the lateral offset, t is model prediction time.
In order to satisfy the boundary constraints, the driver model must design an optimization function for the distance between the trajectory and the boundary location to ensure that the vehicle can safely cross the road: (9) where g is security functions, the closer the vehicle position is to the boundary, the larger the g value. g is calculated: In Figure 2, XOY is inertial coordinate system; X G -Y G is body coordinate system; point G is the position of the center of mass of the vehicle; point C is the predicted position after t p time; point P is the preview point on the target trajectory; ∆f is the lateral deviation; x GC and y GC are the displacements in the X G and Y G directions after t p time; ϕ is the vehicle heading angle; β is the mass lateral deviation angle; and v is the vehicle travel speed.
The ideal angular velocity of the transverse pendulum ω d can be expressed as follows: Parameter ω d is calculated under the assumption of steady-state transverse pendulum angular velocity, so there is a slight deviation from the theoretical one. During the simulation, it was found that the magnitude of ω d is related to the velocity, and after extensive simulation verification, the formula for calculating ω d was adjusted as follows:

Adaptive Preview Time
By selecting different preview time t p , the driver is simulated to adapt to different road conditions to attain the preview distance, and the general preview time is selected in the range of 0.3-1.5 s.
L_Drv_2 is the lateral offset of the current center of mass and the distance between the actual trajectory, designing the cost function according to L_Drv_2 considering tracking accuracy [21,22]: where L_Drv_2 is the lateral offset, t is model prediction time.
In order to satisfy the boundary constraints, the driver model must design an optimization function for the distance between the trajectory and the boundary location to ensure that the vehicle can safely cross the road: Actuators 2022, 11, 34 5 of 20 where g is security functions, the closer the vehicle position is to the boundary, the larger the g value. g is calculated: (10) where L_Drv_2 is the lateral offset, the width of the road is set at 3.5 m.
When designing the preview time, the dynamic response time characteristics of the steering motion of the vehicle also need to be taken into account: where T is time associated with vehicle steering response characteristics, it can be taken as 1 s or shorter when the speed is high, and can be increased when the speed is low.
Combining the above optimization functions, the optimization function is obtained as: where ω 1 , ω 2 , ω 3 is weight factor, the setting of weights is related to the purpose achieved, ω 1 is related to the accuracy of trajectory tracking; ω 2 is related to the distance between the vehicle and the road boundary; ω 3 is related to the response characteristics of the whole vehicle. The range of preview is from 0.3 s to 1.5 s; this study has designed a multiple criteria optimization with three selection principles to select the best preview time. The method the study used is an iterative method which through the array [0.3,1.5] with a step size of 0.01 s, to find the smallest J at each moment (J = min(ω 1 J 1 + ω 2 J 2 + ω 3 J 3 )). The values of the three weighting parameters are ω 1 = 0.2; ω 2 = 0.05; ω 3 = 0.75.

Design of Sliding Mode Controller
By combining the advantages of sliding mode control and the preview control algorithm, a sliding mode controller based on preview control is designed, which can reflect both the driver's operating characteristics and boundary constraints, as well as the motion response characteristics of the whole vehicle. The controller is insensitive to the perturbation of parameter changes, with better anti-interference capability and robustness, and also previews the path; in this way, it can guarantee the steering wheel rotation stability, improve the tracking effect of the trajectory tracking control algorithm, and enhance the accuracy of the tracking controller [23]. The design diagram of the sliding mode controller is shown in Figure 3, the parameters in the Figure 3 are described in detail in the derivation of the equations later. where L_Drv_2 is the lateral offset, the width of the road is set at 3.5 m. When designing the preview time, the dynamic response time characteristics of steering motion of the vehicle also need to be taken into account: where T is time associated with vehicle steering response characteristics, it can be ta as 1 s or shorter when the speed is high, and can be increased when the speed is low.
Combining the above optimization functions, the optimization function is obtained where ω 1 、ω 2 、ω 3 is weight factor, the setting of weights is related to the purp achieved, is related to the accuracy of trajectory tracking; ω 2 is related to the dista between the vehicle and the road boundary; ω 3 is related to the response characteris of the whole vehicle.
The range of preview is from 0.3 s to 1.5 s; this study has designed a multiple crit optimization with three selection principles to select the best preview time. The met the study used is an iterative method which through the array [0.3,1.5] with a step siz 0.01 s, to find the smallest J at each moment (

Design of Sliding Mode Controller
By combining the advantages of sliding mode control and the preview control a rithm, a sliding mode controller based on preview control is designed, which can ref both the driver's operating characteristics and boundary constraints, as well as the mo response characteristics of the whole vehicle. The controller is insensitive to the pertu tion of parameter changes, with better anti-interference capability and robustness, also previews the path; in this way, it can guarantee the steering wheel rotation stabi improve the tracking effect of the trajectory tracking control algorithm, and enhance accuracy of the tracking controller [23]. The design diagram of the sliding mode contro is shown in Figure 3, the parameters in the Figure

Design of Low-Pass Filters
Combining sliding mode control methods with filters enables filtering of noisy signals, providing a smooth signal for the sliding mode controller. The structure of a low-pass filterbased sliding mode controller control system is shown in the following diagram [23,24], where ω r (t), δ sw (t) is input for control, δ sw (t), ω r is output for control. To reduce jitter generated by the sliding mode controller, the low-pass filter is designed as follows: From Figure 4, we can obtain: . .

Design of Low-Pass Filters
Combining sliding mode control methods with filters enables filtering of noisy signals, providing a smooth signal for the sliding mode controller. The structure of a lowpass filter-based sliding mode controller control system is shown in the following diagram [23,24], where ω r t , δ sw (t) is input for control, δ sw t ,ω r is output for control. To reduce jitter generated by the sliding mode controller, the low-pass filter is designed as follows: From Figure 4, we can obtain: ω r +Φ 2 ω r =Φ 2 ω r (15) τ +ξτ=ξu (16)

Design of Sliding Mode Control Law
For a system that is uncertain and needs to take into account the uptake of internal parameters as well as external disturbances, the system equation of state can be better formulated as: Equation (5) can be rewritten by Equation (17) as: where is The equation of the controlled system can be expressed as the following equation of the state: The uncertainty of the system and imposed disturbances are expressed in terms of E(t), which can be expressed as: Taking Equation (22) into Equation (21), we get into Equation, we obtain:

Design of Sliding Mode Control Law
For a system that is uncertain and needs to take into account the uptake of internal parameters as well as external disturbances, the system equation of state can be better formulated as: Equation (5) can be rewritten by Equation (17) as: where is The equation of the controlled system can be expressed as the following equation of the state: .
The uncertainty of the system and imposed disturbances are expressed in terms of E(t), which can be expressed as: Taking Equation (22) into Equation (21), we get into Equation, we obtain: .
Taking Equation (23) into Equation (16), we obtain: Transforming the formula provides: The difference between the actual transverse pendulum angular velocity ω r and the ideal transverse pendulum angular velocity ω d is chosen as the tracking error of this system: The switching function is selected as follows: where λ is a positive integer. Taking Equation (26) into Equation (27) and the derivative of Equation (27), we obtain: Taking Equations (23) and (25) into Equation (28), we obtain: Choosing a Lyapunov function candidate V = 1 2 s 2 and differentiating V with respect to time, we have: To ensure the stability of the system, the design control law is: ) and η is a positive integer. Taking Equation (31) into Equation (30), we obtain: where ξ = 1500 > λ = 60 and η > 0. Let . s = 0, at this time, the angular acceleration of the transverse pendulum . ω d = 0. From Equation, the front wheel angle control input can be obtained as follows: Obtain the final sliding mode control law: In order to obtain the final control quantity, the equation for calculating the angle from the front wheel to the steering wheel is as follows: where i sw is the angular transmission ratio of the steering wheel angle and the wheel angle.
To test the effectiveness of the filter, the following operating conditions were set up for comparison tests, such as taking a coefficient of adhesion of 0.
where isw is the angular transmission ratio of the steering wheel angle and the wheel angle.
To test the effectiveness of the filter, the following operating conditions were set up for comparison tests, such as taking a coefficient of adhesion of 0.
where isw is the angular transmission ratio of the steering wheel angle and the wheel angle.
To test the effectiveness of the filter, the following operating conditions were set up for comparison tests, such as taking a coefficient of adhesion of 0.     These results above show that the filter is highly effective in reducing and even eliminating jitter caused by the controller. Table 1 summarizes the parameters of the sliding controller used in the simulation test. It is important to note that Φ1′s value is a reference value and the exact value will be influenced by parameters such as speed: Table 1. Parameters of sliding mode controller.

Parameters
Value Unit    These results above show that the filter is highly effective in reducing and even eliminating jitter caused by the controller. Table 1 summarizes the parameters of the sliding controller used in the simulation test. It is important to note that Φ1′s value is a reference value and the exact value will be influenced by parameters such as speed: Table 1. Parameters of sliding mode controller.

Parameters
Value Unit These results above show that the filter is highly effective in reducing and even eliminating jitter caused by the controller. Table 1 summarizes the parameters of the sliding controller used in the simulation test. It is important to note that Φ 1 s value is a reference value and the exact value will be influenced by parameters such as speed: Table 1. Parameters of sliding mode controller.

Parameters
Value Unit

Construction of Joint Simulation Platform
The vehicle data in Carsim is sent to the model built by Simulink in the form of S-function, the sampling period used in the simulation tests is 0.001 s, and the designed sliding mode controller is added to the model as follows in Figure 9:

Construction of Joint Simulation Platform
The vehicle data in Carsim is sent to the model built by Simulink in the form of Sfunction, the sampling period used in the simulation tests is 0.001 s, and the designed sliding mode controller is added to the model as follows in Figure 9: Set the input and output parameters of Carsim, the first two are input and the others are output parameters, as follows in Table 2: The Table 3 to summarize the parameters of the vehicle used in simulation tests is shown as follows:

Double Shift Road Path Planning
Using the ISO/3888-1:2016 standard double shift line with the road centerline as the ideal path, the test route is schematically shown as follows: The numbers 1 and 2 indicate the direction of travel of the vehicle and the offset of the road, the number 3 indicates the width of the road, and one to five indicate the name of the road section in Figure 10. Set the input and output parameters of Carsim, the first two are input and the others are output parameters, as follows in Table 2: The Table 3 to summarize the parameters of the vehicle used in simulation tests is shown as follows:

Double Shift Road Path Planning
Using the ISO/3888-1:2016 standard double shift line with the road centerline as the ideal path, the test route is schematically shown as follows: The numbers 1 and 2 indicate the direction of travel of the vehicle and the offset of the road, the number 3 indicates the width of the road, and one to five indicate the name of the road section in Figure 10. Set up the double-shifted road in Carsim in the form of discrete points, and the road centerline coordinate points are set up as shown in Table 4:  As can be seen from Figure 11, the tracking accuracy at section one and section five basically remains within 0.025 m, and as the speed increases from 5 m/s to 20 m/s (i.e., from 18 km/h to 72 km/h), the error at section five increases to 0.05 m at 25 m/s, which is still within the acceptable range. However, the result is not within the acceptable range at 30 m/s, the trajectory is unsatisfactory and the tracking error of 0.27 m is too high for tracking.

Simulation Verification of Double-Shifted Line Working Condition
The analysis of section two and section four is neglected because the reference is the centerline of the road at the location at that time.  Set up the double-shifted road in Carsim in the form of discrete points, and the road centerline coordinate points are set up as shown in Table 4:  As can be seen from Figure 11, the tracking accuracy at Sections 1 and 5 basically remains within 0.025 m, and as the speed increases from 5 m/s to 20 m/s (i.e., from 18 km/h to 72 km/h), the error at Section 5 increases to 0.05 m at 25 m/s, which is still within the acceptable range. However, the result is not within the acceptable range at 30 m/s, the trajectory is unsatisfactory and the tracking error of 0.27 m is too high for tracking.  Table 5 is made of data from Figures 12-17, and it is clarified that the maximum offset and the minimum offset are taken as the difference between the highest point and the two endpoints on the road section three and the centerline of the road: From these data above, as the speed of the vehicle continues to increase, the maximum error in Section 3 increases and the tracking effect of the controller gradually diminishes. It can be seen that at speeds of 5-25 m/s, the maximum offset from the road centerline on Section 3 does not exceed 0.26 m; thus, the tracking effect of the sliding mode controller based on adaptive preview time is good. Table 5 is made of data from Figures 12-17, and it is clarified that the maximum offset and the minimum offset are taken as the difference between the highest point and the two endpoints on the road Section 3 and the centerline of the road:   Table 5 is made of data from Figures 12-17, and it is clarified that the maximum offset and the minimum offset are taken as the difference between the highest point and the two endpoints on the road section three and the centerline of the road:      Table 5 and all the trajectory comparison graphs above, the absolute value of the maximum offset in road section three from 5 m/s to 25 m/s does not exceed 0.031 m, and the absolute value of the minimum offset does not exceed 0.260 m, so the controller can be judged to be tracking well at speeds from 5 m/s to 20 m/s. The smaller absolute value of the error of the designed SMC controller based on adaptive preview time compared to other controllers with fixed preview times of 0.5 s, 0.8 s and 1.2 s, the results of these data prove that the effectiveness of the designed controller when road adhesion coefficient is 0.9.

Double-Shifted Working Condition under Low Adhesion Coefficient Pavement
Set the road adhesion coefficient as μ = 0.5, and let the vehicle track the set doubleshift line path with longitudinal speed of 5 m/s, 10 m/s, 15 m/s and 20 m/s respectively. Taking the vehicle mass center to road centerline offset as the tracking error, the joint simulation results are as follows (where RCL is road center line, T is trajectory, TE is tracking error, APT is adaptive preview time, PT is preview time).  Table 5 and all the trajectory comparison graphs above, the absolute value of the maximum offset in road section three from 5 m/s to 25 m/s does not exceed 0.031 m, and the absolute value of the minimum offset does not exceed 0.260 m, so the controller can be judged to be tracking well at speeds from 5 m/s to 20 m/s. The smaller absolute value of the error of the designed SMC controller based on adaptive preview time compared to other controllers with fixed preview times of 0.5 s, 0.8 s and 1.2 s, the results of these data prove that the effectiveness of the designed controller when road adhesion coefficient is 0.9.

Double-Shifted Working Condition under Low Adhesion Coefficient Pavement
Set the road adhesion coefficient as μ = 0.5, and let the vehicle track the set doubleshift line path with longitudinal speed of 5 m/s, 10 m/s, 15 m/s and 20 m/s respectively. Taking the vehicle mass center to road centerline offset as the tracking error, the joint simulation results are as follows (where RCL is road center line, T is trajectory, TE is tracking error, APT is adaptive preview time, PT is preview time).  Table 5 and all the trajectory comparison graphs above, the absolute value of the maximum offset in road Section 3 from 5 m/s to 25 m/s does not exceed 0.031 m, and the absolute value of the minimum offset does not exceed 0.260 m, so the controller can be judged to be tracking well at speeds from 5 m/s to 20 m/s. The smaller absolute value of the error of the designed SMC controller based on adaptive preview time compared to other controllers with fixed preview times of 0.5 s, 0.8 s and 1.2 s, the results of these data prove that the effectiveness of the designed controller when road adhesion coefficient is 0.9.

Double-Shifted Working Condition under Low Adhesion Coefficient Pavement
Set the road adhesion coefficient as µ = 0.5, and let the vehicle track the set double-shift line path with longitudinal speed of 5 m/s, 10 m/s, 15 m/s and 20 m/s respectively. Taking the vehicle mass center to road centerline offset as the tracking error, the joint simulation results are as follows (where RCL is road center line, T is trajectory, TE is tracking error, APT is adaptive preview time, PT is preview time).
From Figure 18 it can be seen that when the speed is set between the range of 5 m/s to 20 m/s, the tracking accuracy of road Section 1 and the road Section 5 basically remain within 0.037 m; this shows that the designed controller tracks well on sections on and five from 5 m/s to 20 m/s. Figure 18 it can be seen that when the speed is set between the range of 5 m/s to 20 m/s, the tracking accuracy of road section one and the road section five basically remain within 0.037 m; this shows that the designed controller tracks well on sections on and five from 5 m/s to 20 m/s.  Table 6 is made of data from Figures 19-22, and it is clarified that the maximum offset and the minimum offset is taken as the difference between the highest point and the two endpoints on the road section three and the centerline of the road: From these data above, as the speed of the vehicle continues to increase, the maximum offset and the minimum offset in Section 3 increases and the tracking effect of the controller gradually diminishes. It can be seen that at speeds of 5-20 m/s, the maximum offset from the road centerline on Section 3 does not exceed 0.0320 m and the minimum offset from the road centerline on Section 3 does not exceed 0.1680 m. This shows that the tracking effect of the sliding mode controller based on adaptive preview time is good when road adhesion coefficient is 0.5. Table 6 is made of data from Figures 19-22, and it is clarified that the maximum offset and the minimum offset is taken as the difference between the highest point and the two endpoints on the road Section 3 and the centerline of the road:   Table 6 and the above trajectory comparison graph, it can be seen that the absolute value of the maximum offset in road section tree from 5 m/s to 20 m/s does not exceed 0.031 m, and the absolute value of the minimum offset does not exceed 0.1600 m, so the controller can be judged to be tracking well at speeds from 5 m/s to 20 m/s. The smaller absolute value of the error of the designed SMC controller based on adaptive preview time compared to other controllers with fixed preview times of 0.5 s, 0.8 s and 1.2 s, the results of these data prove the effectiveness of the designed controller when the road adhesion coefficient is 0.5.

Comparative Simulation Experiments with Another Typical Algorithm
PP (Pure Pursuit) is a typical and transversal algorithm; it is a geometric algorithm based on a single preview point, with good robustness to the outside world, essentially referring to a fixed preview distance algorithm. Its structure is shown in the following diagram in Figure 23.  Table 6 and the above trajectory comparison graph, it can be seen that the absolute value of the maximum offset in road Section 3 from 5 m/s to 20 m/s does not exceed 0.031 m, and the absolute value of the minimum offset does not exceed 0.1600 m, so the controller can be judged to be tracking well at speeds from 5 m/s to 20 m/s. The smaller absolute value of the error of the designed SMC controller based on adaptive preview time compared to other controllers with fixed preview times of 0.5 s, 0.8 s and 1.2 s, the results of these data prove the effectiveness of the designed controller when the road adhesion coefficient is 0.5.

Comparative Simulation Experiments with Another Typical Algorithm
PP (Pure Pursuit) is a typical and transversal algorithm; it is a geometric algorithm based on a single preview point, with good robustness to the outside world, essentially referring to a fixed preview distance algorithm. Its structure is shown in the following diagram in Figure 23. In ΔOAB, we can know: From the sine theorem, we know that: In ∆OAB, we can know: From the sine theorem, we know that: From the Ackermann turn, it follows that: Join Equations (37) and (38), we can know: Comparison tests with a road adhesion coefficient of 0.9 and vehicle speeds of 15 m/s and 20 m/s with double shift conditions, the contrasted figures of the simulation results are shown below: From simulation results of Figure 24, the errors of the two algorithms on Section 1 is less than 0.01 m and less than 0.015 m, so the PP algorithm tracks better in this part. Meanwhile, on Section 3, the peak point of the trajectory of the PP algorithm is larger than that of the SMC algorithm, so the SMC algorithm tracks better in this part. On Section 5, the tracking error of the PP algorithm is less 0.15 m and the SMC algorithm tracking five rubbing sweat is less than 0.025 m, so the SMC algorithm tracking effect is better in this part. Overall, the trajectory of the SMC algorithm follows the road centerline more closely than the trajectory of the PP algorithm, compared with fixed preview distance in the PP algorithm, the tracking effect of the sliding mode controller based on adaptive preview time is better.

Conclusions
The validity of the model established by Simulink-Carsim joint simulation is verified by the simulation results, and the results show that the adaptive optimization function of the preview time is established, and the optimization index is established based on the trajectory deviation, boundary distance, and vehicle steering motion characteristics to realize the adaptive change of the preview time of the sliding mode controller. In order to solve the problem of jitter in the sliding mode control, a low-pass filter has been added, and from the results, the jitter of the control volume is greatly reduced after the low-pass filter.
The results of the simulation show that the designed controller tracks well at a coefficient of adhesion of 0.9 and at speeds between 0 and 25 m/s, also tracking well at a coefficient of adhesion of 0.5 and at speeds between 0 and 20 m/s, and compared with the fixed preview time controller (PP), it can better reflect the driver's operating characteristics, the boundary constraints, the motion response characteristics of the whole vehicle,

Conclusions
The validity of the model established by Simulink-Carsim joint simulation is verified by the simulation results, and the results show that the adaptive optimization function of the preview time is established, and the optimization index is established based on the trajectory deviation, boundary distance, and vehicle steering motion characteristics to realize the adaptive change of the preview time of the sliding mode controller. In order to solve the problem of jitter in the sliding mode control, a low-pass filter has been added, and from the results, the jitter of the control volume is greatly reduced after the low-pass filter.
The results of the simulation show that the designed controller tracks well at a coefficient of adhesion of 0.9 and at speeds between 0 and 25 m/s, also tracking well at a coefficient of adhesion of 0.5 and at speeds between 0 and 20 m/s, and compared with the fixed preview time controller (PP), it can better reflect the driver's operating characteristics, the boundary constraints, the motion response characteristics of the whole vehicle, and has a better path tracking effect. The controller has a better control effect and verifies the effectiveness and adaptability of the controller to speed and adhesion coefficient. This demonstrates the designed controller's ability to adapt to both high and low adhesion surfaces, but as the adhesion coefficient decreases, the maximum speed that can be achieved without reducing tracking accuracy gradually decreases. The selection of preview time is very important for the input of the controller, so there is too much reliance on the right preview time. Furthermore, the question of jitter is difficult to eliminate completely, so there are some problems for practical control.
This study only considers low-pass filter in combination with sliding mode controller, and does not consider complex filters such as Kalman filter, and the design of sliding mode surface in subsequent studies can consider the higher-order sliding mode theory.

Conflicts of Interest:
The authors declare no conflict of interest.