A dynamic path planning method based on improved bidirectional RRT algorithm

Through the improved bidirectional RRT algorithm, combined with bidirectional heuristic search and dynamic feedback optimization, the randomness and complex environmental adaptability problems of the traditional RRT algorithm in path planning are solved, and more efficient and smoother path planning is achieved.

CN117892896BActive Publication Date: 2024-08-23WUXI INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The traditional RRT algorithm has problems in path planning such as strong randomness, low path quality, many redundant nodes, and the inability to effectively cope with dynamic environments and complex large map environments. It also has high computational complexity and relies on artificial potential fields, resulting in reduced efficiency and path problems. Not feasible.

Method used

Using an improved bidirectional RRT algorithm, through bidirectional heuristic search, dynamic feedback optimization and path smoothing pruning, heuristic search and random search strategies are introduced, combined with target bias and cost function to select paths, and dynamically adjust the search strategy to adapt to environmental changes. , and optimize the path through median smoothing and redundant point pruning.

Benefits of technology

It reduces randomness, improves the controllability and accuracy of path planning, adjusts strategies in real time to adapt to the dynamic environment, reduces redundant nodes and computational complexity, and generates smoother and more efficient paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117892896B
    Figure CN117892896B
Patent Text Reader

Abstract

The present invention relates to the technical field of path planning, and specifically discloses a dynamic path planning method based on an improved bidirectional RRT algorithm, including: determining a new node through heuristic search or random search in the current path planning cycle; finding all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determining the best path; then determining the best paths in all subsequent path planning cycles in turn, until the distance between the new node and the target point in the subsequent path planning cycle is less than a distance threshold; generating a complete path from the starting point to the end point according to the best path in all path planning cycles; smoothing and pruning the complete path from the starting point to the end point to obtain the final path. The present invention can show higher planning speed, fewer extended nodes, shorter effective paths and higher smoothness in multiple scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of path planning, and in particular to a dynamic path planning method based on an improved bidirectional RRT algorithm. Background Art

[0002] The Rapidly-exploring Random Trees (RRT) algorithm was proposed to address the search problem in complex, high-dimensional space in traditional path planning. Its advantages of fast convergence and universal applicability have a very broad range of application scenarios. However, the traditional RRT algorithm has some defects in practical applications, the most notable of which include:

[0003] (1) Strong randomness: The traditional RRT algorithm relies too much on random sampling in tree expansion, resulting in a large randomness in the generated paths, wasting computing power and possibly not meeting expectations in actual application scenarios;

[0004] (2) Low path quality: Since no node backtracking is performed to find the optimal path through the cost function, the path searched by the traditional RRT algorithm will appear to be too tortuous, too long, or close to obstacles, which is not the optimal or better path;

[0005] (3) Many redundant nodes and tortuous trajectories: Due to the randomness of the search strategy, the tree generated by the traditional RRT algorithm will contain a large number of redundant nodes, resulting in a large waste of computing power in path planning. In addition, because the trajectory smoothing is not considered, the generated path is too tortuous, which is not conducive to the movement tracking of the robot in some application scenarios.

[0006] (4) Unable to effectively cope with dynamic environments and complex large map environments: Traditional RRT algorithms face great challenges when facing dynamic environments because their planning is based on prior information from static maps. When the environment changes, such as when moving obstacles or dynamic obstacles appear, traditional RRT algorithms cannot adjust planning strategies in real time, resulting in invalid generated paths. Traditional RRT algorithms have limitations in complex large map environments, especially in scenarios that require long-distance planning or contain multiple obstacles. Due to the randomness of the algorithm, it takes a lot of time to search for a valid path, and the quality of the path and the planning speed are affected by the map size and the unpredictable distribution of obstacles;

[0007] Among the existing schemes, some researchers have proposed methods to improve the RRT algorithm. For example, Jayasree et al. built a tree structure to store nodes and edges to improve search efficiency, and used spline interpolation to smooth the path. Pei et al. used the artificial potential field method to optimize the sampling process, reduce the amount of calculation, and perform target deviation sampling and adjust the sampling area under the influence of potential field forces. These methods are committed to overcoming the problems of randomness, path tortuosity, and redundant nodes of traditional RRT algorithms to improve the efficiency and quality of path planning and adapt to different application scenarios and challenges.

[0008] The shortcomings of the prior art are mainly reflected in the following aspects:

[0009] (1) Local minimum problem: Existing technical solutions are easily affected by the local minimum problem, that is, in some cases, the robot may be trapped in the local minimum potential field and find it difficult to escape the local minimum trap. This may lead to the inability to fully utilize the randomness of RRT, which limits the quality of the robot's planned path;

[0010] (2) Path feasibility uncertainty: Existing technical solutions have high requirements for robot perception and environmental modeling, which may lead to perception errors and modeling uncertainties. At the same time, this uncertainty will be transmitted to path planning, causing the generated path to be infeasible in actual execution or requiring additional corrections;

[0011] (3) High computational complexity: Existing technical solutions have high computational complexity, especially in large-scale and complex environments, which may require a lot of computing resources. This will lead to a decrease in the efficiency of the overall algorithm, especially in scenarios that require real-time planning;

[0012] (4) Over-reliance on artificial potential fields: The artificial potential field method is mainly based on modeling obstacles in the environment and guiding path planning by simulating the interactions between objects. However, over-reliance on artificial potential fields will lead to excessive assumptions about the environment, especially in complex or dynamic environments. The potential field model may not be accurate enough, resulting in unsatisfactory planning results;

[0013] (5) Dynamic feedback is still not considered: Most of the existing technical solutions have made optimizations in sampling strategies, path smoothing, and trajectory selection, but they still do not consider dynamic planning that adjusts planning strategies according to environmental dynamics to actively adapt to various scenarios. Summary of the invention

