Vehicle lateral control method, device, equipment and medium

By using the vehicle's reference trajectory, current moment state and previous moment's yaw angular velocity in the smart car to determine the predicted trajectory, and combining the steering wheel angle in the linear and nonlinear areas to construct the objective function and control sequence, solving the problem of model predictive control The problem of inaccurate prediction is improved and the accuracy and safety of vehicle lateral control are improved.

CN118323142BActive Publication Date: 2024-10-11IMOTION AUTOMOTIVE TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749994.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-11
Estimated Expiration
2044-06-12

Smart Images

  • Figure CN118323142B_ABST
    Figure CN118323142B_ABST
Patent Text Reader

Abstract

The present application discloses a vehicle lateral control method, device, equipment and medium, which relates to the field of automatic driving technology, including: determining the predicted trajectory of the vehicle according to the reference trajectory of the vehicle, the current state of the vehicle and the first yaw angular velocity; the first yaw angular velocity is obtained at the previous moment; constructing an objective function through the reference trajectory and the predicted trajectory, and calculating the target control sequence according to the objective function; the target control sequence makes the objective function meet the minimum error; limiting the target control amount in the target control sequence to obtain the second yaw angular velocity, calculating the first steering wheel angle corresponding to the linear region and the second steering wheel angle corresponding to the nonlinear region according to the second yaw angular velocity; determining the target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and realizing the lateral control of the vehicle based on the target steering wheel angle. The present application improves the accuracy of the lateral control of the vehicle, and further improves the safety and comfort of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a vehicle lateral control method, device, equipment and medium. Background Art

[0002] The basic idea of ​​using model predictive control (MPC) for lateral control of intelligent vehicles is to predict the future state based on the model, and to optimize the error between the predicted future state and the expected state as a whole to obtain the system input that optimizes the target.

[0003] Since the premise of the benefit of model predictive control is that the predicted future state must be as accurate as possible, if the prediction is inaccurate, it will lead to deviations in the lateral control of the smart car when following the future trajectory. Therefore, how to improve the accuracy of the lateral control of the smart car in model predictive control to accurately complete the driving behavior is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0004] In view of this, the object of the present invention is to provide a vehicle lateral control method, device, equipment and medium, which can improve the accuracy of vehicle lateral control and further enhance the safety and comfort of the vehicle. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a vehicle lateral control method, comprising:

[0006] Determining a predicted trajectory of the vehicle according to a reference trajectory of the vehicle, a current state of the vehicle and a first yaw rate; the first yaw rate is a yaw rate determined at a previous moment;

[0007] An objective function is constructed by using the reference trajectory and the predicted trajectory, and a target control sequence is calculated according to the objective function; the target control sequence enables the objective function to satisfy a preset minimum error;

[0008] limiting the target control amount in the target control sequence to obtain a second yaw angular velocity, and calculating a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw angular velocity;

[0009] A target steering wheel angle is determined according to the first steering wheel angle and the second steering wheel angle, and lateral control of the vehicle is achieved based on the target steering wheel angle.

[0010] Optionally, constructing an objective function using the reference trajectory and the predicted trajectory includes:

[0011] Determine a first lateral position of a track point on the reference track and a second lateral position of a track point on the predicted track, and determine a position difference between the first lateral position and the second lateral position;

[0012] Determine a first target time domain and a second target time domain; wherein the first target time domain is a predicted time duration corresponding to the predicted trajectory, and the second target time domain is a control time duration for applying a control sequence;

[0013] The objective function is constructed according to the first target time domain, the second target time domain, the position difference, the target weight matrix and a control sequence related to the yaw angular velocity; wherein the target weight matrix is ​​a weight matrix related to the yaw angular velocity.

[0014] Optionally, limiting the target control amount in the target control sequence to obtain a second yaw angular velocity includes:

[0015] Processing the target control amount in the target control sequence based on a preset limit range to obtain a first processed yaw rate, and determining a second processed yaw rate according to the first processed yaw rate and a target period;

[0016] Determine a target trajectory point closest to the vehicle from the trajectory points on the reference trajectory, and perform a linear difference operation on a first product operation result of the first lateral position of the target trajectory point, the vehicle speed, and the target period to obtain a third processed yaw angular velocity;

[0017] determining a fourth processed yaw rate according to the second processed yaw rate and the third processed yaw rate, and determining a fifth processed yaw rate based on a preset limit parameter;

[0018] The second yaw rate is determined based on a relationship between the fourth processed yaw rate and the fifth processed yaw rate.

