A path tracking method for intelligent vehicles with preview characteristics based on model predictive control

The fuzzy reasoning system calculates the preview distance coefficient and reference heading angle, optimizes the MPC controller, solves the tracking error and stability problems of the MPC algorithm when turning in curves, and improves the vehicle's steering stability and tracking accuracy.

CN114326709BActive Publication Date: 2024-09-13CHENGDU UNIV OF INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111469875.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-09-13
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

Existing model predictive control (MPC) algorithms have tracking errors and vehicle stability problems in path tracking, especially delays and reduced tracking accuracy when turning in curves.

Method used

The preview characteristic intelligent vehicle path tracking method based on the fuzzy inference system is adopted. By calculating the preview distance coefficient, combined with the vehicle's current longitudinal speed and lateral error, the reference heading angle is calculated, and the MPC controller is optimized to improve steering stability and tracking accuracy.

Benefits of technology

It significantly improves the vehicle's stability and tracking accuracy when turning in curves, reduces tracking errors, and improves the overall performance of path tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114326709B
    Figure CN114326709B
Patent Text Reader

Abstract

The present invention discloses a method for intelligent vehicle path tracking with preview characteristics based on model predictive control, including: step 1, taking the average curvature and the average curvature change rate within a fixed distance in front of the vehicle as the input of the fuzzy inference system, and the preview coefficient as the output of the fuzzy inference system; step 2, substituting the preview coefficient, the current vehicle speed and the current vehicle lateral error into the proposed preview distance formula to obtain the value of the preview distance; step 3, mapping the preview distance to the reference path to obtain the corresponding reference point, and taking the reference point, the current position of the vehicle and the angle formed by the X-axis in the world coordinate system as the reference heading angle of the MPC controller at the current sampling moment; step 4, establishing a vehicle kinematic model, obtaining a prediction time domain equation, optimizing and obtaining the MPC problem and solving it, and realizing the path tracking of the unmanned vehicle. The method provided by the present invention can improve the stability and tracking accuracy of the vehicle when turning during the path tracking process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of driverless vehicle path tracking control, and in particular to an intelligent vehicle path tracking method with preview characteristics based on model predictive control. Background Art

[0002] With the substantial progress of computer technology, many companies have begun to study autonomous driving technology and conduct real vehicle tests. The architecture of the autonomous system of an autonomous vehicle can usually be divided into a perception system and a decision-making system, in which the decision-making system includes path planning and path tracking technology. Path tracking is a direct and efficient way to improve the level of autonomous driving. At present, many scholars have conducted in-depth research on path tracking technology. The most commonly used path tracking algorithms include Stanley algorithm, Purepursuit algorithm, PID control algorithm, LQR control algorithm, sliding control algorithm and MPC algorithms. Among the above algorithms, the MPC algorithm has outstanding performance in the case of multiple inputs and multiple outputs and multiple constraints, and with the continuous improvement of computer performance, MPC has become a hot spot in path tracking technology.

[0003] Although the MPC algorithm performs well in path tracking, there are still some tracking errors and vehicle stability problems. In addition, due to the lack of vehicle preview driving characteristics, there is a certain delay when the vehicle turns on a curve, and the tracking accuracy will decrease in some curves with large curvature changes. In order to solve the above problems, this paper proposes an intelligent vehicle path tracking method with preview characteristics based on model predictive control. This method calculates the preview distance coefficient through a fuzzy inference system based on the average curvature and the average curvature change rate within a fixed distance in front of the vehicle, and then calculates the preview distance in combination with the current longitudinal speed of the vehicle and the current lateral error of the vehicle. The angle formed by the reference point corresponding to the preview distance and the current position of the vehicle and the center axis of the world coordinate system is used as the reference heading angle of the MPC controller at the current sampling moment, so that the vehicle is ready to turn when it is about to enter the curve, thereby improving the steering stability and tracking accuracy of the vehicle. Summary of the invention