[0014] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a dynamic path planning method based on an improved bidirectional RRT algorithm to solve the technical problems of low efficiency, tortuous paths and the generation of many redundant nodes in the path planning of the traditional rapid search random tree (RRT) algorithm.

[0015] As a first aspect of the present invention, a dynamic path planning method based on an improved bidirectional RRT algorithm is provided, and the dynamic path planning method based on the improved bidirectional RRT algorithm comprises:

[0016] Step S1: Set the starting point, end point, search step, probability threshold and distance threshold of path planning;

[0017] Step S2: selecting heuristic search or random search according to the probability threshold, and determining a new node through heuristic search or random search within the current path planning cycle;

[0018] Step S3: Find all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determine the best path from the multiple candidate paths in the current path planning cycle; then loop through steps S2-S3 to sequentially determine the best paths in all subsequent path planning cycles until the distance between the new node and the target point in the subsequent path planning cycle is less than the distance threshold;

[0019] Step S4: Generate a complete path from the starting point to the end point according to the best path in all path planning cycles;

[0020] Step S5: Smoothing and pruning the complete path from the starting point to the end point to obtain a final path from the starting point to the end point.

[0021] Further, the selecting heuristic search or random search according to the probability threshold, and determining a new node by heuristic search or random search in the current path planning cycle, further includes:

[0022] Calculate the Euclidean distance h between the new node and the target point in the previous path planning cycle dist , and calculate the distance h between the new node in the previous path planning cycle and the obstacle in the current direction obs ;

[0023] Calculate the distance index H within the current path planning cycle dist and obstacle indicator H obs ; The calculation formula is as follows:

[0024]

[0025]

[0026] Among them, d max is the distance between the starting point and the end point, d min is the distance threshold, k is the adjustment parameter;

[0027] Calculate the overall heuristic search probability P(H), the calculation formula is as follows:

[0028] P(H)=α*H dist +β*H obs

[0029] Among them, α and β are the weighting coefficients of the evaluation respectively;

[0030] According to the overall heuristic search probability P(H) and the probability threshold P tar Choose between heuristic search or random search;

[0031]

[0032] When the heuristic search probability P(H) is greater than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node;

[0033] When the heuristic search probability P(H) is greater than the random probability value P and less than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node;

[0034] When the heuristic search probability P(H) is less than the random probability value P, a new node is determined by randomly searching SampleFree() within the current path planning cycle.

[0035] Furthermore, the step of determining a new node by heuristic search within the current path planning cycle further includes:

[0036] Calculate the angle θ1 of the new node of the current tree and the angle θ2 of the new node of the other tree;

[0037] In the path direction along the angle θ1 or the angle θ2, a new node for the next path planning cycle is determined according to the search step length.

[0038] Further, the step of finding all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determining the best path from the multiple candidate paths in the current path planning cycle also includes:

[0039] When a new node in the current path planning cycle explores the search space, all parent nodes are searched within a certain radius centered on the new node to generate multiple candidate paths in the current path planning cycle;

[0040] Calculate the path length cost value length, obstacle cost value obstacle and smooth cost value smooth of each candidate path in the current path planning cycle. The calculation formulas are as follows:

[0041] length=∑distance(node_i,node_i+1)

[0042] obstacle=∑distance(node_i,obstacle)

[0043] smooth=∑angle(|node_i,node_i+1|)

[0044] Wherein, distance(node_i,node_i+1) refers to the distance between the ith node and the i+1th node on each candidate path, distance(node_i,obstacle) refers to the distance between the ith node and the obstacle on each candidate path, and angle(|node_i,node_i+1|) refers to the absolute value of the difference between the angle of the ith node and the angle of the i+1th node on each candidate path;

[0045] According to the path length cost value length, obstacle cost value obstacle and smooth cost value smooth of each candidate path in the current path planning cycle, the total cost value C of each candidate path in the current path planning cycle is calculated. The calculation formula is as follows:

[0046] C=w1*length+w2*obstacle+w3*smooth

[0047] In the formula, w1, w2, and w3 are weighting coefficients respectively;

[0048] According to the total cost value C of each candidate path in the current path planning cycle, a candidate path with the smallest total cost value C is determined from multiple candidate paths in the current path planning cycle, and the candidate path with the smallest total cost value C is used as the best path in the current path planning cycle.

[0049] Furthermore, it also includes:

[0050] 1) Record the total cost value C of the initial path planning cycle: record the total cost value C in the initial five path planning cycles and calculate its average value as the benchmark value;

[0051] 2) Monitor the changes of subsequent total cost value C: Continuously monitor the total cost value C in each subsequent path planning cycle;

[0052] 3) Trigger the automatic adjustment search strategy: Compare the total cost value C in the current path planning cycle with the benchmark value. If the total cost value C in the current path planning cycle is greater than the benchmark value, or the total cost value C in the subsequent four path planning cycles continues to increase, the automatic adjustment search strategy is triggered to reduce the search step size, and determine the new node through random search in the subsequent four path planning cycles; if the total cost value C in the subsequent four path planning cycles continues to increase or exceeds the emergency threshold C after the automatic adjustment strategy is triggered, emergency , then search directly in the opposite direction of the target point bias and greatly increase the search step size;

[0053] 4) Dynamically update the benchmark value: the average value of the total cost C of the last five path planning cycles is used as the benchmark value;

[0054] 5) Continue monitoring and feedback: After automatically adjusting the search strategy, continue to monitor the subsequent changes in the total cost value C to ensure that the quality of path planning continues to improve.

[0055] Furthermore, the smoothing and pruning of the complete path from the starting point to the end point to obtain a final path from the starting point to the end point further includes:

[0056] Smoothing the complete path from the starting point to the end point by a path smoothing algorithm to obtain a smooth path from the starting point to the end point;

[0057] A collision detection algorithm is used to determine whether the nodes on the smooth path from the starting point to the end point are redundant points, and the redundant points are deleted based on the principle of straight line path approximation to obtain the final path from the starting point to the end point.

