Lane keeping method and device based on model prediction, vehicle and storage medium

By constructing a target lateral dynamics model and using the exponential decay expectation function to optimize the trajectory planning path, the problem of low lane correction accuracy and limited control effect caused by vehicle modeling is solved, more efficient lane keeping control is achieved, and driving is enhanced. Security.

CN118597129APending Publication Date: 2024-09-06CHINA FAW CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410741330.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing lane keeping strategy is based on vehicle modeling, which results in low lane correction accuracy and can only achieve good control effects in some scenarios, posing potential risks to driving safety.

Method used

A lane keeping method based on model prediction is used to construct the target lateral dynamics model by obtaining the vehicle's front wheel angle, lateral distance deviation between the center position and the road center position, and yaw angle deviation, and optimize it using the preset exponential decay expectation function The trajectory plans the path, and uses the preset prediction model to track the path, obtain the lane keeping request torque, and then control the vehicle to maintain the lane.

Benefits of technology

It improves the lane correction accuracy and control effect, enhances the driving safety of vehicles in more scenarios, and solves the problems of low lane correction accuracy and limited control effect caused by vehicle modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118597129A
    Figure CN118597129A
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, in particular to a lane keeping method and device based on model prediction, a vehicle and a storage medium, and the method comprises the steps: constructing a target lateral dynamics model according to the obtained front wheel turning angle of the vehicle, the transverse distance deviation between the vehicle and the center position of a road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, optimizing the lateral distance deviation and the yaw angle deviation by using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and tracking the trajectory planning path by using a preset prediction model to obtain a lane keeping request torque of the vehicle; steering wheel torque of the vehicle is obtained, target torque of the vehicle is obtained by combining the lane keeping request torque, and then the vehicle is controlled to keep the lane. Therefore, the problems that the lane correction precision is low due to whole vehicle modeling, and a good control effect can only be obtained in part of scenes are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a lane keeping method, device, vehicle and storage medium based on model prediction. Background Art

[0002] With the advancement of automobile electrification, intelligence and networking, more and more vehicles are equipped with ADAS (Advanced Driving Assistance System) automatic driving functions to help users improve driving safety. Among them, lane keeping strategy is a safety guarantee for driving and an important part of the lateral assistance strategy. When the vehicle deviates from the center line of the lane, the system triggers the function to turn on, and the vehicle will return to the center of the lane line along a certain trajectory. At the same time, the heading angle will be consistent with the lane. At this point, lane keeping is completed to ensure driving safety and avoid driving risks.

[0003] In the related technologies, the state quantity acquisition and model establishment of lane keeping strategies are mostly implemented by artificial intelligence algorithms. However, some of the required state quantities are difficult to obtain and are not very stable, and the lack of data sources can only lead to estimation when performing lane keeping, which will reduce the accuracy of lane correction. At the same time, the related algorithm modeling tends to be whole-vehicle rather than lateral modeling, and can only achieve good control effects in some scenarios. Therefore, there will be hidden dangers to driving safety, which need to be solved urgently. Summary of the invention

[0004] The present application provides a lane keeping method, device, vehicle and storage medium based on model prediction to solve the problems of low lane correction accuracy caused by whole vehicle modeling and only being able to obtain good control effects in some scenarios.

[0005] The first aspect of the present application provides a lane keeping method based on model prediction, comprising the following steps:

[0006] Acquire a front wheel steering angle of a vehicle, a lateral distance deviation between a center position of the vehicle and a center position of a road on which the vehicle is located, and a yaw angle deviation of the vehicle, and construct a target lateral dynamics model according to the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation;

[0007] Based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and the trajectory planning path is tracked using a preset prediction model to obtain a lane keeping request torque of the vehicle;

[0008] A steering wheel torque of the vehicle is acquired, a target torque of the vehicle is obtained according to the steering wheel torque and the lane keeping request torque, and the vehicle is controlled to perform lane keeping according to the target torque.

[0009] According to one embodiment of the present application, before obtaining the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road on which the vehicle is located, and the yaw angle deviation of the vehicle, the method further includes:

[0010] Acquiring driving information of the vehicle, steering wheel input information, and road information on which the vehicle is located;

[0011] The driving information, the steering wheel input information and the road information on which the vehicle is located are cleaned based on a preset data cleaning strategy to obtain cleaned driving information, steering wheel input information and road information.

[0012] According to an embodiment of the present application, based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, including:

[0013] Obtaining an expected function of the lateral distance deviation and an expected function of the yaw angle deviation;