[0019] Optionally, determining the second yaw angular velocity based on the relationship between the fourth processed yaw angular velocity and the fifth processed yaw angular velocity includes:

[0020] If the fourth processed yaw rate is greater than the fifth processed yaw rate, determining the fifth processed yaw rate as the second yaw rate;

[0021] If the fourth processed yaw rate is less than the negative of the fifth processed yaw rate, the negative of the fifth processed yaw rate is determined as the second yaw rate.

[0022] Optionally, the vehicle lateral control method further includes:

[0023] If the second processed yaw rate is greater than the fifth processed yaw rate, determining the fifth processed yaw rate as the first yaw rate;

[0024] If the second processed yaw rate is less than the negative of the fifth processed yaw rate, the negative of the fifth processed yaw rate is determined as the first yaw rate.

[0025] Optionally, calculating a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw angular velocity includes:

[0026] determining a yaw rate gain in the linear region, and calculating the first steering wheel angle corresponding to the linear region according to the second yaw rate and the yaw rate gain;

[0027] calculating a first critical angle between a transition region in the nonlinear region and the linear region, and calculating a second critical angle between a saturation region in the nonlinear region and the transition region;

[0028] The second steering wheel angle corresponding to the transition region and the second steering wheel angle corresponding to the saturation region are calculated according to the first critical angle, the second critical angle, the second yaw rate, and the yaw rate gain.

[0029] Optionally, determining a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle includes:

[0030] If the absolute value of the second yaw angular velocity satisfies a first condition, determining the first steering wheel angle corresponding to the linear region as the target steering wheel angle;

[0031] The first condition includes that the absolute value of the second yaw rate is not greater than the second product of the yaw rate gain and the first critical angle;

[0032] If the absolute value of the second yaw angular velocity satisfies a second condition, determining the second steering wheel angle corresponding to the transition zone as the target steering wheel angle;

[0033] The second condition includes that the absolute value of the second yaw angular velocity is not less than the second product operation result and is not greater than the target turning angle parameter of the transition zone;

[0034] If the absolute value of the second yaw rate does not satisfy the first condition and the second condition, the second steering wheel angle corresponding to the saturation region is determined as the target steering wheel angle.

[0035] In a second aspect, the present application discloses a vehicle lateral control device, comprising:

[0036] A predicted trajectory determination module, used to determine the predicted trajectory of the vehicle according to a reference trajectory of the vehicle, a current state of the vehicle and a first yaw angular velocity; the first yaw angular velocity is a yaw angular velocity determined at a previous moment;

[0037] A target control sequence determination module is used to construct a target function through the reference trajectory and the predicted trajectory, and calculate a target control sequence according to the target function; the target control sequence makes the target function meet a preset minimum error;

[0038] a yaw rate limiting module, configured to limit the target control amount in the target control sequence to obtain a second yaw rate, and calculate a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw rate;

[0039] The lateral control module is used to determine a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and to implement lateral control of the vehicle based on the target steering wheel angle.

[0040] In a third aspect, the present application discloses an electronic device, comprising:

[0041] Memory, used to store computer programs;

[0042] The processor is used to execute the computer program to implement the vehicle lateral control method disclosed above.

[0043] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the vehicle lateral control method disclosed above is implemented.

[0044] It can be seen that the present application proposes a vehicle lateral control method, including: determining the predicted trajectory of the vehicle according to the reference trajectory of the vehicle, the current state of the vehicle and the first yaw rate; the first yaw rate is the yaw rate determined at the previous moment; constructing an objective function through the reference trajectory and the predicted trajectory, and calculating a target control sequence according to the objective function; the target control sequence makes the objective function meet the preset minimum error; limiting the target control amount in the target control sequence to obtain a second yaw rate, calculating the first steering wheel angle corresponding to the linear region and the second steering wheel angle corresponding to the nonlinear region according to the second yaw rate; determining the target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and realizing the lateral control of the vehicle based on the target steering wheel angle. In summary, it can be seen that the predicted trajectory in the present application is comprehensively determined according to the reference trajectory of the vehicle, the current state of the vehicle and the yaw rate at the previous moment. In this way, the present application can predict the predicted trajectory of the vehicle in combination with the expected state of the vehicle, the current state of the vehicle and the state of the vehicle at the previous moment, thereby improving the accuracy of the prediction process. Furthermore, the present application constructs an objective function based on the reference trajectory and the predicted trajectory, and calculates a target control sequence that satisfies the objective function with the minimum error, and then uses the target control sequence to make the error between the predicted trajectory and the reference trajectory reach the overall optimum. In addition, the present application also performs a limit process on the target control amount in the target control sequence to avoid lateral control instability caused by excessive target control amount, so that the safety and comfort of the vehicle are further improved on the basis of improving the accuracy of the vehicle's lateral control. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0046] Figure 1 A flow chart of a vehicle lateral control method disclosed in this application;