[0058] Furthermore, the step of smoothing the complete path from the starting point to the end point by using a path smoothing algorithm to obtain a smooth path from the starting point to the end point further includes:

[0059] 1) Selecting data points: The N nodes on the complete path from the starting point to the end point are taken as N data points to form a time series {x(1), x(2), ..., x(N)}. For each data point x(i) in the time series, the data points in the window are taken with the data point x(i) as the center, that is, {x(ik), x(i-k+1), ..., x(i+k)}, where k is half of the window size, rounded down;

[0060] 2) Calculate the median: Calculate the median of the data points in the window, that is, arrange the data points in the window by size and take the value in the middle position;

[0061] 3) Use median substitution: replace the original data point x(i) with the calculated median value to obtain the smoothed data point;

[0062] 4) Repeat the above steps: use the movement of the dynamic window to perform median smoothing operations on all data points in the time series.

[0063] Furthermore, the step of determining whether a node on the smooth path from the starting point to the end point is a redundant point by using a collision detection algorithm further includes:

[0064] For each pair of non-adjacent nodes on the smooth path, if the path between them is not affected by obstacles, the middle node of each pair of non-adjacent nodes is marked as a redundant point.

[0065] The dynamic path planning method based on the improved bidirectional RRT algorithm provided by the present invention has the following advantages:

[0066] (1) Adopting bidirectional heuristic search: Introducing a bidirectional heuristic search strategy, through the method of target bias, using a specific heuristic function and probability threshold to determine the sampling strategy, guiding the two random trees to alternately expand between the starting point and the end point. This helps to reduce randomness and improve the controllability and accuracy of path planning. It solves the problem of strong randomness of the traditional RRT algorithm;

[0067] (2) Backtracking nodes to determine the path: Search the backtracking path with the generated new node as the center, set the cost function to compare the multiple searched alternative paths, and select the path with the lowest cost. This solves the problem of low path quality in the traditional RRT algorithm;

[0068] (3) Dynamic feedback optimization: Introduce dynamic feedback optimization mechanism to adjust search rules in real time to adapt to dynamic environments. When target bias sampling fails multiple times, dynamic feedback optimization is triggered to actively change the sampling strategy and quickly get out of the obstacle trap in narrow space. This solves the problem that traditional RRT algorithm cannot effectively cope with dynamic environments and complex large map environments;

[0069] (4) Path smoothing and pruning: The straight line approximation method is used to prune the generated path for redundant points and remove unnecessary nodes. The moving median smoothing algorithm is used to optimize the planned path to ensure that the final path is smoother and more efficient. This solves the problem of the traditional RRT algorithm with many redundant points and trajectory smoothing post-processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.

[0071] Figure 1 The present invention provides a flow chart of a dynamic path planning method based on an improved bidirectional RRT algorithm.

[0072] Figure 2 This is a flowchart of a specific implementation of the dynamic path planning method based on the improved bidirectional RRT algorithm provided by the present invention.

[0073] Figure 3 Schematic diagram of the node expansion process of the bidirectional RRT algorithm.

[0074] Figure 4 Schematic diagram of angle-based target offset search.

[0075] Figure 5 Generate a pre-selected route diagram for the new node backtracking search.

[0076] Figure 6 Schematic diagram of the redundant point pruning process.

[0077] Figure 7 Schematic diagram of the space planned for the basic obstacle avoidance scenario.

[0078] Figure 8 Schematic diagram of path planning of three algorithms in a single channel obstacle environment.

[0079] Fig. 9 Schematic diagram of path planning of three algorithms in a complex multi-channel obstacle environment.

[0080] Fig.10 Plan a spatial diagram for the obstacle trap scenario.

[0081] Fig.11 Schematic diagram of path planning for three algorithms in an obstacle trap environment. DETAILED DESCRIPTION

[0082] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0083] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.

[0084] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0085] In this embodiment, a dynamic path planning method based on an improved bidirectional RRT algorithm, DFCO-RRT-Connect, is provided. Figure 1 The present invention provides a flow chart of a dynamic path planning method based on an improved bidirectional RRT algorithm, DFCO-RRT-Connect. Figure 1 As shown, the dynamic path planning method based on the improved bidirectional RRT algorithm DFCO-RRT-Connect includes:

[0086] Step S1: Set the starting point, end point, search step, probability threshold and distance threshold of path planning;

[0087] Step S2: selecting heuristic search or random search according to the probability threshold, and determining a new node through heuristic search or random search within the current path planning cycle;

[0088] Preferably, if Figure 2 As shown, the heuristic search or random search is selected according to the probability threshold, and a new node is determined by the heuristic search or random search within the current path planning cycle, and further includes:

[0089] In the path planning problem, the present invention considers two key distance indicators, namely the Euclidean distance of the target point and the distance of obstacles in the current direction, to design a heuristic function to guide the search algorithm to make decisions on directionality and obstacle avoidance when searching the state space: specifically, the Euclidean distance h between the new node and the target point in the previous path planning cycle is calculated. dist , and calculate the distance h between the new node in the previous path planning cycle and the obstacle in the current direction obs ;

[0090] h dist =dx 2 +dy 2

[0091]

[0092] The heuristic function is normalized, requiring that the farther away from the target point, the greater the heuristic value, and the farther away from the obstacle in the distance direction, the smaller the heuristic value: Specifically, calculate the distance index H in the current path planning cycle dist and obstacle indicator H obs ; The calculation formula is as follows:

[0093]

[0094]

[0095] Among them, d max is the distance between the starting point and the end point, d min is the distance threshold, k is the adjustment parameter, and controls the obstacle index H obs The slope of , to adjust the speed of change of the heuristic value;

[0096] Calculate the overall heuristic search probability P(H), the calculation formula is as follows:

[0097] P(H)=α*H dist +β*H obs

[0098] Among them, α and β are the weighting coefficients of the evaluation respectively;

