Transverse zero steady-state error control method

By calculating the actual front wheel deflection angle of the vehicle and constructing an error model, the feedback matrix K is used to generate the front wheel deflection angle command, which solves the problem of initial steady-state error in vehicle lateral control, achieves lateral zero-steady-state error control, and improves control Accuracy and stability.

CN118625666APending Publication Date: 2024-09-10FULONG MACHENGFU ROBOT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410715725.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology fails to effectively solve the lateral initial steady-state error caused by the positioning sensor installation error and the tire deflection angle execution error in vehicle lateral control, which affects the control accuracy.

Method used

By obtaining the vehicle's driving trajectory, calculating the actual front wheel deflection angle and performing calibration, an error model is constructed, the optimal control law is determined and the feedback matrix K is obtained, and the front wheel deflection angle command is generated to adjust the vehicle attitude to achieve error compensation and control.

Benefits of technology

It effectively eliminates the lateral zero steady-state error, improves the accuracy and stability of vehicle lateral control, and solves the steady-state error convergence problem in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625666A
    Figure CN118625666A
Patent Text Reader

Abstract

The invention relates to a transverse zero steady-state error control method. Front wheel deflection angle calibration and attitude error calibration are carried out by calculating a front wheel deflection angle calibration compensation value and an attitude calibration compensation value; constructing an error model and a control cost function, and determining an optimal control law and a feedback matrix K; after front wheel deflection angle calibration and attitude error calibration are carried out on a vehicle before driving, a real-time state quantity is obtained in the driving process, a front wheel deflection angle instruction is obtained through the real-time state quantity and a feedback matrix K, the vehicle is adjusted in the driving process according to the front wheel deflection angle instruction, and accurate control in the driving process is achieved. And the safety and the stability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of vehicle motion control, and mainly to a lateral zero steady-state error control method. Background Art

[0002] Vehicle lateral control refers to the use of various technical means to manage and adjust the behavior of the vehicle in lateral motion. It is crucial to driving safety and can ensure that the vehicle remains stable during turns, lane changes or emergencies, reduce the risk of skidding and rollover, and effectively reduce the possibility of traffic accidents. Good lateral control can improve the driver's controllability and make it easier for the driver to cope with various road conditions and driving scenarios, thereby improving the driving experience and comfort. In addition, vehicle lateral control is also directly related to the vehicle's performance, including acceleration, braking and steering response time, which is particularly critical for vehicles pursuing high-performance handling. Research on vehicle lateral control has become the main development direction in the field of vehicle motion control. For example, CN117908525A "Lateral control method, device, equipment, medium and product" discloses "a lateral control method, device, equipment, medium and product. The method includes: constructing an augmented model based on a target model and a vehicle lateral control model including a lateral error integral term, the target model including an inertia model and a delay model; determining the lateral control gain of the target vehicle based on the augmented model and the vehicle parameters of the target vehicle; determining the expected steering wheel turning angle of the target vehicle based on the lateral control gain, the steering ratio and state parameters of the target vehicle, the state parameters are determined based on the state data and trajectory data of the target vehicle during driving; controlling the steering wheel of the target vehicle to rotate according to the expected steering wheel turning angle." The invention improves the stability of lateral control of unmanned vehicles, but lateral control will cause a certain degree of steady-state error due to factors such as system dynamics and sensor errors. The traditional method of eliminating steady-state errors does not take into account the initial lateral steady-state error generated in the lateral control process due to positioning sensor installation errors and tire deflection angle execution errors. It only adds a lateral error integral term in the lateral controller to eliminate the lateral error caused by sensor and actuator errors, which will make the steady-state error have a convergence process and affect the control accuracy. Summary of the invention

[0003] In order to solve the above problems existing in the prior art, the present application provides a lateral zero steady-state error control method.

[0004] The technical solution of this application is as follows:

[0005] A lateral zero steady-state error control method, the method comprising:

