A path planning method and device

By clearly performing different polynomial smoothing processes on the changing road sections and other road sections in the initial path in the path planning, the problems of low efficiency and poor accuracy of path planning in the existing technology are solved, and efficient and optimized trajectories can be generated in complex environments. .

CN118293946BActive Publication Date: 2024-08-23BEIJING SAIMO TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410725795.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-23
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing path planning methods are difficult to generate trajectories that satisfy all constraints in complex environments, and are especially difficult to adapt to rapid changes in multiple dynamic obstacle scenarios. Moreover, geometry-based methods usually do not include an explicit optimization process, resulting in low efficiency of planning results. and poor accuracy.

Method used

By planning the initial path from the preset starting road point to the preset ending road point, and clarifying the changing road sections and other road sections, smoothing the paths is performed respectively, and using fifth-degree polynomials and cubic polynomials to perform smoothing on the changing road sections and other road sections. Smoothing processing to generate target planning path.

Benefits of technology

It improves the efficiency and accuracy of path planning, can generate trajectories that meet all constraints in complex environments, adapt to rapidly changing scenarios, and find the trajectory with the lowest cost or optimal performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118293946B
    Figure CN118293946B
Patent Text Reader

Abstract

The present application provides a path planning method and device, the path planning method comprising: obtaining a map where a preset starting road point and a preset ending road point are located, the map comprising multiple lanes and at least one road point corresponding to each lane; determining an initial planned path from the preset starting road point to the preset ending road point according to a preset driving direction of at least one road point on each lane; determining a road change segment and other road segments other than the road change segment of the initial planned path according to the lane where each road point in the initial planned path is located; performing path smoothing processing on the road change segment and the other road segments respectively, to obtain a target planned path from the preset starting road point to the preset ending road point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of path planning, and in particular to a path planning method and device. Background Art

[0002] In the existing path planning methods, the planned path is generated by analyzing the road topology and then smoothed. In complex environments, especially in scenes with multiple dynamic obstacles, geometry-based methods have difficulty in generating trajectories that satisfy all constraints and adapt to rapidly changing scenes. At the same time, geometry-based methods usually do not include explicit optimization processes, making it difficult to find the trajectory with the lowest cost or best performance. Solving optimization problems usually requires a large amount of computation, especially when considering complex environments and multiple constraints. It is not suitable for real-time use and relies on accurate modeling of vehicle dynamics and the environment. If the model is inaccurate, the planning results may be unreliable. In some cases, the optimization algorithm may only find a local optimal solution, rather than a global optimal solution. Summary of the invention

[0003] In view of this, the purpose of the present application is to at least provide a path planning method and device, by planning an initial planned path from a preset starting road point to a preset ending road point, and clarifying the road change sections and other sections in the initial planned path, and then performing path smoothing processing on the road change sections and other sections respectively, to obtain the final output target planned path, thereby solving the technical problem of low path planning efficiency caused by a single smoothing method in the prior art, and achieving the technical effect of improving path planning efficiency and accuracy.

[0004] This application mainly includes the following aspects:

[0005] In a first aspect, an embodiment of the present application provides a path planning method, the path planning method comprising: obtaining a map where a preset starting road point and a preset ending road point are located, the map comprising multiple lanes and at least one road point corresponding to each lane; determining an initial planned path from the preset starting road point to the preset ending road point based on a preset driving direction of at least one road point on each lane; determining a road change segment and other road segments other than the road change segment of the initial planned path based on the lanes where each road point in the initial planned path is located; performing path smoothing processing on the road change segment and the other road segments respectively to obtain a target planned path from the preset starting road point to the preset ending road point.

[0006] Optionally, the preset driving direction includes: the lane direction of the lane where each road point is located and the lane change direction determined according to the road markings of the lane where each road point is located.

[0007] Optionally, the initial planned path from the preset starting road point to the preset ending road point is determined based on the preset driving direction of at least one road point on each lane: based on a pathfinding algorithm, the initial planned path is determined according to the preset driving direction of at least one road point on each lane in the map.

[0008] Optionally, the initial planned path from the preset starting road point to the preset ending road point is determined in the following manner: the preset starting road point is used as the starting parent node; at least one candidate road point connected to the parent node is determined, and the parent node is connected to a candidate road point in a preset driving direction; the road cost value between each candidate road point and the parent node is calculated, and the candidate road point with the smallest road cost value is used as the child node of the parent node, and the road cost value is used to indicate the sum of the lane change cost from the preset starting road point to the candidate road point and the planning cost between the candidate road point and the parent node; the child node is used as a new parent node, and the determination of at least one candidate road point connected to the parent node is re-executed until at least one candidate node connected to the parent node contains the preset ending road point, so as to construct the initial planned path from the preset starting road point to the preset ending road point.

[0009] Optionally, the road cost value is calculated by the following formula:

[0010]

[0011] in, is the road cost value of the jth candidate road point, is the lane change cost corresponding to the j-th candidate road point, is the planning cost corresponding to the jth candidate road point, is the number of lane changes required from the preset starting road point to the jth candidate road point, is the preset lane change constant, is the actual cost of moving from the parent node corresponding to the jth candidate road point to the jth candidate road point, is the estimated cost of moving from the jth candidate road point to the preset end road point, is the estimated cost coefficient of the jth candidate road point, is the horizontal coordinate of the preset starting point road point, is the horizontal coordinate of the preset end road point, is the ordinate of the preset starting point road point, The vertical coordinate of the preset end road point.