[0014] Based on the preset exponential decay expected function, the lateral distance deviation and the yaw angle deviation are optimized respectively by using the expected function of the lateral distance deviation and the expected function of the yaw angle deviation to obtain the trajectory planning path of the vehicle.

[0015] According to an embodiment of the present application, tracking the trajectory planning path using the preset prediction model includes:

[0016] constructing a target prediction function of the front wheel steering angle, the lateral distance deviation and the yaw angle deviation based on a preset prediction control equation, and obtaining a first constraint condition corresponding to the front wheel steering angle, a second constraint condition corresponding to the lateral distance deviation and a third constraint condition corresponding to the yaw angle deviation according to the target prediction function;

[0017] Based on the first constraint condition, the second constraint condition and the third constraint condition, an optimal path control sequence of the vehicle is determined, a preset prediction model of the vehicle is obtained, and the trajectory planning path is tracked based on the preset prediction model.

[0018] According to one embodiment of the present application, obtaining the steering wheel torque of the vehicle includes:

[0019] Obtaining the driver's hand force, the vehicle's speed and the steering wheel angle;

[0020] Generate the hand force torque of the driver's hand force, the damping torque of the vehicle's driving speed, and the return torque of the steering wheel angle based on a preset torque mapping relationship;

[0021] The hand force torque, the damping torque and the return torque are torque-added to obtain the steering wheel torque of the vehicle.

[0022] According to one embodiment of the present application, the preset exponential decay expectation function is:

[0023] e y (k+i│k)=(1-e -λi ) y (k);

[0024] Among them, e y is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, (1-e -λi ) is the expected trajectory coefficient, k is the current cycle, i is the i-th prediction cycle, (k+i│k) is the state predicted in the k-th cycle for the k+i-th cycle, e -λi is the exponential decay function coefficient, e y (k) is the first value of the lateral distance deviation in the kth cycle.

[0025] According to the lane keeping method based on model prediction in the embodiment of the present application, a target lateral dynamics model is constructed based on the obtained front wheel turning angle of the vehicle, the lateral distance deviation between the vehicle and the center of the road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, the lateral distance deviation and yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the vehicle's trajectory planning path, and the trajectory planning path is tracked using a preset prediction model to obtain the vehicle's lane keeping request torque; the vehicle's steering wheel torque is obtained, and the vehicle's target torque is obtained in combination with the lane keeping request torque, and the vehicle is controlled to keep the lane. In this way, the problems of low lane correction accuracy caused by whole vehicle modeling and only being able to obtain good control effects in some scenarios are solved.

[0026] A second aspect of the present application provides a lane keeping device based on model prediction, including:

[0027] an acquisition module, used to acquire a front wheel steering angle of a vehicle, a lateral distance deviation between a center position of the vehicle and a center position of a road on which the vehicle is located, and a yaw angle deviation of the vehicle, and to construct a target lateral dynamics model according to the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation;

[0028] a path tracking module, configured to optimize the lateral distance deviation and the yaw angle deviation based on the target lateral dynamics model using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and simultaneously track the trajectory planning path using a preset prediction model to obtain a lane keeping request torque of the vehicle;

[0029] A control module is used to obtain a steering wheel torque of the vehicle, obtain a target torque of the vehicle according to the steering wheel torque and the lane keeping request torque, and control the vehicle to perform lane keeping according to the target torque.

[0030] According to one embodiment of the present application, before acquiring the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road on which the vehicle is located, and the yaw angle deviation of the vehicle, the acquisition module further includes:

[0031] A first acquisition unit, used to acquire the driving information of the vehicle, the steering wheel input information and the road information on which the vehicle is located;

[0032] The data cleaning unit is used to clean the driving information, the steering wheel input information and the road information of the vehicle based on a preset data cleaning strategy to obtain cleaned driving information, steering wheel input information and road information.

[0033] According to one embodiment of the present application, the path tracking module includes:

[0034] A second acquisition unit, used for acquiring an expected function of the lateral distance deviation and an expected function of the yaw angle deviation;

[0035] The optimization unit is used to optimize the lateral distance deviation and the yaw angle deviation respectively based on the preset exponential decay expected function and the expected function of the lateral distance deviation and the yaw angle deviation to obtain the trajectory planning path of the vehicle.

[0036] According to one embodiment of the present application, the path tracking module includes:

[0037] a third acquisition unit, configured to construct a target prediction function of the front wheel steering angle, the lateral distance deviation and the yaw angle deviation based on a preset prediction control equation, and obtain a first constraint condition corresponding to the front wheel steering angle, a second constraint condition corresponding to the lateral distance deviation and a third constraint condition corresponding to the yaw angle deviation according to the target prediction function;