[0099] According to the overall heuristic search probability P(H) and the probability threshold P tar Choose between heuristic search or random search; a hybrid search that combines heuristic search and random search can explore the search space more comprehensively and efficiently:

[0100]

[0101] Among them, set the probability threshold P tar =0.6, obtain a random probability value P according to uniform random distribution, and the value range of random probability value P is 0-1;

[0102] When the heuristic search probability P(H) is greater than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node;

[0103] When the heuristic search probability P(H) is greater than the random probability value P and less than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node;

[0104] When the heuristic search probability P(H) is less than the random probability value P, a new node is determined by randomly searching SampleFree() within the current path planning cycle.

[0105] It should be noted that if Figure 3 As shown, the bidirectional RRT algorithm is a path planning algorithm that aims to search from the starting point and the end point simultaneously to speed up the path planning process.

[0106] Specifically, determining a new node by heuristic search within the current path planning cycle also includes:

[0107] Calculate the angle θ1 of the new node of the current tree and the angle θ2 of the new node of another tree; the heuristic search method used is the angle-based target bias search. In order to solve the randomness problem of the RRT-Connect algorithm in sampling, the angle-based target bias sampling is added to guide the growth of the random tree. Figure 4 As shown, by calculating the difference in x and y coordinates between the latest node of the current tree and the latest node of another tree, the inverse tangent function is used to calculate the angles θ1 and θ2. In the next iteration cycle, switch to update the tree and use the same method to calculate the angles θ1 and θ2:

[0108]

[0109]

[0110] In the path direction along the angle θ1 or the angle θ2, a new node for the next path planning cycle is determined according to the search step length.

[0111] Step S3: Find all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determine the best path from the multiple candidate paths in the current path planning cycle; then loop through steps S2-S3 to sequentially determine the best paths in all subsequent path planning cycles until the distance between the new node and the target point in the subsequent path planning cycle is less than the distance threshold;

[0112] Preferably, if Figure 2 As shown, the method of finding all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determining the best path from the multiple candidate paths in the current path planning cycle also includes:

[0113] At the newly generated node, multiple paths are generated by searching back to the parent node, and the cost function is used to calculate and select the paths to improve the path quality of the search tree. The specific process is as follows:

[0114] (1) When a new node in the current path planning cycle explores the search space, all parent nodes are searched within a certain radius centered on the new node to generate multiple candidate paths in the current path planning cycle and optimize the subsequent path selection process; Figure 5 As shown in Figure 1, once a new sampling point is generated in the search space, a search area or radius is usually defined, which covers a certain range around the new sampling point. By searching the parent sampling points within the area, multiple pre-selected paths are generated, which represent possible connections from the parent sampling points to the new sampling point.

[0115] (2) The generated pre-selected paths may include multiple ones, which represent different connection options. In order to select the best path, the path is firstly subjected to collision detection. Secondly, an evaluation function that takes into account the path length cost, obstacle cost and smoothness cost is set to evaluate the quality of each path. Finally, according to the value of the cost function, the path with the lowest cost is selected as the final path selection. In the several trajectories obtained above, by setting the path length cost, obstacle cost and smoothness cost: the path length cost value length, obstacle cost value obstacle and smoothness cost value smooth of each candidate path in the current path planning cycle are calculated, and the calculation formulas are as follows:

[0116] length=∑distance(node_i,node_i+1)

[0117] obstacle=∑distance(node_i,obstacle)

[0118] smooth=∑angle(|node_i,node_i+1|)

[0119] Among them, distance(node_i,node_i+1) refers to the distance between the i-th node and the i+1-th node on each candidate path, distance(node_i,obstacle) refers to the distance between the i-th node and the obstacle on each candidate path, angle(|node_i,node_i+1|) refers to the absolute value of the difference between the angle of the i-th node and the angle of the i+1-th node on each candidate path; the path length cost value length is the total length of the path in the search area, the obstacle cost value obstacle is the sum of the distances from the connecting path nodes to the obstacles in the search area; the smoothness cost value smooth is the sum of the absolute values ​​of the angle differences between the connecting path nodes in the search area.

[0120] According to the path length cost value length, obstacle cost value obstacle and smooth cost value smooth of each candidate path in the current path planning cycle, the total cost value C of each candidate path in the current path planning cycle is calculated. The calculation formula is as follows:

[0121] C=w1*length+w2*obstacle+w3*smooth

[0122] In the formula, w1, w2, and w3 are weighting coefficients respectively;

[0123] According to the total cost value C of each candidate path in the current path planning cycle, a candidate path with the smallest total cost value C is determined from multiple candidate paths in the current path planning cycle, and the candidate path with the smallest total cost value C is used as the best path in the current path planning cycle.

[0124] Specifically, Figure 2 As shown, it also includes:

[0125] The goal of the dynamic feedback mechanism is to adjust parameters based on feedback information about the actual path planning performance. When narrow sections appear or the search faces a local minimum problem, the path algorithm is prone to fall into an obstacle trap. The dynamic feedback mechanism is now introduced to improve the adaptability and efficiency of the algorithm. The specific process is as follows:

[0126] 1) Record the total cost value C of the initial path planning cycle: record the total cost value C in the initial five path planning cycles and calculate its average value as the benchmark value;

[0127] 2) Monitor the changes of subsequent total cost value C: Continuously monitor the total cost value C in each subsequent path planning cycle;

[0128] 3) Trigger the automatic adjustment search strategy: Compare the total cost value C in the current path planning cycle with the benchmark value. If the total cost value C in the current path planning cycle is greater than the benchmark value, or the total cost value C in the subsequent four path planning cycles continues to increase, the automatic adjustment search strategy is triggered to reduce the search step size ε, and determine the new node through random search in the subsequent four path planning cycles; if the total cost value C in the subsequent four path planning cycles continues to increase or exceeds the emergency threshold C after the automatic adjustment strategy is triggered emergency , then search directly in the opposite direction of the target point bias and greatly increase the search step length ε;

