Method for generating travelable area for trajectory planning of automatic driving vehicle
Through Delaunay triangle division and the improved triangle A-star algorithm, a triangular mesh with a large coverage area is generated, which solves the problem of high computing power consumption when generating drivable areas in the autonomous vehicle trajectory planning system, and achieves an efficient trajectory. Planning and good visualization.
Patent Information
- Application Number
- CN202410794720.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-19
AI Technical Summary
When the existing autonomous vehicle trajectory planning system processes the information output by a large number of sensors, especially the drivable area generation technology, it consumes a lot of computing power, resulting in low data processing efficiency and failing to take into account both performance and effect.
Delaunay triangle division algorithm and improved triangle A-star algorithm are used to generate a triangle mesh with a larger coverage area by extracting and expanding obstacles and road boundaries, reducing the number of triangles, improving data processing efficiency, and integrating triangle edges to form polygons Driving area.
It effectively reduces computing power consumption, improves data processing efficiency, provides a more even regional distribution and less redundant information, helps efficiently plan smooth trajectories, and improves the visualization of drivable areas.
Smart Images

Figure CN118836879A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous driving vehicle trajectory planning, and in particular to a method for generating a drivable area for autonomous driving vehicle trajectory planning. Background Art
[0002] The trajectory planning system for autonomous vehicles is a system that uses environmental information output from sensors combined with numerical optimization algorithms to complete the trajectory planning of autonomous vehicles. The system can obtain information from sensors that sample the vehicle's environment, including surrounding obstacles, traffic light information, and road conditions, and combine vehicle dynamics, drivable area, and other constraints to use numerical optimization algorithms to determine the optimal driving path and speed of the vehicle, thereby achieving safe, efficient, and comfortable driving. Drivable area generation technology is an important technology for determining the safe driving range of autonomous vehicles on the road without collision. However, the performance of trajectory planning technology is limited by the efficiency of processing a large amount of information output by sensors. In particular, for drivable area generation technology, its processing technology for a large amount of point cloud data output by sensors is particularly critical, which directly affects the performance of the trajectory planning system.
[0003] At present, there have been some studies on the method of generating a drivable area in the field of autonomous driving. For example, Chinese patent CN116343155A discloses a method and device for determining a drivable area from the perspective of BEV. Chinese patent CN116620294A discloses a method, device, equipment, storage medium and vehicle for determining a drivable area. Chinese patent CN110244731A discloses an active tracking control method for a three-section virtual track train. Chinese patent CN115205823A discloses a method, system and autonomous driving vehicle for determining a drivable area for a vehicle. The various architectures mentioned in the above patents have a common feature, that is, a certain amount of grids, point clouds or pixels are used to search and generate feasible domains. This means that the above systems will have a common problem: if a large number of grids, point clouds or pixels are generated, the cost of system data processing will be greatly increased, mainly manifested in the consumption of a large amount of computing power and the reduction of data processing efficiency. However, there is currently no method for generating a drivable area for autonomous driving vehicle trajectory planning that takes into account both performance and effect. Summary of the invention
[0004] The present invention discloses a method for generating a drivable area for autonomous driving vehicle trajectory planning, the method comprising the following steps:
[0005] Step 1, extract the road conditions and expand obstacles and road boundaries;
[0006] Step 2, based on the expansion obstacle and the road boundary, the Delaunay triangulation algorithm is used to output a triangle connection relationship list and a Delaunay triangle mesh;
[0007] Step 3, generating a rough triangle edge path based on the triangle connection relationship list and the Delaunay triangle mesh;
[0008] Step 4: Integrate the triangle edges to form a drivable area based on the rough triangle edge path.
[0009] Furthermore, in step 1, the following steps are also included:
[0010] Step 11, extract obstacle boundaries;
[0011] Based on the basic size information of the obstacle, a buffer size is reserved for the obstacle vehicle to form the obstacle boundary;
[0012] Step 12, dilate obstacles and road boundaries;
[0013] The width of the vehicle is reduced to 0, the obstacle boundary expands on both sides of the width direction, and the road boundary shrinks on both sides of the width direction;
[0014] Step 13, integrating the dilation boundary;
[0015] If the expanded obstacle boundary has a part that exceeds the road boundary, when integrating the obstacle boundary, the intersecting part is subtracted from the road boundary, and the remaining road boundary forms a new integrated boundary;
[0016] If the expanded obstacle boundary is completely within the road boundary, the new integrated boundary will completely contain the obstacle boundary, but the area within the obstacle boundary will be excluded from the drivable area selection range;
[0017] If the obstacle boundary is outside the road boundary, the obstacle boundary is ignored.
[0018] Furthermore, in step 2, the following steps are also included:
[0019] Step 21, extracting the connection relationship of the connection points from the integration boundary to form a connection point list and numbering it;
[0020] The connection relationship includes the connection point number, the location coordinates of the connection point, the actual driving distance cost G from the starting point to the point, the Euclidean distance heuristic cost H from the point to the end point, the total cost F as the sum of the actual cost G and the heuristic cost, and the connection relationship of the array of connection point numbers connected to the point;
[0021] Step 22, the vertex coordinates and connection relationships of the integrated boundary are subjected to the Delaunay triangulation algorithm to output a triangle connection relationship list.
[0022] Furthermore, in step 3, the following steps are also included:
[0023] Step 31, obtaining a triangle connection relationship list;
[0024] Step 32, determine the starting and ending points of the rough path planning;
[0025] The starting point is the forward point on the vehicle line segment along the forward direction, and the end point is the rearmost point of the triangle in the forward direction;
[0026] Step 33, input the triangle connection relationship and vertex coordinates into the improved triangle A-star algorithm to perform path planning and obtain a rough connection line path.
[0027] Furthermore, in step 4, the following steps are also included:
[0028] Step 41, obtaining a rough connection line path;
[0029] Step 42, separating into a triangle edge list through a rough connection line path;
[0030] Step 43, integrating the triangles of the drivable area to form a polygon, and outputting the polygonal drivable area with a connection relationship.
[0031] Furthermore, in step 33, the path planning adopts an improved triangle A-star algorithm;
[0032] The improved triangle A-star algorithm comprises the following steps:
[0033] Step 331, obtaining input: starting and ending points, triangle connection relationship list, vertex coordinate list;
[0034] Step 332, creating an empty link path point list and an empty unreachable point list;
[0035] Step 333, initializing the total cost costF, the heuristic cost costH, and the actual cost costG of the starting point to 0;
[0036] Step 334, set the starting point as the current point, and add the current point to the list of connecting line path points;
[0037] Step 335, if the current point is not the end point:
[0038] Step 3351, obtain the connection point:
[0039] a. Search for a triangle in the triangle connection relationship list, the vertices of which include the current point;
[0040] b. Remove the current point from the searched triangle vertices and add it to the connection point list, then take the union of the connection point list to remove duplicate vertices;
[0041] Step 3352, connection point traversal: For each connection point in the connection point list:
[0042] a. If the connection point is an end point:
[0043] i. Add the point to the list of connecting line path points;
[0044] ii. Output the list of connecting line path points;
[0045] b. If the connection point is in the unreachable point list:
[0046] Repeat step 3352 to traverse the next vertex;
[0047] c. If the connection point is not in the list of unreachable points:
[0048] Update connection point cost:
[0049] i. Update the actual cost of the connection point costG = the actual cost of the current point + the Euclidean distance between the connection point and the current point;
[0050] ii. Update the heuristic cost costH of the connection point = the Euclidean distance from the connection point to the end point;
[0051] iii. Update the total cost of the connection point costF = the actual cost of the connection point costG + the heuristic cost of the connection point costH;
[0052] d. If the connection point is the last connection point in the connection point list:
[0053] i. Take the connection point with the smallest total cost as the current point;
[0054] ii. Put the current point and the original current point into the unreachable point list;
[0055] iii. Add the current point to the list of connecting line path points;
[0056] Step 336, if the end point is not in the list of connecting line path points:
[0057] Add the end point to the list of connecting line path points;
[0058] Step 337, output the list of connection line path points.
[0059] Furthermore, in step 42, a triangle edge list TOP is generated, which specifically includes the following steps:
[0060] Step 421, initialize the triangle edge list TOP to empty;
[0061] Step 422, traverse any triangle j in the triangle connection relationship list DelauT:
[0062] If the two vertices of the starting edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list;
[0063] If the two vertices of the end edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list;
[0064] The starting edge is the edge that contains the starting point in the link path, and the ending edge is the edge that contains the ending point in the link path;
[0065] Step 423, the triangle edge list ST does not contain the triangle edge of the starting point or the end point as the waypoint edge, and traverses any triangle j in the triangle connection relationship list DelauT;
[0066] If any point in the waypoint edge is a vertex of triangle j, triangle j is considered to be a drivable area, and the number j of this triangle is added to the TOP of the triangle edge list;
[0067] Step 424, remove the duplicate triangle numbers in the triangle edge list TOP.
[0068] Furthermore, in step 43, the polygonal drivable area is represented by a connection relationship list POLY;
[0069] The connection relationship list POLY removes the common edges of any two triangles in the triangle edge list TOP to form a polygonal area border.
[0070] The beneficial effects achieved by the present invention are:
[0071] The present invention can provide a safe driving area for the vehicle. Fig. 9 Take the two-lane driving scenario in the example. The lane of the ego car (ego) has a preceding car (Preceding), and the left lane has a leading car (Leader) and a following car (Follower). When the speed of the preceding car (Preceding) is lower than that of the ego car, the ego car gradually catches up with the preceding car (Preceding). Assuming that the distance between the two cars in the left lane is wide enough, in order to ensure the safety and traffic efficiency of the ego car, it is necessary to change lanes to the left side of the vehicle. The present invention can give an area composed of the Delaunay triangle where the ego car can change lanes to the left. According to the regional constraints, the trajectory planning system can plan the trajectory of the ego car's lane change.
[0072] The present invention can effectively reduce computing power consumption and improve efficiency. When forming a drivable area, the number of triangles with a larger coverage area is processed, and compared with the number of grids, point clouds or pixels with a smaller coverage area, the number of triangles generated on the same road surface is much smaller than the number of grids, point clouds or pixels. Therefore, when the computer processes the same road surface information, the present invention provides a more uniform area distribution and less redundant information, reducing the overhead of data storage and processing.
[0073] The present invention helps to efficiently plan a smooth trajectory. Delaunay triangulation provides a sparse and uniform grid, which is conducive to the implementation of an efficient path search algorithm, thereby improving the efficiency of path planning. And because Delaunay triangulation tends to generate relatively uniform triangles without overly narrow and long triangles, it helps to calculate a relatively smooth path and reduce sharp turns on the path.
[0074] The present invention has a better visualization effect for the drivable area. Compared with a small coverage grid, point cloud or pixel, the drivable area composed of triangles with a larger coverage area can intuitively and clearly show the range in which the vehicle can safely drive. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 A schematic flow chart of a method for generating a drivable area for trajectory planning of an autonomous driving vehicle is provided for the present invention;
[0076] Figure 2 is a schematic diagram of the road condition in the first embodiment;
[0077] Figure 3 is a schematic diagram of the obstacle boundary size in Example 1;
[0078] Figure 4 It is a schematic diagram of the expansion of the obstacle boundary in the first embodiment;
[0079] Figure 5 A schematic diagram of generating a drivable area in Embodiment 1;
[0080] Figure 6 A schematic diagram of the coordinates of the connection points and the connection relationship for extracting the integration boundary in the first embodiment;
[0081] Figure 7 A schematic diagram of a Delaunay triangular mesh within a final output integration boundary in Embodiment 1;
[0082] Figure 8 This is a flow chart of the A* algorithm in step 3 of the present invention;
[0083] Fig. 9 A schematic diagram of a polygonal drivable area in Example 1;
[0084] Fig.10is a schematic diagram of the road condition in the second embodiment;
[0085] Fig.11 A schematic diagram of generating an expansion boundary in Example 2;
[0086] Fig.12 A schematic diagram of generating a drivable area in Example 2;
[0087] Fig.13 A schematic diagram of outputting a Delaunay triangular mesh within an integrated boundary in Embodiment 2;
[0088] Fig.14 A schematic diagram of generating a rough triangle edge path in Embodiment 2;
[0089] Fig.15 A schematic diagram of a polygonal drivable area in Embodiment 2;
[0090] Fig.16 The figure is a schematic diagram of a scenario of an embodiment of the present invention. DETAILED DESCRIPTION
[0091] The present invention will be further described below in conjunction with specific embodiments, and the advantages and features of the present invention will become clearer as the description proceeds. However, these embodiments are exemplary only and do not constitute any limitation to the scope of the present invention. It should be understood by those skilled in the art that the details and forms of the technical solution of the present invention may be modified or replaced without departing from the spirit and scope of the present invention, but these modifications and replacements all fall within the scope of protection of the present invention.
[0092] Embodiment 1
[0093] like Figure 1 As shown, the present invention provides a method for generating a drivable area for trajectory planning of an autonomous driving vehicle, and the method for generating a drivable area comprises the following steps:
[0094] Step 1, extract and expand obstacles and road boundaries;
[0095] Specifically, extracting and expanding obstacles and road boundaries also includes the following steps:
[0096] Step 11: Extract obstacle boundaries.
[0097] Boundary refers to a clear boundary formed around an obstacle. Road boundary refers to the boundary used to define the edge of the road, and obstacle boundary refers to the boundary formed around a moving or stationary obstacle. Figure 2 shown.
[0098] Figure 2The large thick solid line is the boundary, and the present invention regards all boundaries as rectangular frames. The road boundary is composed of the edges on both sides of the road obtained from the radar and high-precision map, as well as the forward and backward perception boundaries of the vehicle. In the generation of obstacle boundary lines, the vehicle and all surrounding vehicles and obstacles are taken into consideration. The generation of its boundaries requires the vehicle to obtain the vehicle's position and basic size information from the radar, high-precision map, and positioning module, and project it onto a bird's-eye view. On the basis of the basic size information of the obstacle, namely the vehicle length L and width W, in order to ensure the safety of the vehicle's driving, a buffer length dL and width dW of the obstacle vehicle are reserved, and finally an obstacle boundary is formed. Figure 3 The thin lines in the figure are the basic dimensions of the obstacle, and the thick lines are the boundary lines of the obstacle. This completes the extraction of the obstacle boundary.
[0099] Step 12, dilate the obstacle boundary.
[0100] The expansion of the obstacle boundary and the road boundary is performed in the width direction. The specific method is: the width of the vehicle is reduced to 0, the obstacle boundary is expanded by (W+dW) / 2 on both sides of the width direction, and the road boundary is contracted by (W+dW) / 2 on both sides of the width direction. The obstacle boundary expansion method is as follows Figure 4 , the thick solid line is the expansion boundary, thus completing the expansion of the obstacle and road boundary.
[0101] Step 13, integrate the expanded boundary. If the expanded obstacle boundary has a part that exceeds the road boundary, when integrating the obstacle boundary, if the obstacle 1 boundary and the road boundary have an intersection, the intersection will be subtracted from the road boundary, and the remaining road boundary will form a new integrated boundary; if the obstacle 2 boundary is completely within the road boundary, the new integrated boundary completely includes the obstacle boundary, but the area within the obstacle 2 boundary will be excluded from the drivable area selection range; if the obstacle 3 boundary is outside the road boundary, the obstacle boundary can be ignored. The final effect is as follows Figure 5 .
[0102] Step 2, forming a Delaunay triangulation;
[0103] The following steps are also included in forming the Delaunay triangle mesh:
[0104] Step 21, extracting the coordinates of the connection points and the connection relationship of the integrated boundary from step 1 to form a connection point list and numbering it.
[0105] The connection point refers to the vertices that are connected to form the integrated boundary, and its coordinates are two-dimensional point coordinates. The vertices are connected in pairs to form a part of the integrated boundary box, so that the two connected vertices have a connection relationship. The data structure of the connection point is the same as the rough path node, including the connection point number, the location coordinates of the connection point, the actual cost costG from the starting point to the point, the Euclidean distance heuristic cost costH from the point to the end point, the total cost costF as the sum of the actual cost costG and the heuristic cost costH, and the connection relationship of the connection point number array connected to the point.
[0106] If vertex 1 and vertex 2 are connected and form a line segment of the integration boundary, then vertices 1 and 2 are connected; if vertex 1 and vertex 3 are connected and do not form a line segment of the integration boundary, but the line segment crosses the integration boundary area, then vertices 1 and 3 are not connected. Figure 6 . Then the connection relationship list is [1 2; 2 3; 3 4; 4 5; 5 6; 6 7; 7 8; 8 1; 9 10; 1112; 12 13; 13 14; 14 11;]
[0107] Step 22, the vertex coordinates and connection relationship of the integrated boundary are subjected to the Delaunay triangulation algorithm to output a triangular mesh. The constrained Delaunay triangulation algorithm is used with the help of Matlab's delaunayTriangulation function, and the vertex coordinate list P and the connection relationship constraint list C in the following form are input:
[0108] P=[x1 y1;x2 y2;…;xi yi;…;x13 y13;x14 y14;];
[0109] C=[1 2; 2 3; 3 4; 4 5; 5 6; 6 7; 7 8; 8 1; 9 10; 11 12; 12 13; 13 14; 14 11;];
[0110] The vertex numbers correspond to the row numbers of P, and each row of C consists of two vertex numbers, indicating the connection relationship between the vertices.
[0111] The output triangle connectivity list consists of the three vertex numbers that make up the triangle:
[0112] DelauT=[3 1 9; 9 8 10; 8 9 1; 3 9 10; 11 3 10; 2 1 3; 11 4 3; 8 14 10; 6 54; 10 14 11; 12 6 4; 8 7 14; 11 12 4; 13 7 12; 12 7 6; 13 14 7];
[0114] The final output of the Delaunay triangular mesh within the integrated boundary is as follows Figure 7 .
[0115] Step 3, forming a rough triangle edge path;
[0116] The triangle edge path refers to the route formed by walking along the edge of the triangle mesh within the integration boundary starting from the starting point, which specifically includes the following steps:
[0117] Step 31, obtaining the triangle connection relationship list output from step 2.
[0118] Step 32, determine the starting and ending points of the rough path planning. The starting point is generally the frontmost point on the vehicle line segment along the forward direction, such as Figure 6 The end point is the point of the triangle farthest from the forward direction, such as Figure 6 In the middle triangle [12 6 7], this can be set to point 6.
[0119] Step 33, input the triangle connection relationship list DelauT and the vertex coordinate list P into the improved triangle A-star algorithm (Tri-A*) to perform path planning and obtain a rough connection line path.
[0120] The traditional A* algorithm is used on the chessboard. When traversing the nodes, the A* algorithm traverses the 8 grids connected to the node in the 3*3 chessboard except the current node.
[0121] The object of the improved triangle A-star algorithm proposed in the present invention is a point, which is connected with other points in the triangle mesh formed by delaunay triangle division to form a triangle edge. When the improved triangle A-star algorithm traverses the nodes, it traverses the points connected with the current node to form a triangle edge.
[0122] The rough connection line path is the list of points that need to be passed from the starting point to the end point. The process is as follows Figure 8 , specifically including the following steps:
[0123] Step 331, obtaining input: starting and ending points, triangle connection relationship list, vertex coordinate list;
[0124] Step 332, creating an empty link path point list and an empty unreachable point list;
[0125] Step 333, initializing the total cost costF, the heuristic cost costH, and the actual cost costG of the starting point to 0;
[0126] Step 334, set the starting point as the current point, and add the current point to the list of connecting line path points;
[0127] Step 335, if the current point is not the end point:
[0128] Step 3351, obtain the connection point:
[0129] a. Search for a triangle in the triangle connection relationship list, the vertices of which include the current point;
[0130] b. Remove the current point from the searched triangle vertices and add it to the connection point list, then take the union of the connection point list to remove duplicate vertices;
[0131] Step 3352, connection point traversal: For each connection point in the connection point list:
[0132] a. If the connection point is an end point:
[0133] i. Add the point to the list of connecting line path points;
[0134] ii. Output the list of connecting line path points;
[0135] b. If the connection point is in the unreachable point list:
[0136] Repeat step 3352 to traverse the next vertex;
[0137] c. If the connection point is not in the list of unreachable points:
[0138] Update connection point cost:
[0139] i. Update the actual cost of the connection point costG = the actual cost of the current point + the Euclidean distance between the connection point and the current point;
[0140] ii. Update the heuristic cost costH of the connection point = the Euclidean distance from the connection point to the end point;
[0141] iii. Update the total cost of the connection point costF = the actual cost of the connection point costG + the heuristic cost of the connection point costH;
[0142] d. If the connection point is the last connection point in the connection point list:
[0143] i. Take the connection point with the smallest total cost as the current point;
[0144] ii. Put the current point and the original current point into the unreachable point list;
[0145] iii. Add the current point to the list of connecting line path points;
[0146] Step 336, if the end point is not in the list of connecting line path points:
[0147] Add the end point to the list of connecting line path points;
[0148] Step 337, output the list of connection line path points.
[0149] The pseudo code of the algorithm is as follows. The final output connection line path is [10 11 12 6], that is, Figure 7 The unreachable point list stores all the connection points after traversal to prevent the connection points that have been traversed from being traversed again.
[0150]
[0151]
[0152] Step 4: Integrate the triangle edges to form a drivable area.
[0153] Integrating the triangle edges to form a drivable area also includes the following steps:
[0154] Step 41, obtaining the rough connection line path in step 3.
[0155] Step 42, extract the triangles that make up the drivable area. Separate the rough connection line path [10 11 126] into a triangle edge list ST, which is [10 11; 11 12; 12 6]. By comparing the triangle list ST with the triangle connection relationship list DelauT, obtain the triangle edge list TOP.
[0156] Each triangle in the triangle edge list TOP must contain at least one line segment in the connection line path. And because each triangle is formed by the previous Delaunay triangle division, the method to represent or mark the triangle is: the row number of the connection relationship list DelauT output by the division.
[0157] Each row of the connection relationship list DelauT has 3 columns, each column stores the number of a triangle point, that is, a triangle consists of 3 vertex numbers when defining Delaunay triangle partitioning. Each edge in the triangle edge list ST consists of 2 vertex numbers when Delaunay triangle partitioning.
[0158] To generate the triangle edge list TOP, the following steps are included:
[0159] Step 421, initialize the triangle edge list TOP to empty;
[0160] Step 422, the starting edge is the triangle edge including the starting point, and the ending edge is the triangle edge including the ending point. In this embodiment, for the triangle edge list ST, the starting edge is 10 11 and the ending edge is 12 6:
[0161] Traverse any triangle j in the triangle connection list DelauT:
[0162] If the two vertices of the starting edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list;
[0163] If the two vertices of the end edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list;
[0164] Step 423: The triangle edge list ST does not contain the triangle edge of the starting point or the end point as the waypoint edge. For the waypoint edge of the triangle edge list ST:
[0165] Traverse any triangle j in the triangle connection list DelauT:
[0166] If any point in the waypoint edge is a vertex of triangle j, triangle j is considered to be a drivable area, and the number j of this triangle is added to the TOP of the triangle edge list;
[0167] Step 424, remove the duplicate triangle numbers in the triangle edge list TOP.
[0168] Step 43, integrate the triangles of the drivable area to form polygons, and output the polygonal drivable area with connection relationship. The polygon area connection relationship list POLY is similar to the constraint matrix C, that is, each row is composed of the numbers of two connected vertices, indicating that the two vertices are connected to form an edge.
[0169] The POLY data is used to list the connection relationships of the drivable area border, remove the edges shared by every two triangles in the triangle edge list TOP, and form a polygonal area border.
[0170] In this embodiment, POLY = [10 3; 3 4; 4 6; 6 7; 7 12; 12 11; 11 14; 10 14;], as follows Fig. 9 The polygonal area covered in medium black.
[0171] Embodiment 2
[0172] In this embodiment, the example road conditions are as follows: Fig.10 .
[0173] Step 1, taking the actual contours of obstacles and road boundaries extracted from the sensor as input, extract and dilate the obstacles and road boundaries.
[0174] Step 11: The actual outlines of obstacles and road boundaries are extracted from the sensor module and projected onto the bird's-eye view. Fig.10: The box in the lower left corner is the outline of the vehicle, and the remaining boxes are the outlines of the surrounding vehicles; the dotted line is the lane boundary, and the solid line is the road boundary.
[0175] Step 12, according to the lateral size of the vehicle, that is, half of the vehicle width, the contours on both sides of the surrounding vehicle are expanded outward by half of the vehicle width, and the road boundary lines on both sides are shrunk toward the lane boundary line by half of the vehicle width; after the expansion of the upper left corner, upper right corner and lower right corner of the surrounding vehicle boundary, they all exceed the lane boundary line on one side, and the dotted lines on both sides of the lane boundary line are the expanded road boundary lines, such as Fig.11 .
[0176] Step 13: Integrate the expansion boundary. Since the upper left corner, upper right corner and lower right corner of the vehicle boundary all exceed the lane boundary line on one side after expansion and intersect with the expanded road boundary line, in the area of the vehicle contour, the part exceeding the expanded road boundary line is ignored, and the part within the expanded road boundary line is combined with the road boundary line; the result is as follows: Fig.12 The medium thick solid line is the expansion boundary.
[0177] Step 2: Using a general or constrained Delaunay triangulation algorithm as the main algorithm to form a triangular mesh.
[0178] Step 21, extract the connection point coordinates and connection relationship from the expansion boundary of step 1 to form a connection point list and number them. The result is as follows Fig.12 .
[0179] Step 22, input each point in the connection point list and its connection relationship and each point of the ego-vehicle line segment and its connection relationship as nodes, where the order of numbering each connection point can be arbitrary, that is, [1 2 3 4 5 6 ... 1617 18]; if the constrained Delaunay triangulation algorithm is used with the connection relationship of the expansion boundary as the constraint input, where the order of numbering each connection point is input according to [1 2 3 4 5 6 ... 16], the ego-vehicle connection points 17 and 18 are not constraints and do not need to be input; output the triangular mesh, such as Fig.13 .
[0180] Step 3, forming a rough triangle edge path;
[0181] Step 31, obtain the connection relationship list of each triangle from the triangular mesh of the second sub-method, and extract the connection point coordinates and connection relationship from the expansion boundary of step 1 to form a connection point list, whose data structure includes the connection point number, the position coordinates of the connection point, the actual driving distance cost costG from the starting point to the point, the Euclidean distance inspiration cost costH from the point to the end point, the total cost costF which is the sum of the actual cost costG and the inspiration cost, and the connection relationship of the connection point number array connected to the point; wherein the actual cost costG, the inspiration cost costH and the total cost costF are all initialized to 0.
[0182] Step 32, determine the starting and ending points of the rough path planning from the output of the upper decision system. The starting point is generally the frontmost point on the vehicle line segment along the forward direction, such as Fig.12 The midpoint is 18; the end point is generally the rear boundary point closest to the front obstacle of the target lane output by the decision system, such as Fig.12 Midpoint 6.
[0183] Step 33, input the connection point list and its midpoint into the improved Tri-A* algorithm for path planning and obtain a rough connection line path. The planning process is as follows: Figure 8 ; Output rough path such as Fig.14 , the rough path point list is [18 14 6], and the numbers are all connection point numbers.
[0184] Step 4: Based on the rough path point list, integrate the triangle edges to form a drivable area.
[0185] Step 41 , obtaining a list of connection relationships of the edges of the triangle mesh corresponding to each path point from the connection point numbers of the rough path list of the third sub-method.
[0186] Step 42, taking the connection relationship of each triangle of the triangular mesh, such as triangles [5 17 18] and [1814 15], and comparing it with the obtained path connection relationship [18 14 6]; because the vertex of triangle [18 14 15] shares at least two connection points with the connection line path [1814 6], the triangle belongs to the drivable area; and because the vertex of triangle [5 17 18] shares only one connection point with the connection line path [18 14 6], the triangle does not belong to the drivable area.
[0187] Step 43, integrate the triangles of the drivable area to form a polygon, and output the polygonal drivable area with a connection relationship: after step 42, the drivable area is composed of triangles [[18 14 15]; [18 145]; [5 14 6]; [14 13 6]]; the result is as follows Fig.15 Black area.
[0188] The present invention can provide a safe driving area for the vehicle. Fig.16 Take the two-lane driving scenario in the example. The lane of the ego car (ego) has a preceding car (Preceding), and the left lane has a leading car (Leader) and a following car (Follower). When the speed of the preceding car (Preceding) is lower than that of the ego car, the ego car gradually catches up with the preceding car (Preceding). Assuming that the distance between the two cars in the left lane is wide enough, in order to ensure the safety and traffic efficiency of the ego car, it is necessary to change lanes to the left side of the vehicle. The present invention can give an area composed of the Delaunay triangle where the ego car can change lanes to the left. According to the regional constraints, the trajectory planning system can plan the trajectory of the ego car's lane change.
[0189] The present invention can effectively reduce computing power consumption and improve efficiency. When forming a drivable area, the number of triangles with a larger coverage area is processed, and compared with the number of grids, point clouds or pixels with a smaller coverage area, the number of triangles generated on the same road surface is much smaller than the number of grids, point clouds or pixels. Therefore, when the computer processes the same road surface information, the present invention provides a more uniform area distribution and less redundant information, reducing the overhead of data storage and processing.
[0190] The present invention helps to efficiently plan a smooth trajectory. Delaunay triangulation provides a sparse and uniform grid, which is conducive to the implementation of an efficient path search algorithm, thereby improving the efficiency of path planning. And because Delaunay triangulation tends to generate relatively uniform triangles without overly narrow and long triangles, it helps to calculate a relatively smooth path and reduce sharp turns on the path.
[0191] The present invention has a better visualization effect for the drivable area. Compared with a small coverage grid, point cloud or pixel, the drivable area composed of triangles with a larger coverage area can intuitively and clearly show the range in which the vehicle can safely drive.
[0192] The above are only specific steps of the present invention and do not constitute any limitation to the protection scope of the present invention; any technical solutions formed by equivalent transformation or equivalent replacement shall fall within the protection scope of the present invention; some parts not elaborated in detail in the present invention belong to the known technologies of those skilled in the art.
Claims
1. A method for generating a drivable area for trajectory planning of an autonomous driving vehicle. It is characterized in that The method for generating a drivable area for trajectory planning of an autonomous driving vehicle comprises the following steps: Step 1, extract the road conditions and expand obstacles and road boundaries; Step 2, based on the expansion obstacle and the road boundary, the Delaunay triangulation algorithm is used to output a triangle connection relationship list and a Delaunay triangle mesh; Step 3, generating a rough triangle edge path based on the triangle connection relationship list and the Delaunay triangle mesh; Step 4: Integrate the triangle edges to form a drivable area based on the rough triangle edge path.
2. According to the method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 1, It is characterized in that In step 1, the following steps are also included: Step 11, extract obstacle boundaries; Based on the basic size information of the obstacle, a buffer size is reserved for the obstacle vehicle to form the obstacle boundary; Step 12, dilate obstacles and road boundaries; The width of the vehicle is reduced to 0, the obstacle boundary expands on both sides in the width direction, and the road boundary shrinks on both sides in the width direction; Step 13, integrating the dilation boundary; If the expanded obstacle boundary has a part that exceeds the road boundary, when integrating the obstacle boundary, the intersecting part is subtracted from the road boundary, and the remaining road boundary forms a new integrated boundary; If the expanded obstacle boundary is completely within the road boundary, the new integrated boundary will completely contain the obstacle boundary, but the area within the obstacle boundary will be excluded from the drivable area selection range; If the obstacle boundary is outside the road boundary, the obstacle boundary is ignored.
3. According to the method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 1, It is characterized in that In step 2, the following steps are also included: Step 21, extracting the connection relationship of the connection points from the integration boundary to form a connection point list and numbering it; The connection relationship includes the connection point number, the location coordinates of the connection point, the actual driving distance cost G from the starting point to the point, the Euclidean distance heuristic cost H from the point to the end point, the total cost F as the sum of the actual cost G and the heuristic cost, and the connection relationship of the array of connection point numbers connected to the point; Step 22, the vertex coordinates and connection relationships of the integrated boundary are subjected to the Delaunay triangulation algorithm to output a triangle connection relationship list.
4. According to claim 3, the method for generating a drivable area for trajectory planning of an autonomous driving vehicle, It is characterized in that In step 3, the following steps are also included: Step 31, obtaining a triangle connection relationship list; Step 32, determine the starting and ending points of the rough path planning; The starting point is the forward point on the vehicle line segment along the forward direction, and the end point is the rearmost point of the triangle in the forward direction; Step 33, input the triangle connection relationship and vertex coordinates into the improved triangle A-star algorithm to perform path planning and obtain a rough connection line path.
5. According to the method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 1, It is characterized in that In step 4, the following steps are also included: Step 41, obtaining a rough connection line path; Step 42, separating the triangle edge list of the drivable area through the rough connection line path; Step 43, integrating the triangles of the drivable area to form a polygon, and outputting the polygonal drivable area with a connection relationship.
6. The method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 4, It is characterized in that In step 33, the path planning adopts an improved triangle A-star algorithm; The improved triangle A-star algorithm comprises the following steps: Step 331, obtaining input: starting and ending points, triangle connection relationship list, vertex coordinate list; Step 332, creating an empty link path point list and an empty unreachable point list; Step 333, initializing the total cost costF, the heuristic cost costH, and the actual cost costG of the starting point to 0; Step 334, set the starting point as the current point, and add the current point to the list of connecting line path points; Step 335, if the current point is not the end point: Step 3351, obtain the connection point: a. Search for a triangle in the triangle connection relationship list, the vertices of which include the current point; b. Remove the current point from the searched triangle vertices and add it to the connection point list, then take the union of the connection point list to remove duplicate vertices; Step 3352, connection point traversal: For each connection point in the connection point list: a. If the connection point is an end point: i. Add the point to the list of connecting line path points; ii. Output the list of connecting line path points; b. If the connection point is in the unreachable point list: Repeat step 3352 to traverse the next vertex; c. If the connection point is not in the list of unreachable points: Update connection point cost: i. Update the actual cost of the connection point costG = the actual cost of the current point + the Euclidean distance between the connection point and the current point; ii. Update the heuristic cost costH of the connection point = the Euclidean distance from the connection point to the end point; iii. Update the total cost of the connection point costF = the actual cost of the connection point costG + the heuristic cost of the connection point costH; d. If the connection point is the last connection point in the connection point list: i. Take the connection point with the smallest total cost as the current point; ii. Put the current point and the original current point into the unreachable point list; iii. Add the current point to the list of connecting line path points; Step 336, if the end point is not in the list of connecting line path points: Add the end point to the list of connecting line path points; Step 337, output the list of connection line path points.
7. The method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 5, It is characterized in that In step 42, a triangle edge list TOP is generated, which specifically includes the following steps: Step 421, initialize the triangle edge list TOP to empty; Step 422, traverse any triangle j in the triangle connection relationship list DelauT: If the two vertices of the starting edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list; If the two vertices of the end edge are both vertices of triangle j, and the triangle contains this edge, then add the number j of this triangle to the TOP of the triangle edge list; The starting edge is the edge that contains the starting point in the link path, and the ending edge is the edge that contains the ending point in the link path; Step 423, the triangle edge list ST does not contain the triangle edge of the starting point or the end point as the waypoint edge, and traverses any triangle j in the triangle connection relationship list DelauT; If any point in the waypoint edge is a vertex of triangle j, triangle j is considered to be a drivable area, and the number j of this triangle is added to the TOP of the triangle edge list; Step 424, remove the duplicate triangle numbers in the triangle edge list TOP.
8. The method for generating a drivable area for trajectory planning of an autonomous driving vehicle according to claim 5, It is characterized in that In step 43, the polygonal drivable area is represented by a connection relationship list POLY; The connection relationship list POLY removes the common edges of any two triangles in the triangle edge list TOP to form a polygonal area border.
Citation Information
Patent Citations
Active traction control method for three-section marshalling virtual rail train
CN110244731A
Method and system for determining drivable area and automatic driving vehicle
CN115205823A
Method and device for determining drivable area under BEV visual angle
CN116343155A
Method and device for determining drivable area, equipment, storage medium and vehicle
CN116620294A
A* algorithm-based incremental path planning method and A* algorithm-based incremental path planning system for companion robot
CN109059924A