[0006] Acquire a driving trajectory of a vehicle moving forward at a constant speed with a 0° deflection angle instruction, calculate an actual front wheel deflection angle of the vehicle using a curve fitting method according to the driving trajectory, and calculate a front wheel deflection angle calibration compensation value according to the actual front wheel deflection angle;

[0007] The vehicle calibrates the front wheel deflection angle according to the front wheel deflection angle calibration compensation value, and drives along the expected trajectory, records the real-time posture information of the vehicle during driving, calculates the average value of the real-time posture information of the vehicle, and calculates the posture calibration compensation value according to the vehicle starting posture information and the average value of the real-time posture information of the vehicle;

[0008] Construct an error model, obtain the control cost function based on the error model, determine the optimal control law and solve the control cost function to obtain the feedback matrix K;

[0009] Before the vehicle travels, the front wheel deflection angle calibration and attitude error calibration are performed respectively according to the front wheel deflection angle calibration compensation value and the attitude calibration compensation value, and the real-time state quantity of the calibrated vehicle during driving is obtained. The corresponding front wheel deflection angle command is generated according to the real-time state quantity of the vehicle and the feedback matrix K, and the vehicle is adjusted according to the front wheel deflection angle command during driving.

[0010] As a preferred implementation manner of the present invention, the front wheel deflection angle calibration compensation value is calculated according to the actual front wheel deflection angle as follows:

[0011] The data points on the driving trajectory are fitted using the arc parameter equation to obtain the radius R and the coordinates (h, k) of the circle corresponding to the arc that approximately fits the driving trajectory. The arc parameter equation is expressed as follows:

[0012] (xh) 2 +(yk) 2 =R 2 ;

[0013] In the formula, x and y are the horizontal and vertical coordinates of the data point in the coordinate system respectively;

[0014] The actual front wheel deflection angle δ is calculated and expressed as:

[0015]

[0016] Where L is the distance from the axle to the center of the circle;

[0017] Calculate the front wheel deflection angle calibration compensation value δ according to the actual front wheel deflection angle offset , expressed as:

[0018] δ offset =coef*δ;

[0019] Where coef is the correction coefficient.

[0020] As a preferred embodiment of the present invention, the attitude calibration compensation value is calculated based on the real-time attitude information of the vehicle and the average value of the real-time attitude information of the vehicle. The formula is:

[0021]

[0022] In the formula, is the average value of the vehicle’s real-time posture information, The vehicle originates the posture information.

[0023] As a preferred embodiment of the present invention, the error model is constructed based on a two-degree-of-freedom single-track dynamics model, and the error variables include the lateral error integral ∫e 1 , lateral error e 1 , Transverse error change rate Attitude error e 2 , attitude error change rate and the front wheel steering angle feedback value δ 0 , the input variable is the front wheel deflection angle δ f , the state space equation is expressed as:

[0024]

[0025] In the formula, m is the vehicle body mass, v is x is the longitudinal velocity of the vehicle, I z is the vehicle yaw moment of inertia, l f is the distance from the vehicle's center of mass to the vehicle's front axle, l r C is the distance from the vehicle's center of mass to the vehicle's rear axle. f is the front wheel cornering stiffness, C r is the rear wheel cornering stiffness, is the vehicle reference yaw rate, r is the radius of the reference trajectory, and τ is the inertia time constant of the vehicle control system.

[0026] As a preferred implementation of the present invention, the specific steps of obtaining the control cost function according to the error model include:

[0027] The state space equation of the error model is expressed symbolically as follows:

[0028]

[0029] For the dynamic part of the symbolic formula Discretization is performed and expressed as follows:

[0030] X(k+1)=A c X(k)+B c δf (k);

[0031] in:

[0032] A c =△t*A;

[0033] B c =△t*B;

[0034] In the formula, A c and B c is the state space matrix, △t is the sampling time interval, X(k) is the discretization error at time k, δ f (k) is the control value of the front wheel steering angle at time k;