[0129] 4) Dynamically update the benchmark value: the average value of the total cost C of the last five path planning cycles is used as the benchmark value;

[0130] 5) Continue monitoring and feedback: After automatically adjusting the search strategy, continue to monitor the subsequent changes in the total cost value C to ensure that the quality of path planning continues to improve.

[0131] Step S4: Generate a complete path from the starting point to the end point according to the best path in all path planning cycles;

[0132] Step S5: Smoothing and pruning the complete path from the starting point to the end point to obtain a final path from the starting point to the end point.

[0133] Preferably, the smoothing and pruning of the complete path from the starting point to the end point to obtain a final path from the starting point to the end point further includes:

[0134] In the presence of a large number of obstacles or a long planned path, the initial path planned by the DFCO-RRT-Connect algorithm proposed in the present invention is still tortuous, and due to the randomness of the algorithm, there are many redundant points in the generated initial path. To address the above problems, the present invention designs a moving median path smoothing algorithm, which is beneficial to the tracking execution of the mobile robot, and adopts a collision detection inspection mechanism to determine whether the point is a redundant point, and deletes the redundant points based on the principle of straight line path approximation. The core idea of ​​the median smoothing method is to replace each data point in the original data with the median of the data in the dynamic window. The specific process is as follows:

[0135] Smoothing the complete path from the starting point to the end point by a path smoothing algorithm to obtain a smooth path from the starting point to the end point;

[0136] Specifically, the step of smoothing the complete path from the starting point to the end point by using a path smoothing algorithm to obtain a smooth path from the starting point to the end point further includes:

[0137] 1) Selecting data points: The N nodes on the complete path from the starting point to the end point are taken as N data points to form a time series {x(1), x(2), ..., x(N)}. For each data point x(i) in the time series, the data points in the window are taken with the data point x(i) as the center, that is, {x(ik), x(i-k+1), ..., x(i+k)}, where k is half of the window size, rounded down;

[0138] 2) Calculate the median: Calculate the median of the data points in the window, that is, arrange the data points in the window by size and take the value in the middle position;

[0139] 3) Use median substitution: replace the original data point x(i) with the calculated median value to obtain the smoothed data point;

[0140] 4) Repeat the above steps: use the movement of the dynamic window to perform median smoothing operations on all data points in the time series.

[0141] A collision detection algorithm is used to determine whether the nodes on the smooth path from the starting point to the end point are redundant points, and the redundant points are deleted based on the principle of straight line path approximation to obtain the final path from the starting point to the end point.

[0142] Specifically, the determining whether a node on the smooth path from the starting point to the end point is a redundant point by using a collision detection algorithm further includes:

[0143] For each pair of non-adjacent nodes on the smooth path, if the path between them is not affected by obstacles, the middle node of each pair of non-adjacent nodes is marked as a redundant point.

[0144] It should be noted that when generating a path, if the line between two non-adjacent nodes is not affected by obstacles, the path points between them are considered redundant points. Figure 6 As shown in the figure, X2 and X3 are redundant points. Because for each pair of non-adjacent nodes, if the path between them is not affected by obstacles, it can be approximately equivalent to a straight line, then the intermediate nodes do not have a significant impact on the validity of the path, so these intermediate nodes are marked as redundant nodes.

[0145] The algorithm simulation is performed in MATLAB R2020a. The computer configuration used in the experiment is as follows: the processor is AMD Ryzen 74800H, the main frequency is 2.90GHz, the memory is 16GB, and the operating system is 64-bit Windows 10.

[0146] In order to verify the effectiveness of the proposed DFCO-RRT-Connect algorithm in practical applications, the present invention tests the RRT, H-RRT and the algorithm of the present invention from the basic performance, the ability to solve local minimum problems and the maze pathfinding ability. Due to the randomness of sampling, the original algorithm and the improved algorithm are applied to different scenarios for 20 simulation experiments, and their performance indicators are analyzed.

[0147] (1) Basic performance evaluation: Set up single-channel and complex multi-channel obstacle avoidance scenarios. The map size is 800*800 (dimensionless), such as Figure 7 As shown, the black part is the obstacle. The coordinates of the starting point and the target point are (100, 100) and (750, 750) respectively, the expansion step ε is 20, and the distance threshold δ is 20. Figure 8 and Fig. 9The following are schematic diagrams showing the path planning results obtained by using the basic RRT, H-RRT and DFCO-RRT-Connect algorithms proposed in this paper in single-channel and complex multi-channel obstacle scenarios. In the single-channel obstacle avoidance scenario, 20 experimental simulations were performed. The performance experimental data of the three algorithms are shown in Table 1. In the complex multi-channel obstacle avoidance scenario, 20 experimental simulations were performed. The performance experimental data of the three algorithms are shown in Table 2.

[0148] Table 1 (Experimental data on planning algorithm performance in a single channel obstacle avoidance environment)

[0149]

[0150] Table 2 (Experimental data on planning algorithm performance in complex multi-channel obstacle avoidance environment)

[0151]

[0152] (2) To test the performance of the dynamic feedback optimization of the algorithm of the present invention, an obstacle trap scene is set with a map size of 630*1050 (dimensionless). Fig.10 The coordinates of the starting point and the target point are (70, 550) and (10, 550) respectively, the expansion step ε is 20, and the distance threshold δ is 20. In the obstacle trap scenario, the path planning results obtained by using the basic RRT algorithm, the H-RRT algorithm and the algorithm of the present invention are shown in the figure. Fig.11 In the obstacle trap scenario, after 20 experimental simulations, the performance experimental data of the three algorithms are shown in Table 3.

[0153] Table 3 (Experimental data of planning algorithm performance in obstacle trap environment)

[0154]

