Lane keeping method, device, storage medium and program product
By fitting the lane geometry with Bézier curves, generating the lane centerline, and calculating the steering wheel angle, the problem of low driving safety for heavy commercial vehicles in conditions without lane markings is solved. This achieves continuity and smoothness in lane keeping, improving driving safety and comfort.
Patent Information
- Application Number
- CN202611707189.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-12-01
AI Technical Summary
In conditions such as the absence of lane markings, backlighting, rain, and snow, the lane marking recognition results of existing heavy commercial vehicles are prone to temporary loss, vibration, or decreased confidence, resulting in discontinuity of the expected path and potentially causing unintended steering wheel turns, thus reducing driving safety.
By acquiring vehicle motion state information and multi-frame lane perception information, the geometry of the left and right lane lines is fitted using Bézier curves to generate the lane centerline and calculate the target steering wheel angle, ensuring that the vehicle travels along the lane centerline and reducing drastic steering caused by changes in single-frame information.
Maintaining the continuity and smoothness of the lane centerline during brief lane line gaps improves vehicle safety and driving comfort.
Smart Images

Figure CN123190816A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of heavy-duty commercial vehicle driver assistance control technology, and in particular to a lane keeping method, device, storage medium and program product. Background Technology
[0002] Lane centering technology in heavy commercial vehicles typically relies on a forward-facing camera to identify the left and right lane lines and directly generate a desired path based on the identified lane line geometry parameters. This desired path is then used for steering control.
[0003] However, in conditions such as intersections without lane markings, driving against the light, rain or snow, or worn lane markings, the recognition results for left and right lane markings are prone to temporary gaps, fluctuations, or decreased confidence. If the desired path is generated directly based on the currently collected lane marking data, it is easy to cause discontinuities in the desired path, which may lead to unintended steering and reduced vehicle driving safety. Summary of the Invention
[0004] This application provides a lane keeping method, device, storage medium, and program product to improve vehicle driving safety.
[0005] In a first aspect, embodiments of this application provide a lane keeping method, including:
[0006] The vehicle's motion state information and lane perception information from multiple frames are acquired. The motion state information includes longitudinal vehicle speed and yaw rate. The multiple frames include the current frame and at least one historical frame that is consecutive to the current frame. The lane perception information is used to indicate the features of the lane lines collected in the corresponding frame.
[0007] Based on motion state information and lane perception information from multiple frames, the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line are determined. The first Bézier curve is used to indicate the geometry of the left lane line, and the second Bézier curve is used to indicate the geometry of the right lane line.
[0008] The lane centerline of the vehicle is determined based on the first and second Bézier curves. The lane centerline is used to indicate the vehicle's desired path.
[0009] Determine the target steering wheel angle based on the vehicle's lane centerline. The target steering wheel angle is used to bring the vehicle's lateral position closer to the lane centerline.
[0010] Send the target steering wheel angle to the vehicle's steering actuators.
[0011] In one possible implementation, based on motion state information and lane perception information from multiple frames, the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line are determined, including:
[0012] Based on lane perception information from multiple frames, the lane lines collected from multiple frames are discretized to obtain the first coordinates of at least one discrete point corresponding to each frame.
[0013] Based on the motion state information, each first coordinate is converted into a second coordinate in the coordinate system of the current frame, resulting in multiple second coordinates. The origin of the coordinate system of the current frame is the center point of the front axle of the vehicle corresponding to the current frame, the positive direction of the X-axis is the direction the vehicle is facing, and the positive direction of the Y-axis is the direction from the center point of the front axle to the center of the left wheel of the front axle.
[0014] The coordinates corresponding to the left lane line in multiple second coordinate systems are stored in the first data queue, and the coordinates corresponding to the right lane line in multiple second coordinate systems are stored in the second data queue.
[0015] Determine the first Bézier curve based on the first data queue;
[0016] The second Bézier curve is determined based on the second data queue.
[0017] In one possible implementation, for the frame preceding the current frame... Frame, number The second coordinate of any discrete point corresponding to the frame satisfies:
[0018]
[0019] in, Let be the value of the second coordinate along the X-axis. The value of the second coordinate along the Y-axis is [value]. The time interval between two adjacent frames. The yaw rate is angular velocity. For longitudinal vehicle speed, , The first coordinate corresponding to the second coordinate. It is an integer greater than or equal to 0.
[0020] In one possible implementation, the lane perception information for each frame in the multiple frames includes: a confidence level for the corresponding frame, which indicates the confidence level of the lane line acquired in the corresponding frame; and determining a first Bézier curve based on a first data queue, including:
[0021] Based on the confidence level of each frame in multiple frames, determine the weight coefficient corresponding to each second coordinate in the first data queue;
[0022] Based on the weight coefficients of the discrete points corresponding to each second coordinate, and each second coordinate, determine the coordinates of the four fitting points of the first Bézier curve;
[0023] The first Bézier curve is determined based on the coordinates of the four fitting points.
[0024] In one possible implementation, the four fitting points include the first left fitting point, the second left fitting point, the third left fitting point, and the fourth left fitting point, where:
[0025] The first left fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first left fitting point are (0,0).
[0026] The fourth fitting point from the left is the discrete point corresponding to the second largest coordinate along the X-axis in the first data queue. The coordinates of the fourth fitting point from the left are: ;
[0027] The coordinates of the second fitting point on the left are ;
[0028] The coordinates of the third fitting point on the left are ;
[0029] in, and Satisfy the following condition: minimize the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue.
[0030] In one possible implementation, any point on the first Bézier curve satisfies:
[0031]
[0032] in, Let be the curve parameter at any point on the first Bézier curve. , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the first data queue. , For the first Bézier curve in The coordinates at that location along the Y direction.
[0033] In one possible implementation, the vehicle's lane centerline satisfies:
[0034]
[0035] in, This is the center line of the vehicle's lane. For the first Bézier curve, This is the second Bézier curve.
[0036] In one possible implementation, the target steering wheel angle is determined based on the vehicle's lane centerline, including:
[0037] Based on the curvature of the vehicle's lane centerline and its longitudinal speed, the target preview time is determined, and the target preview time satisfies the following: ,in, Pre-aiming time for the target This is the aiming time correction factor determined based on the longitudinal vehicle speed. The initial aiming time is determined based on the curvature of the vehicle's lane centerline;
[0038] Based on the aiming time and longitudinal vehicle speed, the aiming distance is determined, and the aiming distance satisfies the following: ,in, For the pre-aiming distance, This refers to the longitudinal speed of the vehicle.
[0039] Based on the aiming distance, determine the lateral deviation of the aiming point relative to the vehicle's lane centerline. The aiming point is a point on the vehicle's lane centerline that is at a longitudinal distance from the vehicle equal to the aiming distance.
[0040] Based on the lateral deviation, longitudinal vehicle speed, and target aiming time, the desired yaw rate is determined, and the desired yaw rate satisfies: ,in, For the desired yaw rate, This is the lateral deviation;
[0041] Determine the target steering wheel angle based on the desired yaw rate.
[0042] In one possible implementation, the lateral deviation satisfies:
[0043]
[0044] in, For lateral deviation, For the first Bézier curve in The coordinates at that location along the Y direction are... For the pre-aiming distance, The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. For the second Bézier curve in The coordinates at that location along the Y direction are... It is the vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue.
[0045] In one possible implementation, the target steering wheel angle satisfies:
[0046]
[0047] in, For the target steering wheel angle, The proportionality coefficient is determined based on the vehicle's dynamic characteristics. For the desired yaw rate, This refers to the vehicle's actual yaw rate. The integral time coefficient is determined based on the vehicle dynamics characteristics. The differential time coefficient is determined based on the vehicle's dynamic characteristics.
[0048] Secondly, embodiments of this application provide a lane keeping device, which includes: an acquisition module, a determination module, and a transmission module, wherein:
[0049] The acquisition module is used to acquire vehicle motion state information and lane perception information of multiple frames. The motion state information includes longitudinal vehicle speed and yaw rate. The multiple frames include the current frame and at least one historical frame that is continuous with the current frame. The lane perception information is used to indicate the features of the lane lines acquired in the corresponding frame.
[0050] The determination module is used to determine the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line based on motion state information and lane perception information from multiple frames. The first Bézier curve is used to indicate the geometry of the left lane line and the second Bézier curve is used to indicate the geometry of the right lane line.
[0051] The determination module is also used to determine the lane centerline of the vehicle based on the first Bézier curve and the second Bézier curve, the lane centerline being used to indicate the vehicle's desired path.
[0052] The determination module is also used to determine the target steering wheel angle based on the vehicle's lane centerline. The target steering wheel angle is used to bring the vehicle's lateral position closer to the lane centerline.
[0053] The sending module is used to send the target steering wheel angle to the vehicle's steering actuators.
[0054] In one possible implementation, the module is specifically used for:
[0055] Based on lane perception information from multiple frames, the lane lines collected from multiple frames are discretized to obtain the first coordinates of at least one discrete point corresponding to each frame.
[0056] Based on the motion state information, each first coordinate is converted into a second coordinate in the coordinate system of the current frame, resulting in multiple second coordinates. The origin of the coordinate system of the current frame is the center point of the front axle of the vehicle corresponding to the current frame, the positive direction of the X-axis is the direction the vehicle is facing, and the positive direction of the Y-axis is the direction from the center point of the front axle to the center of the left wheel of the front axle.
[0057] The coordinates corresponding to the left lane line in multiple second coordinate systems are stored in the first data queue, and the coordinates corresponding to the right lane line in multiple second coordinate systems are stored in the second data queue.
[0058] Determine the first Bézier curve based on the first data queue;
[0059] The second Bézier curve is determined based on the second data queue.
[0060] In one possible implementation, for the frame preceding the current frame... Frame, number The second coordinate of any discrete point corresponding to the frame satisfies:
[0061]
[0062] in, Let be the value of the second coordinate along the X-axis. The value of the second coordinate along the Y-axis is [value]. The time interval between two adjacent frames. The yaw rate is angular velocity. For longitudinal vehicle speed, , The first coordinate corresponding to the second coordinate. It is an integer greater than or equal to 0.
[0063] In one possible implementation, the lane perception information for each frame in multiple frames includes: the confidence level of the corresponding frame, which indicates the confidence level of the lane lines acquired in the corresponding frame; the determination module is specifically used for:
[0064] Based on the confidence level of each frame in multiple frames, determine the weight coefficient corresponding to each second coordinate in the first data queue;
[0065] Based on the weight coefficients of the discrete points corresponding to each second coordinate, and each second coordinate, determine the coordinates of the four fitting points of the first Bézier curve;
[0066] The first Bézier curve is determined based on the coordinates of the four fitting points.
[0067] In one possible implementation, the four fitting points include the first left fitting point, the second left fitting point, the third left fitting point, and the fourth left fitting point, where:
[0068] The first left fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first left fitting point are (0,0).
[0069] The fourth fitting point from the left is the discrete point corresponding to the second largest coordinate along the X-axis in the first data queue. The coordinates of the fourth fitting point from the left are: ;
[0070] The coordinates of the second fitting point on the left are ;
[0071] The coordinates of the third fitting point on the left are ;
[0072] in, and The condition is satisfied that the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue is minimized.
[0073] In one possible implementation, any point on the first Bézier curve satisfies:
[0074]
[0075] in, Let be the curve parameter at any point on the first Bézier curve. , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the first data queue. , For the first Bézier curve in The coordinates at that location along the Y direction.
[0076] In one possible implementation, the vehicle's lane centerline satisfies:
[0077]
[0078] in, This is the center line of the vehicle's lane. For the first Bézier curve, This is the second Bézier curve.
[0079] In one possible implementation, the module is specifically used for:
[0080] Based on the curvature of the vehicle's lane centerline and its longitudinal speed, the target preview time is determined, and the target preview time satisfies the following: ,in, Pre-aiming time for the target This is the aiming time correction factor determined based on the longitudinal vehicle speed. The initial aiming time is determined based on the curvature of the vehicle's lane centerline;
[0081] Based on the aiming time and longitudinal vehicle speed, the aiming distance is determined, and the aiming distance satisfies the following: ,in, For the pre-aiming distance, This refers to the longitudinal speed of the vehicle.
[0082] Based on the aiming distance, determine the lateral deviation of the aiming point relative to the vehicle's lane centerline. The aiming point is a point on the vehicle's lane centerline that is at a longitudinal distance from the vehicle equal to the aiming distance.
[0083] Based on the lateral deviation, longitudinal vehicle speed, and target aiming time, the desired yaw rate is determined, and the desired yaw rate satisfies: ,in, For the desired yaw rate, This is the lateral deviation;
[0084] Determine the target steering wheel angle based on the desired yaw rate.
[0085] In one possible implementation, the lateral deviation satisfies:
[0086]
[0087] in, For lateral deviation, For the first Bézier curve in The coordinates at that location along the Y direction are... For the pre-aiming distance, The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. For the second Bézier curve in The coordinates at that location along the Y direction are... It is the vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue.
[0088] In one possible implementation, the target steering wheel angle satisfies:
[0089]
[0090] in, For the target steering wheel angle, The proportionality coefficient is determined based on the vehicle's dynamic characteristics. For the desired yaw rate, This refers to the vehicle's actual yaw rate. The integral time coefficient is determined based on the vehicle dynamics characteristics. The differential time coefficient is determined based on the vehicle's dynamic characteristics.
[0091] Thirdly, embodiments of this application provide a lane keeping device, including: a memory and a processor;
[0092] The memory stores the instructions that the computer executes;
[0093] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0094] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0095] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0096] The lane keeping method, device, storage medium, and program product provided in this application embodiment allow the lane keeping device to acquire vehicle motion state information and lane perception information from multiple frames. Based on the motion state information and the lane perception information from multiple frames, it determines a first Bézier curve corresponding to the left lane line and a second Bézier curve corresponding to the right lane line. Then, it determines the lane centerline based on the two Bézier curves and calculates the target steering wheel angle based on the lane centerline before sending it to the steering execution component. In this method, lane perception information from multiple frames, along with longitudinal vehicle speed and yaw rate, can jointly participate in determining the lane centerline. This allows for the determination of the lane centerline even when the lane line is briefly missing in the current frame, based on the current longitudinal vehicle speed, yaw rate, and lane perception information from historical frames. This ensures the lane centerline remains continuous and smooth, allowing the steering wheel rotation to change smoothly with the lane centerline rather than drastically changing with information from a single frame, thus improving vehicle driving safety. Attached Figure Description
[0097] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0098] Figure 1 A schematic flowchart of a lane keeping method provided in this application embodiment. Figure 1 ;
[0099] Figure 2A schematic flowchart of a lane keeping method provided in this application embodiment. Figure 2 ;
[0100] Figure 3 A schematic diagram illustrating the principle of determining the desired yaw rate, provided for an embodiment of this application;
[0101] Figure 4 A schematic diagram of a lane keeping device provided in this application;
[0102] Figure 5 This is a structural schematic diagram of a lane keeping device provided in this application.
[0103] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0104] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0105] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0106] Lane keeping technology for heavy commercial vehicles involves vehicle-assisted driving fields such as forward vision perception, path planning and steering execution, and is mainly applied to continuous driving scenarios such as urban roads, highways and complex intersections.
[0107] Currently, the geometric parameters of the left and right lane lines are typically identified in real time using the vehicle's forward-facing camera. A desired path is then generated based on these parameters, and steering control is directly applied to this path. When lane lines are clear and continuous, this method can meet basic vehicle centering requirements. However, at intersections without lane lines, in backlight conditions, under rain or snow, or when lane lines are worn or temporarily missing, the real-time identification results may be interrupted, fluctuate, or experience a decrease in confidence, causing the generated desired path to change abruptly. For large, heavy commercial vehicles with high inertia, this abrupt change in the desired path can further amplify changes in steering wheel angle, potentially leading to unintended steering and even accidents, resulting in lower vehicle safety.
[0108] In view of this, embodiments of this application provide a lane keeping method. This method offers a joint processing mechanism for lane perception information from multiple frames and motion state information, which can fuse motion state information with lane perception information from multiple frames to generate the vehicle's desired path. Through this method, a continuous desired path can be generated, improving vehicle driving safety.
[0109] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0110] Figure 1 A schematic flowchart of a lane keeping method provided in this application embodiment. Figure 1 The executing entity of this method can be a lane-keeping device or a lane-keeping mechanism installed within it. The lane-keeping mechanism can be implemented through software or a combination of software and hardware. For ease of understanding, the following explanation will use a lane-keeping device as the executing entity. Figure 1 As shown, the method may include:
[0111] S101, acquire vehicle motion state information and lane perception information from multiple frames.
[0112] Motion status information includes longitudinal vehicle speed and yaw rate.
[0113] Multiple frames include the current frame and at least one historical frame that is consecutive to the current frame.
[0114] Lane perception information is used to indicate the characteristics of lane lines captured in the corresponding frame.
[0115] In some embodiments, for any given frame, the features of the lane lines acquired in that frame may include: the coefficients of the cubic polynomial of the lane lines, the confidence level of the corresponding frame, the starting coordinates of the lane lines, and the ending coordinates of the lane lines. The cubic polynomial of the lane lines is used to characterize the geometric properties of the lane lines.
[0116] In some embodiments, the cubic polynomial of the lane line satisfies the following formula:
[0117]
[0118] in, Let be the ordinate of any point on the inner edge of the left lane line. On the inner edge of the left lane line, the vertical coordinate is The x-coordinate of the point; Let be the ordinate of any point on the inner edge of the right lane line. On the inner edge of the right lane line, the vertical coordinate is The x-coordinate of the point; This refers to the lateral deviation of the vehicle relative to the inner edge of the left lane line; The heading angle of the vehicle relative to the inner edge of the left lane line; The curvature of the inner edge of the left lane line; The rate of change of curvature of the inner edge of the left lane line; This refers to the lateral deviation of the vehicle relative to the inner edge of the right lane line; The heading angle of the vehicle relative to the inner edge of the left lane line; The curvature of the inner edge of the right lane line; This represents the rate of change of curvature of the inner edge of the right lane line.
[0119] In some embodiments, the confidence level of any frame satisfies:
[0120]
[0121] in, This represents the confidence level of the left lane line, and its value ranges from 0 to 1. The larger the value, the higher the confidence level of the lane line. This represents the confidence level of the right lane line, and its value ranges from 0 to 1. The larger the value, the higher the confidence level of the lane line.
[0122] In some embodiments, for any given frame, the starting coordinates of the left lane line captured in that frame can be denoted as... The coordinates of the end point of the left lane can be denoted as: .
[0123] In some embodiments, for any given frame, the starting coordinates of the right lane line captured in that frame can be denoted as... The coordinates of the end point of the right lane can be denoted as: .
[0124] In this embodiment, lane perception information can be obtained by the vehicle's forward-facing camera after identifying lane lines in the current frame and historical frames respectively.
[0125] In this embodiment, motion state information can be obtained through the vehicle bus, body controller, or sensor interface connected to the vehicle. The longitudinal speed is used to characterize the vehicle's speed along the driving direction, and the yaw rate is used to characterize the vehicle's rotation state around the vertical axis.
[0126] S102, based on motion state information and lane perception information from multiple frames, determine the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line.
[0127] The first Bézier curve is used to indicate the geometry of the left lane line.
[0128] The second Bézier curve is used to indicate the geometry of the right lane line.
[0129] In this embodiment, a first data queue corresponding to the left lane line and a second data queue corresponding to the right lane line can be determined based on lane perception information and motion state information from multiple frames. A first Bézier curve can be determined based on the first data queue and the second data queue. The first data queue may include the coordinates of multiple discrete points on the left lane line, and the second data queue may include the coordinates of multiple discrete points on the right lane line.
[0130] In this embodiment, if the lane perception information of the historical frames of the current frame can still be used to determine the first Bézier curve and the second Bézier curve, the probability of Bézier curve interruption is low, and thus the probability of expected path interruption is low.
[0131] S103, determine the vehicle's lane centerline based on the first and second Bézier curves.
[0132] Lane center lines are used to indicate the desired path of a vehicle.
[0133] In this embodiment, the vehicle's lane centerline satisfies:
[0134]
[0135] in, This is the center line of the vehicle's lane. For the first Bézier curve, This is the second Bézier curve.
[0136] In this embodiment, if the lane lines captured in the current frame are missing due to backlighting, rain or snow, lane line wear, or short-term perception interruption, the first and second Bézier curves can still be determined by relying on the lane perception information of historical frames, thereby determining the vehicle's lane centerline. This ensures that the vehicle's lane centerline changes smoothly over continuous time, rather than abruptly changing with the lane perception results of a single frame.
[0137] S104, determine the target steering wheel angle based on the vehicle's lane centerline.
[0138] The target steering wheel angle is used to bring the vehicle's lateral position closer to the center line of the lane.
[0139] In one possible embodiment, the target steering wheel angle can be determined based on the deviation between the lane centerline and the vehicle's current position, thereby gradually bringing the vehicle's lateral position closer to the lane centerline.
[0140] In this embodiment, since the lane centerline is constructed based on the lane perception information and vehicle motion state information of multiple frames, the calculation benchmark of the target steering wheel angle does not rely on the lane perception result of a single frame, but is calculated based on the continuous trajectory, so that the target steering wheel angle changes smoothly with the lane centerline.
[0141] S105, sends the target steering wheel angle to the vehicle's steering actuator.
[0142] The steering actuation component can be the vehicle's steer-by-wire system.
[0143] In this embodiment, the target steering wheel angle can be sent as a steering command to the steering execution component. After receiving the target steering wheel angle, the steering execution component can drive the steering mechanism to output the corresponding front wheel angle according to the steering command, so that the vehicle travels along the center line of the lane.
[0144] In this embodiment, since the target steering wheel angle is calculated based on a continuous trajectory, the steering command received by the execution component has a continuous variation characteristic, which can maintain a stable output of steering action when the lane line is temporarily missing, resulting in better driving comfort.
[0145] In the lane-keeping method provided in this embodiment, the lane-keeping device can acquire vehicle motion state information and lane perception information from multiple frames. Based on the motion state information and lane perception information from multiple frames, it determines the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line. Then, it determines the lane centerline based on the two Bézier curves and calculates the target steering wheel angle based on the lane centerline before sending it to the steering execution component. In the above method, lane perception information from multiple frames, along with longitudinal vehicle speed and yaw rate, can jointly participate in the determination of the lane centerline. This allows the lane centerline to be determined based on the current longitudinal vehicle speed, yaw rate, and lane perception information from historical frames, even when the lane line is temporarily missing in the current frame. This ensures that the lane centerline remains continuous and smooth, allowing the steering wheel rotation to change smoothly with the lane centerline rather than drastically changing with information changes in a single frame, thus improving vehicle driving safety.
[0146] Based on the above embodiments, the following is combined with Figure 2 The lane keeping method provided in the embodiments of this application will be further described.
[0147] Figure 2 A schematic flowchart of a lane keeping method provided in this application embodiment. Figure 2 The executing entity of this method can be a lane-keeping device or a lane-keeping mechanism installed within it. The lane-keeping mechanism can be implemented through software or a combination of software and hardware. For ease of understanding, the following explanation will use a lane-keeping device as the executing entity. Figure 2 As shown, the method may include:
[0148] S201, acquire vehicle motion state information and lane perception information from multiple frames.
[0149] It should be noted that the specific implementation of S201 can be found in S101, and will not be elaborated here.
[0150] S202, based on lane perception information from multiple frames, the lane lines collected from multiple frames are discretized to obtain the first coordinates of at least one discrete point corresponding to each frame.
[0151] In this embodiment, for each of the multiple frames, the lane lines collected in that frame can be discretized based on the lane perception information of that frame to obtain the first coordinates of at least one discrete point corresponding to that frame.
[0152] Below, starting with the first frame before the current frame... Taking a frame as an example, the first coordinates of at least one discrete point corresponding to each frame are explained. Wherein, It is an integer greater than or equal to 0.
[0153] For example, if Then the first frame before the current frame The frame can be the current frame; if Then the first frame before the current frame The frame can be the first frame before the current frame; if Then the first frame before the current frame The frame can be the second frame before the current frame.
[0154] For the first frame before the current frame The effective length of the lane lines captured by the frame can be ,in, It can be the first frame before the current frame The longitudinal starting coordinates of the lane lines captured in the frame. It can be the first frame before the current frame The longitudinal endpoint coordinates of the lane line captured in the frame.
[0155] In effective length Inside, it can be of a fixed length Discrete sampling is performed to obtain at least one discrete point corresponding to the frame, and these at least one discrete point can form a point set. Specifically, it can take the following forms:
[0156]
[0157] in, Less than or equal to , Integers greater than or equal to 0; It can be the first coordinate of any point among at least one discrete point, where, The first coordinate includes the ordinate. The first coordinate includes the x-coordinate.
[0158] S203, based on the motion state information, convert each first coordinate into a second coordinate in the coordinate system of the current frame to obtain multiple second coordinates.
[0159] The origin of the coordinate system for the current frame is the center point of the front axle of the vehicle corresponding to the current frame. The positive X-axis is the direction the vehicle is facing, and the positive Y-axis is the direction from the center point of the front axle to the center of the left wheel of the front axle. The X-axis can also be called the longitudinal axis, and its direction can be called the vertical direction; the Y-axis can also be called the transverse axis, and its direction can be called the horizontal direction.
[0160] Below, starting with the first frame before the current frame... Taking the first coordinate of any discrete point corresponding to a frame as an example, the method of converting the first coordinate into the second coordinate in the coordinate system of the current frame will be explained.
[0161] For the first frame before the current frame Frame, number The second coordinate of any discrete point corresponding to the frame satisfies:
[0162]
[0163] in, Let be the value of the second coordinate along the X-axis. The value of the second coordinate along the Y-axis is [value]. The time interval between two adjacent frames. The yaw rate is angular velocity. For longitudinal vehicle speed, , The first coordinate corresponding to the second coordinate. It is an integer greater than or equal to 0.
[0164] when When the velocity is close to zero, the vehicle can be considered to be moving at a constant linear velocity. In this case, the first... The second coordinate of any discrete point corresponding to a frame can be expressed as:
[0165]
[0166] In this embodiment, the coordinate transformation method described above can be used to transform the coordinates corresponding to historical frames to the coordinate system of the current frame. This minimizes the coordinate deviation caused by vehicle movement.
[0167] S204, store the coordinates corresponding to the left lane line in multiple second coordinates into the first data queue, and store the coordinates corresponding to the right lane line in multiple second coordinates into the second data queue.
[0168] The first data queue can be represented as:
[0169]
[0170] in, It can be the second coordinate of at least one discrete point on the left lane line of the current frame. It can be the first frame before the current frame The second coordinate of at least one discrete point of the left lane line of the frame.
[0171] The second data queue can be represented as:
[0172]
[0173] in, It can be the second coordinate of at least one discrete point on the right lane line of the current frame. It can be the first frame before the current frame The second coordinate of at least one discrete point of the right lane line of the frame.
[0174] S205, Determine the first Bézier curve based on the first data queue.
[0175] The lane perception information in each of the multiple frames may include: the confidence level of the corresponding frame, which is used to indicate the confidence level of the lane lines collected in the corresponding frame.
[0176] In this embodiment, the weight coefficients corresponding to each second coordinate in the first data queue can be determined based on the confidence level of each frame in multiple frames; the coordinates of the four fitting points of the first Bézier curve can be determined based on the weight coefficients of the discrete points corresponding to each second coordinate and each second coordinate; and the first Bézier curve can be determined based on the coordinates of the four fitting points.
[0177] For the first frame before the current frame For any second coordinate corresponding to a frame, the weight coefficient of the discrete point corresponding to the second coordinate can satisfy the following formula:
[0178]
[0179] in, The weighting coefficients for the discrete points corresponding to the second coordinate; Forgetting factor, ; The first frame before the current frame Frame confidence.
[0180] In this embodiment, the four fitting points of the first Bézier curve include: the first left fitting point, the second left fitting point, the third left fitting point, and the fourth left fitting point, wherein:
[0181] The first left fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first left fitting point are (0,0).
[0182] The fourth fitting point from the left is the discrete point corresponding to the second largest coordinate along the X-axis in the first data queue. The coordinates of the fourth fitting point from the left are: ;
[0183] The coordinates of the second fitting point on the left are ;
[0184] The coordinates of the third fitting point on the left are ;
[0185] in, and The condition is satisfied that the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue is minimized.
[0186] In this embodiment, the weighted least squares optimization algorithm can be used to determine... and . and This minimizes the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue.
[0187] Specifically, any point on the first Bézier curve satisfies:
[0188]
[0189] in, Let be the curve parameter at any point on the first Bézier curve. , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the first data queue. , For the first Bézier curve in The coordinates at that location along the Y direction.
[0190] satisfy:
[0191]
[0192] in, Let be the curve parameter at any point on the first Bézier curve. For the first Bézier curve in The coordinates at that location along the Y direction are... , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. The value along the X-axis of the first Bézier curve is [value]. The value of the point along the Y-axis, for( , The weight coefficient corresponding to the point; , The weight coefficient corresponding to point ) can be, ( , The weight system of discrete points corresponding to the second coordinate of the frame corresponding to the point; Take 1, 2... , This represents the total number of second coordinates included in the first data queue.
[0193] S206, Determine the second Bézier curve based on the second data queue.
[0194] In this embodiment, the weight coefficients corresponding to each second coordinate in the second data queue can be determined based on the confidence level of each frame in multiple frames; the coordinates of the four fitting points of the second Bézier curve can be determined based on the weight coefficients of the discrete points corresponding to each second coordinate and each second coordinate; and the second Bézier curve can be determined based on the coordinates of the four fitting points.
[0195] The method for determining the weight coefficients corresponding to each second coordinate in the second data queue is the same as the method for determining the weight coefficients corresponding to each second coordinate in the first data queue. For details, please refer to S205, which will not be repeated here.
[0196] In this embodiment, the four fitting points of the second Bézier curve include: the first fitting point on the right, the second fitting point on the right, the third fitting point on the right, and the fourth fitting point on the right, wherein:
[0197] The first right fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first right fitting point are (0,0).
[0198] The fourth fitting point from the right is the discrete point corresponding to the second coordinate with the largest value along the X-axis in the second data queue. The coordinates of the fourth fitting point from the right are: ;
[0199] The coordinates of the second fitting point on the right are ;
[0200] The coordinates of the third fitting point on the right are ;
[0201] in, and Satisfy the following condition: minimize the error between the second Bézier curve and the Y-axis direction of the discrete points corresponding to each second coordinate included in the second data queue.
[0202] In this embodiment, the weighted least squares optimization algorithm can be used to determine... and . and This minimizes the error between the second Bézier curve and the Y-axis direction of the discrete points corresponding to each second coordinate in the second data queue.
[0203] Specifically, any point on the second Bézier curve satisfies:
[0204]
[0205] in, Let be the curve parameter at any point on the second Bézier curve. , Let be the value of the second coordinate of any point on the second Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the second data queue. , For the second Bézier curve in The coordinates at that location along the Y direction.
[0206] satisfy:
[0207]
[0208] in, Let be the curve parameter at any point on the second Bézier curve. For the second Bézier curve in The coordinates at that location along the Y direction are... , Let be the value of the second coordinate of any point on the second Bézier curve along the X-axis. The vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue. The value along the X-axis on the second Bézier curve is [value]. The value of the point along the Y-axis, for( , The weight coefficient corresponding to the point; , The weight coefficient corresponding to point ) can be, ( , The weight system of discrete points corresponding to the second coordinate of the frame corresponding to the point; Take 1, 2... , This represents the total number of second coordinates included in the second data queue.
[0209] S207, determine the vehicle's lane centerline based on the first and second Bézier curves.
[0210] It should be noted that the specific implementation of S207 can be found in S103, and will not be repeated here.
[0211] S208 determines the target aiming time based on the curvature of the vehicle's lane centerline and its longitudinal speed.
[0212] Target aiming time meets the following requirements:
[0213]
[0214] in, Pre-aiming time for the target This is the aiming time correction factor determined based on the longitudinal vehicle speed. The initial aiming time is determined based on the curvature of the vehicle's lane centerline.
[0215] It should be noted that the method for determining the aiming time correction coefficient based on longitudinal vehicle speed can be found in related technologies, and the method for determining the initial aiming time based on the curvature of the vehicle's lane centerline can also be found in related technologies, and will not be elaborated here.
[0216] S209 determines the aiming distance based on the aiming time and longitudinal vehicle speed.
[0217] The aiming distance meets the following requirements:
[0218]
[0219] in, For the pre-aiming distance, This refers to the longitudinal speed of the vehicle.
[0220] S210, based on the aiming distance, determine the lateral deviation of the aiming point relative to the vehicle's lane centerline.
[0221] The aiming point is a point on the center line of the vehicle's lane, at a longitudinal distance from the vehicle equal to the aiming distance.
[0222] Lateral deviation satisfies:
[0223]
[0224] in, For lateral deviation, For the first Bézier curve in The coordinates at that location along the Y direction are... For the pre-aiming distance, The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. For the second Bézier curve in The coordinates at that location along the Y direction are... It is the vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue.
[0225] S211 determines the desired yaw rate based on lateral deviation, longitudinal vehicle speed, and target aiming time.
[0226] The desired yaw rate is:
[0227]
[0228] in, For the desired yaw rate, This represents the lateral deviation.
[0229] Figure 3 This is a schematic diagram illustrating the principle of determining the desired yaw rate, provided as an embodiment of this application. Figure 3 As shown, Figure 3 In The positive direction of the X-axis. The positive direction of the Y-axis. For the desired yaw rate, For lateral deviation, This is the pre-aiming distance.
[0230] S212, determine the target steering wheel angle based on the desired yaw rate.
[0231] The target steering wheel angle satisfies:
[0232]
[0233] in, For the target steering wheel angle, The proportionality coefficient is determined based on the vehicle's dynamic characteristics. For the desired yaw rate, This refers to the vehicle's actual yaw rate. The integral time coefficient is determined based on the vehicle dynamics characteristics. The differential time coefficient is determined based on the vehicle's dynamic characteristics.
[0234] S213, send the target steering wheel angle to the vehicle's steering actuator.
[0235] It should be noted that the specific implementation of S213 can be found in S105, and will not be repeated here.
[0236] In the lane keeping method provided in this embodiment, lane perception information from multiple frames, along with longitudinal vehicle speed and yaw rate, can jointly participate in the determination of the lane centerline. In this way, even when the lane line is temporarily missing in the current frame, the lane centerline can be determined based on the current longitudinal vehicle speed, yaw rate, and lane perception information from historical frames. This ensures that the lane centerline remains continuous and smooth, allowing the steering wheel rotation to change smoothly with the lane centerline rather than drastically changing with the information in a single frame, thereby improving vehicle driving safety.
[0237] Figure 4 This is a structural schematic diagram of a lane-keeping device provided in this application. Figure 4 As shown, the lane keeping device 10 provided in this embodiment includes: an acquisition module 11, a determination module 12, and a transmission module 13, wherein:
[0238] The acquisition module 11 is used to acquire vehicle motion state information and lane perception information of multiple frames. The motion state information includes longitudinal vehicle speed and yaw rate. The multiple frames include the current frame and at least one historical frame that is continuous with the current frame. The lane perception information is used to indicate the features of the lane lines collected in the corresponding frame.
[0239] The determination module 12 is used to determine the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line based on the motion state information and lane perception information of multiple frames. The first Bézier curve is used to indicate the geometry of the left lane line and the second Bézier curve is used to indicate the geometry of the right lane line.
[0240] The determining module 12 is also used to determine the lane centerline of the vehicle based on the first Bézier curve and the second Bézier curve, the lane centerline being used to indicate the vehicle's desired path.
[0241] The determining module 12 is also used to determine a target steering wheel angle based on the vehicle's lane center line, the target steering wheel angle being used to bring the vehicle's lateral position closer to the lane center line;
[0242] The sending module 13 is used to send the target steering wheel angle to the vehicle's steering actuator.
[0243] The lane keeping device provided in this embodiment can perform the lane keeping method shown in any of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0244] In one possible implementation, the determining module 12 is specifically used for:
[0245] Based on lane perception information from multiple frames, the lane lines collected from multiple frames are discretized to obtain the first coordinates of at least one discrete point corresponding to each frame.
[0246] Based on the motion state information, each first coordinate is converted into a second coordinate in the coordinate system of the current frame, resulting in multiple second coordinates. The origin of the coordinate system of the current frame is the center point of the front axle of the vehicle corresponding to the current frame, the positive direction of the X-axis is the direction the vehicle is facing, and the positive direction of the Y-axis is the direction from the center point of the front axle to the center of the left wheel of the front axle.
[0247] The coordinates corresponding to the left lane line in multiple second coordinate systems are stored in the first data queue, and the coordinates corresponding to the right lane line in multiple second coordinate systems are stored in the second data queue.
[0248] Determine the first Bézier curve based on the first data queue;
[0249] The second Bézier curve is determined based on the second data queue.
[0250] In one possible implementation, for the frame preceding the current frame... Frame, number The second coordinate of any discrete point corresponding to the frame satisfies:
[0251]
[0252] in, Let be the value of the second coordinate along the X-axis. The value of the second coordinate along the Y-axis is [value]. The time interval between two adjacent frames. The yaw rate is angular velocity. For longitudinal vehicle speed, , The first coordinate corresponding to the second coordinate. It is an integer greater than or equal to 0.
[0253] In one possible implementation, the lane perception information of each frame in multiple frames includes: the confidence level of the corresponding frame, which indicates the confidence level of the lane line acquired in the corresponding frame; the determination module 12 is specifically used for:
[0254] Based on the confidence level of each frame in multiple frames, determine the weight coefficient corresponding to each second coordinate in the first data queue;
[0255] Based on the weight coefficients of the discrete points corresponding to each second coordinate, and each second coordinate, determine the coordinates of the four fitting points of the first Bézier curve;
[0256] The first Bézier curve is determined based on the coordinates of the four fitting points.
[0257] In one possible implementation, the four fitting points include the first left fitting point, the second left fitting point, the third left fitting point, and the fourth left fitting point, where:
[0258] The first left fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first left fitting point are (0,0).
[0259] The fourth fitting point from the left is the discrete point corresponding to the second largest coordinate along the X-axis in the first data queue. The coordinates of the fourth fitting point from the left are: ;
[0260] The coordinates of the second fitting point on the left are ;
[0261] The coordinates of the third fitting point on the left are ;
[0262] in, and The condition is satisfied that the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue is minimized.
[0263] In one possible implementation, any point on the first Bézier curve satisfies:
[0264]
[0265] in, Let be the curve parameter at any point on the first Bézier curve. , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the first data queue. , For the first Bézier curve in The coordinates at that location along the Y direction.
[0266] In one possible implementation, the vehicle's lane centerline satisfies:
[0267]
[0268] in, This is the center line of the vehicle's lane. For the first Bézier curve, This is the second Bézier curve.
[0269] In one possible implementation, the determining module 12 is specifically used for:
[0270] Based on the curvature of the vehicle's lane centerline and its longitudinal speed, the target preview time is determined, and the target preview time satisfies the following: ,in, Pre-aiming time for the target This is the aiming time correction factor determined based on the longitudinal vehicle speed. The initial aiming time is determined based on the curvature of the vehicle's lane centerline;
[0271] Based on the aiming time and longitudinal vehicle speed, the aiming distance is determined, and the aiming distance satisfies the following: ,in, For the pre-aiming distance, This refers to the longitudinal speed of the vehicle.
[0272] Based on the aiming distance, determine the lateral deviation of the aiming point relative to the vehicle's lane centerline. The aiming point is a point on the vehicle's lane centerline that is at a longitudinal distance from the vehicle equal to the aiming distance.
[0273] Based on the lateral deviation, longitudinal vehicle speed, and target aiming time, the desired yaw rate is determined, and the desired yaw rate satisfies: ,in, For the desired yaw rate, This is the lateral deviation;
[0274] Determine the target steering wheel angle based on the desired yaw rate.
[0275] In one possible implementation, the lateral deviation satisfies:
[0276]
[0277] in, For lateral deviation, For the first Bézier curve in The coordinates at that location along the Y direction are... For the pre-aiming distance, The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. For the second Bézier curve in The coordinates at that location along the Y direction are... It is the vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue.
[0278] In one possible implementation, the target steering wheel angle satisfies:
[0279]
[0280] in, For the target steering wheel angle, The proportionality coefficient is determined based on the vehicle's dynamic characteristics. For the desired yaw rate, This refers to the vehicle's actual yaw rate. The integral time coefficient is determined based on the vehicle dynamics characteristics. The differential time coefficient is determined based on the vehicle's dynamic characteristics.
[0281] The lane keeping device provided in this embodiment can perform the lane keeping method shown in any of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0282] Figure 5This is a structural schematic diagram of a lane-keeping device provided in this application. Figure 5 As shown, the lane keeping device 20 may include a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can communicate; for example, the processor 21 and the memory 22 communicate via a communication bus 23, the memory 22 is used to store computer execution instructions, and the processor 21 is used to call the computer execution instructions in the memory to execute the method shown in any of the above method embodiments.
[0283] Optionally, the lane keeping device 20 may also include a communication interface, which may include a transmitter and / or a receiver.
[0284] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0285] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0286] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0287] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method shown in any of the above-described method embodiments.
[0288] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method shown in any of the above-described method embodiments.
[0289] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0290] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0291] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0292] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0293] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0294] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0295] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0296] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A lane keeping method characterized by, include: The vehicle's motion state information and lane perception information from multiple frames are acquired. The motion state information includes longitudinal vehicle speed and yaw rate. The multiple frames include the current frame and at least one historical frame that is continuous with the current frame. The lane perception information is used to indicate the features of the lane lines collected in the corresponding frame. Based on the motion state information and the lane perception information of the multiple frames, a first Bézier curve corresponding to the left lane line and a second Bézier curve corresponding to the right lane line are determined. The first Bézier curve is used to indicate the geometry of the left lane line, and the second Bézier curve is used to indicate the geometry of the right lane line. The lane centerline of the vehicle is determined based on the first Bézier curve and the second Bézier curve, and the lane centerline is used to indicate the desired path of the vehicle. Based on the lane centerline of the vehicle, a target steering wheel angle is determined, which is used to bring the lateral position of the vehicle closer to the lane centerline. The target steering wheel angle is sent to the vehicle's steering actuator.
2. The method of claim 1, wherein, Based on the motion state information and the lane perception information of the multiple frames, the first Bézier curve corresponding to the left lane line and the second Bézier curve corresponding to the right lane line are determined, including: Based on the lane perception information of the multiple frames, the lane lines collected in the multiple frames are discretized to obtain the first coordinates of at least one discrete point corresponding to each frame. Based on the motion state information, each first coordinate is converted into a second coordinate in the coordinate system of the current frame, resulting in multiple second coordinates. The origin of the coordinate system of the current frame is the center point of the front axle of the vehicle corresponding to the current frame, the positive direction of the X-axis is the direction the vehicle is facing, and the positive direction of the Y-axis is the direction from the center point of the front axle to the center of the left wheel of the front axle. The coordinates corresponding to the left lane line in the plurality of second coordinates are stored in the first data queue, and the coordinates corresponding to the right lane line in the plurality of second coordinates are stored in the second data queue; The first Bézier curve is determined based on the first data queue; The second Bézier curve is determined based on the second data queue.
3. The method according to claim 2, characterized in that, For the first frame before the current frame Frame, the first The second coordinate of any discrete point corresponding to the frame satisfies: in, Let be the value of the second coordinate along the X-axis. The value of the second coordinate along the Y-axis direction. The time interval between two adjacent frames. The yaw rate is angular velocity. For longitudinal vehicle speed, , The first coordinate corresponding to the second coordinate. It is an integer greater than or equal to 0.
4. The method according to claim 2 or 3, characterized in that, The lane perception information for each of the multiple frames includes: the confidence level of the corresponding frame, which indicates the confidence level of the lane line collected in the corresponding frame; and determining the first Bézier curve based on the first data queue, including: Based on the confidence level of each frame in the plurality of frames, determine the weight coefficient corresponding to each second coordinate in the first data queue; Based on the weight coefficients of the discrete points corresponding to each second coordinate, and each second coordinate, determine the coordinates of the four fitting points of the first Bézier curve; The first Bézier curve is determined based on the coordinates of the four fitting points.
5. The method according to claim 4, characterized in that, The four fitting points include the first left fitting point, the second left fitting point, the third left fitting point, and the fourth left fitting point, wherein: The first left fitting point is the origin of the coordinate system of the current frame, and the coordinates of the first left fitting point are (0,0). The fourth left fitting point is the discrete point in the first data queue corresponding to the second coordinate with the largest value along the X-axis. The coordinates of the fourth left fitting point are: ; The coordinates of the second left fitting point are: ; The coordinates of the third fitting point on the left are: ; in, and Satisfy the following condition: minimize the error between the first Bézier curve and the Y-axis direction of the discrete points corresponding to each of the second coordinates included in the first data queue.
6. The method according to claim 5, characterized in that, Any point on the first Bézier curve satisfies: in, Let be the curve parameter at any point on the first Bézier curve. , Let be the value of the second coordinate of any point on the first Bézier curve along the X-axis. Take 1, 2... , The total number of second coordinates included in the first data queue. , For the first Bézier curve in The coordinates at that location along the Y direction.
7. The method according to any one of claims 1 to 6, wherein the lane centerline of the vehicle satisfies: in, The lane centerline of the vehicle. Let be the first Bézier curve. This is the second Bézier curve.
8. The method according to any one of claims 1 to 7, characterized in that, Determine the target steering wheel angle based on the vehicle's lane centerline, including: Based on the curvature of the vehicle's lane centerline and the longitudinal vehicle speed, the target preview time is determined, wherein the target preview time satisfies: ,in, The target aiming time is [time]. This is the aiming time correction coefficient determined based on the longitudinal vehicle speed. The initial aiming time is determined based on the curvature of the lane centerline of the vehicle; Based on the aiming time and the longitudinal vehicle speed, the aiming distance is determined, and the aiming distance satisfies: ,in, The pre-aiming distance, The longitudinal vehicle speed; Based on the pre-aiming distance, the lateral deviation of the pre-aiming point relative to the lane centerline of the vehicle is determined. The pre-aiming point is a point on the lane centerline of the vehicle that is at a longitudinal distance from the vehicle equal to the pre-aiming distance. Based on the lateral deviation, the longitudinal vehicle speed, and the target aiming time, the desired yaw rate is determined, and the desired yaw rate satisfies: ,in, The desired yaw rate, The lateral deviation; The target steering wheel angle is determined based on the desired yaw rate.
9. The method according to claim 8, characterized in that, The lateral deviation satisfies: in, The lateral deviation is mentioned. For the first Bézier curve in The coordinates at that location along the Y direction are... The pre-aiming distance, The vertical coordinate of the second coordinate with the largest value along the X-axis in the first data queue. For the second Bézier curve in The coordinates at that location along the Y direction are... It is the vertical coordinate of the second coordinate with the largest value along the X-axis in the second data queue.
10. The method according to claim 8 or 9, characterized in that, The target steering wheel angle satisfies: in, The target steering wheel angle, The proportionality coefficient is determined based on the vehicle's dynamic characteristics. The desired yaw rate, This refers to the vehicle's actual yaw rate. The integral time coefficient is determined based on the vehicle dynamics characteristics. The differential time coefficient is determined based on the vehicle's dynamic characteristics.
11. A lane keeping device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-10.
13. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-10.