[0047] Figure 2 A flow chart of a specific vehicle lateral control method disclosed in this application;

[0048] Figure 3 A schematic diagram of a specific vehicle lateral control method disclosed in this application;

[0049] Figure 4 A schematic diagram of another specific vehicle lateral control method disclosed in this application;

[0050] Figure 5 This is a schematic structural diagram of a vehicle lateral control device disclosed in this application;

[0051] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] Since the premise of the benefit of model predictive control is that the predicted future state must be as accurate as possible, if the prediction is inaccurate, it will lead to deviations in the lateral control of the smart car when following the future trajectory. Therefore, how to improve the accuracy of the lateral control of the smart car in model predictive control to accurately complete the driving behavior is an urgent problem to be solved by those skilled in the art.

[0054] To this end, an embodiment of the present application proposes a vehicle lateral control solution, which can improve the accuracy of vehicle lateral control and further enhance the safety and comfort of the vehicle.

[0055] The present application discloses a vehicle lateral control method, see Figure 1 As shown, the method includes:

[0056] Step S11: determining a predicted trajectory of the vehicle according to a reference trajectory of the vehicle, a current state of the vehicle and a first yaw angular velocity; the first yaw angular velocity is a yaw angular velocity determined at a previous moment.

[0057] In this embodiment, trajectory points corresponding to several time points are obtained, for example, trajectory points at 30 time points (0.1s, 0.2s, ..., 3.0s) are obtained to obtain a reference trajectory of the vehicle, and the current state of the vehicle is further obtained, and the first yaw angular velocity is obtained. It should be pointed out that the first yaw angular velocity is the yaw angular velocity determined at the previous moment. The determination process of the first yaw angular velocity will be explained in the following text.

[0058] In this embodiment, an MPC prediction model is established. The MPC prediction model is designed based on a kinematic model and an ideal dynamics model. Further, the predicted trajectory of the vehicle is determined according to the reference trajectory of the vehicle, the current state of the vehicle and the first yaw angular velocity through the MPC prediction model. The specific process includes: ;

[0059] in, represents the predicted trajectory, represents the horizontal position at time k+1, represents the sine value of the yaw angle at time k+1, represents the yaw angular velocity at time k+1, represents the yaw angular acceleration at time k+1; represents the reference trajectory; represents the first yaw angular velocity; It is called AA matrix; It is called BB matrix; represents the forecast period; Indicates the speed of the reference trajectory at the corresponding time point, that is, the current state of the vehicle; Indicates the yaw angle trend at the reference trajectory corresponding to the time point, that is, the current state of the vehicle; is the damping of the ideal dynamics model; is the frequency of the ideal dynamic model.

[0060] Step S12: constructing an objective function through the reference trajectory and the predicted trajectory, and calculating a target control sequence according to the objective function; the target control sequence makes the objective function meet a preset minimum error.

[0061] In this embodiment, a first lateral position of a trajectory point on a reference trajectory and a second lateral position of a trajectory point on a predicted trajectory are determined, and a position difference between the first lateral position and the second lateral position is determined, and a first target time domain and a second target time domain are determined; wherein the first target time domain is a predicted duration corresponding to the predicted trajectory, and the second target time domain is a control duration for applying a control sequence, and then an objective function is constructed according to the first target time domain, the second target time domain, the position difference, a target weight matrix, and a control sequence related to the yaw angular velocity; wherein the target weight matrix is ​​a weight matrix related to the yaw angular velocity.

[0062] Specifically, the position difference can be expressed as: ;

[0063] in, is the first lateral position of the trajectory point on the reference trajectory; is a second lateral position of the trajectory point on the predicted trajectory;

[0064] Furthermore, the objective function can be expressed as: ;

[0065] in, is the variation between control sequences related to yaw rate; Q and R represent target weight matrices; p represents the first target time domain, and m represents the second target time domain, that is, the trajectory points in the future m frames are controlled by predicting the trajectory points in the future p frames, and m < P. For example, the trajectory points in the future 7 frames are controlled by predicting the trajectory points in the future 30 frames.

[0066] In addition, the Q matrix can be expressed as: ;

[0067] The R matrix can be expressed as:

[0068] ;

[0069] Among them, represents the weight parameter of the lateral position, represents the weight parameter of the sine value of the yaw angle, represents the weight parameter of the yaw rate. The above several weight parameters can be set according to the actual situation.

[0070] Furthermore, the target control sequence is calculated by the MPC optimization solution algorithm according to the objective function. The calculation process of the target control sequence is explained as follows:

[0071] Among them, multiple matrices are involved in the calculation process. First, initialize a 60×4 zero matrix sx, a 4×4 identity matrix AI, a 2×4 zero matrix ASum, a 60×7 zero matrix su, and a 60×1 zero matrix iYK;

[0072] Further solve the following matrices:

[0073] (1) Solve the sx matrix:

[0074] for i in (0, 29):

[0075] ;

[0076] ;

[0077] Vertically fill 30 matrices into the sx matrix;

[0078] represents the AA matrix at the (i + 1)-th frame. The C matrix is expressed as , at the first operation, AI is the identity matrix. At the second and subsequent operations, AI inherits the result of the previous operation. Similarly, at the first operation, ASum is the zero matrix. At the second and subsequent operations, ASum inherits the result of the previous operation.

[0079] (2) Solve the su matrix:

[0080] for i in (0, 6):

[0081] ;

[0082] ;

[0083] for j in(i+1,29):

[0084] ;

[0085] ;

[0086] for i in (0,29):

[0087] ;

[0088] ;

[0089] Fill the iYK matrix vertically , get the su matrix;

[0090] in, represents the BB matrix at the i+1th frame, Represents the AA matrix at the j+1th frame.

[0091] Furthermore, solve the following matrix:

[0092] ;

[0093] ;

[0094] ;

[0095] ;

[0096] ;

[0097] in, , , and is the name of the matrix, Represents a target control sequence.

[0098] In addition, for the above matrix and matrix , the solution process is as follows:

[0099] ;

[0100] ;

[0101] ;

[0102] ;

[0103] ;

[0104] ;

[0105] ;

[0106] in, represents the predicted yaw rate, represents the current yaw angular velocity, represents the predicted lateral velocity, Indicates the current lateral speed of the vehicle. represents the predicted lateral position of the vehicle, That is, the first yaw rate, When used for the first time , when used subsequently, it inherits the result of the previous operation. is the vehicle’s yaw rate, The first protection parameter, is the name of the matrix, is the name of the matrix.

[0107] In addition, for the above matrix , the solution process is as follows:

[0108] matrix The even-numbered positions of the reference trajectory are the first lateral positions of the trajectory points, and the matrix The odd positions of ;

[0109] in, is the second protection parameter, Indicates the first lateral position of a track point on the reference track.

[0110] Step S13: limiting the target control amount in the target control sequence to obtain a second yaw angular velocity, and calculating a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw angular velocity.

[0111] A target control amount is selected from the target control sequence, for example, the first control amount is selected as the target control amount, and further, the target control amount in the target control sequence is processed based on a preset limit range to obtain a first processed yaw velocity, and a second processed yaw velocity is determined based on the first processed yaw velocity and the target period, and then a target trajectory point closest to the vehicle is determined from the trajectory points on the reference trajectory, and a linear difference operation is performed on a first product operation result of a first lateral position of the target trajectory point, a vehicle driving speed and a target period to obtain a third processed yaw velocity, and further, a fourth processed yaw velocity is determined based on the second processed yaw velocity and the third processed yaw velocity, and a fifth processed yaw velocity is determined based on the preset limit parameter, and then the second yaw velocity is determined based on the relationship between the fourth processed yaw velocity and the fifth processed yaw velocity.

[0112] The above process is explained below:

[0113] Determine the first control quantity in the target control sequence as the target control quantity, that is, ,in, Indicates the target control amount, further, based on the preset limit range The target control amount is limited to obtain the yaw angular velocity after the first processing ,in, represents the third protection parameter. Further, the second processed yaw rate is determined based on the first processed yaw rate and the target period. , specifically, ,in, and They are collectively referred to as target cycles. Specifically, After determining the second processed yaw rate, the target trajectory point closest to the vehicle is determined from the trajectory points on the reference trajectory, and the first lateral position of the target trajectory point, the vehicle speed and the first product of the target cycle are calculated. Perform linear interpolation operation to obtain the linear interpolation result. , represents the third processed yaw angular velocity, and further, the fourth processed yaw angular velocity is determined according to the second processed yaw angular velocity and the third processed yaw angular velocity ,Right now , and based on the fourth protection parameter (That is, the preset limit parameter in this article) determines the yaw angular velocity after the fifth processing ,Right now , and finally determine the second yaw angular velocity based on the relationship between the yaw angular velocity after the fourth processing and the yaw angular velocity after the fifth processing.