[0035] The control cost function J(N) is expressed as:

[0036]

[0037] Where N is the time parameter, Q is the state weight matrix, R is the control weight matrix, and X(k) T is the control error matrix, δ f (k) T is the front wheel steering angle control matrix.

[0038] As a preferred embodiment of the present invention, the determined optimal control law is expressed as follows:

[0039] δ f (k) = -K*X(k);

[0040] Where K is the feedback matrix.

[0041] As a preferred implementation of the present invention, the specific steps of solving the control cost function to obtain the feedback matrix K include:

[0042] Preset the constant matrix P and obtain the transformation formula J(N)=X(N) T P(N)X(N);

[0043] Combining the control cost function formula and the change formula, we get:

[0044] J(N+1)=X(N) T P(N)X(N)+X(N+1) T QX(N+1)+δ f (N) T Rδ f (N);

[0045] X(N+1) T P(N+1)X(N+1)=

[0046] X(N) T P(N)X(N)+

[0047] (A c X(N)+B c δ f (N) T Q(A c X(N)+B c δ f (N))+δ f (N) T Rδ f (N);

[0048] The control cost function is solved with the control objective of minimizing the lateral error and attitude error. Specifically, f (N) is derived and expressed as:

[0049] δ f * (N) = (R + B c T QB) -1 B c T QA c ;

[0050] The feedback matrix K is obtained by inverse deduction based on the optimal control law, which is expressed as follows:

[0051] K=(R+B c T QB) -1 B c T QA c .

[0052] As a preferred embodiment of the present invention, the corresponding front wheel deflection angle instruction δ is generated according to the real-time state of the vehicle and the feedback matrix K. i , expressed as:

[0053] δ i =-KX+δ offset ;

[0054] in:

[0055]

[0056] δ o '=δ o -δ offset ;

[0057] Where X is the real-time state of the vehicle.

[0058] The present application also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a lateral zero steady-state error control method as described in any embodiment of the present invention are implemented.

[0059] The present application also provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in a lateral zero steady-state error control method as described in any embodiment of the present invention.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] The present invention provides a lateral zero steady-state error control method, which uses a curve fitting method to calculate the actual front wheel deflection angle and determine the front wheel deflection angle calibration compensation value. By constructing an error model, the vehicle can effectively adjust the error model's own control quantity in combination with the compensation value, thereby solving the problem of steady-state error in the lateral error. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a flow chart of a method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0064] The present invention provides the following technical solution: a lateral zero steady-state error control method.

[0065] Example 1

[0066] This embodiment provides a lateral zero steady-state error control method, the method comprising:

[0067] S1, obtaining a driving trajectory of a vehicle moving forward at a constant speed with a 0° deflection angle instruction, calculating an actual front wheel deflection angle of the vehicle using a curve fitting method according to the driving trajectory, and calculating a front wheel deflection angle calibration compensation value according to the actual front wheel deflection angle;

[0068] As a preferred implementation manner of the present invention, the front wheel deflection angle calibration compensation value is calculated according to the actual front wheel deflection angle as follows:

[0069] The data points on the driving trajectory are fitted using the arc parameter equation to obtain the radius R and the coordinates (h, k) of the circle corresponding to the arc that approximately fits the driving trajectory. The arc parameter equation is expressed as follows:

[0070] (xh) 2 +(yk) 2 =R 2 ;

[0071] In the formula, x and y are the horizontal and vertical coordinates of the data point in the coordinate system respectively;

[0072] The actual front wheel deflection angle δ is calculated and expressed as:

[0073]

[0074] Where L is the distance from the axle to the center of the circle;

[0075] Calculate the front wheel deflection angle calibration compensation value δ according to the actual front wheel deflection angle offset , expressed as:

[0076] δ offset =coef*δ;

[0077] Where coef is the correction coefficient.

