Lane departure control method and device, electronic equipment, storage medium and vehicle
By calculating the preview point and preview curvature, the vehicle is automatically controlled to drive to the preview point, which solves the problem of traffic accidents caused by lane departure and improves driving safety and vehicle control efficiency.
Patent Information
- Application Number
- CN202410762286.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-24
AI Technical Summary
Traffic accidents caused by lane departure occur frequently, and it is difficult to effectively correct them with existing technology, especially when drivers make mistakes or road conditions change.
By obtaining the distance between the vehicle and the road centerline, heading deviation information and road curvature information, calculate the preview point and preview curvature, control the vehicle to drive to the preview point to keep within the road, and use the preview curvature to determine the steering wheel rotation angle, achieving Automatic lane departure correction.
It effectively avoids traffic accidents caused by lane departure, improves driving safety and vehicle control efficiency, and is especially responsive in rapid response scenarios.
Smart Images

Figure CN118683530A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a lane departure control method, device, electronic equipment, storage medium and vehicle. Background Art
[0002] The four trends of automobiles (i.e. electrification, intelligence, networking, and sharing) are the development trends of the automobile industry. Intelligent driving is one of the key points of the intelligentization of the automobile industry, and lane departure is a technical problem that needs to be solved for intelligent driving.
[0003] It should be noted that lane departure refers to the situation where a vehicle (car) deviates from its current lane due to driver error, lack of concentration, vehicle failure or changes in road conditions during driving.
[0004] When users are driving their vehicles, lane deviation often occurs, which eventually leads to traffic accidents. Summary of the invention
[0005] One of the purposes of the present invention is to provide a lane departure control method to solve the problem of lane departure occurring during driving of a vehicle by a user, leading to traffic accidents; a second purpose is to provide a lane departure control device; a third purpose is to provide an electronic device; a fourth purpose is to provide a readable storage medium; and a fifth purpose is to provide a vehicle.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A method for controlling lane departure, the method comprising: when a vehicle starts to deviate from a road, obtaining a first distance between the vehicle and a center line of the road, and obtaining a second distance between the vehicle and a preset reference line based on the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line; obtaining heading deviation information of the vehicle and curvature information of the road, and obtaining a third distance between a preset preview point and the reference line based on the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point; obtaining a preview curvature based on the second distance, the third distance and the preview distance; and controlling the vehicle to travel to the preview point based on the preview curvature to keep the vehicle within the road.
[0008] According to the above technical means, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, the preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation and avoiding the occurrence of traffic accidents caused by lane deviation.
[0009] Further, obtaining a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation includes: obtaining the second distance according to the first distance and the preset deviation within a first preset time period.
[0010] According to the above technical means, the second distance is obtained according to the first distance and the preset deviation within the first preset time period, and then after obtaining the vehicle's heading deviation information and the road's curvature information, the third distance between the preset preview point and the reference line is obtained according to the heading deviation information, the curvature information, the preset preview distance and the second distance.
[0011] Furthermore, the method also includes: obtaining the preset deviation amount according to a first preset time coefficient, the first preset time and a preset deviation coefficient; determining the reference line according to the preset deviation amount; wherein the first preset time coefficient is negatively correlated with the deviation time, and the deviation time is the difference between the current moment and the moment when the vehicle begins to deviate from the road.
[0012] According to the above technical means, the preset deviation amount is obtained according to the first preset time coefficient, the first preset time and the preset deviation coefficient, and then the reference line is determined according to the preset deviation amount, so as to obtain the second distance between the vehicle and the preset reference line according to the first distance and the preset deviation amount.
[0013] Furthermore, the method also includes: obtaining the speed of the vehicle; multiplying the speed by a second preset time length to obtain the preview distance; and determining the preview point according to the preview distance and the third distance.
[0014] According to the above technical means, the preview distance is obtained by obtaining the vehicle speed and then multiplying the speed by the second preset time length, and then the preview point is determined based on the preview distance and the third distance, so as to obtain the third distance between the preset preview point and the reference line based on the heading deviation information, curvature information, the preset preview distance and the second distance.
[0015] Further, controlling the vehicle to travel to the preview point according to the preview curvature includes: determining a rotation angle of a steering wheel of the vehicle according to the preview curvature; and controlling the vehicle to travel to the preview point according to the rotation angle.
[0016] According to the above technical means, the steering angle of the vehicle's steering wheel is determined according to the preview curvature, and then the vehicle is controlled to travel to the preview point according to the rotation angle, thereby ultimately achieving the goal of keeping the vehicle on the road.
[0017] Further, determining the rotation angle of the steering wheel of the vehicle according to the preview curvature includes: obtaining the vehicle speed, transmission ratio and wheelbase of the vehicle; and obtaining the rotation angle according to the vehicle speed, the transmission ratio, the wheelbase, a preset stability coefficient and the preview curvature.
[0018] According to the above technical means, by obtaining the vehicle speed, transmission ratio and wheelbase, and then according to the vehicle speed, transmission ratio, wheelbase, preset stability coefficient and preview curvature, the turning angle is obtained, and then according to the turning angle, the vehicle is controlled to travel to the preview point.
[0019] Furthermore, the method also includes: obtaining a driving state of the vehicle; when the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range, obtaining a lane state of the vehicle; and when the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold, determining that the vehicle begins to deviate from the road.
[0020] According to the above technical means, by acquiring the driving state of the vehicle, and then acquiring the lane state of the vehicle when the driving state is that the vehicle is driven by the user, the vehicle's turn signal is off, the vehicle's steering wheel is turned, and the vehicle's acceleration is within a preset acceleration range, and then, when the lane state is that the distance between the vehicle and the reference boundary of the road is less than a preset threshold, it is determined that the vehicle begins to deviate from the road, and then when the vehicle begins to deviate from the road, the lane deviation is corrected.
[0021] Furthermore, the method further includes: acquiring an angle between the forward direction of the vehicle and the center line, and using the angle as the heading deviation information.
[0022] According to the above technical means, by obtaining the angle between the forward direction of the vehicle and the center line, and using the angle as the heading deviation information, and then according to the heading deviation information, curvature information, the preset preview distance and the second distance, the third distance between the preset preview point and the reference line is obtained.
[0023] Furthermore, the curvature information of the road includes the curvature of the center line and the curvature change rate of the center line.
[0024] According to the above technical means, the third distance between the preset preview point and the reference line is obtained based on the heading deviation information, the curvature of the center line, the curvature change rate of the center line, the preset preview distance and the second distance, and then the preview curvature is obtained based on the second distance, the third distance and the preview distance.
[0025] A lane departure control device, the device comprising: a first acquisition module, used to acquire a first distance between the vehicle and the center line of the road when the vehicle starts to deviate from the road, and to acquire a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line; a second acquisition module, used to acquire heading deviation information of the vehicle and curvature information of the road, and to acquire a third distance between a preset preview point and the reference line according to the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point; a third acquisition module, used to acquire a preview curvature according to the second distance, the third distance and the preview distance; and a control module, used to control the vehicle to travel to the preview point according to the preview curvature to keep the vehicle within the road.
[0026] An electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the lane departure control method as described above.
[0027] A readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the lane departure control method as described above are implemented.
[0028] A vehicle comprises the lane departure control device as described above.
[0029] Beneficial effects of the present invention:
[0030] In an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of lane deviation and traffic accidents during the user's driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of the steps of a lane departure control method provided by an embodiment of the present application;
[0032] Figure 2 is a flowchart of specific steps of a lane departure control method provided by an embodiment of the present application;
[0033] Figure 3 is a schematic diagram of a lane departure control process provided by an embodiment of the present application;
[0034] Figure 4 is a block diagram of a lane departure control device provided in an embodiment of the present application;
[0035] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0037] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0038] The lane departure control method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0039] Figure 1 is a flow chart of the steps of a lane departure control method provided by an embodiment of the present application, such as Figure 1 As shown, the method may include:
[0040] Step 101. When a vehicle starts to deviate from a road, a first distance between the vehicle and a center line of the road is obtained, and a second distance between the vehicle and a preset reference line is obtained based on the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line.
[0041] In an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then after obtaining the vehicle's heading deviation information and the curvature information of the road, a third distance between the preset preview point and the reference line is obtained based on the heading deviation information, the curvature information, the preset preview distance and the second distance.
[0042] It should be noted that the center line of the road (i.e., lane) is a virtual line or actual marking used to separate oncoming traffic flows in road geometry design. The center line divides the road into lanes in two directions to ensure that oncoming vehicles go their own way and avoid direct collisions; the reference line is the line used as a reference to correct lane deviation.
[0043] The first distance between the vehicle and the center line of the road is the horizontal distance between the center line of the vehicle and the center line. The center line of the vehicle is the center line between the two sides of the vehicle. The first distance can be obtained by performing image recognition on the image captured by the camera of the vehicle.
[0044] Step 102: Obtain the heading deviation information of the vehicle and the curvature information of the road, and obtain a third distance between a preset preview point and the reference line based on the heading deviation information, the curvature information, a preset preview distance, and the second distance; the preview distance is the distance that the vehicle travels to the preview point.
[0045] In an embodiment of the present application, by acquiring the vehicle's heading deviation information and the curvature information of the road, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, the third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, the preview curvature is obtained.
[0046] It should be noted that the vehicle's heading deviation information is the angle between the vehicle's driving direction and the center line of the road, which can be expressed in radians; the road curvature information includes the curvature of the road (which can be the curvature of the center line of the road) and the rate of change of the curvature of the road (which can be the rate of change of the curvature of the center line of the road); the preview point is the next path point of the vehicle's path point, which is the next path point the vehicle plans to reach.
[0047] Step 103: Obtain a preview curvature according to the second distance, the third distance, and the preview distance.
[0048] In the embodiment of the present application, a preview curvature is obtained according to the second distance, the third distance and the preview distance, and then the vehicle is controlled to travel to the preview point according to the preview curvature.
[0049] Step 104: Control the vehicle to travel to the preview point according to the preview curvature to keep the vehicle within the road.
[0050] In the embodiment of the present application, the vehicle is controlled to travel to the preview point according to the preview curvature to correct the lane deviation and avoid the occurrence of traffic accidents caused by the lane deviation.
[0051] It should be noted that in order to ensure the comfort and stability of the vehicle, lane deviation correction is achieved by adjusting the vehicle to the preview point once or multiple times. Specifically, after controlling the vehicle to travel to the preview point according to the preview curvature, when the distance between the vehicle and the reference boundary of the road is less than a preset threshold, a new preview curvature is obtained through the aforementioned method, and the vehicle is controlled to travel to a new preview point according to the new preview curvature, and so on, until the distance between the vehicle and the reference boundary of the road is greater than or equal to the preset threshold.
[0052] The lane departure control method provided in the embodiment of the present application can be implemented using a lane keeping assist system (LKA, LaneKeepAssist).
[0053] In the related art, a planned trajectory is outputted by curve fitting to make the steering wheel turn smoothly to correct lane deviation. For example, a smooth correction trajectory curve is planned by Bezier curve fitting, and then the correction trajectory information is sent to a control module for smooth and stable vehicle control to correct lane deviation. However, the planning method based on Bezier curve fitting is relatively complicated. Since a trajectory curve needs to be planned, the vehicle control efficiency is low, and the response to some scenarios that require quick response (such as sudden turns) is not timely.
[0054] In the embodiment of the present application, a simple planning method is used, that is, a control method of pre-aimed control points is adopted to achieve smooth and comfortable steering control, while having high portability and no need to plan trajectory curves, thereby improving vehicle control efficiency and responding promptly to some scenarios that require quick response.
[0055] To summarize, in an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of traffic accidents caused by lane deviation during the user's driving of the vehicle.
[0056] Figure 2 is a flowchart of the specific steps of a lane departure control method provided by an embodiment of the present application, such as Figure 2 As shown, the method may include:
[0057] Step 201, when a vehicle starts to deviate from a road, obtain a first distance between the vehicle and a center line of the road, and obtain a second distance between the vehicle and a preset reference line based on the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line.
[0058] The implementation of this step is similar to the implementation process of the above step 101, and will not be repeated here.
[0059] Optionally, in some embodiments, step 201 includes the following sub-steps:
[0060] Sub-step 2011: obtaining the second distance according to the first distance and the preset deviation within a first preset time period.
[0061] In an embodiment of the present application, the second distance is obtained according to the first distance and the preset deviation within a first preset time period, and then after obtaining the vehicle's heading deviation information and the road's curvature information, the third distance between the preset preview point and the reference line is obtained according to the heading deviation information, the curvature information, the preset preview distance and the second distance.
[0062] It should be noted that within the first preset time period, the preset deviation is set to a non-zero value; after the first preset time period, the preset deviation is set to 0, at which time the reference line coincides with the center line of the road, and the second distance is equal to the first distance.
[0063] Step 202: Obtain the heading deviation information of the vehicle and the curvature information of the road, and obtain a third distance between a preset preview point and the reference line based on the heading deviation information, the curvature information, a preset preview distance, and the second distance; the preview distance is the distance that the vehicle travels to the preview point.
[0064] The implementation of this step is similar to the implementation process of the above step 102, and will not be repeated here.
[0065] Optionally, in some embodiments, the curvature information of the road includes the curvature of the center line and the rate of change of the curvature of the center line.
[0066] In an embodiment of the present application, a third distance between a preset preview point and a reference line is obtained based on heading deviation information, the curvature of the center line, the rate of change of curvature of the center line, a preset preview distance, and a second distance, and then a preview curvature is obtained based on the second distance, the third distance, and the preview distance.
[0067] Step 203: Obtain a preview curvature according to the second distance, the third distance, and the preview distance.
[0068] The implementation of this step is similar to the implementation process of the above step 103, and will not be repeated here.
[0069] Step 204: Determine the rotation angle of the steering wheel of the vehicle according to the preview curvature.
[0070] In the embodiment of the present application, the turning angle of the steering wheel of the vehicle is determined according to the preview curvature, and then the vehicle is controlled to travel to the preview point according to the turning angle.
[0071] Optionally, in some embodiments, step 204 includes the following sub-steps:
[0072] Sub-step 2041: Obtain the vehicle speed, transmission ratio and wheelbase of the vehicle.
[0073] In the embodiment of the present application, the vehicle speed, transmission ratio and wheelbase are obtained, and then the turning angle is obtained according to the vehicle speed, transmission ratio, wheelbase, preset stability coefficient and preview curvature.
[0074] Sub-step 2042, obtaining the rotation angle according to the vehicle speed, the transmission ratio, the wheelbase, the preset stability coefficient and the preview curvature.
[0075] In the embodiment of the present application, the turning angle is obtained according to the vehicle speed, transmission ratio, wheelbase, preset stability coefficient and preview curvature, and then the vehicle is controlled to travel to the preview point according to the turning angle.
[0076] The rotation angle can be obtained by executing sub-steps 2041 to 2042.
[0077] Step 205: Control the vehicle to travel to the preview point according to the rotation angle to keep the vehicle within the road.
[0078] In the embodiment of the present application, the vehicle is controlled to travel to the preview point according to the turning angle, so as to keep the vehicle on the road.
[0079] It should be noted that according to the turning angle, the steering wheel speed and the steering wheel angle are limited to ensure that the steering wheel angle does not exceed the turning angle, and in the process of controlling the vehicle to travel to the pre-aiming point according to the turning angle, the stability and safety of the vehicle are guaranteed.
[0080] The control angle is then subject to corresponding steering wheel speed limits and steering wheel angle limits to ensure that the angle change does not exceed the threshold, thereby improving stability and safety during the control process.
[0081] Optionally, in some embodiments, the method further comprises the following steps:
[0082] Step 206: Obtain the preset deviation amount according to the first preset duration coefficient, the first preset duration, and the preset deviation coefficient.
[0083] In the embodiment of the present application, a preset deviation amount is obtained according to the first preset duration coefficient, the first preset duration, and the preset deviation coefficient, and then a reference line is determined according to the preset deviation amount.
[0084] Step 207: Determine the reference line according to the preset deviation.
[0085] The first preset duration coefficient is negatively correlated with the deviation duration, and the deviation duration is the difference between the current time and the time when the vehicle starts to deviate from the road.
[0086] In the embodiment of the present application, a reference line is determined according to a preset deviation, so that a second distance between the vehicle and the preset reference line is obtained according to the first distance and the preset deviation.
[0087] By executing step 206 to step 207 , it is possible to determine the reference line.
[0088] Optionally, in some embodiments, the method further comprises the following steps:
[0089] Step 206: Obtain the speed of the vehicle.
[0090] In the embodiment of the present application, the preview distance is obtained by acquiring the vehicle speed and then multiplying the vehicle speed by the second preset time length.
[0091] Step 207: Multiply the vehicle speed by a second preset time length to obtain the preview distance.
[0092] In the embodiment of the present application, the preview distance is obtained by multiplying the vehicle speed by the second preset time length, and then the preview point is determined according to the preview distance and the third distance.
[0093] It should be noted that the preview distance is the time distance of the preview point.
[0094] Step 208: Determine the preview point according to the preview distance and the third distance.
[0095] In an embodiment of the present application, a preview point is determined based on the preview distance and the third distance, so that the third distance between the preset preview point and the reference line is obtained based on the heading deviation information, the curvature information, the preset preview distance and the second distance.
[0096] By executing steps 206 to 208, it is possible to determine the preview point.
[0097] Optionally, in some embodiments, the method further comprises the following steps:
[0098] Step 209: Acquire the driving status of the vehicle.
[0099] In an embodiment of the present application, the driving state of the vehicle is obtained, and then the lane state of the vehicle is obtained when the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range.
[0100] Step 210: When the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range, obtain the lane state of the vehicle.
[0101] In an embodiment of the present application, the lane state of the vehicle is obtained when the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range, and then when the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold, it is determined that the vehicle begins to deviate from the road.
[0102] Step 211: When the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold, determine that the vehicle begins to deviate from the road.
[0103] In an embodiment of the present application, by determining that the vehicle begins to deviate from the road when the lane state is that the distance between the vehicle and the reference boundary of the road is less than a preset threshold, the lane deviation is corrected when the vehicle begins to deviate from the road.
[0104] It should be noted that the reference boundary of the road is within the road, and the distance between the reference boundary of the road and the actual boundary of the road is a preset value.
[0105] By executing steps 209 to 211 , it can be achieved to determine that the vehicle begins to deviate from the road.
[0106] Optionally, in some embodiments, the method further comprises the following steps:
[0107] Step 212: Obtain the angle between the forward direction of the vehicle and the center line, and use the angle as the heading deviation information.
[0108] In an embodiment of the present application, the angle between the forward direction of the vehicle and the center line is obtained, and the angle is used as the heading deviation information, and then the third distance between the preset preview point and the reference line is obtained according to the heading deviation information, curvature information, the preset preview distance and the second distance.
[0109] Specifically, in some embodiments, the expression for the second distance between the vehicle and the preset reference line is:
[0110] e1=e0-k(t1-t2)e y
[0111] Where e1 is the second distance, e0 is the first distance between the vehicle and the center line of the road, k(t1-t2)e y is the preset deviation, k is the first preset time coefficient, (t1-t2) is the first preset time, t1 is the time threshold of the reference line deviation from the center line, t2 is the moment when the vehicle starts to deviate from the road, e y is the preset deviation coefficient.
[0112] Lane deviation correction can be adjusted by adjusting the preset deviation coefficient and k value to achieve the purpose of comfortable correction.
[0113] Specifically, in some embodiments, the expression for the third distance between the preset preview point and the reference line is:
[0114] y=e1+a1d1+a2d1 2 +a3d1 3
[0115] Among them, y is the third distance, e1 is the second distance, a1 is the heading deviation information of the vehicle, a2 is 1 / 2 of the curvature of the road, a3 is 1 / 6 of the curvature change rate of the road, and d1 is the preview distance.
[0116] Specifically, in some embodiments, the lateral acceleration (lateral acceleration) of the vehicle is expressed as:
[0117]
[0118] And the expression of the vehicle's lateral travel distance (the horizontal distance between the vehicle and the preview point):
[0119]
[0120] And the expression of the vehicle's longitudinal travel distance (preview distance):
[0121] d1=vt
[0122] The expression of preview curvature is:
[0123]
[0124] Among them, a is the lateral acceleration of the vehicle, R is the radius of curvature, v is the speed of the vehicle, ρ is the preview curvature, t is the second preset time length, y is the third distance, d1 is the preview distance, and e1 is the second distance.
[0125] Select a preview point with a fixed time interval (preview distance) in front. You can adjust the preview distance by adjusting the second preset time length, and then adjust the control strength to achieve stable control. The closer the preview point is, the higher the control strength is, and the faster the steering wheel follows.
[0126] Specifically, in some embodiments, the rotation angle of the steering wheel of the vehicle is expressed as:
[0127] θ=(1+M×v 2 )×i×L×ρ
[0128] Among them, θ is the rotation angle, M is the preset stability coefficient, v is the vehicle speed, i is the vehicle transmission ratio, L is the vehicle wheelbase, and ρ is the preview curvature.
[0129] The preset stability coefficient is used to characterize the dynamic response performance of the vehicle at different vehicle speeds.
[0130] Optionally, refer to Figure 3In some embodiments, the lane departure control process includes: X1, information preprocessing, i.e. obtaining the center line information of the lane, the information of the vehicle sensors and the status information of the Advanced Driver Assistance System (ADAS) and performing preprocessing; X2, vehicle status verification, i.e. obtaining the driving status of the vehicle and determining whether the driving status of the vehicle satisfies the first preset condition. For example, the first preset condition may be that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned and the acceleration of the vehicle is within a preset acceleration range. Specifically, the vehicle's driving status may be obtained by receiving vehicle hand torque signals, actual steering wheel angle, yaw rate and other vehicle signals, and the status of the intelligent driving function may be obtained to determine whether the vehicle is driven by a user. When the intelligent driving function is turned off, the vehicle is driven by a user. When the user operates the steering wheel, the triggering of lane departure correction should be suppressed. The driver's operation is given the highest priority to prevent the lane departure correction from being contrary to the driver's operating intention.
[0131] X3. The danger zone check is satisfied, that is, the lane state of the vehicle is obtained to determine whether the lane state of the vehicle satisfies the second preset condition. The lane state of the vehicle is related to the lateral deviation speed of the vehicle, the lane width, the centerline curvature of the lane, etc. For example, the second preset condition can be that the distance between the vehicle and the reference boundary of the road is less than a preset threshold. It should be noted that the danger zone is the area between the reference boundary of the road and the actual boundary of the road. When the lateral deviation speed of the vehicle is high, the danger zone is appropriately widened so that the lane deviation is corrected in time. In the case of a narrow lane, the danger zone is appropriately narrowed to prevent frequent triggering of lane deviation correction in a narrow lane; in the case of a curve, the danger zone needs to be appropriately widened, and the widening range of the danger zone is planned according to the curvature so that the lane deviation is corrected in time; X4. Satisfied The activation condition is satisfied, that is, when the driving state of the vehicle satisfies the first preset condition and the lane state of the vehicle satisfies the second preset condition, it is determined that the activation condition is satisfied; X5, planning trajectory, that is, when the vehicle begins to deviate from the road, obtaining a first distance between the vehicle and the center line of the road, and according to the first distance and the preset deviation, obtaining a second distance between the vehicle and a preset reference line, and then obtaining the vehicle's heading deviation information and the curvature information of the road, and according to the heading deviation information, the curvature information, the preset preview distance and the second distance, obtaining a third distance between the preset preview point and the reference line; X6, preview curvature, that is, obtaining the preview curvature according to the second distance, the third distance and the preview distance; X7, control angle, that is, according to the preview curvature, controlling the vehicle to travel to the preview point to keep the vehicle on the road.
[0132] To summarize, in an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of traffic accidents caused by lane deviation during the user's driving of the vehicle.
[0133] Figure 4 is a block diagram of a lane departure control device provided in an embodiment of the present application, such as Figure 4 As shown, the device 300 includes:
[0134] The first acquisition module 301 is used to acquire a first distance between the vehicle and the center line of the road when the vehicle starts to deviate from the road, and obtain a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line;
[0135] The second acquisition module 302 is used to acquire the heading deviation information of the vehicle and the curvature information of the road, and obtain a third distance between a preset preview point and the reference line according to the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point;
[0136] A third acquisition module 303 is used to obtain a preview curvature according to the second distance, the third distance and the preview distance;
[0137] The control module 304 is used to control the vehicle to travel to the preview point according to the preview curvature to keep the vehicle within the road.
[0138] Optionally, the first acquisition module 301 specifically includes:
[0139] The acquisition submodule is used to obtain the second distance according to the first distance and the preset deviation within a first preset time period.
[0140] Optionally, the device 300 further includes:
[0141] A fourth acquisition module, configured to obtain the preset deviation amount according to a first preset duration coefficient, the first preset duration, and a preset deviation coefficient;
[0142] A first determining module, configured to determine the reference line according to the preset deviation;
[0143] The first preset duration coefficient is negatively correlated with the deviation duration, and the deviation duration is the difference between the current time and the time when the vehicle starts to deviate from the road.
[0144] Optionally, the device 300 further includes:
[0145] A fifth acquisition module, used to acquire the speed of the vehicle;
[0146] a sixth acquisition module, configured to multiply the vehicle speed by a second preset time length to obtain the preview distance;
[0147] The second determining module is used to determine the preview point according to the preview distance and the third distance.
[0148] Optionally, the control module 304 specifically includes:
[0149] A determination submodule, configured to determine a rotation angle of a steering wheel of the vehicle according to the preview curvature;
[0150] The control submodule is used to control the vehicle to travel to the preview point according to the rotation angle.
[0151] Optionally, determine the submodules, including:
[0152] A first acquisition unit, used to acquire the vehicle speed, transmission ratio and wheelbase of the vehicle;
[0153] The second acquisition unit is used to obtain the rotation angle according to the vehicle speed, the transmission ratio, the wheelbase, a preset stability coefficient and the preview curvature.
[0154] Optionally, the device 300 further includes:
[0155] a seventh acquisition module, used to acquire the driving state of the vehicle;
[0156] an eighth acquisition module, configured to acquire a lane state of the vehicle when the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range;
[0157] The third determination module is used to determine that the vehicle begins to deviate from the road when the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold.
[0158] Optionally, the device 300 further includes:
[0159] The ninth acquisition module is used to acquire the angle between the forward direction of the vehicle and the center line, and use the angle as the heading deviation information.
[0160] Optionally, the curvature information of the road includes the curvature of the center line and the rate of change of the curvature of the center line.
[0161] The lane departure control device in the embodiment of the present application may be a device, or a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0162] The lane departure control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0163] The lane departure control device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the lane departure control device in the method embodiment will not be described again here to avoid repetition.
[0164] An embodiment of the present application also provides a vehicle, comprising the lane departure control device as described above.
[0165] The specific implementation process of the lane departure control device in the vehicle provided in the embodiment of the present application is similar to the aforementioned lane departure control device and will not be repeated here.
[0166] In an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of lane deviation and traffic accidents during the user's driving.
[0167] Optionally, an embodiment of the present application further provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned lane departure control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0168] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0169] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0170] The electronic device 400 includes but is not limited to components such as a radio frequency unit 401 , a network module 402 , an audio output unit 403 , an input unit 404 , a sensor 405 , a display unit 406 , a user input unit 407 , an interface unit 408 , a memory 409 , and a processor 410 .
[0171] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0172] The processor 410 is used to obtain a first distance between the vehicle and the center line of the road when the vehicle starts to deviate from the road, and obtain a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line;
[0173] Acquire the heading deviation information of the vehicle and the curvature information of the road, and obtain a third distance between a preset preview point and the reference line according to the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point;
[0174] Obtaining a preview curvature according to the second distance, the third distance, and the preview distance;
[0175] According to the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road.
[0176] In an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of lane deviation and traffic accidents during the user's driving.
[0177] Optionally, the processor 410 is further configured to obtain the second distance according to the first distance and the preset deviation within a first preset time period.
[0178] Optionally, the processor 410 is also used to obtain the preset deviation amount based on a first preset time coefficient, the first preset time and a preset deviation coefficient; determine the reference line based on the preset deviation amount; wherein the first preset time coefficient is negatively correlated with the deviation time, and the deviation time is the difference between the current moment and the moment when the vehicle begins to deviate from the road.
[0179] Optionally, the processor 410 is further used to obtain the speed of the vehicle; multiply the speed by a second preset time length to obtain the preview distance; and determine the preview point according to the preview distance and the third distance.
[0180] Optionally, the processor 410 is further configured to determine a rotation angle of a steering wheel of the vehicle according to the preview curvature; and control the vehicle to travel to the preview point according to the rotation angle.
[0181] Optionally, the processor 410 is further used to obtain the vehicle speed, transmission ratio and wheelbase of the vehicle; and obtain the rotation angle according to the vehicle speed, the transmission ratio, the wheelbase, a preset stability coefficient and the preview curvature.
[0182] Optionally, the processor 410 is further used to obtain a driving state of the vehicle; when the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range, obtain a lane state of the vehicle; when the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold, determine that the vehicle begins to deviate from the road.
[0183] Optionally, the processor 410 is further configured to obtain an angle between the forward direction of the vehicle and the center line, and use the angle as the heading deviation information.
[0184] Optionally, the curvature information of the road includes the curvature of the center line and the rate of change of the curvature of the center line.
[0185] In an embodiment of the present application, when the vehicle begins to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and based on the first distance and the preset deviation, a second distance between the vehicle and a preset reference line is obtained, and then the vehicle's heading deviation information and the curvature information of the road are obtained, and based on the heading deviation information, the curvature information, the preset preview distance and the second distance, a third distance between the preset preview point and the reference line is obtained, and then based on the second distance, the third distance and the preview distance, a preview curvature is obtained, and then based on the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road, thereby correcting the lane deviation, avoiding the occurrence of traffic accidents caused by lane deviation, and solving the problem of lane deviation and traffic accidents during the user's driving.
[0186] It should be understood that in the embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 407 includes a touch panel 4071 and at least one of other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts: a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0187] The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 409 may include a volatile memory or a non-volatile memory, or the memory 409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0188] The processor 410 may include one or more processing units; optionally, the processor 410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 410.
[0189] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned lane departure control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0190] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0191] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned lane departure control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0193] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0195] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A lane departure control method, characterized in that: The method comprises: When the vehicle starts to deviate from the road, a first distance between the vehicle and the center line of the road is obtained, and a second distance between the vehicle and a preset reference line is obtained according to the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line; Acquire the heading deviation information of the vehicle and the curvature information of the road, and obtain a third distance between a preset preview point and the reference line according to the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point; Obtaining a preview curvature according to the second distance, the third distance, and the preview distance; According to the preview curvature, the vehicle is controlled to travel to the preview point to keep the vehicle within the road.
2. The method according to claim 1, characterized in that The step of obtaining a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation includes: Within a first preset time period, the second distance is obtained according to the first distance and the preset deviation.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining the preset deviation amount according to a first preset duration coefficient, the first preset duration, and a preset deviation coefficient; Determining the reference line according to the preset deviation; The first preset duration coefficient is negatively correlated with the deviation duration, and the deviation duration is the difference between the current time and the time when the vehicle starts to deviate from the road.
4. The method according to claim 1, characterized in that The method further comprises: Obtaining the speed of the vehicle; Multiplying the vehicle speed by a second preset time length to obtain the preview distance; The preview point is determined according to the preview distance and the third distance.
5. The method according to claim 1, characterized in that The step of controlling the vehicle to travel to the preview point according to the preview curvature includes: Determining a rotation angle of a steering wheel of the vehicle according to the preview curvature; According to the rotation angle, the vehicle is controlled to travel to the preview point.
6. The method according to claim 5, characterized in that Determining the rotation angle of the steering wheel of the vehicle according to the preview curvature includes: Obtaining the vehicle speed, transmission ratio and wheelbase of the vehicle; The rotation angle is obtained according to the vehicle speed, the transmission ratio, the wheelbase, a preset stability coefficient and the preview curvature.
7. The method according to claim 1, characterized in that The method further comprises: Acquiring a driving state of the vehicle; When the driving state is that the vehicle is driven by a user, the turn signal of the vehicle is turned off, the steering wheel of the vehicle is turned, and the acceleration of the vehicle is within a preset acceleration range, obtaining the lane state of the vehicle; When the lane state is that the distance between the vehicle and a reference boundary of the road is less than a preset threshold, it is determined that the vehicle begins to deviate from the road.
8. The method according to claim 1, characterized in that The method further comprises: The angle between the forward direction of the vehicle and the center line is obtained, and the angle is used as the heading deviation information.
9. The method according to claim 1, characterized in that: The curvature information of the road includes the curvature of the center line and the curvature change rate of the center line.
10. A lane departure control device, characterized in that: The device comprises: A first acquisition module is used to acquire a first distance between the vehicle and a center line of the road when the vehicle starts to deviate from the road, and to acquire a second distance between the vehicle and a preset reference line according to the first distance and a preset deviation; the reference line is parallel to the center line, and the preset deviation is the distance between the reference line and the center line; a second acquisition module, configured to acquire the heading deviation information of the vehicle and the curvature information of the road, and to obtain a third distance between a preset preview point and the reference line according to the heading deviation information, the curvature information, a preset preview distance and the second distance; the preview distance is the distance traveled by the vehicle to the preview point; A third acquisition module, configured to obtain a preview curvature according to the second distance, the third distance and the preview distance; A control module is used to control the vehicle to travel to the preview point according to the preview curvature to keep the vehicle within the road.
11. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the lane departure control method as claimed in any one of claims 1 to 9.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the lane departure control method according to any one of claims 1 to 9 are implemented.
13. A vehicle, characterized in that: Includes the lane departure control device as claimed in claim 10.