[0012] Optionally, the road change segment of the initial planned path is determined in the following manner: for each road point in the initial planned path, when the road point and the road point after the road point are located in different lanes, a preset number of road points before the road point are used as the starting road points of the road change segment, and adjacent road points that appear for the first time in the same lane after the road point are found, and a preset number of road points after the adjacent road points are used as the ending road points of the road change segment.

[0013] Optionally, the path smoothing processing is performed on the road-changing segment and the other road segments respectively to obtain a target planned path from the preset starting road point to the preset ending road point, including: performing path smoothing processing on the road-changing segment based on a quintic polynomial, and performing path smoothing processing on the other road segments based on a cubic polynomial; performing path smoothing processing on the connection between the road-changing segment and the other road segments to obtain a target planned path from the preset starting road point to the preset ending road point.

[0014] Optionally, the smoothing method based on the quintic polynomial performs path smoothing processing on the road changing segment, including: based on the quintic polynomial, according to the starting road point and the ending road point of the road changing segment and the speed, acceleration and travel time of the road changing segment, solving each equilibrium road point corresponding to the road changing segment.

[0015] Optionally, path smoothing is performed on the connection between the road-changing segment and the other road segments in the following manner: path smoothing is performed on the connection between the road-changing segment and the other road segments based on the position, speed and acceleration of the connection between the road-changing segment and the other road segments being equal.

[0016] In a second aspect, an embodiment of the present application also provides a path planning device, which includes: an acquisition module, used to acquire a map where a preset starting road point and a preset ending road point are located, the map including multiple lanes and at least one road point corresponding to each lane; a first determination module, used to determine the initial planned path from the preset starting road point to the preset ending road point based on the preset driving direction of at least one road point on each lane; a second determination module, used to determine the road change segment and other road segments other than the road change segment of the initial planned path based on the lanes where each road point in the initial planned path is located; a smoothing module, used to perform path smoothing processing on the road change segment and the other road segments respectively, to obtain a target planned path from the preset starting road point to the preset ending road point.

[0017] 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 the machine-readable instructions are executed by the processor to execute the steps of the path planning method described in the first aspect or any possible implementation manner of the first aspect.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the path planning method described in the first aspect or any possible implementation manner of the first aspect are executed.

[0019] The present application provides a path planning method and device, the path planning method comprising: obtaining a map where a preset starting road point and a preset ending road point are located, the map comprising multiple lanes and at least one road point corresponding to each lane; determining an initial planning path from the preset starting road point to the preset ending road point according to a preset driving direction of at least one road point on each lane; determining a road change segment and other road segments other than the road change segment of the initial planning path according to the lane where each road point in the initial planning path is located; performing path smoothing processing on the road change segment and the other road segments respectively to obtain a target planning path from the preset starting road point to the preset ending road point. By planning an initial planning path from the preset starting road point to the preset ending road point, and clarifying the road change segment and other road segments in the initial planning path, path smoothing processing is performed on the road change segment and other road segments respectively to obtain the target planning path outputted in the end, thereby solving the technical problem of low efficiency of path planning caused by a single smoothing method in the prior art, and achieving the technical effect of improving the efficiency and accuracy of path planning.

[0020] 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

[0021] 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.

[0022] Figure 1 A flow chart of a path planning method provided in an embodiment of the present application is shown.

[0023] Figure 2 A schematic diagram showing a preset driving direction of a road point provided in an embodiment of the present application is shown.

[0024] Figure 3 A schematic diagram showing the maximum preset driving directions of a parent node provided in an embodiment of the present application.

[0025] Figure 4 A functional module diagram of a path planning device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] 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. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0027] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various 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, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0028] In the prior art, when establishing road topology, taking OpenDrive high-precision map data as an example, generally only the lane level is entered, and roadMark (road markings) are rarely considered. Therefore, when changing lanes, there will be unreasonable situations such as changing lanes in non-lane-changing areas or not changing lanes in lane-changing areas. Even when planning the global path considering road markings, generally only the lane level is considered, and the road markings with different offsets in the lanes are ignored. At this time, the path generation will have problems such as not fitting the actual road conditions and inaccuracy. In addition, the path planning algorithms used in the prior art are generally not optimized based on specific business scenarios. For trajectory information output, generally only the trajectory point location information is output without considering whether the path is smooth. The final planned trajectory information point set sequence is generally generated only with the step size specified by the algorithm, and cannot be flexibly configured.

[0029] In the lane change trajectory generation part, when the road is smoothed by geometric methods, it may be difficult to generate a trajectory that meets all constraints in complex environments, especially in scenes with multiple dynamic obstacles, and it is difficult to adapt to rapidly changing scenes. At the same time, geometric methods usually do not include explicit optimization processes, and it is difficult to find the trajectory with the lowest cost or the best performance. The solution based on the optimization method is usually computationally intensive, especially when considering complex environments and multiple constraints. It is not suitable for real-time use and relies on accurate modeling of vehicle dynamics and environment. If the model is inaccurate, the planning results may be unreliable. In some cases, the optimization algorithm may only find the local optimal solution, not the global optimal solution. In addition, the final generated trajectory information is generally saved simply in the form of a point set sequence. In the actual simulation process, secondary processing is required, which is difficult to directly apply to the commonly used Simulink and Matlab modeling and simulation.

