A method and device for path planning of an autonomous driving vehicle in an off-road environment
By establishing a multi-layer fused off-road grid map and an improved RRT algorithm in the off-road environment, the accuracy and low efficiency of path planning in the off-road environment are solved, and the effect of rapid convergence to the optimal path is achieved.
Patent Information
- Application Number
- CN202411127309.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-16
AI Technical Summary
The existing technology is difficult to accurately represent the terrain in path planning in off-road environments and is inefficient, resulting in the inability to quickly and accurately obtain the optimal path. Moreover, the standard RRT algorithm has high time cost and cannot quickly converge to the optimal solution.
By obtaining the topographic information of the off-road environment, parametric modeling is performed, a multi-layer fusion off-road raster map is established, the path cost function under the influence of various terrain factors is determined, and based on the variable step strategy, offset sampling strategy, and re- The connection optimization strategy improves the RRT algorithm and obtains the MT-RRT algorithm, which performs path search and path smoothing on the multi-layer fused off-road raster map.
It achieves rapid and efficient convergence to the optimal path while considering multiple terrain factors, optimizes the path length and the traffic cost of different types of terrain obstacles, and improves the efficiency and accuracy of path planning.
Smart Images

Figure CN118640925B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a method and device for path planning of an autonomous driving vehicle in an off-road environment. Background Art
[0002] Global path planning techniques have been widely used in environments with known obstacle information and are extremely important in the field of autonomous driving. The goal of this approach is to identify a collision-free path between an initial state and a target state in the configuration space while considering optimization criteria such as the shortest path in length, the shortest path in time, or the most energy-efficient path.
[0003] At present, path planning algorithms have been widely studied, and many methods have been proposed, including graph-based search algorithms and sampling-based algorithms. In addition, sampling-based algorithms such as the random tree algorithm (RRT) and its variants are becoming more and more popular due to their simpler structure, faster speed, and outstanding ability to solve high-dimensional problems. RRT It is also proven to be probabilistically complete and asymptotically optimal. However, the standard RRT The limitations of the algorithm make RRT The algorithm has a high time cost. In addition, many application scenarios of autonomous driving need to operate in off-road environments. Facing complex and changeable obstacle environments, this shortcoming will be magnified. In off-road environments, the terrain and obstacles are more complex, so additional obstacle factors need to be considered in path planning. The increase in obstacle density will have a negative impact on path quality. In addition, if only the shortest path from the starting point to the end point is considered, the vehicle is likely to drive into a dangerous area, which poses a major challenge to the safety of autonomous vehicles.
[0004] There are currently few studies on path planning for off-road environments, and the existing path planning studies based on off-road environments rarely conduct quantitative characterization for different environments, which makes it difficult to accurately represent the precise off-road terrain, resulting in low quality of the generated path. Most of the existing off-road environment path planning uses relatively old algorithms with low efficiency, and cannot quickly and accurately obtain an optimal path, or obtains a short but difficult or even unfeasible path. Summary of the invention
[0005] The present application provides a method and device for autonomous driving vehicle path planning in an off-road environment, so as to solve the technical problem that the prior art is difficult to accurately represent the off-road terrain, is inefficient, and cannot quickly and accurately provide the optimal path.
[0006] According to a first aspect of the present application, a method for path planning of an autonomous driving vehicle in an off-road environment is provided, the method comprising:
[0007] Acquire terrain information in an off-road environment, perform parameterized modeling based on the terrain information, and obtain a multi-layer fused off-road grid map;
[0008] Based on the terrain information and the multi-layer fused off-road grid map, determining the path cost function under the influence of various terrain factors;
[0009] Wherein, the path cost function under the influence of various terrain factors is determined based on the terrain information and the multi-layer fused off-road grid map, including:
[0010] Determining all path segments according to the multi-layer fused off-road grid map, and calculating path length costs according to the path segments;
[0011] Determine the length of a path through a slope obstacle, the length of a path through a sand obstacle, and the length of a path through a mud obstacle according to the topographic information and the multi-layer fused off-road grid map;
[0012] Determine the terrain obstacle passing cost according to the path length through the slope obstacle, the path length through the sand obstacle, and the path length through the mud obstacle;
[0013] Determine the path cost function under the influence of various terrain factors according to the path length cost and terrain obstacle passing cost;
[0014] Based on the variable step size strategy, bias sampling strategy, reconnection optimization strategy and the path cost function, RRT The algorithm is improved to obtain MT-RRT algorithm;
[0015] Execute the MT-RRT on the multi-layer fused off-road grid map The algorithm performs path search;
[0016] The path search result is subjected to path smoothing processing, and an optimal path is output.
[0017] According to the above aspects and any possible implementation, an implementation is further provided, wherein the obtaining of terrain information in an off-road environment, performing parameterized modeling based on the terrain information, and obtaining a multi-layer fused off-road grid map comprises:
[0018] Acquiring terrain information in an off-road environment, wherein the terrain information includes off-road terrain information and slope information;
[0019] Quantitatively processing the off-road terrain information and the slope information to obtain attribute parameters of different off-road terrains and different slopes;
[0020] According to the different off-road terrains and different slope attribute parameters, a grid method is used to build a model to obtain a multi-layer fused off-road grid map.
[0021] According to the above aspects and any possible implementation, an implementation is further provided, which uses a grid method to perform modeling according to the different off-road terrains and different slope attribute parameters to obtain a multi-layer fused off-road grid map, including:
[0022] Defining a configuration space, wherein the configuration space includes a set of traversable areas and a set of intraversable areas;
[0023] According to the different off-road terrains and different slope attribute parameters, solving the set of impassable areas and the set of traversable areas;
[0024] According to the solution results of the impassable area set and the traversable area set, a grid method is used to build a model to obtain a multi-layer fused off-road grid map.
[0025] According to the above aspects and any possible implementation, an implementation is further provided, wherein solving the set of impassable areas and the set of traversable areas according to the different off-road terrains and different slope attribute parameters comprises:
[0026] Decomposing the impassable area set into an obstacle layer set, a terrain layer set and an impassable slope layer set;
[0027] According to the different off-road terrains and different slope attribute parameters, solving the obstacle layer set, terrain layer set and passable slope layer set, and determining the impassable area set;
[0028] According to the result of the inaccessible area set, the accessible area set is obtained in the configuration space.
[0029] According to the above aspects and any possible implementation, an implementation is further provided, wherein the path cost function under the influence of various terrain factors is determined based on the terrain information and the multi-layer fused off-road grid map, including:
[0030] Determining all path segments according to the multi-layer fused off-road grid map, and calculating path length costs according to the path segments;
[0031] Determine the length of a path through a slope obstacle, the length of a path through a sand obstacle, and the length of a path through a mud obstacle according to the topographic information and the multi-layer fused off-road grid map;
[0032] Determine the terrain obstacle passing cost according to the path length through the slope obstacle, the path length through the sand obstacle, and the path length through the mud obstacle;
[0033] According to the path length cost and the terrain obstacle passing cost, the path cost function under the influence of various terrain factors is determined.
[0034] According to the above aspects and any possible implementation, a further implementation is provided, wherein the path length cost for:
[0035] ;
[0036] in Indicates the path segment number, Represents different path segments, and n is the total number of path segments.
[0037] According to the above aspects and any possible implementation, a further implementation is provided, wherein the terrain obstacle is for:
[0038] ;
[0039] in, , and Respectively represent the weight factors of the impact of slope, mud and sand terrain on vehicle traffic, Indicates the length of the path through the slope obstacle. represents the length of the path through the sand, Indicates the length of the path through the mud obstacle.
[0040] According to the above aspects and any possible implementation, a further implementation is provided, wherein the path cost function for:
[0041] ;
[0042] in, is the path length cost, is the cost of passing terrain obstacles, is the weight factor of the path length cost, It is the weight factor of the cost of passing terrain obstacles.
[0043] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:
[0044] Obtain the task requirements and vehicle type, and adjust the weight factor according to the vehicle type. , And the weight factors of the impact of slope, mud and sand terrain on vehicle traffic , and Perform parameter optimization and determine the weight factor parameter set;
[0045] According to the weight factor parameter set, the optimal path is customized to be selected among different mission requirements and vehicle types.
[0046] According to a second aspect of the present application, a path planning device for an autonomous driving vehicle in an off-road environment is provided, the device comprising:
[0047] A map building module is used to obtain terrain information in an off-road environment, perform parameterized modeling based on the terrain information, and obtain a multi-layer fused off-road grid map;
[0048] A function definition module, used to determine the path cost function under the influence of various terrain factors based on the terrain information and the multi-layer fused off-road grid map;
[0049] Wherein, the path cost function under the influence of various terrain factors is determined based on the terrain information and the multi-layer fused off-road grid map, including:
[0050] Determining all path segments according to the multi-layer fused off-road grid map, and calculating path length costs according to the path segments;
[0051] Determine the length of a path through a slope obstacle, the length of a path through a sand obstacle, and the length of a path through a mud obstacle according to the topographic information and the multi-layer fused off-road grid map;
[0052] Determine the terrain obstacle passing cost according to the path length through the slope obstacle, the path length through the sand obstacle, and the path length through the mud obstacle;
[0053] Determine the path cost function under the influence of various terrain factors according to the path length cost and terrain obstacle passing cost;
[0054] RRT Algorithm improvement module, used to improve RRT based on variable step size strategy, bias sampling strategy, reconnection optimization strategy and the path cost function The algorithm is improved to obtain MT-RRT algorithm;
[0055] A path search module, used to perform the MT-RRT on the multi-layer fused off-road grid map The algorithm performs path search;
[0056] The path smoothing module is used to perform path smoothing processing on the result of the path search and output the optimal path.
[0057] Compared with the prior art, this application achieves the following beneficial effects:
[0058] (1) In response to the common problems existing in path planning in unstructured environments such as off-road environments, this application uses the grid method to perform parameterized modeling of off-road terrain information and establish a multi-layer obstacle and slope fusion grid map, which can quantitatively represent the different landforms and objects in the off-road environment, including obstacles that are passable but have a high cost of passage, such as sand and bushes, so that the autonomous driving vehicle can receive environmental information more accurately, so that the factors considered by the vehicle during path planning can be more comprehensive, and the planned path can be more complete.
[0059] (2) Regarding standard RRT The algorithm performs random search and converges slowly. This application significantly improves RRT by using variable step size strategy, bias sampling strategy, and reconnection optimization strategy. The convergence speed of the improved RRT The algorithm is combined with a multi-layer fused off-road grid map, which enables the algorithm to perform path search in a multi-layer fused grid map environment with off-road environmental information characteristics, and considers the different vehicle travel costs caused by various terrain factors into the algorithm path optimization link, comprehensively evaluates the impact of various factors on the vehicle driving process, and finally obtains an improved RRT Algorithm MT-RRT This algorithm can not only converge to the optimal solution quickly and efficiently, but also design a reasonable travel cost for optimization according to the impact of various terrain factors on vehicles. The planned path can quickly converge to an optimal solution that takes into account the path length and different types of terrain obstacles while considering the impact of multiple terrain factors.
[0060] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0062] Figure 1A flow chart showing a method for path planning of an autonomous driving vehicle in an off-road environment according to an embodiment of the present application is shown;
[0063] Figure 2 A technical roadmap of a method for path planning of an autonomous driving vehicle in an off-road environment according to an embodiment of the present application is shown;
[0064] Figure 3 A 3D multi-layer fused grid map according to an embodiment of the present application is shown;
[0065] Figure 4 A 2D multi-layer fused grid map according to an embodiment of the present application is shown;
[0066] Figure 5 shows the 2D path planning result according to an embodiment of the present application;
[0067] Figure 6 shows the 3D path planning result according to an embodiment of the present application;
[0068] Figure 7 A block diagram of a path planning device for an autonomous driving vehicle in an off-road environment according to an embodiment of the present application is shown;
[0069] Figure 8 A pseudo code diagram of Algorithm 1 of the present application is shown;
[0070] Fig. 9 A pseudo code diagram of Algorithm 2 of the present application is shown;
[0071] Fig.10 A pseudo code diagram of Algorithm 3 of the present application is shown;
[0072] Fig.11 A pseudo code diagram of Algorithm 4 of the present application is shown. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0075] This application proposes a path planning method for an autonomous driving vehicle in an off-road environment. The method includes: improving the off-road environment information based on the grid method to perform parameterized modeling and establish a multi-layer fused off-road grid map. Then, based on the establishment of the grid map, the performance of different path search algorithms based on the grid method is compared to improve the basic RRT Algorithm, for RRT The shortcomings of the algorithm are improved and optimized to make RRT The algorithm can perform path search, improve the time complexity of the algorithm through optimization of different strategies, reduce the amount of calculation of the algorithm, and on this basis, smooth the path results. In this way, an optimal path that takes into account the path length and different types of terrain obstacles can be planned while considering the influence of multiple terrain factors.
[0076] The following is a description of a specific embodiment of a path planning method for an autonomous driving vehicle in an off-road environment provided by the present application in conjunction with the accompanying drawings.
[0077] Figure 1 FIG. 1 is a flow chart showing a method 100 for planning a path for an autonomous driving vehicle in an off-road environment according to an embodiment of the present application. Figure 1 As shown, the method 100 includes:
[0078] S110, obtaining terrain information in an off-road environment, performing parameterized modeling according to the terrain information, and obtaining a multi-layer fused off-road grid map.
[0079] In some embodiments, RRT The search environment is a two-dimensional plane, with a simple principle, intuitive model, and easy implementation on the platform. However, in an off-road environment, the model constructed in this way is quite different from the actual environment. When the off-road environment information is abstracted and simplified into a two-dimensional plane, the environment information cannot be accurately expressed, which will cause the path generated by the algorithm to be dangerous when executed by the mobile robot, affecting the execution of the task. Although the three-dimensional space model is more complex than the two-dimensional plane model, it can extract and express the environment information in more detail and can more intuitively understand the planned path. The grid method has a simple structure, is easy to extract and establish three-dimensional environment features, is easy to represent different types of terrain, is relatively easy to create and maintain, and has the ability to express irregular obstacles. Therefore, this paper uses the grid method for map modeling when extracting off-road environment information.
[0080] However, the terrain information in the off-road environment is complex, and the traditional grid map modeling method is difficult to accurately represent the map. This application chooses to quantify the terrain information obtained in the off-road environment to obtain different off-road terrain and different slope attribute parameters, and then use the grid method to perform parametric modeling based on different off-road terrain and different slope attribute parameters to obtain a multi-layer fused off-road raster map.
[0081] In some embodiments, according to the different off-road terrains and different slope attribute parameters, a grid method is used to perform modeling to obtain a multi-layer fused off-road grid map, specifically including:
[0082] First, let is a configuration space, then Includes traversable area and impassable areas , and its relationship is defined as follows:
[0083] ; (1)
[0084] Will Decomposition into obstacle layers , Terrain layer , Passable slope layer . Its definition in the configuration space is as follows:
[0085] ; (2)
[0086] Calculate We can then find the traversable region in configuration space , The calculations are as follows:
[0087] 1) Obstacle layer: When extracting environmental information, inaccessible obstacles include obstacles, slope obstacles, and terrain obstacles, which are defined as
[0088] ; (3)
[0089] in, Indicates some obstacles that already exist in the environment. Indicates the area where vehicles cannot pass due to the steep slope (impassable slope layer). The calculation of this area will be carried out on the slope layer. Indicates various types of impassable terrain in off-road environments. The passable terrain and impassable terrain are shown in the terrain classification table 1.
[0090] Table 1
[0091] ;
[0092] 2) Terrain layer: The terrain layer includes various types of terrain in the configuration space of the off-road environment, defined as
[0093] ; (4)
[0094] Where d represents the number of different terrains in the environment, Represents various types of terrain. Represents the total number of different terrains in the environment, and calculates After that we can indicate the location and size of various terrain obstacles in the map.
[0095] 3) Slope layer: Since different slopes are common in off-road environments, we store the digital elevation model (DEM) as a slope raster layer , which needs to be explained is the impassable slope layer , which is calculated as follows
[0096] ; (5)
[0097] in, is the slope information of any grid point in the map, It is the passable slope threshold of the vehicle in the current map environment. After calculating the inaccessible slope layer area in the map, the other areas are the passable slope layer areas. .
[0098] In some embodiments, the present application establishes a digital elevation model (DEM) to simulate the outdoor environment, uses a multi-layer grid map to store various types of terrain information, and quantitatively expresses different terrains. For an off-road environment of 1000m×1000m in size, a 100×100 multi-layer fused grid map is established based on a sampling point of 10m. The 3D multi-layer fused grid map result is as follows: Figure 3 As shown, in addition to terrain information, blue indicates lake obstacles, black indicates map obstacles, cyan indicates mud obstacles, and yellow indicates sand obstacles. The 2D multi-layer fusion raster map is shown in Figure 4 As shown, black represents inaccessible lake obstacles and map obstacles, dark gray represents sand obstacles, and light gray represents mud obstacles. The elevation information is represented by the contour lines in the figure.
[0099] S120, determining a path cost function under the influence of various terrain factors based on the terrain information and the multi-layer fused off-road grid map.
[0100] In some embodiments, the terrain is complex in an off-road environment. After the off-road environment is represented by a grid map, the calculation of the path cost is particularly critical. The calculation of the path cost lays the foundation for the entire algorithm to avoid terrain and select paths. The path cost function proposed in this application includes the path length cost and the terrain factor cost, which is defined as
[0101] ; (6)
[0102] in, is the path length cost, is the cost of passing terrain obstacles, and is the weight factor.
[0103] To calculate the path length cost, we use Euclidean distance to calculate the path length. Figure 4 The 2D multi-layer fusion grid map shown in the figure determines the two-dimensional coordinates of each node. First, let the coordinates of any two adjacent nodes a and b be , .but arrive The distance between Defined as
[0104] ; (7)
[0105] In some embodiments, Defined as
[0106] ; (8)
[0107] in Indicates the path segment number, Represents different path segments, and n is the total number of path segments.
[0108] To calculate the cost of terrain obstacle passage, Defined as
[0109] ; (9)
[0110] in, , and They represent the weight factors of the slope, muddy ground, and sandy ground on vehicle traffic, and the selection of the weight factors will be verified by simulation experiments. Let all the grid points passed by the path be P, then Represents each grid point that the path passes through, Represents the length of the path through the slope obstacle, defined as
[0111] ; (10)
[0112] in, is the grid point number at the slope obstacle, Represents the difference in elevation values. Represents the grid points in the slope obstacle terrain. The entire path has grid points are in terrain with slope obstacles, and With the following definition:
[0113] ; (11)
[0114] in, express The elevation value of the grid point is described by the above formula: among the grid points passed by the path in sequence, the influence of the slope obstacle terrain on the travel cost of the latter grid point relative to the previous grid point when it is downhill is 0.
[0115] represents the length of the path through the sand, defined as
[0116] ; (12)
[0117] in, is the grid point number in the sandy terrain, Indicates the grid points in the sandy terrain. The current entire path has grid points are in sandy terrain.
[0118] Similarly, Defined as
[0119] ; (13)
[0120] in, is the grid point number in muddy terrain, Indicates the grid points in the mud terrain. The current entire path has grid points are in mud terrain.
[0121] S130, based on the variable step size strategy, the bias sampling strategy, the reconnection optimization strategy and the path cost function
[0122] Number of RRT The algorithm is improved to obtain MT-RRT algorithm.
[0123] In some embodiments, for standard RRT The algorithm searches randomly and converges slowly, such as Figure 2As shown, RRT can be optimized based on the variable step size strategy, bias sampling strategy, reconnection optimization strategy and the path cost function. The algorithm is improved to obtain multi-terrain RRT Algorithm, namely MT-RRT algorithm.
[0124] Specifically, multi-terrain RRT The algorithm and algorithm improvement details involve Algorithm 1, such as Figure 8 shown.
[0125] In Algorithm 1, the search tree is set to ,starting point ,end and path cost , in the main loop, use Function determines step size and sampling points , Function is used to determine Zhongyu At the closest point, Will Expanding into the search tree middle, Functions and The functions are determined The set of neighboring nodes in the tree And the parent node set of these nodes with a predefined depth of 2 , based on these two sets using Function and Rewire-MT-RRT Functions to connect and reconnect, The function updates the information in the search book and returns the information in the tree after the loop to obtain the optimal path under the current number of sampling times.
[0126] (a) Sampling strategy
[0127] RRT The algorithm randomly samples the entire map each time it obtains a new node. This method is undoubtedly very inefficient and will result in many unnecessary redundant nodes in the tree. These nodes will not only fail to optimize the existing path cost, but will also increase the amount of calculation, causing the algorithm to converge slowly. It is a single-increment sampling. The random sampling method makes the algorithm inefficient and not conducive to algorithm convergence. To address this problem, before finding the initial solution of the path, we use a large step size and a direct connection to the end point strategy for sampling. After finding the initial solution, in order to prevent the algorithm from falling into the local optimal solution, we will use a smaller step size and bias the sampling area to optimize the algorithm sampling strategy. The optimized sampling process involves Algorithm 2, as shown in Fig. 9 The detailed description is as follows:
[0128] In Algorithm 2, the starting point is input ,end and path cost , It is infinite when initialized. First, determine the optimal path cost ,if If is infinite, it is determined that the initial solution has not been found, and the step size is Set to , and use in Matlab Generate a random number between 0 and 1 for judgment. If this number is less than the sampling target probability , then the sampling point Target point , if this number is greater than , then randomly sample, and then determine again in each cycle ,if ,but Set to and use Function for sampling.
[0129] 1) Variable step size strategy
[0130] RRT Each time a node is expanded, there is a corresponding step size. The larger the step size, the greater the RRT The search tends to be depth-first search. The smaller the step size, the more the path search tends to be breadth-first search. Under such conditions, the variable step size strategy is used to use a larger step size before the path finds the initial solution. , so that the algorithm can find the initial solution faster, and then use a smaller step size after finding the initial path To improve the convergence speed of the algorithm, the advantage of doing so is that the algorithm can avoid the local optimum of the path when solving the problem. and The numerical value of will be compared and selected through simulation experiments.
[0131] 2) Target bias strategy
[0132] For RRT The algorithm generates new nodes. The RRT algorithm is a pure random sampling in free space. The sampling method is highly random, blind, and has long planning time. To address this problem, the random sampling point When , the target point is taken as ,Right now , which allows the random search tree During the expansion process, there is a certain probability of growing towards the target direction, making the sampling point more "purposeful". Before finding the initial solution, we use a certain probability to directly sample the end point. The advantage of this is that the path length of the initial solution is relatively short, and the time to find the world can be optimized.
[0133] 3) Biased sampling strategy
[0134] After finding the initial solution, we use Informed-RRT The sampling strategy of the algorithm is biased sampling, Informed-RRT Algorithms and RRT The algorithm is the same before finding the initial solution. After the initial solution is found, the algorithm 3 is used in the loop iteration. This algorithm is similar to Informed-RRT. The difference between the algorithms is that the path cost in the calculation of the volume of the hyperellipsoid is The slope and terrain obstacle cost are incorporated, which makes the volume of the hyperellipsoid larger than the Informed-RRT The ellipsoid volume is large, and the local optimum is avoided as much as possible while considering the slope obstacle, while further accelerating the convergence speed of the algorithm.
[0135] In Algorithm 3, Function Make a judgment if is infinite, sampling is performed over the entire map; if , then the algorithm is considered to have found a solution. and For the focus, Calculate the size of the ellipse for the major axis, making sure the sampled points are inside the ellipse.
[0136] (b) Steps and step
[0137] The algorithm samples a new node after, Step 2: Add new node With the tree A set of nodes within a certain distance The node with the smallest path cost uses Perform collision detection and connect the nodes if there is no collision between the nodes. The step is after the nodes are connected, based on the path cost function consider Is there a node connection method with a lower path cost in the path? If so, perform collision detection. If there is no node collision, cut off the previously connected nodes and use Reconnect nodes with lower path cost.
[0138] After the improvement of this algorithm, these two steps not only consider the nearby vertex set , while considering The parent node of the middle node, the depth of the parent node search is defined as 2. As long as the path is collision-free and based on the path cost of multiple terrains If the new path node connection makes the total path cost of the algorithm smaller, the new path will be connected. This process refers to Quick-RRT Modify it, and its pseudo code is shown in Algorithm 4, which is similar to Quick-RRT The difference is that the path cost of this algorithm takes into account the influence of terrain factors.
[0139] According to the above RRT MT-RRT obtained by algorithm improvement The algorithm can perform path search in a multi-layer fused raster map environment with off-road environmental information characteristics, and take into account the different vehicle travel costs caused by various terrain factors into the algorithm path optimization link, and comprehensively judge the impact of various factors on the vehicle driving process. It can not only converge to the optimal solution quickly and efficiently, but also make the planned path quickly converge to an optimal solution that takes into account the path length and different types of terrain obstacles while considering the influence of multiple terrain factors.
[0140] S140, executing the MT-RRT on the multi-layer fused off-road grid map The algorithm performs path search.
[0141] In some embodiments, the MT-RRT The algorithm is combined with a multi-layer fused off-road grid map, which enables the algorithm to perform path search in a multi-layer fused grid map environment with off-road environmental information characteristics. It can not only converge to the optimal solution quickly and efficiently, but also design a reasonable travel cost for optimization based on the impact of various terrain factors on the vehicle. The planned path quickly converges to an optimal solution that takes into account the path length and different types of terrain obstacles while considering the influence of multiple terrain factors.
[0142] S150, performing path smoothing processing on the result of the path search and outputting an optimal path.
[0143] In some embodiments, according to the result of the path search, the elevation value of the coordinate point can be imported into the path point through the B-spline interpolation curve to smooth the path point, and finally the optimal path is represented. The 2D path planning result is as follows: Figure 5 As shown, the 3D path planning results are as follows Figure 6 shown.
[0144] In some embodiments, since different autonomous driving vehicles have different passability in different obstacle environments, this application will further test the passability comparison of different weight factors for obstacles and select a set of parameters as initial parameters. In terms of terrain, different types of maps are used for parameter optimization for different adjustable weight parameters; in terms of adjustable weight parameters, first, in formula (6), It represents the Euclidean distance from the starting point to the end point. Set to 1. The algorithm adds a terrain obstacle penalty term based on the path length. Also set to 1. On this basis, adjust , and The weight size enables the vehicle to take into account various terrain obstacles to optimize the path.
[0145] Through this simulation experiment, different parameter combinations are selected for the algorithm to select parameters for autonomous driving vehicles with different characteristics. The vehicle characteristics and corresponding different parameters are shown in the passage cost parameter selection table based on vehicle characteristics (Table 2 below):
[0146] Table 2 Passage cost parameter selection table
[0147] ;
[0148] Users can customize the optimal path based on different mission requirements and vehicle types according to the parameter selection table.
[0149] According to the embodiments of the present application, the following technical effects are achieved:
[0150] (1) This application compares the advantages and disadvantages of different modeling methods, uses the grid method to perform parameterized modeling of off-road terrain information, and establishes a multi-layer obstacle fusion grid map, so that the autonomous driving vehicle can receive environmental information more accurately, so that the factors considered by the vehicle when planning the path can be more comprehensive, and the planned path can quantitatively represent the different landforms and objects in the off-road environment, including various types of inaccessible obstacles and accessible obstacles, such as sand, swamps, etc., so that the pass path is more complete.
[0151] (2) A multi-terrain RRT is proposed The algorithm greatly improves RRT through variable step size strategy, bias sampling strategy, and reconnection optimization strategy The algorithm takes into account the convergence speed of the vehicle and the vehicle passing costs caused by different terrain factors into the path optimization, evaluates the impact of these factors on the vehicle driving process, and optimizes the passing costs according to the degree of influence of the terrain factors. The algorithm finally obtains an optimal solution that takes into account the path length and different types of terrain obstacles.
[0152] (3) Simulation experiments are conducted based on vehicle characteristics, and different weight factor parameter sets are provided. Users can customize the optimal path based on the parameter sets according to different mission requirements and vehicle types.
[0153] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0154] The above is an introduction to the method embodiment. The following is a further explanation of the scheme described in this application through an apparatus embodiment.
[0155] Figure 7 FIG. 7 shows a block diagram of a path planning device 700 for an autonomous driving vehicle in an off-road environment according to an embodiment of the present application. Figure 7 As shown, the apparatus 700 includes:
[0156] A map building module 710 is used to obtain terrain information in an off-road environment, perform parameterized modeling based on the terrain information, and obtain a multi-layer fused off-road grid map;
[0157] A function definition module 720, for determining a path cost function under the influence of various terrain factors based on the terrain information and the multi-layer fused off-road grid map;
[0158] RRT The algorithm improvement module 730 is used to improve the RRT based on the variable step size strategy, the bias sampling strategy, the reconnection optimization strategy and the path cost function. The algorithm is improved to obtain MT-RRT algorithm;
[0159] A path search module 740 is used to perform the MT-RRT on the multi-layer fused off-road grid map. The algorithm performs path search;
[0160] The path smoothing module 750 is used to perform path smoothing processing on the result of the path search and output the optimal path.
[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0162] In the technical solution of this application, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0164] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for path planning of an autonomous driving vehicle in an off-road environment, characterized in that: include: Acquire terrain information in an off-road environment, perform parameterized modeling based on the terrain information, and obtain a multi-layer fused off-road grid map; Based on the terrain information and the multi-layer fused off-road grid map, determining the path cost function under the influence of various terrain factors; Wherein, the path cost function under the influence of various terrain factors is determined based on the terrain information and the multi-layer fused off-road grid map, including: Determining all path segments according to the multi-layer fused off-road grid map, and calculating path length costs according to the path segments; Determine the length of a path through a slope obstacle, the length of a path through a sand obstacle, and the length of a path through a mud obstacle according to the topographic information and the multi-layer fused off-road grid map; Determine the terrain obstacle passing cost according to the path length through the slope obstacle, the path length through the sand obstacle, and the path length through the mud obstacle; Determine the path cost function under the influence of various terrain factors according to the path length cost and the terrain obstacle passing cost; Based on the variable step size strategy, bias sampling strategy, reconnection optimization strategy and the path cost function, RRT The algorithm is improved to obtain MT-RRT algorithm; Execute the MT-RRT on the multi-layer fused off-road grid map The algorithm performs path search; The path search result is subjected to path smoothing processing, and an optimal path is output.
2. The method according to claim 1, characterized in that The obtaining of topographic information in an off-road environment, performing parameterized modeling based on the topographic information, and obtaining a multi-layer fused off-road grid map includes: Acquiring terrain information in an off-road environment, wherein the terrain information includes off-road terrain information and slope information; Quantitatively processing the off-road terrain information and the slope information to obtain attribute parameters of different off-road terrains and different slopes; According to the different off-road terrains and different slope attribute parameters, a grid method is used to build a model to obtain a multi-layer fused off-road grid map.
3. The method according to claim 2, characterized in that According to the different off-road terrains and different slope attribute parameters, the grid method is used to build a model to obtain a multi-layer fused off-road grid map, including: Defining a configuration space, wherein the configuration space includes a set of traversable areas and a set of intraversable areas; According to the different off-road terrains and different slope attribute parameters, solving the set of impassable areas and the set of traversable areas; According to the solution results of the impassable area set and the traversable area set, a grid method is used to build a model to obtain a multi-layer fused off-road grid map.
4. The method according to claim 3, characterized in that The step of solving the set of impassable areas and the set of traversable areas according to the different off-road terrains and different slope attribute parameters includes: Decomposing the impassable area set into an obstacle layer set, a terrain layer set and an impassable slope layer set; According to the different off-road terrains and different slope attribute parameters, solving the obstacle layer set, terrain layer set and passable slope layer set, and determining the impassable area set; According to the results of the inaccessible area set, the accessible area set is obtained in the configuration space.
5. The method according to claim 1, characterized in that Path length cost for: ; in Indicates the path segment number, Represents different path segments, and n is the total number of path segments.
6. The method according to claim 1, characterized in that The terrain obstacle passing cost for: ; in, , and Respectively represent the weight factors of the impact of slope, mud and sand terrain on vehicle traffic, Indicates the length of the path through the slope obstacle. represents the length of the path through the sand, Indicates the length of the path through the mud obstacle.
7. The method according to claim 6, characterized in that Path cost function for: ; in, is the path length cost, is the cost of passing terrain obstacles, is the weight factor of the path length cost, It is the weight factor of the cost of passing terrain obstacles.
8. The method according to claim 7, characterized in that The method further comprises: Obtain the task requirements and vehicle type, and adjust the weight factor according to the vehicle type. , And the weight factors of the impact of slope, mud and sand terrain on vehicle traffic , and Perform parameter optimization and determine the weight factor parameter set; According to the weight factor parameter set, the optimal path is customized to be selected among different mission requirements and vehicle types.
9. A path planning device for an autonomous driving vehicle in an off-road environment, characterized in that: include: A map building module is used to obtain terrain information in an off-road environment, perform parameterized modeling based on the terrain information, and obtain a multi-layer fused off-road grid map; A function definition module, used to determine the path cost function under the influence of various terrain factors based on the terrain information and the multi-layer fused off-road grid map; Wherein, the path cost function under the influence of various terrain factors is determined based on the terrain information and the multi-layer fused off-road grid map, including: Determining all path segments according to the multi-layer fused off-road grid map, and calculating path length costs according to the path segments; Determine the length of a path through a slope obstacle, the length of a path through a sand obstacle, and the length of a path through a mud obstacle according to the topographic information and the multi-layer fused off-road grid map; Determine the terrain obstacle passing cost according to the path length through the slope obstacle, the path length through the sand obstacle, and the path length through the mud obstacle; Determine the path cost function under the influence of various terrain factors according to the path length cost and the terrain obstacle passing cost; RRT Algorithm improvement module, used to improve RRT based on variable step size strategy, bias sampling strategy, reconnection optimization strategy and the path cost function The algorithm is improved to obtain MT-RRT algorithm; A path search module, used to perform the MT-RRT on the multi-layer fused off-road grid map The algorithm performs path search; The path smoothing module is used to perform path smoothing processing on the result of the path search and output the optimal path.