[0004] An object of the present invention is to solve at least the above problems and / or disadvantages and to provide at least the advantages described below. In order to achieve these objects and other advantages according to the present invention, a method for intelligent vehicle path tracking with preview characteristics based on model predictive control is provided, comprising:

[0005] Step 1: taking the average curvature and the average curvature change rate within a fixed distance in front of the vehicle as the input of the fuzzy inference system, and the preview coefficient as the output of the fuzzy inference system;

[0006] Step 2: Substitute the preview coefficient, the current vehicle speed and the current vehicle lateral error into the proposed preview distance formula to obtain the value of the preview distance;

[0007] Step 3: Map the preview distance to the reference path to obtain the corresponding reference point, and use the angle formed by the reference point, the current position of the vehicle, and the X-axis in the world coordinate system as the reference heading angle of the MPC controller at the current sampling moment;

[0008] Step 4: Establish a vehicle kinematic model, obtain the prediction time domain equation, obtain the MPC problem after optimization and solve it to achieve path tracking of the unmanned vehicle.

[0009] Preferably, in step 1, the process is as follows: the braking distance, i.e., the fixed distance in front of the vehicle, is calculated based on the friction coefficient of the road surface and the maximum speed; the road at the fixed distance in front of the vehicle is discretized into multiple points, and the curvature of each point is obtained by the curvature formula, i.e., formula 1, to obtain the road curvature K of the i-th point: i :

[0010]

[0011] Among them: y″ is the second-order derivative of the road function, y′ is the first-order derivative of the road function; the road curvature value range and the road curvature change rate value range are calculated by the minimum turning radius specified by the road; within the specified value range, the multiple K i The average curvature of the road is obtained by averaging The average curvature change rate of the road is obtained by adding and averaging the curvature derivatives of each discrete point. The average curvature of the road and the mean curvature rate of change As the input of the fuzzy inference system, the range of the preview coefficient α is obtained through fuzzy calculation.

[0012] Preferably, in step 2, the process is: the preview coefficient α and the current vehicle longitudinal speed V and the current lateral error y E Substitute into formula 2:

[0013] T max =αV

[0014] T=T max (1-β)

[0015] N z =VT

[0016]

[0017] Where: V is the current vehicle longitudinal speed, α is the preview coefficient, T maxand T are the maximum preview time and preview time respectively, N z To preview the distance, is the maximum acceptable lateral error.