[0038] A determination unit is used to determine the optimal path control sequence of the vehicle based on the first constraint condition, the second constraint condition and the third constraint condition, obtain a preset prediction model of the vehicle, and track the trajectory planning path based on the preset prediction model.

[0039] According to one embodiment of the present application, the control module includes:

[0040] A fourth acquisition unit, used to acquire the driver's hand force, the vehicle's travel speed and the steering wheel angle;

[0041] A generating unit, configured to generate a hand force torque of the driver's hand force, a damping torque of the vehicle's driving speed, and a return torque of the steering wheel angle based on a preset torque mapping relationship;

[0042] The torque adding unit is used to add the hand force torque, the damping torque and the return torque to obtain the steering wheel torque of the vehicle.

[0043] According to one embodiment of the present application, the preset exponential decay expectation function is:

[0044] e y (k+i│k)=(1-e -λi ) y (k);

[0045] Among them, e y is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, (1-e -λi ) is the expected trajectory coefficient, k is the current cycle, i is the i-th prediction cycle, (k+i│k) is the state predicted in the k-th cycle for the k+i-th cycle, e -λi is the exponential decay function coefficient, e y (k) is the first value of the lateral distance deviation in the kth cycle.

[0046] According to the lane keeping device based on model prediction in the embodiment of the present application, a target lateral dynamics model is constructed based on the obtained front wheel turning angle of the vehicle, the lateral distance deviation between the vehicle and the center of the road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the trajectory planning path of the vehicle, and the trajectory planning path is tracked using a preset prediction model to obtain the lane keeping request torque of the vehicle; the steering wheel torque of the vehicle is obtained, and the target torque of the vehicle is obtained in combination with the lane keeping request torque, and the vehicle is controlled to keep the lane. In this way, the problems such as low lane correction accuracy caused by whole vehicle modeling and only good control effects can be obtained in some scenarios are solved.

[0047] The third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the lane keeping method based on model prediction as described in the above embodiment.

[0048] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the lane keeping method based on model prediction as described in the above embodiments.

[0049] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0051] Figure 1 A flowchart of a lane keeping method based on model prediction provided according to an embodiment of the present application;

[0052] Figure 2 A system block diagram of lane keeping according to an embodiment of the present application;

[0053] Figure 3 is a schematic diagram of an exponential decay function according to an embodiment of the present application;

[0054] Figure 4 It is a schematic diagram of an EPS (Electric Power Steering) module according to an embodiment of the present application;

[0055] Figure 5 is a block diagram of an exemplary lane keeping device based on model prediction according to an embodiment of the present application;

[0056] Figure 6 It is a schematic diagram of the structure of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0058] The following describes the lane keeping method, device, vehicle and storage medium based on model prediction of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology that the lane correction accuracy is low due to the whole vehicle modeling, and good control effect can only be obtained in some scenarios, the present application provides a lane keeping method based on model prediction, in which a target lateral dynamics model is constructed according to the obtained front wheel turning angle of the vehicle, the lateral distance deviation between the vehicle and the center of the road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the trajectory planning path of the vehicle, and the preset prediction model is used to track the trajectory planning path to obtain the lane keeping request torque of the vehicle; the steering wheel torque of the vehicle is obtained, and the target torque of the vehicle is obtained in combination with the lane keeping request torque, so as to control the vehicle to keep the lane. In this way, the problem that the lane correction accuracy is low due to the whole vehicle modeling, and good control effect can only be obtained in some scenarios is solved.

[0059] Specifically, Figure 1 A flowchart of a lane keeping method based on model prediction provided in an embodiment of the present application.

[0060] like Figure 1 As shown, the lane keeping method based on model prediction includes the following steps:

[0061] In step S101, the front wheel steering angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road on which the vehicle is located, and the yaw angle deviation of the vehicle are obtained, and a target lateral dynamics model is constructed based on the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation.

[0062] According to one embodiment of the present application, before obtaining the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road on which the vehicle is located, and the yaw angle deviation of the vehicle, it also includes: obtaining the vehicle's driving information, steering wheel input information, and the road information on which the vehicle is located; performing data cleaning on the driving information, steering wheel input information, and the road information on which the vehicle is located based on a preset data cleaning strategy to obtain cleaned driving information, steering wheel input information, and road information.

[0063] The preset data cleaning strategy may be a data cleaning strategy selected by technicians in this field according to actual test requirements, or may be a better data cleaning strategy obtained through a limited number of tests, which is not specifically limited here.

