Lane keeping method and device, vehicle and storage medium
By obtaining the lane line parameters and longitudinal speed, calculating the lane line equation and preview distance, and determining the vehicle's target steering wheel angle, it solves the shortcomings of the PID control algorithm in lane keeping, improves driving safety and system flexibility, and realizes vehicle Stable and centered driving.
Patent Information
- Application Number
- CN202410780406.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
AI Technical Summary
The existing PID control algorithm has poor control effect in vehicle lane keeping, and because the system state changes require online parameter adjustment, it is difficult to meet the expected control requirements, especially when the driver is tired, it is easy to cause lane departure.
By obtaining the lane line parameters and longitudinal driving speed of the lane where the vehicle is located, the lane line equation and preview distance are determined, the lateral deviation between the preview point and the vehicle is calculated, and the target steering wheel angle is determined based on the deviation and distance to achieve vehicle driving control.
It effectively solves the problem of lane departure caused by driver fatigue, improves driving safety and the flexibility of the lane keeping assist system, and achieves centered driving of the vehicle.
Smart Images

Figure CN118618366A
Abstract
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. Background Art
[0002] Among the many factors that cause traffic accidents, lane departure accounts for a high proportion. With the development of automobile intelligence and networking, some advanced driver assistance systems have come into being. Lane keeping assist technology, as one of the key functions of advanced driver assistance systems, can greatly reduce the incidence of traffic accidents and reduce the operating burden of drivers. Its research is of great significance to the development of intelligent and networked automobiles.
[0003] Related technologies use PID control algorithms to perform lane keeping. However, the PID control algorithm has poor control effects on vehicles, which have strong lag and large inertia. In addition, since the system state of the vehicle is constantly changing during operation, the PID control parameters also need to be adjusted online, which makes it difficult to achieve the expected control requirements. Summary of the invention
[0004] The present application provides a lane keeping method, device, vehicle and storage medium to solve the problem of lane departure caused by driver fatigue, realize vehicle lane keeping assistance and centered driving, and improve driving safety and the flexibility of the lane keeping assistance system.
[0005] A first aspect of the present application provides a lane keeping method, comprising the following steps:
[0006] Obtaining lane line parameters of the lane in which the vehicle is located and the longitudinal speed of the vehicle;
[0007] Determine a lane line equation of a lane in which the vehicle is located according to the lane line parameters, determine a preview distance according to the longitudinal driving speed, and determine a lateral deviation between a preview point and the vehicle according to the lane line equation and the preview distance; and
[0008] A target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled to travel according to the target steering wheel angle.
[0009] Optionally, in some embodiments, the target steering wheel angle is:
[0010]
[0011] in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, and i is the transmission ratio of the steering wheel angle to the wheel angle.
[0012] Optionally, in some embodiments, determining the preview distance according to the longitudinal travel speed comprises:
[0013] An initial preview distance is determined according to the product of the longitudinal travel speed and a preset forward preview time, and the preview distance is determined according to the sum of the initial preview distance and the preset distance.
[0014] Optionally, in some embodiments, controlling the vehicle to travel according to the target steering wheel angle includes:
[0015] Obtaining the current steering wheel angle of the vehicle;
[0016] A desired steering wheel angle is determined according to the target steering wheel angle and the current steering wheel angle, and the steering wheel of the vehicle is turned based on the desired steering wheel angle.
[0017] Optionally, in some embodiments, the lane line parameters include: a lateral distance of the lane line from a center line of a sensor optical axis, a heading angle of the vehicle relative to the lane line, a curvature of the lane line, and at least one of a curvature change rate of the lane line.
[0018] A second aspect of the present application provides a lane keeping device, including:
[0019] An acquisition module, used to acquire lane line parameters of the lane in which the vehicle is located and the longitudinal speed of the vehicle;
[0020] a determination module, configured to determine a lane line equation of a lane in which the vehicle is located according to the lane line parameters, determine a preview distance according to the longitudinal driving speed, and determine a lateral deviation between a preview point and the vehicle according to the lane line equation and the preview distance; and
[0021] A control module is used to determine a target steering wheel angle of the vehicle according to the lateral deviation and the preview distance, and control the vehicle to travel according to the target steering wheel angle.
[0022] Optionally, in some embodiments, the target steering wheel angle is:
[0023]
[0024] in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, and i is the transmission ratio of the steering wheel angle to the wheel angle.
[0025] Optionally, in some embodiments, the determining module includes:
[0026] A determination unit is used to determine an initial preview distance according to the product of the longitudinal travel speed and a preset forward preview time, and to determine an initial preview distance according to the initial preview distance and the preset forward preview time.
[0027] Optionally, in some embodiments, the control module includes:
[0028] an acquisition unit, configured to acquire a current steering wheel angle of the vehicle;
[0029] A turning unit is used to determine a desired steering wheel angle according to the target steering wheel angle and the current steering wheel angle, and to turn the steering wheel of the vehicle based on the desired steering wheel angle.
[0030] Optionally, in some embodiments, the lane line parameters include: a lateral distance of the lane line from a center line of a sensor optical axis, a heading angle of the vehicle relative to the lane line, a curvature of the lane line, and at least one of a curvature change rate of the lane line.
[0031] A 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 as described in the above embodiment.
[0032] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the lane keeping method as described in the above embodiment.
[0033] Therefore, by obtaining the lane line parameters of the lane where the vehicle is located and the longitudinal speed of the vehicle, and determining the lane line equation of the lane where the vehicle is located according to the lane line parameters, determining the preview distance according to the longitudinal speed, determining the lateral deviation between the preview point and the vehicle according to the lane line equation and the preview distance, and determining the target steering wheel angle of the vehicle according to the lateral deviation and the preview distance, the vehicle is controlled according to the target steering wheel angle. In this way, the problem of lane deviation caused by fatigued drivers is solved, the vehicle lane keeping assist centering is achieved, and driving safety and the flexibility of the lane keeping assist system are improved.
[0034] 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
[0035] 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:
[0036] Figure 1 A flow chart of a lane keeping method provided according to an embodiment of the present application;
[0037] Figure 2 A schematic diagram of an actual tracking effect provided according to an embodiment of the present application;
[0038] Figure 3 A schematic diagram of lateral deviation provided according to an embodiment of the present application;
[0039] Figure 4 A flowchart of a lane keeping method provided according to an embodiment of the present application;
[0040] Figure 5 A block diagram of a lane keeping device provided according to an embodiment of the present application;
[0041] Figure 6 It is a schematic diagram of the structure of a vehicle provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] 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.
[0043] The lane keeping method, device, vehicle and storage medium of the embodiment of the present application are described below with reference to the accompanying drawings. In view of the problem of lane deviation caused by the driver under fatigue conditions mentioned in the above background technology, the present application provides a lane keeping method, in which the lane line parameters of the lane in which the vehicle is located and the longitudinal driving speed of the vehicle are obtained, and the lane line equation of the lane in which the vehicle is located is determined according to the lane line parameters, the preview distance is determined according to the longitudinal driving speed, the lateral deviation between the preview point and the vehicle is determined according to the lane line equation and the preview distance, and the target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled according to the target steering wheel angle. In this way, the problem of lane deviation caused by the driver under fatigue conditions is solved, the vehicle lane keeping assist centering driving is achieved, and the driving safety and flexibility of the lane keeping assist system are improved.
[0044] Specifically, Figure 1 A flowchart of a lane keeping method provided in an embodiment of the present application.
[0045] like Figure 1 As shown, the lane keeping method includes the following steps:
[0046] In step S101, the lane line parameters of the lane where the vehicle is located and the longitudinal speed of the vehicle are obtained.
[0047] The lane line parameters include: a lateral distance C0 between the lane line and the center line of the sensor optical axis, a heading angle C1 of the vehicle relative to the lane line, a curvature C2 of the lane line, and at least one of a curvature change rate C3 of the lane line.
[0048] Specifically, the embodiment of the present application can collect road condition image information through the vehicle-mounted multi-sensor, and perform perception fusion analysis on the extracted lane line, and output the parameters of the lane line; mainly including: the lateral distance C0 of the lane line from the center line of the sensor optical axis, the heading angle C1 of the vehicle relative to the lane line, the curvature C2 of the lane line, the curvature change rate C3 of the lane line, etc. The embodiment of the present application can also read the signal information on the vehicle CAN bus to obtain the real-time motion information of the vehicle; mainly including: the longitudinal driving speed v of the vehicle x , the vehicle’s current steering wheel angle δ sw and lane keeping control.
[0049] In step S102, the lane line equation of the lane where the vehicle is located is determined according to the lane line parameters, the preview distance is determined according to the longitudinal driving speed, and the lateral deviation between the preview point and the vehicle is determined according to the lane line equation and the preview distance.
[0050] Specifically, the embodiment of the present application can use the lane line equation to calculate the coordinates (x, y) of the lane line in front of the vehicle's driving lane in the vehicle coordinate system, where the lane line equation calculation formula is as follows:
[0051] y=C0+C0*x+C1*x 2 +C2*x 3 +C3*x 3 ;
[0052] x=v x *T pre ;
[0053] Where: v x is the longitudinal speed of the vehicle, T pre To simulate the driver's forward preview time, T pre It may be preset by a user, obtained through a limited number of experiments, or obtained through a limited number of computer simulations, and is not specifically limited here.
[0054] Further, in some embodiments, determining the preview distance according to the longitudinal travel speed includes: determining an initial preview distance according to the product of the longitudinal travel speed and a preset forward preview time, and determining the preview distance according to the sum of the initial preview distance and the preset distance.
[0055] It should be noted that the effect of the lane keeping method proposed in the embodiment of the present application depends on the preview distance l dThe longer the preview distance, the smaller the change in the target steering wheel target angle will be, and the smoother the control effect will be. The shorter the preview distance, the more precise the control effect will be, but it will also bring some shocks. Since the faster the vehicle speed, the longer the vehicle moves per unit time, the longer the preview distance should be selected. Therefore, the selection of the preview distance should be proportional to the speed of the vehicle; therefore, the embodiment of the present application sets the preview distance l d With vehicle speed v x The relationship selection is expressed as follows:
[0056] l d =v x *T pre +l0;
[0057] In the formula, v x is the longitudinal speed of the vehicle, T pre To simulate the driver's forward preview time, l0 is the preset distance.
[0058] After obtaining the lane line equation and the preview distance, the embodiment of the present application can determine the lateral deviation between the preview point and the vehicle according to the lane line equation and the preview distance.
[0059]
[0060] Among them, e y To simulate the lateral deviation between the preview point and the vehicle on the center line of the forward lane driven by the driver, y L To simulate the lateral deviation between the preview point and the vehicle on the left lane line ahead of the driver, y R It simulates the lateral deviation between the driver's preview point and the vehicle on the right lane line.
[0061] In step S103, a target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled according to the target steering wheel angle.
[0062] It should be noted that the lane keeping assist system mainly consists of two parts: the perception layer and the control layer. The perception layer is the sensor's analysis of lane line information to obtain the vehicle's lateral position; the control layer mainly uses the lateral control algorithm to adjust the vehicle's lateral position or make the vehicle follow the track. The key to the lane keeping assist system is to achieve vehicle lateral position correction with high efficiency and low cost.
[0063] It can be understood that the control principle of the embodiment of the present application is to identify and output the left and right lane line parameters through the front-view camera, calculate the current lane center line using the lane line equation, and based on the current position of the rear wheel center of the vehicle, find a preview point on the lane center line in front of the vehicle. It is assumed that the vehicle travels to the target point according to a certain turning radius. Then, the front wheel turning angle of the vehicle is calculated based on the distance from the current position of the vehicle to the preview point, the turning radius, and the geometric relationship between the preview point and the angle between the front of the vehicle. That is, the lateral tracking error of the vehicle to the lane center line is controlled to achieve vehicle lane keeping assisted centered driving.
[0064] Specifically, the embodiments of the present application can input the lane line parameter information and vehicle motion state information obtained by the perception layer into a lane keeping controller designed based on a pure tracking control method.
[0065] The target steering wheel angle is calculated as:
[0066]
[0067] in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, i is the transmission ratio between the steering wheel angle and the wheel angle, l d The preview distance.
[0068] Optionally, in some embodiments, controlling vehicle driving according to a target steering wheel angle includes: obtaining a current steering wheel angle of the vehicle; determining a desired steering wheel angle according to the target steering wheel angle and the current steering wheel angle, and turning the steering wheel of the vehicle based on the desired steering wheel angle.
[0069] Specifically, after obtaining the target steering wheel angle, the embodiment of the present application can calculate the expected steering wheel angle by calculating the difference between the target steering wheel angle and the actual steering wheel angle, and finally send the calculated expected steering wheel target angle to the electric power steering controller to control the vehicle to achieve lane centering and ensure the safety of vehicle driving.
[0070] Figure 2 and Figure 3 This is a practical test of the lane keeping method according to an embodiment of the present application, wherein: Figure 2 This is the actual tracking effect diagram. Figure 3 is the lateral deviation diagram, Figure 2 The black dashed line in the figure is the desired lane centerline, and the green line is the actual motion trajectory of the vehicle. Figure 3 The black solid line in is the deviation of the actual vehicle trajectory from the expected lane centerline; Figure 2 and Figure 3It can be seen that the maximum tracking deviation is within the range of 5 cm, and the stable tracking of the lane centerline can be achieved quickly. Therefore, the correctness, rationality and stability of the lane keeping method of the embodiment of the present application are verified, and it has good robustness.
[0071] In summary, if Figure 4 As shown, the embodiment of the present application can sense and fuse the output lane line parameters through multi-sensor perception, and use the lane line equation to calculate the coordinates of the lane line ahead, read the CAN line information, obtain the real-time motion status information of the vehicle, calculate the desired steering wheel angle through the lane keeping controller, and send the desired steering wheel angle to the electric power steering controller to control the vehicle to achieve lane centering, effectively improving driving safety; and the control process of the embodiment of the present application can be independently integrated in the automatic driving controller, which is easy to be jointly developed with the vehicle controller, which can be more conducive to the deployment and application on mass-produced models and has more extensive practical value.
[0072] According to the lane keeping method proposed in the embodiment of the present application, the lane line parameters of the lane where the vehicle is located and the longitudinal speed of the vehicle are obtained, and the lane line equation of the lane where the vehicle is located is determined according to the lane line parameters, the preview distance is determined according to the longitudinal speed, the lateral deviation between the preview point and the vehicle is determined according to the lane line equation and the preview distance, and the target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled according to the target steering wheel angle. In this way, the problem of lane deviation caused by the driver's fatigue is solved, the vehicle lane keeping assist centering is achieved, and the driving safety and flexibility of the lane keeping assist system are improved.
[0073] Next, the lane keeping device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0074] Figure 5 Schematic diagram of a lane keeping device according to an embodiment of the present application.
[0075] like Figure 5 As shown, the lane keeping device 10 includes: an acquisition module 100 , a determination module 200 and a control module 300 .
[0076] The acquisition module 100 is used to acquire the lane line parameters of the lane where the vehicle is located and the longitudinal driving speed of the vehicle.
[0077] The determination module 200 is used to determine the lane line equation of the lane where the vehicle is located according to the lane line parameters, determine the preview distance according to the longitudinal driving speed, and determine the lateral deviation between the preview point and the vehicle according to the lane line equation and the preview distance.
[0078] The control module 300 is used to determine a target steering wheel angle of the vehicle according to the lateral deviation and the preview distance, and control the vehicle driving according to the target steering wheel angle.
[0079] Optionally, in some embodiments, the target steering wheel angle is:
[0080]
[0081] in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, and i is the transmission ratio of the steering wheel angle to the wheel angle.
[0082] Optionally, in some embodiments, the determination module 200 includes: a determination unit.
[0083] The determination unit is used to determine the initial preview distance according to the product of the longitudinal driving speed and the preset forward preview time, and
[0084] Optionally, in some embodiments, the control module 300 includes: an acquisition unit and a rotation unit.
[0085] The acquisition unit is used to acquire the current steering wheel angle of the vehicle.
[0086] The turning unit is used to determine a desired steering wheel angle according to a target steering wheel angle and a current steering wheel angle, and to turn the steering wheel of the vehicle based on the desired steering wheel angle.
[0087] Optionally, in some embodiments, the lane line parameters include: a lateral distance of the lane line from a center line of a sensor optical axis, a heading angle of the vehicle relative to the lane line, a curvature of the lane line, and at least one of a curvature change rate of the lane line.
[0088] It should be noted that the above explanation of the lane keeping method embodiment is also applicable to the lane keeping device of this embodiment and will not be repeated here.
[0089] According to the lane keeping device proposed in the embodiment of the present application, the lane line parameters of the lane where the vehicle is located and the longitudinal speed of the vehicle are obtained, and the lane line equation of the lane where the vehicle is located is determined according to the lane line parameters, the preview distance is determined according to the longitudinal speed, the lateral deviation between the preview point and the vehicle is determined according to the lane line equation and the preview distance, and the target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled according to the target steering wheel angle. In this way, the problem of lane deviation caused by the driver's fatigue is solved, the vehicle lane keeping assist centering is achieved, and the driving safety and flexibility of the lane keeping assist system are improved.
[0090] Figure 6 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0091] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0092] When the processor 602 executes the program, the lane keeping method provided in the above embodiment is implemented.
[0093] Furthermore, the vehicle also includes:
[0094] The communication interface 603 is used for communication between the memory 601 and the processor 602 .
[0095] The memory 601 is used to store computer programs that can be executed on the processor 602 .
[0096] The memory 601 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0097] 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 ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus or an EISA (Extended Industry Standard Architecture) bus, etc. 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.
[0098] 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.
[0099] The processor 602 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0100] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the lane keeping method as described above when the program is executed by a processor.
[0101] 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 are not necessarily directed 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.
[0102] 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.
[0103] 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.
[0104] 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, a field programmable gate array, etc.
[0105] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment 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.
[0106] 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 limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A lane keeping method, characterized in that: The following steps are involved: Obtaining lane line parameters of the lane in which the vehicle is located and the longitudinal speed of the vehicle; Determine a lane line equation of the lane where the vehicle is located according to the lane line parameters, determine a preview distance according to the longitudinal driving speed, and determine a lateral deviation between a preview point and the vehicle according to the lane line equation and the preview distance; as well as A target steering wheel angle of the vehicle is determined according to the lateral deviation and the preview distance, and the vehicle is controlled to travel according to the target steering wheel angle.
2. The method according to claim 1, characterized in that The target steering wheel angle is: in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, and i is the transmission ratio of the steering wheel angle to the wheel angle.
3. The method according to claim 1, characterized in that Determining the preview distance according to the longitudinal travel speed includes: An initial preview distance is determined according to the product of the longitudinal travel speed and a preset forward preview time, and the preview distance is determined according to the sum of the initial preview distance and the preset distance.
4. The method according to claim 1, characterized in that: The step of controlling the vehicle to travel according to the target steering wheel angle comprises: Obtaining the current steering wheel angle of the vehicle; A desired steering wheel angle is determined according to the target steering wheel angle and the current steering wheel angle, and the steering wheel of the vehicle is turned based on the desired steering wheel angle.
5. The method according to claim 1, characterized in that The lane line parameters include: a lateral distance of the lane line from the center line of the sensor optical axis, a heading angle of the vehicle relative to the lane line, a curvature of the lane line, and at least one of a curvature change rate of the lane line.
6. A lane keeping device, characterized in that: include: An acquisition module, used to acquire lane line parameters of the lane in which the vehicle is located and the longitudinal speed of the vehicle; a determination module, configured to determine a lane line equation of a lane in which the vehicle is located according to the lane line parameters, determine a preview distance according to the longitudinal driving speed, and determine a lateral deviation between a preview point and the vehicle according to the lane line equation and the preview distance; as well as A control module is used to determine a target steering wheel angle of the vehicle according to the lateral deviation and the preview distance, and control the vehicle to travel according to the target steering wheel angle.
7. The device according to claim 6, characterized in that The target steering wheel angle is: in, is the target steering wheel angle, L is the wheelbase between the front and rear axles of the vehicle, e y is the lateral deviation, and i is the transmission ratio of the steering wheel angle to the wheel angle.
8. The device according to claim 6, characterized in that The determining module comprises: A determination unit is used to determine an initial preview distance according to the product of the longitudinal travel speed and a preset forward preview time, and to determine the preview distance according to the sum of the initial preview distance and the preset distance.
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 as described in any one of claims 1 to 5.
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 as described in any one of claims 1 to 5.