[0030] Based on this, the embodiment of the present application provides a path planning method and device, which plans an initial planning path from a preset starting road point to a preset ending road point, and clarifies the road change segments and other road segments in the initial planning path, and respectively performs path smoothing processing on the road change segments and other road segments to obtain the final output target planning path, thereby solving the technical problem of low path planning efficiency caused by a single smoothing method in the prior art, and achieving the technical effect of improving path planning efficiency and accuracy, which is specifically as follows:

[0031] See also Figure 1 , Figure 1 This is a flow chart of a path planning method provided in an embodiment of the present application. Figure 1 As shown, the path planning method provided in the embodiment of the present application includes the following steps:

[0032] S101: Obtain a map where a preset starting road point and a preset ending road point are located.

[0033] The map includes multiple lanes and at least one road point corresponding to each lane. That is, the map includes a preset starting road point and a preset ending road point known in advance, as well as road points corresponding to multiple lanes, and a road point refers to the starting point or end point of at least one road segment on a road.

[0034] Specifically, the map is obtained in the following manner: determining a regional map including the preset starting road point and the preset ending road point; determining an undriveable lane in the regional map according to a preset feasibility condition; and obtaining a map after deleting the undriveable lane in the regional map.

[0035] That is to say, before obtaining the map, it is necessary to prune the path preprocessing of the regional map, so as to reduce the search space of the later path search, thereby improving the search efficiency and minimizing the number of candidate paths that need to be considered without affecting the quality of the final path.

[0036] The preset feasibility conditions refer to abnormal lanes, physical obstacles and / or road traffic signs. Specifically, according to the preset feasibility conditions, the unavailable lanes in the area map are determined, including: determining the lanes containing physical obstacles in the area map, and / or determining the abnormal lanes in the area map, and / or determining the current unavailable lanes through the road traffic signs of each lane in the area map, thereby determining the unavailable lanes in the area map. The abnormal lanes can be lanes with the same lane direction and adjacent but not connected lanes, and lanes with different lane directions but connected.

[0037] That is, the unpassable lanes include lanes with physical obstacles and / or lanes with different current traffic determined by road traffic signs. For example, the road traffic signs mainly used in this method are the relevant descriptions of road traffic signs and road markings and rules such as road physical connections specified in the national standard GB5768.

[0038] S102: Determine an initial planned path from the preset starting road point to the preset ending road point according to a preset driving direction of at least one road point on each lane.

[0039] A lane refers to at least one lane between two road intersections, that is, the lane in this application can be understood as a lane that allows one vehicle to travel. It can also be understood as the lane level in the OpenDRIVE file.

[0040] Each lane corresponds to at least one lane segment. Specifically, each lane contains at least one set of road markings (RoadMark), and a set of road markings corresponds to a lane segment, or in other words, each lane contains at least one lane offset (LaneSection), and a lane offset corresponds to a lane segment. A set of road markings includes road markings located on both sides or one side of a lane segment.

[0041] Among them, one road segment corresponds to at least one road point, and the position of the road point of each lane corresponds to the lane direction. For example, if the right lane is defined along the positive direction of the road and the left lane is defined along the reverse direction of the road, the right lane includes one lane segment and the left lane includes one lane segment, then the road point of the right lane refers to the starting road point of the right lane, and the road point of the left lane refers to the ending road point of the left lane.

[0042] Specifically, the lane direction of a lane is pre-set. If the lane is a right lane, the lane direction of the lane is a first direction, so that the lane direction of at least one lane segment corresponding to the lane is the first direction, and the lane direction of the road points corresponding to at least one lane segment of the lane is the first direction. If the lane is a left lane, the lane direction of the lane is a second direction, so that the lane direction of at least one lane segment corresponding to the lane is the second direction, and the lane direction of the road points corresponding to at least one lane segment of the lane is the second direction. The first direction and the second direction are two opposite directions.

[0043] Specifically, the road markings of at least one lane segment corresponding to each lane may be different, that is, the road markings of a lane segment on a lane may be solid lines, and the road markings of another lane segment on the same lane may be dotted lines, while the road markings of a lane segment from the start to the end remain unchanged.

[0044] The preset driving direction includes: the lane direction of the lane where each road point is located and the lane change direction determined according to the road markings of the lane where each road point is located. In other words, if the road markings are dotted lines, it indicates that the corresponding road point can change lanes, and then the preset driving direction of the road point includes the driving direction of the lane where the road point is located and the lane change direction indicated by the road markings corresponding to the road point.

[0045] For example, see Figure 2 , Figure 2 This is a schematic diagram of the preset driving direction of the road point provided in the embodiment of the present application. Figure 2As shown, if road A is a right lane and includes right lane A1 and right lane A2 located on the right side of right lane A1, right lane A1 includes two lane segments A11 and A12, the road point on lane segment A11 is a, and the road point on lane segment A12 is b, right lane A2 includes two lane segments A21 and A22, the road point on lane segment A21 is c, and the road point on lane segment A22 is d, the road marking between lane segment A11 and lane segment A21 is a dotted line, and the road marking between lane segment A12 and lane segment A22 is a solid line. The road marking on the left side of right lane A1 is a solid line, and the road marking on the right side of right lane A2 is a solid line. Furthermore, the preset driving direction of road point a includes the lane direction of the lane and the right lane changing direction to lane A2, the preset driving direction of road point b includes only the lane direction of the lane, the preset driving direction of road point c includes the lane direction of the lane and the left lane changing direction to lane A1, and the preset driving direction of road point d includes only the lane direction of the lane.