[0018] Preferably, in step 3, the current position of the vehicle (X(t), Y(t)) and the reference point corresponding to the maximum preview distance (X(t+k), Y r The angle between (t+k) and the X-axis in the world coordinate system is used as the reference heading angle of the MPC controller. That is formula three:

[0019]

[0020] Preferably, in step 4, it includes:

[0021] S41. Establishing a kinematic model of the unmanned vehicle, the process is: in an inertial coordinate system, establishing a vehicle kinematic model of the intelligent vehicle as follows:

[0022]

[0023] Where (x, y) is the coordinate of the rear axle center of the vehicle. is the heading angle of the vehicle, δ f is the front wheel deflection angle of the vehicle, l is the wheelbase of the vehicle, V is the center speed of the rear axle of the vehicle, and the symbol “·” on the parameter represents the first-order derivative of the parameter.

[0024] The model can be expressed in a more general form, namely, Formula 5:

[0025]

[0026] Among them: The state variables of the system can be expressed as The control variable of the system can be expressed as u = [δ f ], f(·) is the vehicle kinematic model function;

[0027] S42, linearly discretize the nonlinear kinematic model of the vehicle to obtain the prediction time domain equation, the process is: the state and control quantity of the reference system at any time satisfy Formula 6:

[0028]

[0029] At any reference path point (ξ r ,u r ), Taylor expansion is performed on Formula 5, higher-order terms are ignored, and only first-order terms are retained to obtain Formula 7:

[0030]

[0031]

[0032] Among them A t is the Jacobian matrix of f(ξ,u) relative to the state variable ξ, B t is the Jacobian matrix of f(ξ,u) relative to the control variable u, ξ r represents the state quantity of the reference point, where ξ r In The value of is obtained in step 3 The value of u r Indicates the control quantity of the reference point.

[0033] Subtracting Formula 7 from Formula 6 yields the linear error model of the vehicle, which is Formula 8:

[0034]

[0035] in, Indicates the difference between the current state quantity and the reference state quantity, It represents the difference between the current control quantity and the reference control quantity. The continuous state equation is not suitable for designing the model predictive controller. After the linear error model is discretized by the single-step Euler method, the discrete linear error model is Formula 9:

[0036]

[0037] Among them A t,k =I+TA t , B t,k =TB t , A k,t represents the Jacobian matrix of f(ξ,u) at time k relative to the state quantity ξ, B k,t It represents the Jacobian matrix of f(ξ,u) at time k relative to the control variable u, where I is the unit matrix, T is the discrete time, Indicates the error between the current state quantity and the reference state quantity, Indicates the error between the current control amount and the reference control amount.

[0038] Let formula 10:

[0039]

[0040] in represents the control increment introduced by the artificially set state parameters in the discrete linear model, Indicates the error of the current state quantity, Indicates the error of the control quantity at the previous moment.

[0041] Formula 9 is expressed as its equivalent form, that is, Formula 11:

[0042]

[0043]

[0044] Where η(k) is the output at time k, The increment of the error of the control quantity, A t,k , B t,k The augmented matrix of t,k Make the output contain only

[0045] Assume that the prediction time domain is N p , the control time domain is N c , and obtain the predicted state error parameter And output η(k+N p ) are:

[0046] Formula 12:

[0047]

[0048] Formula 13:

[0049]

[0050] Let formula 14:

[0051]

[0052]

[0053]

[0054] in represents the output matrix in the prediction time domain, ψ t represents the state coefficient matrix in the prediction time domain, ΔU(t) represents the control sequence in the prediction time domain, Θ t represents the control increment matrix in the prediction time domain, then the compact form of the prediction time domain equation is expressed as Formula 15:

[0055]

[0056] S43, optimize the prediction time domain equation to obtain the MPC problem, the process is: according to the prediction time domain equation, obtain the expected output of the entire prediction time domain Formula 16:

[0057]

[0058] where η ref(t+1) represents the reference output at the next moment. According to the expected output of the entire prediction time domain, the MPC problem is expressed as Formula 17 and Formula 18:

[0059]

[0060] st MΔU≤Ψ

[0061] ΔU min ≤ΔU t ≤ΔU max

[0062]

[0063] Among them, ΔU min is the minimum value of the control increment, ΔU max is the maximum value of the control increment. min is the minimum value of the total control amount, U max The maximum value of the total control amount. For size N c ×N c The unit matrix of , E is the unit vector. Q is the weight matrix of the output error, and R is the weight matrix of the control increment. ε is the relaxation factor added to prevent the objective function from having no solution within the control range, and ρ is the weight coefficient of the relaxation factor.

[0064] S44. Solve the MPC problem model to achieve path tracking of the unmanned vehicle. The process is: convert Formula 17 into a quadratic programming problem. The interior point method can quickly solve the quadratic programming problem. In each control cycle, a series of optimal control sequences will be obtained, namely Formula 19:

[0065]

[0066] The optimal control sequence only has the first vector as the actual input, and repeats the above steps for calculation in each control cycle, and continues to cycle until the tracking control task is completed.

[0067] The present invention has at least the following beneficial effects:

[0068] The present invention proposes an intelligent vehicle path tracking method with preview characteristics based on model predictive control (Fuzzy-PMPC), which uses a fuzzy inference system to combine the curvature of the road and the current longitudinal speed and lateral error of the vehicle to obtain a preview distance for calculating a reference heading angle. The present invention is used to solve the problem that during the path tracking process, there is a delay when the vehicle turns on a curve, and the tracking accuracy decreases in some curves with large curvature changes. The stability and tracking accuracy of the vehicle when turning are improved. Other advantages, objectives and features of the present invention will be reflected in part through the following description, and in part will be understood by those skilled in the art through research and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 It is the algorithm flow chart of the present invention;

[0070] Figure 2 For the present invention and And the membership function graph of α;

[0071] Figure 3 is the fuzzy inference rule diagram of the present invention;

[0072] Figure 4 is a schematic diagram of a reference heading angle of the present invention;

[0073] Figure 5 A vehicle kinematics model diagram of the present invention;

[0074] Figure 6 A comparison chart of the tracking results of the algorithm (Fuzzy-PMPC) provided by the present invention and the traditional algorithm; DETAILED DESCRIPTION

[0075] The present invention will be further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement it with reference to the description. It should be understood that terms such as "having", "including" and "comprising" used herein do not exclude the existence or addition of one or more other elements or their combinations.

[0076] Working principle: (such as Figure 1 )

[0077] (1) The average curvature and the rate of change of the average curvature within a fixed distance in front of the vehicle are used as the input of the fuzzy inference system, and the preview coefficient is used as the output of the fuzzy inference system. In actual human driving operations, the driver will make steering behaviors according to the road conditions ahead. Therefore, the actual road conditions can be known based on the average curvature of the road, and the current situation of the vehicle in the curve can be known by combining the rate of change of the average curvature of the road. Regardless of whether the average curvature is large or small, the rate of change of the average curvature is large, indicating that the vehicle is still in the state of entering the curve. At this time, the preview distance should be reduced to ensure the tracking accuracy, so the preview coefficient should be small. If the average curvature is large but the rate of change of the average curvature becomes small, it means that the vehicle is still in the state of exiting the curve. At this time, the preview distance can be appropriately increased to cope with the next curve, so the preview coefficient should be large. The fuzzy inference system can well obtain the ideal preview coefficient based on the values ​​of the average curvature and the rate of change of the average curvature.

[0078] (2) Substitute the preview coefficient, current vehicle speed, and current vehicle lateral error into the proposed preview distance formula to obtain the preview distance. The preview distance should be adaptive because the preview distance will increase moderately when the driver's vehicle speed is faster. At the same time, in order to ensure control accuracy, when the error with the tracking path is large, the preview distance will decrease moderately. Therefore, according to the proposed formula, a suitable preview distance can be obtained to construct the reference heading angle at the current moment.

[0079] (3) Map the preview distance to the reference path to obtain the corresponding reference point, and use the angle formed by the reference point, the current position of the vehicle, and the X-axis in the world coordinate system as the reference heading angle of the MPC controller at the current sampling moment. Because the point where the reference heading angle in traditional model predictive control is not 0 is within the curve, and in actual driving operations, the driver does not turn after entering the curve. On the contrary, the driver has already started to turn when approaching the curve. Therefore, the reference heading angle obtained based on the current vehicle position and the appropriate preview distance will improve the tracking accuracy and corner stability of the vehicle when it is on the curve.

[0080] (4) Establish a kinematic model of the unmanned vehicle. The vehicle kinematic model is the basis for path tracking and model prediction. Complex models have a long simulation time and slow convergence speed. As an appropriately simplified model, the kinematic model can not only obtain good control accuracy, but also further reduce the computational complexity and improve real-time performance.

[0081] (5) The nonlinear kinematic model of the vehicle is linearly discretized to obtain the prediction time domain equation. Because the quadratic programming algorithm is used for optimization, the kinematic model needs to be linearized. Since the continuous prediction equation is not suitable for designing a model predictive controller, the single-step Euler method is used to discretize the linear error model to obtain a discrete linear error model. The prediction time domain equation is obtained through mathematical derivation.

[0082] (6) Optimize the prediction time domain equation to obtain the MPC problem. Based on the prediction equation obtained in step 5, design the corresponding objective function and consider the system constraints, and combine it with the expected output in the prediction time domain to convert it into a multi-objective real-time optimization MPC problem model.

[0083] (7) The MPC problem model is converted into a quadratic programming problem. The interior point method can be used to quickly solve the quadratic programming problem. In each control cycle, a series of optimal control sequences will be obtained. The first one is selected as the actual control quantity, and then the prediction and solution are performed again at the new moment. This cycle continues until the path tracking control task is completed.

[0084] Embodiment 1:

[0085] An intelligent vehicle path tracking method with preview characteristics based on model predictive control includes:

[0086] Step 1: Take the average curvature and average curvature change rate within a fixed distance in front of the vehicle as the input of the fuzzy inference system, and the preview coefficient as the output of the fuzzy inference system. The process is as follows: According to the braking distance formula: S = V × V / 2gμ; where: μ is the friction coefficient of the road surface 0.8, V is the maximum speed of 80km / h specified for urban roads, and g = 9.8m / s 2 ; The calculated braking distance S, that is, the fixed distance in front of the vehicle is 39.7m; the road at a fixed distance in front of the vehicle is discretized into 40 points, and the curvature of each point is obtained by the curvature formula, that is, formula 1, to obtain the road curvature K of the i-th point i :

[0087]

[0088] Among them: y″ is the second-order derivative of the road function, y′ is the first-order derivative of the road function; , and ; According to the urban road regulations, the minimum turning radius is 6m, and the curvature is inversely proportional to the turning radius:

[0089]

[0090] The calculated road curvature value range is [0.00, 0.16], and the road curvature change rate value range is [-0.16, 0.16]. Within the value range, the multiple Ki The average curvature of the road is obtained by averaging The average curvature change rate of the road is obtained by adding and averaging the curvature derivatives of each discrete point. The average curvature of the road and the mean curvature rate of change As the input of the fuzzy inference system, the preview coefficient α is obtained in the range of [0.00, 0.05] after fuzzy calculation; and And the membership function of α is Figure 2 As shown, the fuzzy inference rules are as follows Figure 3 shown.

[0091] In step 2, the process is as follows: the preview coefficient α and the current vehicle longitudinal speed V and the current lateral error y E Substitute into formula 2:

[0092] T max =αV

[0093] T=T max (1-β)

[0094] N z =VT

[0095]

[0096] Where: V is the current vehicle longitudinal speed, T max is the maximum preview time, T is the preview time, y E is the lateral error, is the maximum acceptable lateral error; the preview distance N z Project onto the reference path to obtain the corresponding reference point;

[0097] (like Figure 4 ) In step 3, the vehicle's current position (X(t), Y(t)) is compared with the reference point (X(t+k), Y r The angle between (t+k) and the X-axis in the world coordinate system is used as the reference heading angle of the MPC controller. That is formula three:

[0098]

[0099] 5. The intelligent vehicle path tracking method with preview feature based on model predictive control according to claim 1, characterized in that, in step 4, it includes:

[0100] (like Figure 5) S41, establish the kinematic model of the unmanned vehicle, the process is: in the inertial coordinate system, establish the vehicle kinematic model of the intelligent vehicle as follows:

[0101]

[0102] Where (x, y) is the coordinate of the rear axle center of the vehicle. is the heading angle of the vehicle, δ f is the front wheel deflection angle of the vehicle, l is the wheelbase of the vehicle, V is the center speed of the rear axle of the vehicle, and the symbol “·” on the parameter represents the first-order derivative of the parameter.

[0103] The model can be expressed in a more general form, namely, Formula 5:

[0104]

[0105] Among them: The state variables of the system can be expressed as The control variable of the system can be expressed as u = [δ f ], f(·) is the vehicle kinematic model function; the vehicle kinematic model of the unmanned vehicle is based on the following assumptions: 1. Ignore the vertical motion of the vehicle to the ground; 2. The left and right front wheels have the same angle; 3. The vehicle body and suspension system are rigid; 4. Only the front wheel rotation of the vehicle is considered.

[0106] S42, linearly discretize the nonlinear kinematic model of the vehicle to obtain the prediction time domain equation, the process is: the state and control quantity of the reference system at any time satisfy Formula 6:

[0107]

[0108] At any reference path point (ξ r ,u r ), Taylor expansion is performed on Formula 5, higher-order terms are ignored, and only first-order terms are retained to obtain Formula 7:

[0109]

[0110]

[0111] Among them A t is the Jacobian matrix of f(ξ,u) relative to the state variable ξ, B t is the Jacobian matrix of f(ξ,u) relative to the control variable u, ξ r represents the state quantity of the reference point, where ξ r In The value of is obtained in step 3 The value of u r Indicates the control quantity of the reference point.

[0112] Subtracting Formula 7 from Formula 6 yields the linear error model of the vehicle, which is Formula 8:

[0113]

[0114] in, Indicates the difference between the current state quantity and the reference state quantity, It represents the difference between the current control quantity and the reference control quantity. The continuous state equation is not suitable for designing the model predictive controller. After the linear error model is discretized by the single-step Euler method, the discrete linear error model is Formula 9:

[0115]

[0116] Among them A t,k =I+TA t , B t,k =TB t , A k,t represents the Jacobian matrix of f(ξ,u) at time k relative to the state quantity ξ, B k,t It represents the Jacobian matrix of f(ξ,u) at time k relative to the control variable u, where I is the unit matrix, T is the discrete time, Indicates the error between the current state quantity and the reference state quantity, Indicates the error between the current control amount and the reference control amount.

[0117] Let formula 10:

[0118]

[0119] in represents the control increment introduced by the artificially set state parameters in the discrete linear model, Indicates the error of the current state quantity, Indicates the error of the control quantity at the previous moment.

[0120] Formula 9 is expressed as its equivalent form, that is, Formula 11:

[0121]

[0122]

[0123] Where η(k) is the output at time k, The increment of the error of the control quantity, A t,k , B t,k The augmented matrix of t,k Make the output contain only

[0124] Assume that the prediction time domain is N p , the control time domain is N c , and obtain the predicted state error parameter And output η(k+N p ) are:

[0125] Formula 12:

[0126]

[0127] Formula 13:

[0128]

[0129] Let formula 14:

[0130]

[0131]

[0132]

[0133] in represents the output matrix in the prediction time domain, ψ t represents the state coefficient matrix in the prediction time domain, ΔU(t) represents the control sequence in the prediction time domain, Θ t represents the control increment matrix in the prediction time domain, then the compact form of the prediction time domain equation is expressed as Formula 15:

[0134]

[0135] S43, optimize the prediction time domain equation to obtain the MPC problem, the process is: according to the prediction time domain equation, obtain the expected output of the entire prediction time domain Formula 16:

[0136]

[0137] where η ref (t+1) represents the reference output at the next moment. According to the expected output of the entire prediction time domain, the MPC problem is expressed as Formula 17 and Formula 18:

[0138]

[0139] st MΔU≤Ψ

[0140] ΔU min ≤ΔU t ≤ΔU max

[0141]

[0142] Among them, ΔU min is the minimum value of the control increment, ΔU max is the maximum value of the control increment. min is the minimum value of the total control amount, U max The maximum value of the total control amount. For size N c ×N c The unit matrix of , E is the unit vector. Q is the weight matrix of the output error, and R is the weight matrix of the control increment. ε is the relaxation factor added to prevent the objective function from having no solution within the control range, and ρ is the weight coefficient of the relaxation factor.

[0143] S44. Solve the MPC problem model to achieve path tracking of the unmanned vehicle. The process is: convert Formula 17 into a quadratic programming problem. The interior point method can quickly solve the quadratic programming problem. In each control cycle, a series of optimal control sequences will be obtained, namely Formula 19:

[0144]

[0145] The optimal control sequence only has the first vector as the actual input, and repeats the above steps for calculation in each control cycle, and continues to cycle until the tracking control task is completed.

[0146] Embodiment 2:

[0147] (like Figure 6 ) Comparing the tracking results of the proposed algorithm (Fuzzy-PMPC) 1 and the traditional algorithm (MPC) 2 on the standard path tracking curve 3 (Expected trajectory), we can obtain:

[0148] The traditional algorithm 2 has a larger error than the standard path tracking curve 3 before and after the turn;

[0149] The error of this algorithm 1 is smaller than that of the standard path tracking curve 3 before and after the turn.

[0150] It can be seen that the method provided by the present invention can significantly improve the stability and tracking accuracy of the vehicle when turning during the path tracking process.

[0151] The number of devices and processing scales described here are used to simplify the description of the present invention. Applications, modifications and variations of the present invention are obvious to those skilled in the art. Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation mode. They can be applied to various fields suitable for the present invention. For those familiar with the art, other modifications can be easily realized. Therefore, without departing from the general concept defined by the claims and the equivalent scope, the present invention is not limited to the specific details and the legends shown and described here.

Claims

1. An intelligent vehicle path tracking method with preview characteristics based on model predictive control, characterized in that: include: Step 1: taking the average curvature and the average curvature change rate within a fixed distance in front of the vehicle as the input of the fuzzy inference system, and the preview coefficient as the output of the fuzzy inference system; Step 2: The preview coefficient α, the current vehicle longitudinal speed V, and the current lateral error y E Substitute the preview distance formula into Formula 2: T max =αV T=T max (1-β) N2=VT To get the preview distance value, where: V is the current vehicle longitudinal speed, α is the preview coefficient, T max and T are the maximum preview time and preview time respectively, N z To preview the distance, is the maximum acceptable lateral error; Step 3: Map the preview distance to the reference path to obtain the corresponding reference point, and use the angle formed by the reference point, the current position of the vehicle, and the X-axis in the world coordinate system as the reference heading angle of the MPC controller at the current sampling moment; Step 4: Establish a vehicle kinematic model based on the reference heading angle, obtain the prediction time domain equation, obtain the MPC problem after optimization and solve it to achieve path tracking of the unmanned vehicle.

2. The intelligent vehicle path tracking method with preview feature based on model predictive control as claimed in claim 1, characterized in that: In step 1, the process is as follows: the braking distance is calculated based on the friction coefficient of the road surface and the maximum speed, that is, the fixed distance in front of the vehicle; the road at a fixed distance in front of the vehicle is discretized into multiple points, and the curvature of each point is obtained by the curvature formula, that is, formula 1, to obtain the road curvature K of the i-th point i : Among them: y″ is the second-order derivative of the road function, y′ is the first-order derivative of the road function; the road curvature value range and the road curvature change rate value range are calculated by the minimum turning radius specified by the road; within the specified value range, the multiple K i The average curvature of the road is obtained by averaging The average curvature change rate of the road is obtained by adding and averaging the curvature derivatives of each discrete point. The average curvature of the road and the mean curvature rate of change As the input of the fuzzy inference system, the range of the preview coefficient α is obtained through fuzzy calculation.

3. The intelligent vehicle path tracking method with preview characteristics based on model predictive control as claimed in claim 1, characterized in that: In step 3, the vehicle’s current position (X(t), Y(t)) is compared with the reference point (X(T+k), Y(t)) corresponding to the maximum preview distance. r The angle between (t+k) and the X-axis in the world coordinate system is used as the reference heading angle of the MPC controller. That is formula three:

4. The intelligent vehicle path tracking method with preview feature based on model predictive control as claimed in claim 1, characterized in that: In step 4, it includes: S41. Establishing a kinematic model of the unmanned vehicle, the process is: in an inertial coordinate system, establishing a vehicle kinematic model of the intelligent vehicle as follows: Where (x, y) is the coordinate of the rear axle center of the vehicle. is the reference heading angle in step 3 δ f is the front wheel deflection angle of the vehicle, l is the wheelbase of the vehicle, V is the center speed of the rear axle of the vehicle, and the symbol "" on the parameter indicates the first-order derivative of the parameter; The model can be expressed in a more general form, namely, Formula 5: Among them: The state variables of the system can be expressed as The control variable of the system can be expressed as u = [δ f ], f(·) is the vehicle kinematic model function; S42, linearly discretize the nonlinear kinematic model of the vehicle to obtain the prediction time domain equation, the process is: the state and control quantity of the reference system at any time satisfy Formula 6: At any reference path point (ξ r ,u r ), Taylor expansion is performed on Formula 5, higher-order terms are ignored, and only first-order terms are retained to obtain Formula 7: Among them A t is the Jacobian matrix of f(ξ,u) relative to the state variable ξ, B t is the Jacobian matrix of f(ξ,u) relative to the control variable u, ξ r represents the state quantity of the reference point, where ξ r In The value of is obtained in step 3 The value of u r represents the control quantity of the reference point; Subtracting Formula 7 from Formula 6 yields the linear error model of the vehicle, which is Formula 8: in, Indicates the difference between the current state quantity and the reference state quantity, It represents the difference between the current control quantity and the reference control quantity. The continuous state equation is not suitable for designing the model predictive controller. After the linear error model is discretized by the single-step Euler method, the discrete linear error model is Formula 9: Among them A t,k =I+TA t , B t,k =TB t , A k,t represents the Jacobian matrix of f(ξ,u) at time k relative to the state quantity k, B k,t It represents the Jacobian matrix of f(ξ,u) at time k relative to the control variable u, where I is the unit matrix, T is the discrete time, Indicates the error between the current state quantity and the reference state quantity, Indicates the error between the current control amount and the reference control amount; Let formula 10: in represents the control increment introduced by the artificially set state parameters in the discrete linear model, Represents the error of the current state quantity, Indicates the error of the control quantity at the previous moment; Formula 9 is expressed as its equivalent form, that is, Formula 11: Where η(k) is the output at time k, The increment of the error of the control quantity, A t,k , B t,k The augmented matrix of t,k Make the output contain only Assume that the prediction time domain is N p , the control time domain is N c , and obtain the predicted state error parameter And output η(k+N p ) are: Formula 12: Formula 13: Let formula 14: in represents the output matrix in the prediction time domain, ψ t represents the state coefficient matrix in the prediction time domain, ΔU(t) represents the control sequence in the prediction time domain, Θ t represents the control increment matrix in the prediction time domain, then the compact form of the prediction time domain equation is expressed as Formula 15: S43, optimize the prediction time domain equation to obtain the MPC problem, the process is: according to the prediction time domain equation, obtain the expected output of the entire prediction time domain Formula 16: where η ref (t+1) represents the reference output at the next moment. According to the expected output of the entire prediction time domain, the MPC problem is expressed as Formula 17 and Formula 18: ΔU min ≤ΔU t ≤ΔU max Among them, ΔU min is the minimum value of the control increment, ΔU max is the maximum value of the control increment; U min is the minimum value of the total control amount, U max is the maximum value of the total control amount; For size N c ×N c The unit matrix of , E is the unit vector; Q represents the weight matrix of the output error, R represents the weight matrix of the control increment; the relaxation factor added to prevent the objective function from having no solution within the control range, ρ is the weight coefficient of the relaxation factor; S44. Solve the MPC problem model to achieve path tracking of the unmanned vehicle. The process is: convert Formula 17 into a quadratic programming problem. The interior point method can quickly solve the quadratic programming problem. In each control cycle, a series of optimal control sequences will be obtained, namely Formula 19: The optimal control sequence only has the first vector as the actual input, and repeats the above steps for calculation in each control cycle, and continues to cycle until the tracking control task is completed.