[0114] The following is an explanation of how to determine the second yaw rate based on the relationship between the fourth processed yaw rate and the fifth processed yaw rate:

[0115] In a specific implementation manner, if the fourth processed yaw angular velocity is greater than the fifth processed yaw angular velocity, the fifth processed yaw angular velocity is determined as the second yaw angular velocity If the fourth processed yaw rate is less than the negative of the fifth processed yaw rate, the negative of the fifth processed yaw rate is determined as the second yaw rate.

[0116] Furthermore, if the yaw angular velocity after the second processing is greater than the yaw angular velocity after the fifth processing, the yaw angular velocity after the fifth processing is determined as the first yaw angular velocity; if the yaw angular velocity after the second processing is less than the negative of the yaw angular velocity after the fifth processing, the negative of the yaw angular velocity after the fifth processing is determined as the first yaw angular velocity. This completes the explanation of the calculation process of the above-mentioned first yaw angular velocity.

[0117] Further, calculating a first steering wheel angle corresponding to the linear region and a second steering wheel angle corresponding to the nonlinear region according to the second yaw angular velocity specifically includes the following contents:

[0118] Step S131: determining the yaw rate gain in the linear region, and calculating the first steering wheel angle corresponding to the linear region according to the second yaw rate and the yaw rate gain.

[0119] Specifically, the present application first calculates the yaw rate gain in the linear region:

[0120] ;

[0121] in, is the vehicle speed, is the vehicle wheelbase, is the vehicle characteristic speed, and the formula is as follows:

[0122] ;

[0123] is the lateral force-side slip angle coefficient of the front wheel, is the lateral force-slip angle coefficient of the rear wheel, is the total mass of the vehicle, is the distance from the vehicle's center of mass to the front axle, is the distance from the vehicle's center of mass to the rear axle.

[0124] Furthermore, the first steering wheel angle corresponding to the linear region is calculated using the following formula:

[0125] .

[0126] Step S132: calculating a first critical angle between a transition region in the nonlinear region and the linear region, and calculating a second critical angle between a saturation region in the nonlinear region and the transition region.

[0127] In this embodiment, the first critical angle between the transition region and the linear region is calculated first, and the formula is as follows:

[0128] ;

[0129] in, is the critical lateral acceleration value between the linear region and the nonlinear region.

[0130] Furthermore, the second critical angle between the saturation region and the transition region is calculated as follows:

[0131] ;

[0132] in, is the lateral acceleration boundary value of the saturation range, is the slope of the saturation curve.

[0133] Step S133: calculating the second steering wheel angle corresponding to the transition zone and the second steering wheel angle corresponding to the saturation zone according to the first critical angle, the second critical angle, the second yaw rate, and the yaw rate gain.

[0134] In this embodiment, the second steering wheel angle corresponding to the transition zone is first calculated according to the first critical angle, the second critical angle, the second yaw rate, and the yaw rate gain, and the formula is as follows:

[0135] ;

[0136] in, represents the solution of a cubic equation, for example is the cubic coefficient, is the coefficient of the quadratic term, represents the constant term coefficient, The calculation formula is as follows:

[0137] ;

[0138] Furthermore, the second steering wheel angle corresponding to the saturation zone is calculated according to the first critical angle, the second critical angle, the second yaw rate, and the yaw rate gain, and the formula is as follows:

[0139] ;

[0140] in, .

[0141] It should be pointed out that when a steering wheel angle is sent to the steering wheel, the steering wheel executes the angle to different degrees when the steering wheel is in different zones. Specifically, the steering wheel can execute the angle relatively well in the linear zone, but the execution effect in the transition zone is worse than that in the linear zone, and the execution effect in the saturation zone is worse than that in the transition zone. The first critical angle and the second critical angle are used to distinguish the linear zone, the transition zone and the saturation zone. Specifically, when the steering wheel angle is greater than the first critical angle, the steering wheel switches from the linear zone to the transition zone, and when the steering wheel angle is greater than the second critical angle, the steering wheel switches from the transition zone to the saturation zone.

[0142] Step S14: determining a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and achieving lateral control of the vehicle based on the target steering wheel angle.

