Planning method, planning device and equipment for lane centering path and medium
By converting the vehicle state into a Frenet coordinate system and performing point sampling to generate a path in the autonomous driving system, the problems of high hardware calculation and low path accuracy in the existing technology are solved, and more efficient and safer lane-centered path planning is achieved. .
Patent Information
- Application Number
- CN202410858642.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
The existing lane centering path planning algorithm requires high hardware computing power and the accuracy of the optimal path is not high, making it difficult for autonomous vehicles to accurately drive along the lane centerline during driving, affecting safety.
By determining the current status of the vehicle, perform coordinate transformation from the Cartesian coordinate system to the Frenet coordinate system, use longitudinal and transverse point sampling to generate the desired path, and obtain the target planned path in the Cartesian coordinate system through inverse coordinate transformation to ensure path planning. accuracy and efficiency.
It improves the accuracy and efficiency of autonomous driving lane centering path planning, increases the safety of autonomous driving, reduces hardware computing requirements, and meets the performance requirements of on-board computing.
Smart Images

Figure CN118730153A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile autonomous driving technology, and more specifically, to a lane centering path planning method, planning device, equipment and medium. Background Art
[0002] With the development of science and technology, self-driving cars are becoming more and more common in our lives. In self-driving technology, lane centering path planning is required to make the self-driving vehicle drive smoothly and accurately along the center line of the lane. Therefore, the research on lateral motion planning of self-driving vehicles is the core technology of self-driving.
[0003] The current mainstream algorithm for lane centering path planning is based on sampling methods. In order to cover all possible vehicle paths, this method needs to generate hundreds of paths and screen them under constraints such as vehicle kinematics and collisions to obtain the optimal centering trajectory. The entire process requires high hardware computing power, resulting in the need for intelligent driving systems to use more expensive processors, and the accuracy of the optimal path finally screened is not high. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a lane centering path planning method, planning device, equipment and medium, which improves the accuracy and efficiency of lane centering path planning for autonomous driving and increases the safety of autonomous driving. In addition, the planning method provided by this application has high computational efficiency and low hardware requirements, and can meet the performance requirements of vehicle-mounted computing.
[0005] In a first aspect, an embodiment of the present application provides a method for planning a lane centering path, the planning method comprising:
[0006] Determine the current state of the vehicle, determine a planning starting point for lane centering path planning based on the current state, and perform coordinate transformation on the planning starting point in a Cartesian coordinate system to determine a target starting point in a Frenet coordinate system;
[0007] Taking the target starting point as a reference, longitudinal point sampling and transverse point sampling are performed respectively to obtain the expected path in the Frenet coordinate system;
[0008] The coordinates of the path starting point are inversely transformed by using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and the target planned path in the Cartesian coordinate system is determined based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
[0009] Further, the current state includes an initial state, a replanning state, and a path splicing state; and determining the current state of the vehicle includes:
[0010] When the vehicle starts to perform path planning, or when the stability of the center line of the lane of the current driving road of the vehicle deteriorates, determining the current state of the vehicle as the initial state;
[0011] When the lateral deviation of the vehicle is greater than or equal to a first deviation threshold, or the heading deviation of the vehicle is greater than or equal to a second deviation threshold, determining that the current state of the vehicle is a replanning state;
[0012] When the state of the vehicle at the previous moment is a path following state, and the remaining distance of the following path in the path following state is less than or equal to a distance threshold, it is determined that the current state of the vehicle is a path splicing state.
[0013] Further, determining a planning starting point for lane centering path planning based on the current state includes:
[0014] When the current state of the vehicle is an initial state or a re-planning state, taking the current position of the vehicle as the planning starting point;
[0015] When the current state of the vehicle is a path splicing state, the end point of the following path is used as the planning starting point.
[0016] Furthermore, taking the target starting point as a reference, performing longitudinal point sampling and transverse point sampling respectively to obtain an expected path in a Frenet coordinate system includes:
[0017] Performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path;
[0018] The end point of the first path is used as a reference to perform coarse lateral sampling and fine lateral sampling, and the starting point of the first path and the sampling points obtained by performing coarse lateral sampling and fine lateral sampling are used to perform path fitting to obtain the expected path.
[0019] Furthermore, the method of performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and the sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path includes:
[0020] Dividing a plurality of time points based on a preset planned time interval, and determining a plurality of fitting end points based on the position coordinate points of the vehicle at each time point;
[0021] For each fitting end point, fitting a first fitting path based on the target starting point and the fitting end point;
[0022] Calculating a first evaluation value of the first fitting path under each evaluation index, and taking a weighted sum of multiple first evaluation values as a first total evaluation value of the first fitting path;
[0023] taking the first fitting path corresponding to the smallest first total evaluation value among the plurality of first total evaluation values as the second fitting path;
[0024] Taking the end point of the second fitting path as a reference, longitudinal point sampling is performed to obtain a plurality of first sampling points;
[0025] For each first sampling point, fitting a third fitting path based on the starting point of the second fitting path and the first sampling point;
[0026] Calculating a second evaluation value of the third fitting path under each evaluation index, and taking a weighted sum of the plurality of second evaluation values as a second total evaluation value of the third fitting path;
[0027] The third fitting path corresponding to the smallest second total evaluation value among the plurality of second total evaluation values is used as the first path.
[0028] Furthermore, the step of performing horizontal coarse sampling and horizontal fine sampling based on the end point of the first path, and performing path fitting using the starting point of the first path and the sampling points obtained by performing horizontal coarse sampling and horizontal fine sampling to obtain the expected path includes:
[0029] Taking the end point of the first path as a reference, performing horizontal coarse sampling according to the first horizontal distance interval to obtain a plurality of second sampling points;
[0030] For each second sampling point, fitting a fourth fitting path based on the starting point of the first path and the second sampling point;
[0031] Calculating a third evaluation value of the fourth fitting path under each evaluation index, and taking a weighted sum of the plurality of third evaluation values as a third total evaluation value of the fourth fitting path;
[0032] taking the fourth fitting path corresponding to the smallest third total evaluation value among the plurality of third total evaluation values as the fifth fitting path;
[0033] Taking the end point of the fifth fitting path as a reference, performing transverse fine sampling according to the second transverse distance interval to obtain a plurality of third sampling points;
[0034] For each third sampling point, fitting a sixth fitting path based on the starting point of the fifth fitting path and the third sampling point;
[0035] Calculating a fourth evaluation value of the sixth fitting path under each evaluation index, and taking a weighted sum of a plurality of fourth evaluation values as the fourth evaluation value of the sixth fitting path;
[0036] The sixth fitting path corresponding to the smallest fourth total evaluation value among the plurality of fourth total evaluation values is taken as the expected path.
[0037] Furthermore, the evaluation indicators include planning time, maximum overshoot of lateral distance, integral of square of lateral velocity, excess of maximum lateral acceleration, integral of lateral jerk score and change of starting point lateral jerk.
[0038] In a second aspect, an embodiment of the present application further provides a lane centering path planning device, the planning device comprising:
[0039] A target starting point determination module is used to determine the current state of the vehicle, determine the planning starting point for lane centering path planning based on the current state, and perform coordinate transformation on the planning starting point in the Cartesian coordinate system to determine the target starting point in the Frenet coordinate system;
[0040] An expected path determination module is used to perform longitudinal point sampling and transverse point sampling respectively based on the target starting point to obtain an expected path in a Frenet coordinate system;
[0041] A path planning module is used to perform inverse coordinate transformation on the path starting point by using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and determine the target planned path in the Cartesian coordinate system based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
[0042] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the lane centering path planning method as described above are performed.
[0043] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the lane centering path planning method as described above are executed.
[0044] The embodiments of the present application provide a lane centering path planning method, planning device, equipment and medium. First, the current state of the vehicle is determined, and a planning starting point for lane centering path planning is determined based on the current state, and the planning starting point in the Cartesian coordinate system is transformed to determine the target starting point in the Frenet coordinate system; then, with the target starting point as a reference, longitudinal point sampling and transverse point sampling are performed to obtain the expected path in the Frenet coordinate system; finally, the path starting point is inversely transformed using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and the target planned path in the Cartesian coordinate system is determined based on the planned path starting point; wherein the target planned path is used to control the vehicle to center on the current driving road.
[0045] This application determines the planning starting point for lane centering path planning through the current state of the vehicle, and transforms the planning problem in the Cartesian coordinate system into a planning problem in the Frenet coordinate system. At the same time, when scattering the sampling path, longitudinal and transverse sampling is adopted to ensure the accuracy of the sampling. Finally, through the inverse coordinate transformation, the expected path in the Frenet coordinate system is converted into the target planning path in the Cartesian coordinate system. The accuracy and efficiency of the lane centering path planning of autonomous driving are improved, and the safety of autonomous driving is increased. In addition, the planning method provided by this application has high computational efficiency and low hardware requirements, and can meet the performance requirements of on-board computing.
[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flow chart of a lane centering path planning method provided in an embodiment of the present application;
[0049] Figure 2 A flowchart of a method for generating an expected path in a Frenet coordinate system provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of the structure of a lane centering path planning device provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0053] First, the application scenarios to which this application is applicable are introduced. This application can be applied in the field of automobile autonomous driving technology.
[0054] With the development of science and technology, self-driving cars are becoming more and more common in our lives. In self-driving technology, lane centering path planning is required to make the self-driving vehicle drive smoothly and accurately along the center line of the lane. Therefore, the research on lateral motion planning of self-driving vehicles is the core technology of self-driving.
[0055] Research has found that the current mainstream algorithm for lane centering path planning is based on a sampling method, which needs to generate hundreds of paths to cover all possible vehicle paths, and needs to be screened under constraints such as vehicle kinematics and collisions to obtain the optimal centering trajectory. The entire process requires high hardware computing power, resulting in the need for intelligent driving systems to use more expensive processors, and the accuracy of the optimal path ultimately screened is not high.
[0056] Based on this, an embodiment of the present application provides a lane centering path planning method, which improves the accuracy and efficiency of lane centering path planning for autonomous driving and increases the safety of autonomous driving.
[0057] See also Figure 1 , Figure 1 This is a flow chart of a lane centering path planning method provided in an embodiment of the present application. Figure 1 As shown in , the planning method provided by the embodiment of the present application includes:
[0058] S101, determining the current state of the vehicle, determining a planning starting point for lane centering path planning based on the current state, and performing coordinate transformation on the planning starting point in a Cartesian coordinate system to determine a target starting point in a Frenet coordinate system.
[0059] For the above step S101, in the specific implementation, first determine the current state of the vehicle, then determine the planning starting point for lane centering path planning based on the current state of the vehicle, and convert the planning starting point in the Cartesian coordinate system to the target starting point in the Frenet coordinate system.
[0060] Here, specifically, the starting point information of the planning starting point in the Cartesian coordinate system is (x x ,y x ,θ x , k x , v x , a x ). The projection point information of the planning starting point in the Cartesian coordinate system is (s r , x r ,y r ,θ r , k r ,dk r ), the definition of the projection point is as follows: Assuming there is a lane centerline (in the form of an n-order polynomial), and the starting point information is known, the projection point of the point can be found on the reference path, and the information of the projection point can be calculated. Among them: Among them: x x is the horizontal coordinate value in the Cartesian coordinate system, y x is the ordinate value in the Cartesian coordinate system, θ x is the heading angle of the starting point, k x is the curvature of the road at the starting point, v x is the longitudinal velocity at the starting point, a x is the longitudinal acceleration at the starting point, s r is the cumulative length from the starting point of the lane centerline to the projection point, dk r is the curvature change rate of the projection point. In this way, based on the starting point information of the planning starting point and the projection point information, the starting point information (l, l′, l") of the target starting point in the Frenet coordinate system can be determined. Among them: l is the horizontal coordinate in the Frenet coordinate system, l′ is the lateral velocity in the Frenet coordinate system, and l" is the lateral acceleration in the Frenet coordinate system. Since s=0 at this time, the starting point information of the target starting point in the Frenet coordinate system can be expressed as (l0, l′0, l″0). In this way, the path planning problem in the Cartesian coordinate system is transformed into a planning problem in the Frenet coordinate system.
[0061] Specifically, in the process of coordinate transformation, the projection point of the planned starting point on the center line of the lane is found, and then converted to the Frenet coordinate system. The calculation formula for its implementation is as follows:
[0062]
[0063] l′=(1-k r l)tan(θ x -θ r )
[0064]
[0065] According to the embodiment provided by the present application, the current state includes an initial state, a replanning state, and a path splicing state.
[0066] As an optional embodiment, with respect to the above step S101, determining the current state of the vehicle includes:
[0067] Step 1011, when the vehicle starts to perform path planning, or when the stability of the lane centerline of the current driving road of the vehicle deteriorates, determine that the current state of the vehicle is an initial state.
[0068] Regarding the above step 1011, in a specific implementation, when the vehicle starts to perform path planning, or when the stability of the lane centerline of the vehicle's current driving road deteriorates, the vehicle enters an initial state, and the current state of the vehicle is determined to be the initial state.
[0069] Step 1012: When the lateral deviation of the vehicle is greater than or equal to a first deviation threshold, or the heading deviation of the vehicle is greater than or equal to a second deviation threshold, determining that the current state of the vehicle is a replanning state.
[0070] For the above step 1012, in a specific implementation, when the lateral deviation of the vehicle is greater than or equal to the first deviation threshold, or the heading deviation of the vehicle is greater than or equal to the second deviation threshold, that is, when the lateral deviation or heading deviation of the vehicle is too large, the vehicle enters a replanning state, and determines that the current state of the vehicle is a replanning state.
[0071] Step 1013: when the state of the vehicle at the previous moment is a path following state, and the remaining distance of the following path in the path following state is less than or equal to a distance threshold, it is determined that the current state of the vehicle is a path splicing state.
[0072] For the above step 1013, in the specific implementation, when the vehicle's state at the previous moment is a path following state, and the remaining distance of the following path in the path following state is less than or equal to the distance threshold, for example, the remaining distance is less than or equal to 0.1 meters, the vehicle enters the path splicing state, and it is determined that the current state of the vehicle is the path splicing state.
[0073] Specifically, with respect to the above step S101, determining the planning starting point for lane centering path planning based on the current state includes:
[0074] When the current state of the vehicle is an initial state or a re-planning state, the current position of the vehicle is used as the planning starting point; when the current state of the vehicle is a path splicing state, the end point of the following path is used as the planning starting point.
[0075] For the above two steps, in the specific implementation, when the vehicle is in the initial state or the re-planning state, the current position of the vehicle is taken as the planning starting point, that is, the information of the current position (x x ,y x ,θ x ,k x ) as the planning starting point information, which is used as the input for path planning. When the vehicle is in the path splicing state, path splicing will be performed, using the point information on the previous planned path, and the end point of the following path will be used as the planning starting point.
[0076] S102, taking the target starting point as a reference, performing longitudinal point scattering sampling and transverse point scattering sampling respectively to obtain a desired path in a Frenet coordinate system.
[0077] Regarding the above step S102, in the specific implementation, after determining the target starting point in the Frenet coordinate system, the point-scattering sampling path is performed, which is specifically divided into two stages, namely, longitudinal point-scattering sampling and transverse point-scattering sampling. With the target starting point as a reference, longitudinal point-scattering sampling and transverse point-scattering sampling are performed respectively to obtain the expected path in the Frenet coordinate system.
[0078] See also Figure 2 , Figure 2 The following is a flow chart of a method for generating an expected path in a Frenet coordinate system provided in an embodiment of the present application. Figure 2 As shown, for the above step S102, taking the target starting point as a reference, performing longitudinal point scattering sampling and transverse point scattering sampling respectively to obtain the expected path in the Frenet coordinate system includes:
[0079] S201 , performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path.
[0080] Regarding the above step S201, in the specific implementation, longitudinal coarse sampling and longitudinal fine sampling are performed in sequence based on the target starting point to obtain sampling points, and the target starting point and the sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling are used to perform path fitting to obtain the first path.
[0081] Specifically, with respect to the above step S201, the longitudinal coarse sampling and longitudinal fine sampling are performed based on the target starting point, and the target starting point and the sampling points obtained by performing the longitudinal coarse sampling and longitudinal fine sampling are used to perform path fitting to obtain the first path, including:
[0082] A: Multiple time points are divided based on a preset planned time interval, and multiple fitting end points are determined based on the position coordinate points of the vehicle at each time point.
[0083] For the above step A, in the specific implementation, first divide multiple time points by the preset planning time interval. Here, assuming that the preset planning time interval is [5, 10] seconds, the preset planning time interval can be divided into 5 segments, and 6 time points are obtained, namely t = 5s, t = 6s, t = 7s, t = 8s, t = 9s and t = 10s. The fitting end point corresponds to the position coordinate point of the vehicle at each time point. The horizontal coordinate s of the position coordinate point end (t) = v*t, v is the vehicle speed, the ordinate of the position coordinate point l = 0, then the six fitting end points are expressed as (s end (t), 0), t=5, 6, 7, 8, 9, 10.
[0084] B: For each fitting end point, a first fitting path is fitted based on the target starting point and the fitting end point.
[0085] Regarding the above step B, during the specific implementation, for each fitting end point, the target starting point and the fitting end point are used to obtain a fifth-order polynomial of the first fitting path to fit the first fitting path.
[0086] Specifically, the fifth-order polynomial equation of the first fitting path is assumed to be:
[0087] l(s)=d0+d1*s+d2*s^2+d3*s^3+d4*s^4+d5*s^5
[0088] Among them, d0, d1, d2, d3, d4, and d5 are the coefficients of the quintic polynomial equation, l is the vertical axis in the Frenet coordinate system, which represents the lateral distance from the center line of the lane, and s is the horizontal axis in the Frenet coordinate system, which represents the distance traveled by the vehicle on the road.
[0089] The three state quantities of the known target starting point (when s=0) and the three state quantities of the fitting end point (s value of the sampling point, s_end) are respectively expressed by the following formulas:
[0090] Starting state quantity:
[0091] (1) l(s=0)=d0, i.e. d0=l0;
[0092] (2) dl(s=0)=d1, i.e. d1=l′0;
[0093] (3) ddl(s=0)=2*d2, i.e. d2=1"0 / 2;
[0094] Among them, l0, l′0, l″0 have been obtained in the coordinate transformation and are known quantities.
[0095] End state quantity:
[0096] (1) l(s=s end )=d0+d1*s end +d2*s end ^2+d3*s end ^3+d4*s end ^4+d5*s end ^5=d end ;
[0097] Among them, d end It is 0 when sampling vertically and it is the sampling offset when sampling horizontally.
[0098] (2)dl(s=s end )=d1+2*d2*s end +3*d3*s end ^2+4*d4*s end ^3+5*d5*s end ^4=0;
[0099] (3) ddl(s=s end )=2*d2+6*d3*s end +12*d4*s end ^2+20*d5*s end ^3=0.
[0100] According to the above starting state quantity and end state quantity, six equations can be obtained to find the six coefficients of the fifth-order polynomial, and the fifth-order polynomial of the first fitting path can be obtained. Specifically, the six coefficients are calculated by the following formulas:
[0101] (1) d0 = L0;
[0102] (2) d1 = l'0;
[0103] (3) d2 = l"0 / 2;
[0104] (4)d3=(10*d end -(10*d0+6*d1*s end +3*d2*s end ^2)) / s end ^3;
[0105] (5)d4=(-15*d end +15*d0+8*d1*s end +3*d2*s end ^2) / s end ^4;
[0106] (6)d5=[6*d end -(6*d0+3*d1*s end +d2*s end ^2)] / s end ^5.
[0107] C: Calculate the first evaluation value of the first fitting path under each evaluation index, and take the weighted sum of multiple first evaluation values as the first total evaluation value of the first fitting path.
[0108] D: taking the first fitting path corresponding to the smallest first total evaluation value among the multiple first total evaluation values as the second fitting path.
[0109] For the above steps C to D, in the specific implementation, after the first fitting distance is determined, the first evaluation value of the first fitting path under each evaluation index is calculated. Different evaluation indexes correspond to different weights, and the weighted sum of multiple first evaluation values is used as the first total evaluation value of the first fitting path. After the first total evaluation value of each first fitting path is calculated, the first fitting path corresponding to the smallest first total evaluation value among the multiple first total evaluation values is used as the second fitting path.
[0110] According to the embodiment provided by the present application, the evaluation indicators include planning time, maximum overshoot of lateral distance, integral of the square of lateral velocity, excess of maximum lateral acceleration, integral of lateral jerk score and change in starting point lateral jerk.
[0111] Specifically, under the planning time evaluation index, the longer the time, the greater the corresponding evaluation value. The evaluation time corresponding to the fitting path is the planning time corresponding to the interval section to which the end point used in the path fitting belongs. Here, as an example, continuing the above embodiment, when 6 time points are divided within the preset planning time interval [5,10] seconds, the planning time corresponding to the first fitting end point is 5s, the planning time corresponding to the second fitting end point is 6s, and so on. The maximum overshoot of the lateral distance ensures that the fitting path is as smooth as possible, so it is hoped that this amount is as small as possible. The integral of the square of the lateral velocity corresponds to the lateral cumulative distance. The smaller the value, the closer it is to the center line of the lane. The excess of the maximum lateral acceleration does not want the lateral acceleration of the vehicle to be too large at a certain moment. The integral of the square of the lateral jerk corresponds to the cumulative lateral acceleration, so it is hoped that the lateral acceleration of the vehicle during the following process is kept at a small value; the change in the lateral jerk at the starting point, the smaller the change in the lateral jerk at the initial point of the fitting path relative to the lateral jerk at the initial point of the path at the previous moment, the better.
[0112] E: Perform longitudinal point scattering sampling based on the end point of the second fitting path to obtain multiple first sampling points.
[0113] F: For each first sampling point, a third fitting path is fitted based on the starting point of the second fitting path and the first sampling point.
[0114] G: Calculate the second evaluation value of the third fitting path under each evaluation index, and take the weighted sum of multiple second evaluation values as the second total evaluation value of the third fitting path.
[0115] H: taking the third fitting path corresponding to the smallest second total evaluation value among the plurality of second total evaluation values as the first path.
[0116] For the above steps E to H, in the specific implementation, after obtaining the second fitting path, the end point of the second fitting path is used as the reference for longitudinal point sampling, and multiple points are evenly spaced forward and backward as the first sampling points. For each first sampling point, a third fitting path is fitted based on the starting point of the second fitting path and the first sampling point, and the second evaluation value of the third fitting path under each evaluation index is calculated at the same time, and the weighted sum of multiple second evaluation values is used as the second total evaluation value of the third fitting path. After the second total evaluation value of each third fitting path is calculated, the third fitting path corresponding to the smallest second total evaluation value among the multiple second total evaluation values is used as the first path.
[0117] S202, performing horizontal coarse sampling and horizontal fine sampling based on the end point of the first path as a reference, and performing path fitting using the starting point of the first path and the sampling points obtained by performing the horizontal coarse sampling and horizontal fine sampling to obtain the expected path.
[0118] For the above step S202, in the specific implementation, after the first path is obtained, horizontal coarse sampling and horizontal fine sampling are performed based on the end point of the first path to obtain sampling points, and the starting point of the first path and the sampling points obtained by performing horizontal coarse sampling and horizontal fine sampling are used to perform path fitting to obtain the expected path.
[0119] Specifically, with respect to the above step S202, the step of performing horizontal coarse sampling and horizontal fine sampling based on the end point of the first path as a reference, and performing path fitting using the starting point of the first path and the sampling points obtained by performing horizontal coarse sampling and horizontal fine sampling to obtain the expected path includes:
[0120] I: Taking the end point of the first path as a reference, performing horizontal coarse sampling according to a first horizontal distance interval to obtain a plurality of second sampling points.
[0121] II: For each second sampling point, a fourth fitting path is fitted based on the starting point of the first path and the second sampling point.
[0122] III: Calculate the third evaluation value of the fourth fitting path under each evaluation index, and take the weighted sum of multiple third evaluation values as the third total evaluation value of the fourth fitting path.
[0123] IV: taking the fourth fitting path corresponding to the smallest third total evaluation value among the plurality of third total evaluation values as the fifth fitting path.
[0124] For the above steps I to IV, in the specific implementation, the end point of the first path is taken as the reference, divided according to the first horizontal distance interval, and rough horizontal sampling is performed according to the first horizontal distance interval. For example, the first horizontal distance interval can be 0.8 meters, and the sampling is performed with a horizontal offset of 0.8m to the left and right of the end point of the first path. This application does not make specific restrictions. Multiple second sampling points can be obtained. For each second sampling point, a fourth fitting path is fitted based on the starting point of the first path and the second sampling point, and the third evaluation value of the fourth fitting path under each evaluation index is calculated at the same time, and the weighted sum of the multiple third evaluation values is used as the third total evaluation value of the fourth fitting path. After the third total evaluation value of each fourth fitting path is calculated, the fourth fitting path corresponding to the smallest third total evaluation value among the multiple third total evaluation values is used as the fifth fitting path.
[0125] V: Taking the end point of the fifth fitting path as a reference, performing horizontal fine sampling according to the second horizontal distance interval to obtain a plurality of third sampling points.
[0126] VI: For each third sampling point, a sixth fitting path is fitted based on the starting point of the fifth fitting path and the third sampling point.
[0127] VII: Calculate the fourth evaluation value of the sixth fitting path under each evaluation index, and take the weighted sum of multiple fourth evaluation values as the fourth evaluation value of the sixth fitting path.
[0128] VIII: taking the sixth fitting path corresponding to the smallest fourth total evaluation value among the plurality of fourth total evaluation values as the expected path.
[0129] For the above steps V to VIII, in the specific implementation, after obtaining the fifth fitting path, the end point of the fifth fitting path is used as the reference for horizontal point sampling, and multiple points are evenly spaced to the left and right as the third sampling points. For each third sampling point, a sixth fitting path is fitted based on the starting point of the fifth fitting path and the third sampling point, and the fourth evaluation value of the sixth fitting path under each evaluation index is calculated, and the weighted sum of the multiple fourth evaluation values is used as the fourth total evaluation value of the sixth fitting path. After the fourth total evaluation value of each sixth fitting path is calculated, the sixth fitting path corresponding to the smallest fourth total evaluation value among the multiple fourth total evaluation values is used as the expected path.
[0130] S103, using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system, the coordinates of the path starting point are inversely transformed to obtain the planned path starting point in the Cartesian coordinate system, and based on the planned path starting point, the target planned path in the Cartesian coordinate system is determined.
[0131] Since the expected path is in the Frenet coordinate system, the planned path in the Frenet coordinate system cannot be directly used for path tracking control, and needs to be further converted into a planned path in the Cartesian coordinate system. For the above step S103, in the specific implementation, the starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system are used to perform an inverse coordinate transformation on the starting point of the path to obtain the starting point of the planned path in the Cartesian coordinate system, and the target planned path in the Cartesian coordinate system is determined based on the starting point of the planned path. Specifically, in the Frenet coordinate system, the information of the starting point of the expected path includes: l, l′, l″, l″′. Among them, the cumulative value of the speed multiplied by the time is the s value, which is substituted into the quintic polynomial of the expected path to obtain the above information. The projection point information of the starting point of the expected path in the Cartesian coordinate system includes: y r ,θ r , k r ,dk r. Let x = 0 and substitute it into the lane centerline curve equation to obtain the above projection point information. Based on the information of the expected path starting point and the projection point information of the expected path starting point, the information of the planned path starting point in the Cartesian coordinate system can be determined, including: x x ,y x ,θ x , k x ,dk x , which can then be further converted into the target planning path in the Cartesian coordinate system.
[0132] Specifically, the calculation formula for the inverse coordinate transformation is as follows:
[0133] x x =x r -l*sinθ r
[0134] y x =y r +l*cosθ r
[0135]
[0136]
[0137]
[0138] Among them, the specific calculation formulas of A, A′, B, B′, C, and C′ are described in detail in the prior art and will not be repeated here.
[0139] After the coordinates are inversely transformed according to the above calculation formula to obtain the starting point of the planned path in the Cartesian coordinate system, it is further converted into a cubic polynomial in the Cartesian coordinate system to determine the target planned path in the Cartesian coordinate system. This is the final result of the path planning. The target planned path is used to control the vehicle to drive in the center of the current driving road. Specifically, the coefficients in the cubic polynomial are calculated using the following formula:
[0140] A0=y x
[0141] A1=arctanθ x
[0142]
[0143]
[0144] The lane centering path planning method provided in the embodiment of the present application first determines the current state of the vehicle, determines the planning starting point for lane centering path planning based on the current state, and performs coordinate transformation on the planning starting point in the Cartesian coordinate system to determine the target starting point in the Frenet coordinate system; then, based on the target starting point, longitudinal point scattering sampling and transverse point scattering sampling are performed respectively to obtain the expected path in the Frenet coordinate system; finally, the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system are used to perform coordinate inverse transformation on the path starting point to obtain the planned path starting point in the Cartesian coordinate system, and the target planned path in the Cartesian coordinate system is determined based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
[0145] This application determines the planning starting point for lane centering path planning through the current state of the vehicle, and transforms the planning problem in the Cartesian coordinate system into a planning problem in the Frenet coordinate system. At the same time, when scattering the sampling path, longitudinal and transverse sampling is adopted to ensure the accuracy of the sampling. Finally, through the inverse coordinate transformation, the expected path in the Frenet coordinate system is converted into the target planning path in the Cartesian coordinate system. The accuracy and efficiency of the lane centering path planning of autonomous driving are improved, and the safety of autonomous driving is increased. In addition, the planning method provided by this application has high computational efficiency and low hardware requirements, and can meet the performance requirements of on-board computing.
[0146] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of a lane centering path planning device provided in an embodiment of the present application. Figure 3 As shown in , the planning device 300 includes:
[0147] The target starting point determination module 301 is used to determine the current state of the vehicle, determine the planning starting point for lane centering path planning based on the current state, and perform coordinate transformation on the planning starting point in the Cartesian coordinate system to determine the target starting point in the Frenet coordinate system;
[0148] The expected path determination module 302 is used to perform longitudinal point sampling and transverse point sampling respectively based on the target starting point to obtain the expected path in the Frenet coordinate system;
[0149] The path planning module 303 is used to perform inverse coordinate transformation on the path starting point using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and determine the target planned path in the Cartesian coordinate system based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
[0150] Further, the current state includes an initial state, a replanning state, and a path splicing state; when the target starting point determination module 301 is used to determine the current state of the vehicle, the target starting point determination module 301 is also used to:
[0151] When the vehicle starts to perform path planning, or when the stability of the center line of the lane of the current driving road of the vehicle deteriorates, determining the current state of the vehicle as the initial state;
[0152] When the lateral deviation of the vehicle is greater than or equal to a first deviation threshold, or the heading deviation of the vehicle is greater than or equal to a second deviation threshold, determining that the current state of the vehicle is a replanning state;
[0153] When the state of the vehicle at the previous moment is a path following state, and the remaining distance of the following path in the path following state is less than or equal to a distance threshold, it is determined that the current state of the vehicle is a path splicing state.
[0154] Further, when the target starting point determination module 301 is used to determine the planning starting point for lane centering path planning based on the current state, the target starting point determination module 301 is also used to:
[0155] When the current state of the vehicle is an initial state or a re-planning state, taking the current position of the vehicle as the planning starting point;
[0156] When the current state of the vehicle is a path splicing state, the end point of the following path is used as the planning starting point.
[0157] Further, when the expected path determination module 302 is used to perform longitudinal point sampling and transverse point sampling respectively based on the target starting point to obtain the expected path in the Frenet coordinate system, the expected path determination module 302 is also used to:
[0158] Performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path;
[0159] The end point of the first path is used as a reference to perform coarse lateral sampling and fine lateral sampling, and the starting point of the first path and the sampling points obtained by performing coarse lateral sampling and fine lateral sampling are used to perform path fitting to obtain the expected path.
[0160] Further, when the expected path determination module 302 is used to perform longitudinal coarse sampling and longitudinal fine sampling based on the target starting point and use the target starting point and the sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to perform path fitting to obtain the first path, the expected path determination module 302 is also used to:
[0161] Dividing a plurality of time points based on a preset planned time interval, and determining a plurality of fitting end points based on the position coordinate points of the vehicle at each time point;
[0162] For each fitting end point, fitting a first fitting path based on the target starting point and the fitting end point;
[0163] Calculating a first evaluation value of the first fitting path under each evaluation index, and taking a weighted sum of multiple first evaluation values as a first total evaluation value of the first fitting path;
[0164] taking the first fitting path corresponding to the smallest first total evaluation value among the plurality of first total evaluation values as the second fitting path;
[0165] Taking the end point of the second fitting path as a reference, longitudinal point sampling is performed to obtain a plurality of first sampling points;
[0166] For each first sampling point, fitting a third fitting path based on the starting point of the second fitting path and the first sampling point;
[0167] Calculating a second evaluation value of the third fitting path under each evaluation index, and taking a weighted sum of the plurality of second evaluation values as a second total evaluation value of the third fitting path;
[0168] The third fitting path corresponding to the smallest second total evaluation value among the plurality of second total evaluation values is used as the first path.
[0169] Further, when the expected path determination module 302 is used to perform horizontal coarse sampling and horizontal fine sampling based on the end point of the first path, and use the starting point of the first path and the sampling points obtained by performing horizontal coarse sampling and horizontal fine sampling to perform path fitting to obtain the expected path, the expected path determination module 302 is also used to:
[0170] Taking the end point of the first path as a reference, performing horizontal coarse sampling according to the first horizontal distance interval to obtain a plurality of second sampling points;
[0171] For each second sampling point, fitting a fourth fitting path based on the starting point of the first path and the second sampling point;
[0172] Calculating a third evaluation value of the fourth fitting path under each evaluation index, and taking a weighted sum of the plurality of third evaluation values as a third total evaluation value of the fourth fitting path;
[0173] taking the fourth fitting path corresponding to the smallest third total evaluation value among the plurality of third total evaluation values as the fifth fitting path;
[0174] Taking the end point of the fifth fitting path as a reference, performing transverse fine sampling according to the second transverse distance interval to obtain a plurality of third sampling points;
[0175] For each third sampling point, fitting a sixth fitting path based on the starting point of the fifth fitting path and the third sampling point;
[0176] Calculating a fourth evaluation value of the sixth fitting path under each evaluation index, and taking a weighted sum of a plurality of fourth evaluation values as the fourth evaluation value of the sixth fitting path;
[0177] The sixth fitting path corresponding to the smallest fourth total evaluation value among the plurality of fourth total evaluation values is taken as the expected path.
[0178] Furthermore, the evaluation indicators include planning time, maximum overshoot of lateral distance, integral of square of lateral velocity, excess of maximum lateral acceleration, integral of lateral jerk score and change of starting point lateral jerk.
[0179] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0180] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of the lane centering path planning method in the illustrated method embodiment and the specific implementation method thereof can be referred to the method embodiment, which will not be described in detail here.
[0181] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1The steps of the lane centering path planning method in the illustrated method embodiment and the specific implementation method thereof can be referred to the method embodiment, which will not be described in detail here.
[0182] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0183] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0186] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0187] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0188] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A lane centering path planning method, It is characterized in that The planning method includes: Determine the current state of the vehicle, determine a planning starting point for lane centering path planning based on the current state, and perform coordinate transformation on the planning starting point in a Cartesian coordinate system to determine a target starting point in a Frenet coordinate system; Taking the target starting point as a reference, longitudinal point sampling and transverse point sampling are performed respectively to obtain the expected path in the Frenet coordinate system; The coordinates of the path starting point are inversely transformed by using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and the target planned path in the Cartesian coordinate system is determined based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
2. The planning method according to claim 1, It is characterized in that The current state includes an initial state, a replanning state, and a path splicing state; and determining the current state of the vehicle includes: When the vehicle starts to perform path planning, or when the stability of the center line of the lane of the current driving road of the vehicle deteriorates, determining the current state of the vehicle as the initial state; When the lateral deviation of the vehicle is greater than or equal to a first deviation threshold, or the heading deviation of the vehicle is greater than or equal to a second deviation threshold, determining that the current state of the vehicle is a replanning state; When the state of the vehicle at the previous moment is a path following state, and the remaining distance of the following path in the path following state is less than or equal to a distance threshold, it is determined that the current state of the vehicle is a path splicing state.
3. The planning method according to claim 2, It is characterized in that The determining a planning starting point for lane centering path planning based on the current state includes: When the current state of the vehicle is an initial state or a re-planning state, taking the current position of the vehicle as the planning starting point; When the current state of the vehicle is a path splicing state, the end point of the following path is used as the planning starting point.
4. The planning method according to claim 1, It is characterized in that The method of taking the target starting point as a reference, performing longitudinal point sampling and transverse point sampling respectively to obtain an expected path in a Frenet coordinate system includes: Performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path; The end point of the first path is used as a reference to perform coarse lateral sampling and fine lateral sampling, and the starting point of the first path and the sampling points obtained by performing coarse lateral sampling and fine lateral sampling are used to perform path fitting to obtain the expected path.
5. The planning method according to claim 4, It is characterized in that The method of performing longitudinal coarse sampling and longitudinal fine sampling based on the target starting point as a reference, and performing path fitting using the target starting point and sampling points obtained by performing longitudinal coarse sampling and longitudinal fine sampling to obtain a first path includes: Dividing a plurality of time points based on a preset planned time interval, and determining a plurality of fitting end points based on the position coordinate points of the vehicle at each time point; For each fitting end point, fitting a first fitting path based on the target starting point and the fitting end point; Calculating a first evaluation value of the first fitting path under each evaluation index, and taking a weighted sum of multiple first evaluation values as a first total evaluation value of the first fitting path; taking the first fitting path corresponding to the smallest first total evaluation value among the plurality of first total evaluation values as the second fitting path; Taking the end point of the second fitting path as a reference, longitudinal point sampling is performed to obtain a plurality of first sampling points; For each first sampling point, fitting a third fitting path based on the starting point of the second fitting path and the first sampling point; Calculating a second evaluation value of the third fitting path under each evaluation index, and taking a weighted sum of the plurality of second evaluation values as a second total evaluation value of the third fitting path; The third fitting path corresponding to the smallest second total evaluation value among the plurality of second total evaluation values is used as the first path.
6. The planning method according to claim 4, It is characterized in that The method of performing horizontal coarse sampling and horizontal fine sampling based on the end point of the first path, and performing path fitting using the starting point of the first path and the sampling points obtained by performing horizontal coarse sampling and horizontal fine sampling to obtain the expected path includes: Taking the end point of the first path as a reference, performing horizontal coarse sampling according to the first horizontal distance interval to obtain a plurality of second sampling points; For each second sampling point, fitting a fourth fitting path based on the starting point of the first path and the second sampling point; Calculating a third evaluation value of the fourth fitting path under each evaluation index, and taking a weighted sum of the plurality of third evaluation values as a third total evaluation value of the fourth fitting path; taking the fourth fitting path corresponding to the smallest third total evaluation value among the plurality of third total evaluation values as the fifth fitting path; Taking the end point of the fifth fitting path as a reference, performing transverse fine sampling according to the second transverse distance interval to obtain a plurality of third sampling points; For each third sampling point, fitting a sixth fitting path based on the starting point of the fifth fitting path and the third sampling point; Calculating a fourth evaluation value of the sixth fitting path under each evaluation index, and taking a weighted sum of a plurality of fourth evaluation values as the fourth evaluation value of the sixth fitting path; The sixth fitting path corresponding to the smallest fourth total evaluation value among the plurality of fourth total evaluation values is taken as the expected path.
7. The planning method according to claim 5 or 6, It is characterized in that The evaluation indicators include planning time, maximum overshoot of lateral distance, integral of square of lateral velocity, excess of maximum lateral acceleration, integral of lateral jerk score and change of starting point lateral jerk.
8. A lane centering path planning device, It is characterized in that The planning device comprises: A target starting point determination module is used to determine the current state of the vehicle, determine the planning starting point for lane centering path planning based on the current state, and perform coordinate transformation on the planning starting point in the Cartesian coordinate system to determine the target starting point in the Frenet coordinate system; An expected path determination module is used to perform longitudinal point sampling and transverse point sampling respectively based on the target starting point to obtain an expected path in a Frenet coordinate system; A path planning module is used to perform inverse coordinate transformation on the path starting point by using the expected path starting point of the expected path in the Frenet coordinate system and the projection point information of the expected path starting point in the Cartesian coordinate system to obtain the planned path starting point in the Cartesian coordinate system, and determine the target planned path in the Cartesian coordinate system based on the planned path starting point; wherein the target planned path is used to control the vehicle to drive in the center of the current driving road.
9. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the lane centering path planning method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lane centering path planning method as described in any one of claims 1 to 7 are executed.