[0078] S2, the vehicle calibrates the front wheel deflection angle according to the front wheel deflection angle calibration compensation value, and drives along the expected trajectory, records the real-time posture information of the vehicle during driving, calculates the average value of the real-time posture information of the vehicle, and calculates the posture calibration compensation value according to the vehicle starting posture information and the average value of the real-time posture information of the vehicle;

[0079] As a preferred embodiment of the present invention, the attitude calibration compensation value is calculated based on the real-time attitude information of the vehicle and the average value of the real-time attitude information of the vehicle. The formula is:

[0080]

[0081] In the formula, is the average value of the vehicle’s real-time posture information, The vehicle originates the posture information.

[0082] S3, construct an error model, obtain a control cost function according to the error model, determine the optimal control law and solve the control cost function to obtain a feedback matrix K;

[0083] As a preferred embodiment of the present invention, the error model is constructed based on a two-degree-of-freedom single-track dynamics model, and the state variables include the lateral displacement y and lateral velocity of the vehicle. Heading angle ψ and yaw rate The input variable is the front wheel steering angle δ f , the state space equation is expressed as:

[0084]

[0085] In the formula, m is the vehicle body mass, v is x is the longitudinal velocity of the vehicle, I z is the vehicle yaw moment of inertia, l f is the distance from the vehicle's center of mass to the vehicle's front axle, l r C is the distance from the vehicle's center of mass to the vehicle's rear axle. f is the front wheel cornering stiffness, C r is the rear wheel cornering stiffness;

[0086] Define an error variable and redefine the vehicle lateral dynamics model based on the error variable, wherein the error variable includes the lateral displacement integral ∫e from the reference trajectory to the vehicle center of mass 1 , the lateral displacement e from the reference trajectory to the vehicle's center of mass 1 , the rate of change of lateral displacement from the reference trajectory to the center of mass of the vehicle, i.e., the lateral velocity The heading angle deviation e from the reference trajectory to the vehicle's center of mass 2 and the rate of change of the heading angle deviation from the reference trajectory to the vehicle's center of mass, i.e., the yaw rate and the feedback value of the front wheel steering angle δ o ;

[0087] in:

[0088]

[0089] In the formula, is the yaw rate of the vehicle reference; r is the radius of the reference trajectory;

[0090] δ o is the feedback value of the current front wheel steering angle, δ i is the front wheel deflection angle input, and the two are described by the first-order inertia link:

[0091]

[0092] The vehicle lateral dynamics model is redefined according to the error variable and expressed as follows:

[0093]

[0094] Where τ is the inertia time constant of the vehicle control system.

[0095] As a preferred implementation of the present invention, the specific steps of obtaining the control cost function according to the error model include:

[0096] The state space equation of the error model is expressed symbolically as follows:

[0097]

[0098] For the dynamic part of the symbolic formula Discretization is performed and expressed as follows:

[0099] X(k+1)=A c X(k)+B c δ f (k);

[0100] in:

[0101] A c =△t*A;

[0102] B c =△t*B;

[0103] In the formula, A c and B c is the state space matrix, △t is the sampling time interval, X(k) is the discretization error at time k, δ f (k) is the control value of the front wheel steering angle at time k;

[0104] The control cost function J(N) is expressed as:

[0105]

[0106] J(N+1)=J(N)+X(N+1) T QX(N+1)+δ f (N) T Rδ f (N);

[0107] J(0)=X(0) T QX(0);

[0108] Where N is the time parameter, Q is the state weight matrix, and R is the control weight matrix. Q and R can be designed by the algorithm designer, but Q must satisfy the matrix semi-positive definiteness, R is a positive real number matrix, and X(k) T is the control error matrix, δ f (k) T is the front wheel steering angle control matrix.

[0109] As a preferred embodiment of the present invention, the determined optimal control law is expressed as follows:

[0110] δ f (k) = -K*X(k);

[0111] Where K is the feedback matrix.