[0143] In a specific implementation, if the absolute value of the second yaw rate satisfies a first condition, the first steering wheel angle corresponding to the linear region is determined as the target steering wheel angle; wherein the first condition includes that the absolute value of the second yaw rate is not greater than the second product of the yaw rate gain and the first critical angle. ,but , is the target steering wheel angle.

[0144] In a second specific implementation, if the absolute value of the second yaw rate satisfies the second condition, the second steering wheel angle corresponding to the transition zone is determined as the target steering wheel angle; wherein the second condition includes that the absolute value of the second yaw rate is not less than the second product operation result and is not greater than the target angle parameter of the transition zone. That is, when ,but ,in, represents the target angle parameter, The calculation formula is as follows:

[0145] .

[0146] In a third specific implementation, if the absolute value of the second yaw rate does not satisfy the first condition and the second condition, the second steering wheel angle corresponding to the saturation zone is determined as the target steering wheel angle. That is, if the absolute value of the second yaw rate does not satisfy either the first condition or the second condition, then .

[0147] After the target steering wheel angle is determined, the target steering wheel angle is converted in the following form:

[0148] ;

[0149] ;

[0150] in, Indicates the steering wheel angle transmission ratio, represents the target steering wheel angle after the first conversion, is the target steering wheel angle after the second conversion, It represents the steering wheel angle compensation value, which can be set according to the actual situation and is not limited here. Finally, this embodiment realizes the lateral control of the vehicle based on the steering wheel angle after the second conversion.

[0151] In this application, various protection parameters can be set according to actual scenarios and are not specifically limited here.

[0152] See also Figure 3 As shown, the present application knows a reference trajectory and the measurement value at the current time k, and predicts the predicted trajectory in the future time domain [k, k+Np] through the MPC prediction model, and applies a series of control sequences to this time domain, so that the error between the reference trajectory and the predicted trajectory reaches the overall optimal. Specifically, Figure 3 The reference trajectory-1 is also the reference trajectory of the vehicle in this application, the predicted output-2 is also the predicted trajectory of the vehicle in this application, the measured output-3 is the actual trajectory after the control sequence is applied in this application, the predicted control amount-4 is the unexecuted control sequence, and the executed control amount-5 is the executed control sequence.

[0153] See also Figure 4 As shown, the present application first obtains vehicle information, which may include a vehicle reference trajectory and the state information of the vehicle at the current moment, further determines the predicted trajectory through a prediction model, constructs an objective function and imposes constraints, and then obtains the optimal target control sequence, wherein the constraints include, for example, protection parameters, calculation results of the previous frame (e.g., the first yaw angular velocity), various matrices, etc., further, applies the target steering wheel angle after the control sequence is converted to the vehicle, and modifies the constraints according to the vehicle state, such as modifying the first yaw angular velocity, and returns to the first step to achieve rolling optimization.

[0154] It can be seen that the present application proposes a vehicle lateral control method, including: determining the predicted trajectory of the vehicle according to the reference trajectory of the vehicle, the current state of the vehicle and the first yaw rate; the first yaw rate is the yaw rate determined at the previous moment; constructing an objective function through the reference trajectory and the predicted trajectory, and calculating a target control sequence according to the objective function; the target control sequence makes the objective function meet the preset minimum error; limiting the target control amount in the target control sequence to obtain a second yaw rate, calculating the first steering wheel angle corresponding to the linear region and the second steering wheel angle corresponding to the nonlinear region according to the second yaw rate; determining the target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and realizing the lateral control of the vehicle based on the target steering wheel angle. In summary, it can be seen that the predicted trajectory in the present application is comprehensively determined according to the reference trajectory of the vehicle, the current state of the vehicle and the yaw rate at the previous moment. In this way, the present application can predict the predicted trajectory of the vehicle in combination with the expected state of the vehicle, the current state of the vehicle and the state of the vehicle at the previous moment, thereby improving the accuracy of the prediction process. Furthermore, the present application constructs an objective function based on the reference trajectory and the predicted trajectory, and calculates a target control sequence that satisfies the objective function with the minimum error, and then uses the target control sequence to make the error between the predicted trajectory and the reference trajectory reach the overall optimum. In addition, the present application also performs a limit process on the target control amount in the target control sequence to avoid lateral control instability caused by excessive target control amount, so that the safety and comfort of the vehicle are further improved on the basis of improving the accuracy of the vehicle's lateral control.

[0155] Correspondingly, the present application also discloses a vehicle lateral control device, see Figure 5 As shown, the device comprises:

[0156] A predicted trajectory determination module 11 is used to determine the predicted trajectory of the vehicle according to the reference trajectory of the vehicle, the current state of the vehicle and a first yaw angular velocity; the first yaw angular velocity is the yaw angular velocity determined at a previous moment;

[0157] A target control sequence determination module 12 is used to construct a target function through the reference trajectory and the predicted trajectory, and calculate a target control sequence according to the target function; the target control sequence makes the target function meet a preset minimum error;

[0158] a yaw rate limiting module 13, configured to limit the target control amount in the target control sequence to obtain a second yaw rate, and calculate a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw rate;

[0159] The lateral control module 14 is configured to determine a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and implement lateral control of the vehicle based on the target steering wheel angle.

[0160] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0161] It can be seen that the present application proposes a vehicle lateral control method, including: determining the predicted trajectory of the vehicle according to the reference trajectory of the vehicle, the current state of the vehicle and the first yaw rate; the first yaw rate is the yaw rate determined at the previous moment; constructing an objective function through the reference trajectory and the predicted trajectory, and calculating a target control sequence according to the objective function; the target control sequence makes the objective function meet the preset minimum error; limiting the target control amount in the target control sequence to obtain a second yaw rate, calculating the first steering wheel angle corresponding to the linear region and the second steering wheel angle corresponding to the nonlinear region according to the second yaw rate; determining the target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and realizing the lateral control of the vehicle based on the target steering wheel angle. In summary, it can be seen that the predicted trajectory in the present application is comprehensively determined according to the reference trajectory of the vehicle, the current state of the vehicle and the yaw rate at the previous moment. In this way, the present application can predict the predicted trajectory of the vehicle in combination with the expected state of the vehicle, the current state of the vehicle and the state of the vehicle at the previous moment, thereby improving the accuracy of the prediction process. Furthermore, the present application constructs an objective function based on the reference trajectory and the predicted trajectory, and calculates a target control sequence that satisfies the objective function with the minimum error, and then uses the target control sequence to make the error between the predicted trajectory and the reference trajectory reach the overall optimum. In addition, the present application also performs a limit process on the target control amount in the target control sequence to avoid lateral control instability caused by excessive target control amount, so that the safety and comfort of the vehicle are further improved on the basis of improving the accuracy of the vehicle's lateral control.

[0162] Furthermore, an embodiment of the present application also provides an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0163] Figure 6The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the vehicle lateral control method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0164] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0165] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. In addition to the computer program that can be used to complete the vehicle lateral control method executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 221 may further include a computer program that can be used to complete other specific tasks.

[0166] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the vehicle lateral control method disclosed above is implemented.

[0167] For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0168] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0169] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0170] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0171] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0172] The above is a detailed introduction to a vehicle lateral control method, device, equipment, and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A vehicle lateral control method, characterized in that: include: Determining a predicted trajectory of the vehicle according to a reference trajectory of the vehicle, a current state of the vehicle and a first yaw rate; the first yaw rate is a yaw rate determined at a previous moment; An objective function is constructed by using the reference trajectory and the predicted trajectory, and a target control sequence is calculated according to the objective function; the target control sequence enables the objective function to satisfy a preset minimum error; limiting the target control amount in the target control sequence to obtain a second yaw angular velocity, and calculating a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw angular velocity; determining a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and achieving lateral control of the vehicle based on the target steering wheel angle; The step of limiting the target control amount in the target control sequence to obtain a second yaw angular velocity includes: Processing the target control amount in the target control sequence based on a preset limit range to obtain a first processed yaw rate, and determining a second processed yaw rate according to the first processed yaw rate and a target period; Determine a target trajectory point closest to the vehicle from the trajectory points on the reference trajectory, and obtain a third processed yaw rate based on a first lateral position of the target trajectory point, a vehicle speed, and the target period; determining a fourth processed yaw rate according to the second processed yaw rate and the third processed yaw rate, and determining a fifth processed yaw rate based on a preset limit parameter; The second yaw rate is determined based on a relationship between the fourth processed yaw rate and the fifth processed yaw rate.

2. The vehicle lateral control method according to claim 1, characterized in that: The constructing the objective function by using the reference trajectory and the predicted trajectory includes: Determine a first lateral position of a track point on the reference track and a second lateral position of a track point on the predicted track, and determine a position difference between the first lateral position and the second lateral position; Determine a first target time domain and a second target time domain; wherein the first target time domain is a predicted time duration corresponding to the predicted trajectory, and the second target time domain is a control time duration for applying a control sequence; The objective function is constructed according to the first target time domain, the second target time domain, the position difference, the target weight matrix and a control sequence related to the yaw angular velocity; wherein the target weight matrix is ​​a weight matrix related to the yaw angular velocity.