[0155] In summary, the algorithm proposed in the present invention significantly reduces the number of nodes and search time compared with the RRT algorithm and the H-RRT algorithm. Especially in complex, narrow and long scenes with obstacles and traps, the algorithm of this paper has obvious advantages due to the dynamic feedback optimization mechanism: compared with the H-RRT algorithm, the algorithm of the present invention reduces 48.80% of the expansion nodes and 80.93% of the search time in complex multi-channel obstacle avoidance scenes; and reduces 92.15% of the expansion nodes and 97.76% of the search time in narrow and long scenes with obstacles and traps.

[0156] It should be noted that the dynamic feedback mechanism in the present invention may also consider using other optimization methods, such as PID controller or model predictive control (MPC).

[0157] It should be noted that the present invention can also use means such as spline interpolation and Bezier curve to smooth the path.

[0158] It should be noted that the RRT (Rapidly-exploring Random Trees) algorithm is a random search algorithm for path planning. The core idea is to quickly explore the potential path space through random sampling and continuous expansion of the tree. The algorithm starts from the starting point, randomly generates sampling points, and then expands to the sampling points along the path by finding the nearest neighbor nodes, ensuring that the path does not intersect with obstacles. The generated new nodes are added to the tree, and the above steps are repeated until the predetermined conditions are met. Finally, the planned path is found by backtracking from the end point to the starting point. The randomness of the RRT algorithm makes it suitable for path planning problems in high-dimensional and complex environments, but it may also cause the generated path to be not smooth enough and have a certain degree of uncertainty.

[0159] It should be noted that heuristic search is a search strategy based on experience and heuristic information, which aims to efficiently find solutions to problems. In heuristic search, the heuristic function is used to estimate the "goodness" of each search state to guide the search in a direction that is more likely to produce a good solution. This search method is often applied to complex problems, where a comprehensive search of all possibilities may be inefficient, and heuristic search is a strategy that uses prior knowledge in the search process to guide the search by estimating the goodness of the state to find a solution more efficiently.

[0160] It should be noted that dynamic programming is an algorithmic method for path planning. It breaks the problem into small parts, gradually calculates and stores the optimal solution, and finally obtains the best path for the overall problem. In path planning, this includes defining the state of positions and movements, establishing the cost or optimal value of movement between positions, and storing the results of solved problems. Through recursive calculation, dynamic programming can efficiently find the best path and is used to solve the shortest path or optimal path problem.

[0161] Based on the traditional RRT algorithm, the present invention adopts a bidirectional heuristic RRT search method to reduce the randomness of expansion with a target bias strategy based on the angle of the current node and the target point. The cost function of adding path length constraints, obstacle distance constraints and smoothness constraints calculates multiple paths generated by the new node by backtracking the parent node to find the best path. If the target bias sampling fails multiple times in a narrow space or in a local minimum problem, a dynamic feedback optimization mechanism will be triggered. It actively changes the sampling strategy to quickly get out of the obstacle trap in the narrow space. Finally, the planned path is smoothed and pruned to improve the path quality.

[0162] In the embodiment of the present invention, the advantages of intelligent sampling extension are derived: introducing a target bias strategy: by calculating the angle between tree nodes and using the inverse tangent function, the target bias strategy is introduced, which effectively reduces randomness and makes the selection of sampling points more directional; reasonable application of probability conditions: combining heuristic search and random search, and selecting a path search strategy based on probability conditions, so that in different situations, the system can flexibly adjust the search strategy, thereby improving the flexibility and global planning of the search.

[0163] In an embodiment of the present invention, the advantages of backtracking and evaluating paths are derived: Flexibility in generating alternate trajectories: By searching for parent sampling points near newly generated sampling points, the algorithm can construct multiple alternate trajectories, which are possible connections from parent sampling points to new sampling points. This mechanism is more flexible and can make full use of the search space, improving the diversity and coverage of alternative paths; Advantages of path evaluation: In path planning, the design of the cost function takes into account multiple key factors, including path length, obstacle distance, and smoothness. By evaluating the cost function of the generated pre-selected paths, the algorithm can select the path with the lowest cost as the final path selection. This path evaluation mechanism improves the path quality of the search tree, making the final selected path more optimized and effective.

[0164] In the embodiment of the present invention, the advantages of dynamic feedback optimization are derived as follows: Real-time performance feedback: Setting the cost function value record and threshold of the initial period to monitor the real-time performance feedback. This enables the system to detect changes in path planning performance in a timely manner and dynamically adjust search parameters; Adaptive search strategy: By judging the increase in the cost function value and triggering the automatic adjustment of the search strategy, the system can quickly make adjustments when facing narrow sections or local minimum problems, ensuring the effectiveness and adaptability of path planning.

[0165] In the embodiment of the present invention, the advantages of path smoothing and pruning are derived as follows: The superiority of the moving median algorithm: the moving median algorithm is introduced to smooth the path, and the jitter of the path is effectively eliminated by replacing each data point in the original data with the median of the data in the dynamic window, making the generated path smoother; the rationality of redundant node pruning: the redundant node pruning method of straight line approximation is used to delete the intermediate nodes that have little effect on the validity of the path, thereby reducing the redundant information on the path, thereby further improving the readability and navigation efficiency of the path.

[0166] In the embodiments of the present invention, the derivation of comprehensive advantages: the comprehensive advantages of multi-mechanism fusion: the present invention in intelligent path planning through the clever integration of multiple mechanisms such as intelligent sampling expansion, backtracking and evaluation path, dynamic feedback optimization, path smoothing and pruning, effectively makes up for the deficiencies of traditional RRT algorithms and existing technical solutions in the face of complex environments and dynamic obstacles, so that the system performs well in various scenarios.

[0167] Therefore, from the derivation and analysis of intelligent sampling expansion, backtracking and evaluation paths, dynamic feedback optimization, path smoothing and pruning, etc., the present invention has significant advantages in the field of intelligent path planning, which not only improves the search efficiency, but also optimizes the quality of the generated path, bringing innovation and practicality to the practical applications in the fields of robot navigation, autonomous unmanned vehicles, etc. Through these advantages, the DFCO-RRT-Connect algorithm is significantly superior in improving search efficiency, path quality and adaptability, and provides a more efficient and comprehensive solution to the path planning problem.