[0064] Specifically, in order to prevent the vehicle from deviating from the lane during driving, thereby causing traffic accidents such as vehicle scratches and collisions, the embodiments of the present application can effectively utilize the kinematic information and dynamic information of the traffic vehicle, and combine it with road information, use the model prediction method, design trajectory planning and trajectory tracking equations, and ultimately achieve accurate calculation of the total EPS torque, so that the vehicle can be straightened and returned to the center of the lane to ensure the user's driving safety.

[0065] Specifically, if Figure 2 As shown, the embodiment of the present application first needs to obtain the vehicle's driving information, steering wheel input information and the road information on which the vehicle is located, wherein the vehicle's driving information can be the vehicle's driving state, such as the vehicle's lateral speed, longitudinal speed and lateral position of the vehicle from the lane line; the steering wheel input information can be the steering wheel angle and torque; the vehicle's road information can be the road curvature and curvature radius; secondly, since the above-mentioned information mainly comes from the body controller, camera, radar, GPS (Global Positioning System, Global Positioning System), etc., the source is wide, so it is necessary to clean the acquired driving information, steering wheel input information and the road information on which the vehicle is located based on a preset data cleaning strategy, for example, remove abnormal data information (maximum and minimum values ​​deviating from 2% and 98% percentiles), fill in blank values ​​according to the interpolation method, and synchronize the data (make the data uniform and stable), etc., so as to obtain the cleaned vehicle's driving information, steering wheel input information and road information, and use the cleaned driving information, steering wheel input information and road information as an important prerequisite for subsequent data processing.

[0066] Furthermore, the embodiments of the present application are mainly based on the corresponding research on the response characteristics of the vehicle during lateral deviation correction. Therefore, it is necessary to test the lateral performance of the vehicle. The embodiments of the present application fully consider the force characteristics, lateral motion laws and tire cornering stiffness of the vehicle, and have good response characteristics under both high-speed and low-speed conditions. Therefore, the embodiments of the present application can ignore the body stiffness and air resistance, ignore the movement in the z-axis direction, obtain the front wheel turning angle of the vehicle as the input of the vehicle system, and the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located and the yaw angle deviation of the vehicle are used as the state variables of the vehicle system, and establish kinematic equations along the longitudinal direction (set as the x-direction), lateral direction (set as the y-direction), and rotation around the z-axis of the vehicle to perform lane keeping, as shown in the following formula:

[0067]

[0068] Among them, δ f is the front wheel turning angle of the vehicle, φ is the yaw angle of the vehicle, C lf is the front wheel longitudinal stiffness, C cfis the front wheel cornering stiffness, C lr is the longitudinal stiffness of the rear wheel, C cr is the rear wheel cornering stiffness, s f is the front wheel slip rate, s r is the rear wheel slip rate, I z is the moment of inertia, a is the distance to the front axle, b is the distance to the rear axle, is the longitudinal acceleration, is the lateral speed, is the yaw angular velocity, is the lateral acceleration, is the yaw angular acceleration and m is the vehicle mass.

[0069] Furthermore, in order to simplify the research problem and reduce the computational complexity, the embodiment of the present application assumes that the front wheel steering angle is consistent with the front wheel of the vehicle. When the front wheel of the vehicle rotates and intends to correct the deviation, the expected yaw angular velocity is The road radius R and the longitudinal speed Joint decision, that is,

[0070]

[0071] Assume e y is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located (i.e., lateral error), e φ is the yaw angle deviation of the vehicle (i.e. the angle error between the vehicle heading angle and the road tangent), select e y 、e φ , is the state variable, the front wheel steering angle δ f As the input variable, the target lateral dynamics model is established based on the selected state variables and input variables, thereby further improving the lane correction accuracy of the vehicle, as shown in the following formula:

[0072]

[0073] in, is the lateral error change rate, is the rate of change of heading angle error, m is the vehicle mass, and the state variable

[0074]

[0075] In step S102, based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the vehicle's trajectory planning path. At the same time, the trajectory planning path is tracked using a preset prediction model to obtain the vehicle's lane keeping request torque.

[0076] According to one embodiment of the present application, based on a target lateral dynamics model, a preset exponentially decaying expected function is used to optimize the lateral distance deviation and the yaw angle deviation to obtain a trajectory planning path for the vehicle, including: obtaining an expected function of the lateral distance deviation and an expected function of the yaw angle deviation; based on a preset exponentially decaying expected function, the lateral distance deviation and the yaw angle deviation are optimized respectively using the expected function of the lateral distance deviation and the expected function of the yaw angle deviation to obtain a trajectory planning path for the vehicle.