3. The vehicle lateral control method according to claim 2, characterized in that: The obtaining of a third processed yaw rate based on the first lateral position of the target trajectory point, the vehicle speed and the target period includes: A linear difference operation is performed on the first lateral position of the target trajectory point, the vehicle speed and the first product operation result of the target cycle to obtain a third processed yaw angular velocity; wherein the target cycle includes a control cycle and a prediction cycle, and the control cycle represents the interval for applying a control sequence.

4. The vehicle lateral control method according to claim 3, characterized in that: The determining the second yaw rate based on the relationship between the fourth processed yaw rate and the fifth processed yaw rate comprises: If the fourth processed yaw rate is greater than the fifth processed yaw rate, determining the fifth processed yaw rate as the second yaw rate; If the fourth processed yaw rate is less than the negative of the fifth processed yaw rate, the negative of the fifth processed yaw rate is determined as the second yaw rate.

5. The vehicle lateral control method according to claim 3, characterized in that: Also includes: If the second processed yaw rate is greater than the fifth processed yaw rate, determining the fifth processed yaw rate as the first yaw rate; If the second processed yaw rate is less than the negative of the fifth processed yaw rate, the negative of the fifth processed yaw rate is determined as the first yaw rate.

6. The vehicle lateral control method according to any one of claims 1 to 5, characterized in that: The calculating, according to the second yaw angular velocity, a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region comprises: determining a yaw rate gain in the linear region, and calculating the first steering wheel angle corresponding to the linear region according to the second yaw rate and the yaw rate gain; calculating a first critical angle between a transition region in the nonlinear region and the linear region, and calculating a second critical angle between a saturation region in the nonlinear region and the transition region; The second steering wheel angle corresponding to the transition region and the second steering wheel angle corresponding to the saturation region are calculated according to the first critical angle, the second critical angle, the second yaw rate, and the yaw rate gain.

7. The vehicle lateral control method according to claim 6, characterized in that: The determining a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle comprises: If the absolute value of the second yaw angular velocity satisfies a first condition, determining the first steering wheel angle corresponding to the linear region as the target steering wheel angle; The first condition includes that the absolute value of the second yaw rate is not greater than the second product of the yaw rate gain and the first critical angle; If the absolute value of the second yaw angular velocity satisfies a second condition, determining the second steering wheel angle corresponding to the transition zone as the target steering wheel angle; The second condition includes that the absolute value of the second yaw angular velocity is not less than the second product operation result and is not greater than the target turning angle parameter of the transition zone; If the absolute value of the second yaw rate does not satisfy the first condition and the second condition, the second steering wheel angle corresponding to the saturation region is determined as the target steering wheel angle.

8. A vehicle lateral control device, characterized in that: include: A predicted trajectory determination module, used to determine the predicted trajectory of the vehicle according to a reference trajectory of the vehicle, a current state of the vehicle and a first yaw angular velocity; the first yaw angular velocity is a yaw angular velocity determined at a previous moment; A target control sequence determination module is used to construct a target function through the reference trajectory and the predicted trajectory, and calculate a target control sequence according to the target function; the target control sequence makes the target function meet a preset minimum error; a yaw rate limiting module, configured to limit the target control amount in the target control sequence to obtain a second yaw rate, and calculate a first steering wheel angle corresponding to a linear region and a second steering wheel angle corresponding to a nonlinear region according to the second yaw rate; a lateral control module, configured to determine a target steering wheel angle according to the first steering wheel angle and the second steering wheel angle, and implement lateral control of the vehicle based on the target steering wheel angle; The step of limiting the target control amount in the target control sequence to obtain a second yaw angular velocity includes: Processing the target control amount in the target control sequence based on a preset limit range to obtain a first processed yaw rate, and determining a second processed yaw rate according to the first processed yaw rate and a target period; Determine a target trajectory point closest to the vehicle from the trajectory points on the reference trajectory, and obtain a third processed yaw rate based on a first lateral position of the target trajectory point, a vehicle speed, and the target period; determining a fourth processed yaw rate according to the second processed yaw rate and the third processed yaw rate, and determining a fifth processed yaw rate based on a preset limit parameter; The second yaw rate is determined based on a relationship between the fourth processed yaw rate and the fifth processed yaw rate.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the vehicle lateral control method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the vehicle lateral control method as described in any one of claims 1 to 7 is implemented.