[0046] The method comprises determining an initial planned path from the preset starting road point to the preset ending road point based on a preset driving direction of at least one road point on each lane in the map based on a path-finding algorithm and determining the initial planned path according to the preset driving direction of at least one road point on each lane in the map.

[0047] That is to say, through the connection relationship between lanes in the map and the connection relationship between at least one lane segment in each lane, the road points in the map are connected and the preset driving direction of each road point is marked to generate a directed graph corresponding to the map. Then, based on the path finding algorithm, the initial planned path is constructed by referring to each road point in the directed graph and its corresponding preset driving direction.

[0048] Among them, the path finding algorithm may use the A* algorithm (A-star Algorithm), Dijkstra algorithm (Dijkstra), RRT algorithm (rapidly exploring random tree), etc. Specifically, the path finding algorithm used in this application is the A* algorithm.

[0049] Specifically, the initial planning path from the preset starting road point to the preset ending road point is determined in the following manner: the preset starting road point is used as the starting parent node; at least one candidate road point connected to the parent node is determined, and the parent node is connected to a candidate road point in a preset driving direction; the road cost value between each candidate road point and the parent node is calculated, and the candidate road point with the smallest road cost value is used as the child node of the parent node, and the road cost value is used to indicate the sum of the lane change cost from the preset starting road point to the candidate road point and the planning cost between the candidate road point and the parent node; the child node is used as a new parent node, and the determination of at least one candidate road point connected to the parent node is re-executed until at least one candidate node connected to the parent node contains the preset ending road point, so as to construct the initial planning path from the preset starting road point to the preset ending road point.

[0050] That is, for each candidate road point of the parent node, the candidate road point is located in one of the preset driving directions of the parent node. The purpose of selecting the child node with the smallest road cost value is to generate an initial planning path that has the smallest number of lane changes, the least number of road points, and the shortest path distance.

[0051] Specifically, the road cost value is calculated by the following formula:

[0052]

[0053] (1)

[0054] In formula (1), is the road cost value of the jth candidate road point, is the lane change cost corresponding to the j-th candidate road point, , is the planning cost corresponding to the jth candidate road point, , is the number of lane changes required from the preset starting road point to the jth candidate road point, is the preset lane change constant, is the actual cost of moving from the parent node corresponding to the jth candidate road point to the jth candidate road point, is the estimated cost of moving from the jth candidate road point to the preset end road point, is the estimated cost coefficient of the jth candidate road point, is the horizontal coordinate of the preset starting point road point, is the horizontal coordinate of the preset end road point, is the ordinate of the preset starting point road point, The vertical coordinate of the preset end road point.

[0055] in, It can be the product of the straight-line distance between the parent node corresponding to the j-th candidate road point and the j-th candidate node and the preset search weight, where the preset search weight refers to the preset search weight corresponding to a preset driving direction of the j-th candidate node in the parent node. It can be the straight-line distance between the jth candidate node and the preset end road point.

[0056] Furthermore, by improving the calculation of the road cost value of each candidate road point, the search time, the number of road points, the length of the generated initial planning path, and the number of lane changes can be effectively reduced. Since the number of lane changes caused by the parent node to each candidate road point from the preset starting road point to each candidate road point may be different, the estimated cost coefficient of each candidate road point may be different, and the preset driving direction corresponding to the parent node at each candidate road point is preset with a different search weight, so that the road cost value corresponding to each candidate road point can be different, and the influence of different candidate road points on the overall path generation can be distinguished and smoothed. Selecting the candidate road point corresponding to the minimum road cost value can exclude the candidate road point with too high a cost to obtain the initial planning path with the minimum cost.

[0057] Among them, the preset driving direction of the parent node is generally 8 directions within 0-360 degrees divided by 45 degrees. That is to say, the parent node can find at most 8 candidate road points connected to the parent node according to each preset driving direction. Adopting this strategy will cause the planned path to be not smooth enough to a certain extent, and an abrupt connection will be generated between a candidate road point and the next candidate road point.

[0058] For example, see Figure 3 , Figure 3 This is a schematic diagram of the maximum preset driving directions of the parent node provided in the embodiment of the present application. Figure 3 As shown, the present application sets each preset driving direction of the parent node to 16 directions. That is, 16 directions equally divided by 22.5 degrees within 0-360 degrees. The number of candidate road points can be expanded, thereby expanding the search range, shortening the path length, and obtaining a smaller search angle, thereby effectively avoiding the abrupt connection of adjacent road points to produce a smoother path.

[0059] Furthermore, if at least one candidate road point of the parent node is determined, and at least one candidate road point contains a preset end road point, all parent nodes found and the preset end road points are sequentially connected in the order of search, thereby generating an initial planning path. And all parent nodes found and the preset end road points are used as the road points on the initial planning path.

[0060] S103: Determine, according to the lanes where the road points in the initial planned path are located, the road change segments and other road segments except the road change segments of the initial planned path.