[0077] According to one embodiment of the present application, a preset prediction model is used to track the trajectory planning path, including: constructing a target prediction function of the front wheel turning angle, lateral distance deviation and yaw angle deviation based on a preset prediction control equation, and obtaining a first constraint condition corresponding to the front wheel turning angle, a second constraint condition corresponding to the lateral distance deviation and a third constraint condition corresponding to the yaw angle deviation according to the target prediction function; based on the first constraint condition, the second constraint condition and the third constraint condition, determining the optimal path control sequence of the vehicle, obtaining the preset prediction model of the vehicle, and tracking the trajectory planning path based on the preset prediction model.

[0078] Among them, the preset exponential decay expectation function, the preset prediction control equation and the preset prediction model can all be selected by technical personnel in this field according to actual test requirements, and are not specifically limited here.

[0079] Specifically, in the lane keeping system, it is necessary to consider that the vehicle's body direction is consistent with the current road tangent direction as much as possible, and the vehicle does not step on the lane line, that is, the center of mass of the vehicle should be located in the middle of the road as much as possible. From this, the optimization function can be determined to obtain the errors of the two state variables of lateral distance deviation and yaw angle deviation, and the total error is calculated by summing the squares of the errors. The formula is shown below:

[0080]

[0081] stδ f,min ≤δ f ≤δ f,max ;

[0082] Among them, k1 and k2 are the polynomial coefficients, is the sum of the squares of the lateral distance deviations, is the sum of squares of yaw angle deviations, δ f,min is the minimum front wheel turning angle, δ f,max is the maximum front wheel turning angle and st is the constraint condition.

[0083] Furthermore, if Figure 3As shown, the embodiment of the present application needs to plan the trajectory of the vehicle's driving conditions, so as to control the vehicle to return to the central axis of the road in the optimal path, such as constant speed offset, arc-based trajectory, positive and negative trapezoid-based trajectory, etc. In order to make the calculation process more efficient and stable and accelerate the convergence of the model, the embodiment of the present application adopts a preset exponential decay expectation function to obtain the trajectory planning path of the vehicle, so that the above-mentioned state variables tend to the optimal value, wherein the preset exponential decay expectation function, that is, the lateral distance deviation e between the center position of the vehicle and the center position of the road where the vehicle is located y The expected reference equation is:

[0084] e y (k+i│k)=(1-e -λi ) y (k);

[0085] Among them, e y is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, (1-e -λi ) is the expected trajectory coefficient, k is the current cycle, i is the i-th time interval of the current cycle, (k+i│k) is the state predicted after the i-th time interval in the k-th cycle, e -λi is the exponential decay function coefficient, e y (k) is the first value of the lateral distance deviation in the kth cycle.

[0086] It should be noted that for other variables in this application, they can be uniformly written in the standard vector form X ref (k+i│k)=φ i X(k), where φ i is the diagonal matrix of expected trajectory coefficients, X(k) is the first value of all state variables X in the kth period, X ref (k+i│k) is the expected value of all state variables X after the i-th time interval in the k-th cycle.

[0087] Specifically, the embodiment of the present application first obtains the expected function of the lateral distance deviation and the expected function of the yaw angle deviation based on the lateral distance deviation and the yaw angle deviation of the vehicle; secondly, based on the preset exponential decay expected function, the expected function of the lateral distance deviation and the expected function of the yaw angle deviation are used to optimize the lateral distance deviation and the yaw angle deviation respectively, so that the lateral distance deviation and the yaw angle deviation tend to the optimal value, and improve their effectiveness and stability, and further obtain the trajectory planning path of the vehicle; since the lane keeping purpose of the present application is to make the state variables converge as soon as possible, and to make the front wheel turning angle δ of adjacent sampling periods f and its increment Δδ fAs small as possible, therefore, finally, the embodiment of the present application needs to construct a target prediction function and list the corresponding constraints, solve the optimal path control sequence, and use the first value in the solved optimal path control sequence as the input value, and discard the other values ​​in the optimal path control sequence. That is to say, the embodiment of the present application needs to construct a target prediction function of the front wheel steering angle, the lateral distance deviation and the yaw angle deviation based on the preset prediction control equation, and obtain the first constraint corresponding to the front wheel steering angle, the second constraint corresponding to the lateral distance deviation and the third constraint corresponding to the yaw angle deviation according to the target prediction function, wherein the first constraint, the second constraint and the third constraint can be directly calculated by the following formula:

[0088]

[0089] stδ f,min ≤δ f ≤δ f,max ;

[0090] Δδ f,min ≤Δδ f ≤Δδ f,max ;

[0091] Among them, X(k+i│k) and X ref (k+i│k) are the state at time (k+1) and the ideal state predicted based on time k; Δδ f (k+i) is the input increment at time (k+1); Q is the system state error, and R is the weight coefficient of the control input increment.