[0168] In an embodiment of the present invention, a two-way heuristic search based on dynamic feedback optimization is used to improve the RRT algorithm (DFCO-RRT-Connect) to meet the challenges in path planning in two-dimensional space. Technically, we first focus on using a two-way heuristic search strategy to guide two random trees to expand alternately between the starting point and the end point with a specific probability, and calculate multiple possible paths through a backtracking mechanism combined with a cost function to select the optimal path. Secondly, we introduce a dynamic feedback optimization mechanism to adapt to dynamic environments and avoid falling into obstacle traps. This mechanism adjusts the search rules and actively changes the sampling strategy to improve the algorithm's ability to cope with complex scenarios. Finally, we prune the generated path for redundant points and use a moving median smoothing algorithm to further optimize the quality and smoothness of the path. In summary, this patent aims to comprehensively solve the technical problems in the traditional RRT algorithm through the DFCO-RRT-Connect algorithm, and achieve efficient, accurate and smooth path planning in a variety of scenarios.

[0169] The present invention provides a dynamic path planning method based on an improved two-way RRT algorithm (Rapidly-exploring Random TreesConnect, RRT-Connect). First, a two-way heuristic search is adopted to guide two random trees to expand alternately through a target bias strategy. Then, multiple candidate trajectories are generated by tracing back the parent node through the generated new node, and the optimal path is selected using the cost function. Secondly, a dynamic feedback optimization mechanism is introduced in the planning process, and the planning strategy is actively adjusted using the change of the cost function to adapt to the dynamic environment, prevent falling into obstacle traps, and comprehensively improve the performance of path planning. Finally, the planned path is further optimized through path smoothing and pruning. These characteristics enable DFCO-RRT-Connect to exhibit higher planning speed, fewer expansion nodes, shorter effective paths, and higher smoothness in multiple scenarios.

[0170] The present invention provides a dynamic path planning method based on an improved bidirectional RRT algorithm, DFCO-RRT-Connect, which includes: (1) bidirectional heuristic search: using a target bias strategy to reduce the randomness of algorithm sampling, setting a heuristic function and a probability threshold to determine the probability condition, and using a heuristic search or a random search; (2) backtracking to determine the path: searching and backtracking by drawing a circle from a newly generated node. The generated pre-selected paths may include multiple paths, which represent different connection options. In order to select the best path, the path is firstly subjected to collision detection. Secondly, an evaluation function that considers the path length cost, obstacle cost, and smoothness cost is set to evaluate the quality of each path. Finally, according to the value of the cost function, the path with the lowest cost is selected as the final path selection; (3) dynamic feedback mechanism: recording the cost function values ​​of the initial five cycles, and calculating their average value as the benchmark value. The subsequent cost values ​​are compared with this benchmark value. If the cost value continues to increase or the increase value in the next cycle exceeds the threshold, the planning rules are automatically adjusted; (4) Smoothing and redundant point pruning: The moving median algorithm and the redundant node pruning method of straight line approximation are used to make the path smoother, the effective path shorter, and the number of nodes less. Therefore, the DFCO-RRT-Connect algorithm of the present invention is committed to reducing randomness and improving controllability, while adapting to dynamic environments and improving the regularity of dynamic obstacles by adjusting the search rules in real time. The strategy of path smoothing and pruning further improves the quality of the planned path, making it smoother and more efficient. Therefore, the goal of the present invention is to overcome the potential shortcomings of existing technology improvements through a comprehensive innovative strategy and provide a more comprehensive and robust path planning solution.

[0171] The present invention provides a dynamic path planning method based on an improved bidirectional RRT algorithm, DFCO-RRT-Connect, which includes: (1) Intelligent sampling expansion mechanism: reducing the randomness of algorithm sampling through a target bias strategy, combining heuristic functions and probability thresholds to achieve intelligent search guidance and improve the efficiency and accuracy of path search. (2) Dynamic feedback optimization mechanism: introducing a dynamic feedback mechanism to adjust parameters based on feedback information of actual path planning performance to cope with path planning problems in dynamic environments and improve the adaptability and efficiency of the algorithm. (3) Advantages of backtracking and evaluating paths: adopting a method of backtracking parent nodes to generate backup trajectories, and combining cost functions to evaluate and select paths, which increases the flexibility and diversity of path selection and improves the global optimization level of path planning. (4) Redundant node pruning and path smoothing: using a moving median algorithm to smooth the path, and adopting a redundant node pruning method of straight line approximation to make the generated path smoother, reduce redundant points, and improve the feasibility and executability of the path.