[0061] The road change segment of the initial planned path is determined in the following manner: for each road point in the initial planned path, when the road point and the road point after the road point are located in different lanes, a preset number of road points before the road point are used as the starting road points of the road change segment, and adjacent road points that appear for the first time in the same lane after the road point are found, and a preset number of road points after the adjacent road points are used as the ending road points of the road change segment.

[0062] For example, if the road points of the initial planned path include road points k1, k2, ..., k n , if the road point k1 to k i Located in lane I1, lane point k 1+1 to k n Located in lane I2, since road point k i With road point k i The next path point k 1+1 The lane is different and will be located at road point k i The mth road point k between i-m As the starting point of the road segment, since the road point k i+1 With road point k i+2 Located at road point k i The first road points that appear in the same lane will be located at road point k i+1 The mth road point k after i+m+1 As the end point of the road segment. Then, the road point k1 to the road point k i-m As another road, the road point k i-m To waypoint k i+m+1 As the road segment, the road point k i+m+1 To waypoint k n As another other road.

[0063] The preset number can be set according to actual conditions to prevent a road change segment from including two lane changes and to prevent the road points in the road change segment from exceeding the preset starting road point and the preset ending road point in the initial planned path.

[0064] S104: performing path smoothing processing on the road-changing section and the other road sections respectively, to obtain a target planned path from the preset starting road point to the preset ending road point.

[0065] The path smoothing process is performed on the road changing section and the other road sections respectively to obtain the target planned path from the preset starting road point to the preset ending road point, including: performing path smoothing process on the road changing section based on a quintic polynomial, and performing path smoothing process on the other road sections based on a cubic polynomial; performing path smoothing process on the connection between the road changing section and the other road sections to obtain the target planned path from the preset starting road point to the preset ending road point.

[0066] In other words, different smoothing treatments are performed on the road change sections and other sections to obtain a smoother target planning path. If the cubic polynomial curve interpolation method is used, the target planning path generated is not as smooth as expected, and the quintic polynomial curve interpolation method is used to smooth the initial planning path, which leads to a large amount of calculation and affects the smoothing efficiency. Furthermore, different smoothing treatments are performed on the road change sections and other sections, which can reduce the amount of calculation and obtain a better smoothing effect.

[0067] In addition, a more reasonable target planning path is obtained by performing path smoothing on the connection between the road change section and other sections, thereby preventing the connection between the road change section and other sections from being abrupt and affecting the smoothing effect of the target planning path.

[0068] Specifically, the smoothing method based on the quintic polynomial performs path smoothing processing on the road change segment, including: based on the quintic polynomial, according to the starting road point and the ending road point of the road change segment and the speed, acceleration and travel time constraining the road change segment, solving each equilibrium road point corresponding to the road change segment.

[0069] Among them, the smoothing of the road section by the curve interpolation method of the quintic polynomial is a relatively existing technology, which is briefly described here. and .in, It refers to the horizontal coordinate position of the vehicle on the road change section at the tth moment. It refers to the ordinate position of the vehicle on the road change section at the tth moment. , , , , and It refers to the coefficient of the horizontal axis position equivalent to time, , , , , and It refers to the coefficient of the ordinate position equivalent to time, Refers to the curve function of the road section. Find the first derivative Refers to the speed of the vehicle in the horizontal direction. Find the second derivative Refers to the acceleration of the vehicle in the horizontal direction. Find the first derivative Refers to the speed of the vehicle in the ordinate direction. Find the second derivative Refers to the acceleration of the vehicle in the ordinate direction. The heading angle of the vehicle is expressed by the inverse tangent function of the ratio of the ordinate position of the vehicle to the ordinate position, that is, the heading angle of the vehicle . Calculate the first-order derivative of the vehicle's heading angle Used to represent the rotational speed of the vehicle.

[0070] Among them, the multi-objective optimization function based on the quintic polynomial simultaneously considers the comfort and efficiency of the lane change trajectory from the perspectives of longitudinal acceleration, heading change, and longitudinal displacement. That is, in order to ensure the comfort of the lane change section, the lateral acceleration during the entire lane change section is minimized. And the vehicle's rotation speed is minimized during the entire lane change section , in order to improve the efficiency of the road section, the maximum longitudinal displacement is defined as . And get the multi-objective optimization function based on quintic polynomial ,in, Refers to the coefficient corresponding to the lateral acceleration, Refers to the coefficient corresponding to the vehicle's rotation speed, It refers to the corresponding coefficient of longitudinal displacement. Here, since the longitudinal displacement of the vehicle is negatively correlated with the multi-objective optimization function, the larger the longitudinal displacement is, the greater the deviation from the multi-objective optimization function is, so the maximum negative value must be taken.

[0071] Then, the constraints of the multi-objective optimization function are set, including: by constraining the horizontal and vertical coordinate positions of the starting and ending road points of the vehicle in the road change section, , , , ,in, Refers to the horizontal coordinate position of the vehicle's starting point on the road section where the road changes. Refers to the horizontal coordinate position of the vehicle's end point on the road section where the vehicle changes direction. Refers to the ordinate position of the vehicle's starting point on the road section where the road changes. Refers to the ordinate position of the vehicle's end point on the road section where the road changes, and T refers to the travel time of the road section where the road changes; the speed and acceleration of the road at each moment in the road section are constrained. Less than or equal to the preset maximum lateral speed, Less than or equal to the preset maximum lateral acceleration, Less than or equal to the preset maximum longitudinal speed, is less than or equal to the preset maximum longitudinal acceleration; and the constrained driving time T is less than or equal to the preset maximum lane change time.