[0092] Furthermore, the embodiment of the present application is based on the first constraint, the second constraint and the third constraint, so that the optimal path control sequence of the vehicle can be determined, and this process is repeated in the next cycle. The embodiment of the present application first converts the performance execution into a predictive type, constructs a cost function and constraints for the prediction time domain, and thus converts the cost function into a predictive type, thereby obtaining a preset prediction model of the vehicle, such as an MPC (model predictive control) prediction model, and tracks the trajectory planning path based on the MPC prediction model, and further obtains the lane keeping request torque for controlling the EPS.

[0093] It should be noted that the first constraint condition, the second constraint condition and the third constraint condition obtained based on the calculation in the embodiment of the present application are all the wheel angle δ f In physical range.

[0094] In step S103, the steering wheel torque of the vehicle is acquired, the target torque of the vehicle is obtained according to the steering wheel torque and the lane keeping request torque, and the vehicle is controlled to perform lane keeping according to the target torque.

[0095] According to one embodiment of the present application, obtaining the steering wheel torque of the vehicle includes: obtaining the driver's hand force, the vehicle's driving speed and the steering wheel angle; generating the hand force torque of the driver's hand force, the damping torque of the vehicle's driving speed and the return torque of the steering wheel angle based on a preset torque mapping relationship; and adding the hand force torque, the damping torque and the return torque to obtain the steering wheel torque of the vehicle.

[0096] Among them, the preset torque mapping relationship can be selected by those skilled in the art according to actual test requirements, and is not specifically limited here.

[0097] Specifically, Figure 4 As shown, it is the system architecture of the lane keeping function, wherein Tq+ is the positive torque and Tq- is the negative torque. The embodiment of the present application is based on the optimal path control sequence with constraints obtained above, so that after finally obtaining the lane keeping request torque of the vehicle, it is also necessary to obtain the actual operation data of the vehicle, for example, obtain the driver's hand force, the vehicle's driving speed and the steering wheel angle, and through the basic power curve corresponding to the driver's hand force, the damping force curve corresponding to the vehicle's driving speed and the return torque curve corresponding to the steering wheel angle, through the table lookup method, the hand force torque of the driver's hand force, the damping torque of the vehicle's driving speed and the return torque of the steering wheel angle are generated in the table based on the preset torque mapping relationship, and the hand force torque, the damping torque and the return torque are added to obtain the steering wheel torque of the vehicle. At this time, the lane keeping request torque obtained above, that is, the angle request value output by the data processing module is converted into the lane keeping request torque for controlling the EPS through the gear angle controller, and the steering wheel torque and the lane keeping request torque are calculated by the EPS, so that the target torque of the vehicle, that is, the total output torque of the motor, is obtained, so that the vehicle is controlled to keep the lane according to the target torque.

[0098] In summary, the present application can obtain the following beneficial effects through the above embodiments:

[0099] (1) The embodiment of the present application uses an exponential decay function as a lane keeping path, thereby improving the convergence speed, effectiveness and stability of the model;

[0100] (2) The embodiment of the present application adopts the model predictive control method, selects the front wheel steering angle as input, and the lateral distance deviation, heading angle deviation, lateral error change rate, and heading angle error change rate as state variables, converts the problem into a quadratic form, and solves the constrained optimization problem, thereby improving the trajectory correction accuracy.

[0101] According to the lane keeping method based on model prediction in the embodiment of the present application, a target lateral dynamics model is constructed based on the obtained front wheel turning angle of the vehicle, the lateral distance deviation between the vehicle and the center of the road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, the lateral distance deviation and yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the vehicle's trajectory planning path, and the trajectory planning path is tracked using a preset prediction model to obtain the vehicle's lane keeping request torque; the vehicle's steering wheel torque is obtained, and the vehicle's target torque is obtained in combination with the lane keeping request torque, and the vehicle is controlled to keep the lane. In this way, the problems of low lane correction accuracy caused by whole vehicle modeling and only being able to obtain good control effects in some scenarios are solved.

[0102] Next, a lane keeping device based on model prediction proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.

[0103] Figure 5 It is a block diagram of a lane keeping device based on model prediction according to an embodiment of the present application.

[0104] like Figure 5 As shown, the lane keeping device 10 based on model prediction includes: an acquisition module 100 , a path tracking module 200 and a control module 300 .

[0105] The acquisition module 100 is used to acquire the front wheel steering angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, and the yaw angle deviation of the vehicle, and to construct a target lateral dynamics model according to the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation;