[0172] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A dynamic path planning method based on an improved bidirectional RRT algorithm, applied in robot path planning, characterized in that: The dynamic path planning method based on the improved bidirectional RRT algorithm includes: Step S1: Set the starting point, end point, search step, probability threshold and distance threshold of path planning; Step S2: selecting heuristic search or random search according to the probability threshold, and determining a new node through heuristic search or random search within the current path planning cycle; Step S3: Find all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determine the best path from the multiple candidate paths in the current path planning cycle; then loop through steps S2-S3 to sequentially determine the best paths in all subsequent path planning cycles until the distance between the new node and the target point in the subsequent path planning cycle is less than the distance threshold; Step S4: Generate a complete path from the starting point to the end point according to the best path in all path planning cycles; Step S5: smoothing and pruning the complete path from the starting point to the end point to obtain a final path from the starting point to the end point; The step of selecting a heuristic search or a random search according to the probability threshold and determining a new node by the heuristic search or the random search within the current path planning cycle further includes: Calculate the Euclidean distance h between the new node and the target point in the previous path planning cycle dist , and calculate the distance h between the new node in the previous path planning cycle and the obstacle in the current direction obs ; Calculate the distance index H within the current path planning cycle dist and obstacle indicator H obs ; The calculation formula is as follows: Among them, d max is the distance between the starting point and the end point, d min is the distance threshold, k is the adjustment parameter; Calculate the overall heuristic search probability P(H), the calculation formula is as follows: P(H)=α*H dist +β*H obs Among them, α and β are the weighting coefficients of the evaluation respectively; According to the overall heuristic search probability P(H) and the probability threshold P tar Choose between heuristic search or random search; When the heuristic search probability P(H) is greater than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node; When the heuristic search probability P(H) is greater than the random probability value P and less than the probability threshold P tar When x is searched heuristically in the current path planning cycle, goal Identify a new node; When the heuristic search probability P(H) is less than the random probability value P, a new node is determined by randomly searching SampleFree() within the current path planning cycle; The step of finding all parent nodes of the new node in the current path planning cycle by backtracking to generate multiple candidate paths in the current path planning cycle, and determining the best path from the multiple candidate paths in the current path planning cycle also includes: When a new node in the current path planning cycle explores the search space, all parent nodes are searched within a certain radius centered on the new node to generate multiple candidate paths in the current path planning cycle; Calculate the path length cost value length, obstacle cost value obstacle and smooth cost value smooth of each candidate path in the current path planning cycle. The calculation formulas are as follows: legnth=∑distance(node_i,node_i+1) obstacle=∑distance(node_i,obstacle) smooth=∑angle(|node_i,node_i+1|) Wherein, distance(node_i,node_i+1) refers to the distance between the ith node and the i+1th node on each candidate path, distance(node_i,obstacle) refers to the distance between the ith node and the obstacle on each candidate path, and angle(|node_i,node_i+1|) refers to the absolute value of the difference between the angle of the ith node and the angle of the i+1th node on each candidate path; According to the path length cost value length, obstacle cost value obstacle and smooth cost value smooth of each candidate path in the current path planning cycle, the total cost value C of each candidate path in the current path planning cycle is calculated. The calculation formula is as follows: C=w1*length+w2*obstacle+w3*smooth In the formula, w1, w2, and w3 are weighting coefficients respectively; According to the total cost value C of each candidate path in the current path planning cycle, a candidate path with the smallest total cost value C is determined from multiple candidate paths in the current path planning cycle, and the candidate path with the smallest total cost value C is used as the best path in the current path planning cycle.

2. The dynamic path planning method based on the improved bidirectional RRT algorithm according to claim 1, characterized in that: The step of determining a new node by heuristic search within the current path planning cycle also includes: Calculate the angle θ1 of the new node of the current tree and the angle θ2 of the new node of the other tree; In the path direction along the angle θ1 or the angle θ2, a new node for the next path planning cycle is determined according to the search step length.

3. The dynamic path planning method based on the improved bidirectional RRT algorithm according to claim 1, characterized in that: Also includes: 1) Record the total cost value C of the initial path planning cycle: record the total cost value C in the initial five path planning cycles and calculate its average value as the benchmark value; 2) Monitor the changes of subsequent total cost value C: Continuously monitor the total cost value C in each subsequent path planning cycle; 3) Trigger the automatic adjustment search strategy: Compare the total cost value C in the current path planning cycle with the benchmark value. If the total cost value C in the current path planning cycle is greater than the benchmark value, or the total cost value C in the subsequent four path planning cycles continues to increase, the automatic adjustment search strategy is triggered to reduce the search step size, and determine the new node through random search in the subsequent four path planning cycles; if the total cost value C in the subsequent four path planning cycles continues to increase or exceeds the emergency threshold C after the automatic adjustment strategy is triggered, emergency , then search directly in the opposite direction of the target point bias and greatly increase the search step size; 4) Dynamically update the benchmark value: the average value of the total cost C of the last five path planning cycles is used as the benchmark value; 5) Continue monitoring and feedback: After automatically adjusting the search strategy, continue to monitor the subsequent changes in the total cost value C to ensure that the quality of path planning continues to improve.

4. The dynamic path planning method based on the improved bidirectional RRT algorithm according to claim 1, characterized in that: The step of smoothing and pruning the complete path from the starting point to the end point to obtain a final path from the starting point to the end point further includes: Smoothing the complete path from the starting point to the end point by a path smoothing algorithm to obtain a smooth path from the starting point to the end point; A collision detection algorithm is used to determine whether the nodes on the smooth path from the starting point to the end point are redundant points, and the redundant points are deleted based on the principle of straight line path approximation to obtain the final path from the starting point to the end point.

5. The dynamic path planning method based on the improved bidirectional RRT algorithm according to claim 4, characterized in that: The step of smoothing the complete path from the starting point to the end point by a path smoothing algorithm to obtain a smooth path from the starting point to the end point further includes: 1) Selecting data points: The N nodes on the complete path from the starting point to the end point are taken as N data points to form a time series {x(1), x(2), ..., x(N)}. For each data point x(i) in the time series, the data points in the window are taken with the data point x(i) as the center, that is, {x(ik), x(i-k+1), ..., x(i+k)}, where k is half of the window size, rounded down; 2) Calculate the median: Calculate the median of the data points in the window, that is, arrange the data points in the window by size and take the value in the middle position; 3) Use median substitution: replace the original data point x(i) with the calculated median value to obtain the smoothed data point; 4) Repeat the above steps: use the movement of the dynamic window to perform median smoothing operations on all data points in the time series.

6. The dynamic path planning method based on the improved bidirectional RRT algorithm according to claim 4, characterized in that: The step of determining whether a node on the smooth path from the starting point to the end point is a redundant point by using a collision detection algorithm further includes: For each pair of non-adjacent nodes on the smooth path, if the path between them is not affected by obstacles, the middle node of each pair of non-adjacent nodes is marked as a redundant point.

Citation Information

Cited By

  • Improved RRT algorithm-based intelligent path planning method for overrun transportation of large goods

    CN122448212A