[0072] The Lagrangian function is established by the multi-objective optimization function based on the quintic polynomial and various constraints. ,in, refers to the Lagrange multiplier corresponding to the i-th constraint condition, refers to the constraint function corresponding to the ith constraint condition, k refers to the total number of constraints, and the Lagrangian function is solved by the SQP (Sequential Quadratic Programming) method to obtain the result of smoothing the road section. The specific calculation method is the existing technology and will not be repeated here.

[0073] The path smoothing process is performed on the other road sections in the following manner: based on the curvature of each road point on the other road sections, a corrected road point on the other road sections is determined; the corrected road point, a first preset number of road points in the other road sections that are located before the corrected road point, and a second preset number of road points that are located after the corrected road point are smoothed by cubic spline interpolation to obtain the smoothed other road sections.

[0074] Common smoothing methods include spline curve fitting, polynomial curve fitting, and cubic spline interpolation, etc. This application uses cubic spline interpolation to smooth other sections. Cubic spline interpolation is a method commonly used in data fitting and curve interpolation. It constructs a set of cubic polynomials to ensure the continuity of interpolation, first-order derivatives, and second-order derivatives at given data points.

[0075] The first preset number and the second preset number may be the same or different, and the first preset number of road points are road points that are sequentially adjacent to the corrected road point, and the second preset number of road points are road points that are sequentially adjacent to the corrected road point.

[0076] Curvature is a physical quantity that describes the degree of curvature of a curve. It measures the degree of curvature of a curve at a certain point. The magnitude of the curvature is proportional to the curvature of the curve, that is, the more curved the curve is, the greater the curvature is. Specifically, other road sections can be fitted with data to obtain a curve. Thus, the curvature corresponding to each road point in other road sections can be determined by the curve, and the node whose absolute value of the curvature is greater than the preset value is used as the corrected road point. The first preset number of road points, the corrected road points to the second preset number of road points are sequentially passed through (x0, y0), (x1, y1), ..., (x e-1 ,y e-1 ), that is, e is the sum of the first preset number and the second preset number.

[0077] For each interval (x v , x v+1 ) between the road points x, construct a cubic spline interpolation function:

[0078] (2)

[0079] In formula (2), x is a value in the interval (x v , x v+1 ), v = 0, 1, ..., e-1, is the cubic spline interpolation of x, that is, the interpolation point (x, ), , , and are the coefficients of the cubic spline interpolation function.

[0080] In order to make the cubic spline interpolation function smoother, additional conditions need to be introduced at the connection between adjacent intervals. Usually, the first-order and second-order derivatives of the curve are equal, which can ensure that the interpolation curve is smooth at the connection. The step size is introduced as ,Right now Indicates the distance between the horizontal coordinates of two adjacent road points.

[0081] In each interval (x v , x v+1 ) keeps the first and second derivatives of the interpolation curve continuous, which can be expressed by the following conditions: To ensure that the interpolation curve passes through the data point, then and ; The first-order derivative must be continuous at all nodes, then and , to ensure that the slopes of the interpolation curves are equal at the junctions; the second-order derivatives must be continuous at all nodes, then and , to ensure that the curvature of the interpolation curve is equal at the connection; and the boundary condition is limited to . We need to solve each interval (x v , x v+1 ) corresponding to the unknown coefficient , , and Among them, each interval corresponds to a linear equation. By introducing the above conditions and solving the linear equation, we can get the unknown coefficients corresponding to each interval , , and , thus obtaining a smooth cubic spline interpolation curve, which can make the generated trajectory curve smoother.

[0082] Specifically, the path smoothing process is performed on the connection between the road changing section and the other road sections in the following manner: based on the position, speed and acceleration of the connection between the road changing section and the other road sections being equal, the path smoothing process is performed on the connection.

[0083] The connection between the road-changing segment and other road segments refers to a road point included in both the road-changing segment and other road segments. For example, if the last road point of the road-changing segment and the first road point of the other road segments are the same road point, then the road point is the connection between the road-changing segment and the other road segments; if the first road point of the road-changing segment and the last road point of the other road segments are the same road point, then the road point is the connection between the road-changing segment and the other road segments.

[0084] Furthermore, for example, if the curve after the road segment is smoothed is , It represents the relationship function between the horizontal coordinate and the vertical coordinate at time t obtained after smoothing based on the quintic polynomial. The curves after smoothing of other sections are , It represents the relationship function between the horizontal coordinate and the vertical coordinate at time t obtained after smoothing based on the cubic polynomial, and the first road point of the variable road segment The last waypoint with other road segments For the same road point, the positions of the connections are defined to be equal , that is, the horizontal and vertical coordinates of the common points of the cubic polynomial and the quintic polynomial are equal, and the speeds at the defined joints are equal , and define the velocities at the junction to be equal , to smooth the connection between the road change segment and other road segments.