[0106] A path tracking module 200 is used to optimize the lateral distance deviation and the yaw angle deviation based on the target lateral dynamics model using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and simultaneously track the trajectory planning path using a preset prediction model to obtain a lane keeping request torque of the vehicle;

[0107] The control module 300 is used to obtain the steering wheel torque of the vehicle, obtain the target torque of the vehicle according to the steering wheel torque and the lane keeping request torque, and control the vehicle to perform lane keeping according to the target torque.

[0108] According to one embodiment of the present application, before obtaining the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road on which the vehicle is located, and the yaw angle deviation of the vehicle, the obtaining module 100 further includes:

[0109] A first acquisition unit, used to acquire vehicle driving information, steering wheel input information and road information on which the vehicle is located;

[0110] The data cleaning unit is used to clean the driving information, the steering wheel input information and the road information on which the vehicle is located based on a preset data cleaning strategy to obtain the cleaned driving information, the steering wheel input information and the road information.

[0111] According to one embodiment of the present application, the path tracking module 200 includes:

[0112] A second acquisition unit, used to acquire an expected function of a lateral distance deviation and an expected function of a yaw angle deviation;

[0113] The optimization unit is used to optimize the lateral distance deviation and the yaw angle deviation respectively based on a preset exponential decay expected function and using the expected function of the lateral distance deviation and the expected function of the yaw angle deviation to obtain a trajectory planning path of the vehicle.

[0114] According to one embodiment of the present application, the path tracking module 200 includes:

[0115] a third acquisition unit, configured to construct a target prediction function of the front wheel steering angle, the lateral distance deviation and the yaw angle deviation based on a preset prediction control equation, and obtain a first constraint condition corresponding to the front wheel steering angle, a second constraint condition corresponding to the lateral distance deviation and a third constraint condition corresponding to the yaw angle deviation according to the target prediction function;

[0116] The determination unit is used to determine the optimal path control sequence of the vehicle based on the first constraint condition, the second constraint condition and the third constraint condition, obtain a preset prediction model of the vehicle, and track the trajectory planning path based on the preset prediction model.

[0117] According to one embodiment of the present application, the control module 300 includes:

[0118] The fourth acquisition unit is used to acquire the driver's hand force, the vehicle's driving speed and the steering wheel angle;

[0119] A generating unit, configured to generate a hand force torque of a driver's hand force, a damping torque of a vehicle's driving speed, and a return torque of a steering wheel angle based on a preset torque mapping relationship;

[0120] The torque summing unit is used to sum the hand torque, the damping torque and the return torque to obtain the steering wheel torque of the vehicle.

[0121] According to one embodiment of the present application, the preset exponential decay expectation function is:

[0122] e y (k+i│k)=(1-e -λi ) y (k);

[0123] Among them, ey is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, (1-e -λi ) is the expected trajectory coefficient, k is the current cycle, i is the i-th prediction cycle, (k+i│k) is the state predicted in the k-th cycle for the k+i-th cycle, e -λi is the exponential decay function coefficient, e y (k) is the first value of the lateral distance deviation in the kth cycle.

[0124] According to the lane keeping device based on model prediction in the embodiment of the present application, a target lateral dynamics model is constructed based on the obtained front wheel turning angle of the vehicle, the lateral distance deviation between the vehicle and the center of the road, and the yaw angle deviation of the vehicle; based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain the trajectory planning path of the vehicle, and the trajectory planning path is tracked using a preset prediction model to obtain the lane keeping request torque of the vehicle; the steering wheel torque of the vehicle is obtained, and the target torque of the vehicle is obtained in combination with the lane keeping request torque, and the vehicle is controlled to keep the lane. In this way, the problems such as low lane correction accuracy caused by whole vehicle modeling and only good control effects can be obtained in some scenarios are solved.

[0125] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0126] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .

[0127] When the processor 602 executes the program, the lane keeping method based on model prediction provided in the above embodiment is implemented.

[0128] Furthermore, the vehicle also includes:

[0129] The communication interface 603 is used for communication between the memory 601 and the processor 602 .

[0130] The memory 601 is used to store computer programs that can be executed on the processor 602 .

[0131] The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0132] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0133] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.

[0134] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0135] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the lane keeping method based on model prediction as described above is implemented.