[0112] As a preferred implementation of the present invention, the specific steps of solving the control cost function to obtain the feedback matrix K include:

[0113] Preset the constant matrix P and obtain the transformation formula J(N)=X(N) T P(N)X(N);

[0114] Combining the control cost function formula and the change formula, we get:

[0115] J(N+1)=X(N) T P(N)X(N)+X(N+1) T QX(N+1)+δ f (N) T Rδ f (N);

[0116] X(N+1) T P(N+1)X(N+1)=

[0117] X(N) T P(N)X(N)+

[0118] (A c X(N)+B c δ f (N) T Q(A c X(N)+B c δ f (N))+δ f (N) T Rδ f (N);

[0119] The control cost function is solved with the control objective of minimizing the lateral error and attitude error. Specifically, f (N) is derived and expressed as:

[0120] δ f * (N) = (R + B c T QB) -1 B c T QA c ;

[0121] The feedback matrix K is obtained by inverse deduction based on the optimal control law, which is expressed as follows:

[0122] K=(R+B c T QB) -1 B c T QA c .

[0123] S4, before the vehicle travels, the front wheel deflection angle calibration and the attitude error calibration are respectively performed according to the front wheel deflection angle calibration compensation value and the attitude calibration compensation value, and the real-time state quantity of the vehicle during travel after calibration is obtained, and the corresponding front wheel deflection angle instruction is generated according to the real-time state quantity of the vehicle and the feedback matrix K, and the vehicle is adjusted according to the front wheel deflection angle instruction during travel;

[0124] As a preferred embodiment of the present invention, the corresponding front wheel deflection angle instruction δ is generated according to the real-time state of the vehicle and the feedback matrix K. i , expressed as:

[0125] δ i =-KX+δ offset ;

[0126] in:

[0127]

[0128] δ o '=δ o -δ offset ;

[0129] Where X is the real-time state of the vehicle.

[0130] Example 2

[0131] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in a lateral zero steady-state error control method as described in Embodiment 1 of the present invention are implemented.

[0132] Example 3

[0133] This embodiment provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in a lateral zero steady-state error control method as described in Example 1 of the present invention.

[0134] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A lateral zero steady-state error control method, It is characterized in that The method comprises: Acquire a driving trajectory of a vehicle moving forward at a constant speed with a 0° deflection angle instruction, calculate an actual front wheel deflection angle of the vehicle using a curve fitting method according to the driving trajectory, and calculate a front wheel deflection angle calibration compensation value according to the actual front wheel deflection angle; The vehicle calibrates the front wheel deflection angle according to the front wheel deflection angle calibration compensation value, and drives along the expected trajectory, records the real-time posture information of the vehicle during driving, calculates the average value of the real-time posture information of the vehicle, and calculates the posture calibration compensation value according to the vehicle starting posture information and the average value of the real-time posture information of the vehicle; Construct an error model, obtain the control cost function based on the error model, determine the optimal control law and solve the control cost function to obtain the feedback matrix K; Before the vehicle travels, the front wheel deflection angle calibration and attitude error calibration are performed respectively according to the front wheel deflection angle calibration compensation value and the attitude calibration compensation value, and the real-time state quantity of the calibrated vehicle during driving is obtained. The corresponding front wheel deflection angle command is generated according to the real-time state quantity of the vehicle and the feedback matrix K, and the vehicle is adjusted according to the front wheel deflection angle command during driving.

2. A lateral zero steady-state error control method according to claim 1, It is characterized in that The actual front wheel deflection angle of the vehicle is calculated using a curve fitting method according to the driving trajectory, and the front wheel deflection angle calibration compensation value is calculated according to the actual front wheel deflection angle as follows: The data points on the driving trajectory are fitted using the arc parameter equation to obtain the radius R and the coordinates (h, k) of the circle corresponding to the arc that approximately fits the driving trajectory. The arc parameter equation is expressed as follows: (x-h) 2 +(y-k) 2 =R 2 ; In the formula, x and y are the horizontal and vertical coordinates of the data point in the coordinate system respectively; The actual front wheel deflection angle δ is calculated and expressed as: Where L is the distance from the axle to the center of the circle; Calculate the front wheel deflection angle calibration compensation value δ according to the actual front wheel deflection angle offset , expressed as: d offset =coef*δ; Where coef is the correction coefficient.

3. A lateral zero steady-state error control method according to claim 1, It is characterized in that Calculate the attitude calibration compensation value based on the vehicle's real-time attitude information and the average value of the vehicle's real-time attitude information The formula is: In the formula, is the average value of the vehicle’s real-time posture information, The vehicle originates the posture information.

4. A lateral zero steady-state error control method according to claim 1, It is characterized in that The error model is constructed based on a two-degree-of-freedom single-track dynamics model. The error variables include the lateral error integral ∫e 1 , lateral error e 1 , Transverse error change rate Attitude error e 2 , attitude error change rate and the front wheel steering angle feedback value δ 0 , the input variable is the front wheel deflection angle δ f , the state space equation is expressed as: In the formula, m is the vehicle body mass, v is x is the longitudinal velocity of the vehicle, I z is the vehicle yaw moment of inertia, l f is the distance from the vehicle's center of mass to the vehicle's front axle, l r C is the distance from the vehicle's center of mass to the vehicle's rear axle. f is the front wheel cornering stiffness, C r is the rear wheel cornering stiffness, is the vehicle reference yaw rate, r is the radius of the reference trajectory, and τ is the inertia time constant of the vehicle control system.

5. A lateral zero steady-state error control method according to claim 4, It is characterized in that The specific steps of obtaining the control cost function according to the error model include: The state space equation of the error model is expressed symbolically as follows: For the dynamic part of the symbolic formula Discretization is performed and expressed as follows: X(k+1)=A c X(k)+B c δ f (k); in: A c =△t*A; B c =△t*B; In the formula, A c and B c is the state space matrix, △t is the sampling time interval, X(k) is the discretization error at time k, δ f (k) is the control value of the front wheel steering angle at time k; The control cost function J(N) is expressed as: Where N is the time parameter, Q is the state weight matrix, R is the control weight matrix, and X(k) T is the control error matrix, δ f (k) T is the front wheel steering angle control matrix.

6. A lateral zero steady-state error control method according to claim 5, It is characterized in that The determined optimal control law is expressed as: δ f (k)=-K*X(k); Where K is the feedback matrix.

7. A lateral zero steady-state error control method according to claim 6, It is characterized in that The specific steps of solving the control cost function to obtain the feedback matrix K include: Preset the constant matrix P and obtain the transformation formula J(N)=X(N) T P(N)X(N); Combining the control cost function formula and the change formula, we get: J(N+1)=X(N) T P(N)X(N)+X(N+1) T QX(N+1)+δ f (N) T Rδ f (N); X(N+1) T P(N+1)X(N+1)= X(N) T P(N)X(N)+ (A c X(N)+B c δ f (N)) T Q(A c X(N)+B c δ f (N))+δ f (N) T Rδ f (N); The control cost function is solved with the control objective of minimizing the lateral error and attitude error. Specifically, f (N) is derived and expressed as: δ f * (N)=(R+B c T QB) -1 B c T QA c ; The feedback matrix K is obtained by inverse deduction based on the optimal control law, which is expressed as follows: K=(R+B c T QB) -1 B c T QA c 。 8. A lateral zero steady-state error control method according to claim 7, It is characterized in that Generate the corresponding front wheel deflection angle instruction δ according to the vehicle real-time state and feedback matrix K i , expressed as: d i =-KX+δ offset ; in: d o '=d o -d offset ; Where X is the real-time state of the vehicle.

9. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a lateral zero steady-state error control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in a lateral zero steady-state error control method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Automatic operation attitude control method and system of agricultural machine

    CN118819055A