[0085] Then, the replacement point of the connection is solved by defining the position, speed and acceleration of the connection between the road change segment and the other road segments to be equal, and the original connection is replaced by the replacement point, and then the smoothed road change segment, the replacement point and the other road segments after smoothing are used as the final target planning path. After the parameters related to the cubic polynomial and the parameters related to the quintic polynomial are known, t can be manually adjusted. end and t stat Make the transition between the cubic polynomial and the quintic polynomial more natural; or, adjust the coefficients of the quintic polynomial. The above adjustments are not necessary and can be determined according to actual conditions.

[0086] Among them, each road point in the target planning path includes each road point in the smoothed road change section, the replacement point and each road point in other sections after smoothing. Finally, the matlab file (.mat file) of the target planning path is output, and the matlab file includes the road parameters of the entire target planning path. Specifically, the road parameters include: the overall storage structure ROUTEWAYSTRUCT, different ROUTEWAYSTRUCTs are used to represent different paths, used to store all trajectory point information on a path, and the field type is a structure cell array; a separate trajectory information identifier ID, used to mark an overall storage structure, an overall storage structure corresponds to a separate trajectory information identifier, and the field type is string; separate road point information ROUTEWAYPOINTS, used to store a road point information on a path, and the field type is a structure cell array; road point coordinates POINT, used to identify the horizontal and vertical coordinates of each road point, and the field type is [double, double]; road point time T, used to identify the driving time corresponding to each road point, in seconds, and the field type is double; road point speed V, used to identify the driving speed corresponding to each road point, unit meter per second, field type is double; road point acceleration A, used to identify the driving acceleration corresponding to each road point, unit meter per square second, field type is double; road point heading angle or speed direction Hdg, used to identify the heading angle or speed direction corresponding to each road point, radian system, field type is double; road point acceleration heading angle AccHdg, used to identify the acceleration heading angle corresponding to each road point, radian system, field type is double; road point curvature K, used to identify the curvature corresponding to each road point, field type is double; road point type Type, the type of a road point, field type is uint32; path motion type MOTIONTYPE, marking the motion type of a path, field type is uint32. Then, the final output of the target planning path matlab file is a concise and clear .mat data structure, and the information of each road point generated can be used for common modeling and simulation software such as Simulink and Matlab for vehicle motion simulation without secondary processing.

[0087] Furthermore, the present application analyzes the road topology structure by considering the different road signs that may exist in the lane of the vehicle and the different offsets under the lane, and uses the A* algorithm to expand the search nodes while introducing a heuristic function for evaluating the lane change area, so as to ensure the search quality and make the lane change area planning more reasonable; and optimizes the trajectories of different road sections to achieve a multi-objective lane change trajectory optimization effect based on a quintic polynomial. In the smooth solution process of the road change section, the lateral acceleration change, the heading change and the longitudinal displacement change optimization function are introduced to optimize the road change section from the perspective of the comfort and efficiency of the road change section, and the other road sections are smoothed by sampling three times and interpolating to reduce the amount of calculation in the smoothing process; the matlab file of the target planning path finally obtained is a concise and clear .mat data structure, and the generated trajectory point set information does not need to be processed twice, and can be used in commonly used modeling and simulation software such as Simulink and Matlab for vehicle motion simulation, which is convenient for users.

[0088] Based on the same application concept, the embodiments of the present application also provide a path planning device corresponding to the path planning method provided in the above embodiments. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the path planning method in the above embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0089] like Figure 4 As shown, Figure 4 A functional module diagram of a path planning device 300 provided in an embodiment of the present application. The path planning device 10 includes: an acquisition module 101, a first determination module 102, a second determination module 103 and a smoothing module 104. The acquisition module 101 is used to obtain a map where a preset starting road point and a preset ending road point are located, and the map includes multiple lanes and at least one road point corresponding to each lane; the first determination module 102 is used to determine the initial planned path from the preset starting road point to the preset ending road point according to the preset driving direction of at least one road point on each lane; the second determination module 103 is used to determine the road change segment and other road segments other than the road change segment of the initial planned path according to the lane where each road point in the initial planned path is located; the smoothing module 104 is used to perform path smoothing processing on the road change segment and the other road segments respectively to obtain a target planned path from the preset starting road point to the preset ending road point.

[0090] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method 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, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0091] 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.

[0092] 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.