[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0137] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0138] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0139] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0140] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0141] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0142] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0143] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A lane keeping method based on model prediction, characterized in that: The following steps are involved: Acquire a front wheel steering angle of a vehicle, a lateral distance deviation between a center position of the vehicle and a center position of a road on which the vehicle is located, and a yaw angle deviation of the vehicle, and construct a target lateral dynamics model according to the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation; Based on the target lateral dynamics model, the lateral distance deviation and the yaw angle deviation are optimized using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and the trajectory planning path is tracked using a preset prediction model to obtain a lane keeping request torque of the vehicle; A steering wheel torque of the vehicle is acquired, a target torque of the vehicle is obtained according to the steering wheel torque and the lane keeping request torque, and the vehicle is controlled to perform lane keeping according to the target torque.

2. The method according to claim 1, characterized in that Before obtaining the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, and the yaw angle deviation of the vehicle, the method further includes: Acquiring driving information of the vehicle, steering wheel input information, and road information on which the vehicle is located; The driving information, the steering wheel input information and the road information on which the vehicle is located are cleaned based on a preset data cleaning strategy to obtain cleaned driving information, steering wheel input information and road information.

3. The method according to claim 1, characterized in that The step of optimizing the lateral distance deviation and the yaw angle deviation based on the target lateral dynamics model by using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle includes: Obtaining an expected function of the lateral distance deviation and an expected function of the yaw angle deviation; Based on the preset exponential decay expected function, the lateral distance deviation and the yaw angle deviation are optimized respectively by using the expected function of the lateral distance deviation and the expected function of the yaw angle deviation to obtain the trajectory planning path of the vehicle.

4. The method according to claim 1, characterized in that: The using the preset prediction model to track the trajectory planning path includes: constructing a target prediction function of the front wheel steering angle, the lateral distance deviation and the yaw angle deviation based on a preset prediction control equation, and obtaining a first constraint condition corresponding to the front wheel steering angle, a second constraint condition corresponding to the lateral distance deviation and a third constraint condition corresponding to the yaw angle deviation according to the target prediction function; Based on the first constraint condition, the second constraint condition and the third constraint condition, an optimal path control sequence of the vehicle is determined, a preset prediction model of the vehicle is obtained, and the trajectory planning path is tracked based on the preset prediction model.

5. The method according to claim 1, characterized in that The obtaining of the steering wheel torque of the vehicle comprises: Obtaining the driver's hand force, the vehicle's speed and the steering wheel angle; Generate the hand force torque of the driver's hand force, the damping torque of the vehicle's driving speed, and the return torque of the steering wheel angle based on a preset torque mapping relationship; The hand force torque, the damping torque and the return torque are torque-added to obtain the steering wheel torque of the vehicle.

6. The method according to claim 1, characterized in that The preset exponential decay expectation function is: yes y (k+i / k)=(1-e -λi )e y (k); Among them, e y is the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, (1-e -λi ) is the expected trajectory coefficient, k is the current cycle, i is the i-th prediction cycle, (k+i / k) is the state predicted in the k-th cycle for the k+i-th cycle, e -λi is the exponential decay function coefficient, e y (k) is the first value of the lateral distance deviation in the kth cycle.

7. A lane keeping device based on model prediction, characterized in that: include: an acquisition module, used to acquire a front wheel steering angle of a vehicle, a lateral distance deviation between a center position of the vehicle and a center position of a road on which the vehicle is located, and a yaw angle deviation of the vehicle, and to construct a target lateral dynamics model according to the front wheel steering angle, the lateral distance deviation, and the yaw angle deviation; a path tracking module, configured to optimize the lateral distance deviation and the yaw angle deviation based on the target lateral dynamics model using a preset exponential decay expectation function to obtain a trajectory planning path of the vehicle, and simultaneously track the trajectory planning path using a preset prediction model to obtain a lane keeping request torque of the vehicle; A control module is used to obtain a steering wheel torque of the vehicle, obtain a target torque of the vehicle according to the steering wheel torque and the lane keeping request torque, and control the vehicle to perform lane keeping according to the target torque.

8. The device according to claim 7, characterized in that Before acquiring the front wheel turning angle of the vehicle, the lateral distance deviation between the center position of the vehicle and the center position of the road where the vehicle is located, and the yaw angle deviation of the vehicle, the acquisition module further includes: An acquisition unit, used to acquire the driving information of the vehicle, the steering wheel input information and the road information on which the vehicle is located; The data cleaning unit is used to clean the driving information, the steering wheel input information and the road information of the vehicle based on a preset data cleaning strategy to obtain cleaned driving information, steering wheel input information and road information.

9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the lane keeping method based on model prediction as described in any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the lane keeping method based on model prediction as described in any one of claims 1-6.

Citation Information

Cited By

  • Vehicle transverse control method and device, electronic equipment and readable storage medium

    CN119705417A

  • Model prediction-based lane keeping method and apparatus, vehicle and storage medium

    WO2025251472A1