[0093] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it 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, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0094] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A path planning method, It is characterized in that The path planning method comprises: Obtaining a map where a preset starting road point and a preset ending road point are located, wherein the map includes a plurality of lanes and at least one road point corresponding to each lane; Determining an initial planned path from the preset starting road point to the preset ending road point according to a preset driving direction of at least one road point on each lane; Determine the road section of the initial planned path and other sections except the road section of the initial planned path according to the lanes where each road point in the initial planned path is located; Performing path smoothing processing on the road-changing section and the other road sections respectively to obtain a target planned path from the preset starting road point to the preset ending road point; The preset driving direction includes: the lane direction of the lane where each road point is located and the lane change direction determined according to the road markings of the lane where each road point is located; The initial planned path from the preset starting road point to the preset ending road point is determined according to the preset driving direction of at least one road point on each lane: the initial planned path is determined according to the preset driving direction of at least one road point on each lane in the map based on a path finding algorithm; The initial planning path from the preset starting road point to the preset ending road point is determined in the following manner: the preset starting road point is used as a starting parent node; at least one candidate road point connected to the parent node is determined, and the parent node is connected to a candidate road point in a preset driving direction; the road cost value between each candidate road point and the parent node is calculated, and the candidate road point with the smallest road cost value is used as a child node of the parent node, and the road cost value is used to indicate the sum of the lane change cost from the preset starting road point to the candidate road point and the planning cost between the candidate road point and the parent node; the child node is used as a new parent node, and the determination of at least one candidate road point connected to the parent node is re-executed until at least one candidate node connected to the parent node contains the preset ending road point, so as to construct the initial planning path from the preset starting road point to the preset ending road point; The road cost value is calculated by the following formula: in, is the road cost value of the jth candidate road point, is the lane change cost corresponding to the j-th candidate road point, is the planning cost corresponding to the jth candidate road point, is the number of lane changes required from the preset starting road point to the jth candidate road point, is the preset lane change constant, is the actual cost of moving from the parent node corresponding to the jth candidate road point to the jth candidate road point, is the estimated cost of moving from the jth candidate road point to the preset end road point, is the estimated cost coefficient of the jth candidate road point, is the horizontal coordinate of the preset starting point road point, is the horizontal coordinate of the preset end road point, is the ordinate of the preset starting point road point, The vertical coordinate of the preset end road point.

2. The path planning method according to claim 1, It is characterized in that The road change section of the initial planned path is determined by: For each road point in the initial planned path, when the road point and the road point after the road point are located in different lanes, a preset number of road points before the road point are used as the starting road points of the road change section, and adjacent road points that appear for the first time in the same lane after the road point are found, and a preset number of road points after the adjacent road points are used as the ending road points of the road change section.

3. The path planning method according to claim 1, It is characterized in that The step of performing path smoothing processing on the road change section and the other road sections to obtain a target planned path from the preset starting road point to the preset ending road point includes: Based on a quintic polynomial, performing path smoothing processing on the road-changing segment, and based on a cubic polynomial, performing path smoothing processing on the other road segments; A path smoothing process is performed on the connection between the road change section and the other road sections to obtain a target planned path from the preset starting road point to the preset ending road point.

4. The path planning method according to claim 3, It is characterized in that The fifth-order polynomial-based smoothing method performs path smoothing processing on the road change segment, including: Based on a quintic polynomial, each equilibrium road point corresponding to the road change segment is solved according to the starting road point and the ending road point of the road change segment and the speed, acceleration and travel time constraining the road change segment.

5. The path planning method according to claim 3, It is characterized in that The path smoothing process is performed on the connection between the road change section and the other road sections in the following manner: According to the position, speed and acceleration of the connection between the road change section and the other road sections being equal, path smoothing processing is performed on the connection.

6. A path planning device, It is characterized in that The path planning device comprises: An acquisition module, used to acquire a map where a preset starting road point and a preset ending road point are located, wherein the map includes a plurality of lanes and at least one road point corresponding to each lane; A first determination module, configured to determine an initial planned path from a preset starting road point to a preset ending road point according to a preset driving direction of at least one road point on each lane; A second determination module is used to determine the road change section and other sections except the road change section of the initial planned path according to the lane where each road point in the initial planned path is located; A smoothing module, used to perform path smoothing processing on the road change section and the other road sections respectively, to obtain a target planned path from the preset starting road point to the preset ending road point; The preset driving direction includes: the lane direction of the lane where each road point is located and the lane change direction determined according to the road markings of the lane where each road point is located; The first determination module is further configured to determine the initial planned path based on a path finding algorithm and according to a preset driving direction of at least one road point on each lane in the map; The first determination module is further used to determine the initial planning path from the preset starting road point to the preset ending road point in the following manner: taking the preset starting road point as the starting parent node; determining at least one candidate road point connected to the parent node, the parent node connecting a candidate road point in a preset driving direction; calculating the road cost value between each candidate road point and the parent node, and taking the candidate road point with the smallest road cost value as the child node of the parent node, the road cost value being used to indicate the sum of the lane change cost from the preset starting road point to the candidate road point and the planning cost between the candidate road point and the parent node; taking the child node as a new parent node, and re-executing the step of determining at least one candidate road point connected to the parent node until at least one candidate node connected to the parent node contains the preset ending road point, so as to construct the initial planning path from the preset starting road point to the preset ending road point; The first determination module is further configured to calculate the road cost value using the following formula: in, is the road cost value of the jth candidate road point, is the lane change cost corresponding to the j-th candidate road point, is the planning cost corresponding to the jth candidate road point, is the number of lane changes required from the preset starting road point to the jth candidate road point, is the preset lane change constant, is the actual cost of moving from the parent node corresponding to the jth candidate road point to the jth candidate road point, is the estimated cost of moving from the jth candidate road point to the preset end road point, is the estimated cost coefficient of the jth candidate road point, is the horizontal coordinate of the preset starting point road point, is the horizontal coordinate of the preset end road point, is the ordinate of the preset starting point road point, The vertical coordinate of the preset end road point.

Citation Information

Patent Citations

  • Multi-objective optimization-based unmanned vehicle motion planning method

    CN110749333A

  • Vehicle driving path generation method and system

    CN113418530A

  • Intelligent vehicle lane changing obstacle avoidance path planning method based on space-time risk quantification

    CN116465427A

  • Path planning method and device, electronic equipment and storage medium

    CN117232548A