Three-dimensional space path planning method based on improved FMT* algorithm
By introducing global uniform random sampling and neighbor node heuristic guidance strategies into the FMT* algorithm, the problems of redundant exploration and low computational efficiency of the FMT* algorithm in complex environments are solved, and a more efficient and stable three-dimensional space path planning is achieved. , the generated path is more optimal and the computing resource usage is lower.
Patent Information
- Application Number
- CN202410821620.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
AI Technical Summary
The existing FMT* algorithm has problems with redundant exploration, large memory overhead, and tortuous paths due to randomness and dynamic recursion in complex environments. Moreover, the calculation efficiency is low when there is insufficient sample information, and it cannot guarantee fast and efficient tasks in industrial environments. Finish.
The global uniform random sampling strategy and the neighbor node heuristic guidance strategy are used, combined with the FMT* algorithm for three-dimensional space path planning, and the sampling points are generated by uniformly dividing the grid, and the neighbor node optimization guidance strategy is added to the dynamic recursion to optimize the path planning and reduce Generation of redundant nodes and usage of computing resources.
It improves the path quality, avoids the risk of planning failure when there are few sampling points, reduces the waste of computing resources, enhances the guidance and speed of the algorithm, generates better paths, and reduces bends and path costs.
Smart Images

Figure CN118760159A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of three-dimensional space path planning, in particular to a three-dimensional space path planning method based on an improved FMT* algorithm. Background Art
[0002] With the accelerated development and technological innovation of industry and manufacturing, as well as a clearer social division of labor, the rapid development of industries such as robot navigation and aerospace has been promoted accordingly, making robots the focus of development and change. Compared with two-dimensional path planning, three-dimensional path planning requires more abundant information for accurate planning, and has a wide range of applications in many fields. For example, in the application of robotic arms, robotic arms need to perform different tasks in different environments, so efficient and convenient three-dimensional path planning methods are needed; in the field of unmanned aerial vehicle navigation, three-dimensional path planning methods are needed to ensure that the aircraft plans the best path from the starting point to the end point under collision-free conditions; in the field of underwater robot detection, three-dimensional path planning methods can help underwater robots plan effective navigation paths in complex underwater environments and avoid complex seabed obstacles. Three-dimensional path planning methods involve technologies from multiple fields, including graph theory, geometry, machine learning, sensor technology, and real-time operation and control systems. Through the comprehensive application of these technologies, efficient and accurate path planning can be achieved in complex three-dimensional space.
[0003] The path planning algorithm based on random sampling - Fast Marching Trees (FMT*) is a path planning method that can perform well in both two-dimensional and high-dimensional spaces. This algorithm is specifically designed to solve complex motion planning problems in high-dimensional configuration spaces, and has been proven to be asymptotically optimal. It converges to the optimal solution faster than the similar algorithm RRT* (Rapidly-exploring Random Trees Star), and is very suitable for obstacle avoidance path planning. However, this algorithm still has some problems. For example, in complex environments, due to the randomness of sampling and the dynamic recursive method used by the algorithm itself, redundant exploration, high memory overhead, and tortuous planning paths may occur. Specifically:
[0004] A Chinese patent with application number CN 202211110911.0 discloses a sampling-based path planning method that takes obstacle information into account. This method samples state points near obstacles in space, connects the sampling points of adjacent obstacles, and then constructs an obstacle-based path map. A search-based path planning method is executed on the path map to obtain the initial path; based on the initial path, a heuristic sampling set is constructed in the surrounding segments, and random sampling is performed again. Then, an optimal path is searched for through the fast marching tree method on the secondary sampling point set. This method analyzes the obstacle information, obtains the initial path, and then randomly samples again to optimize the path. The algorithm relies on the sample information of the obstacle information. When insufficient sample information is encountered, the calculation efficiency will be affected, and it cannot guarantee that the task can be completed quickly and efficiently in the industrial environment.
[0005] The Chinese patent application number CN 202311655337.1 discloses a fast marching tree path planning method, system and medium based on the artificial potential field method. The method improves the sampling process of the fast marching tree algorithm and combines the artificial potential field method to optimize the sampling points to reduce the iteration of redundant nodes. The problem with this method is that there is still a certain degree of randomness after the artificial potential field method optimizes the sampling, and planning may fail when there are fewer sampling points.
[0006] Based on this, the present invention proposes a three-dimensional space path planning method based on an improved FMT* algorithm to efficiently and stably generate a spatially feasible path. Summary of the invention
[0007] The purpose of the present invention is to propose a three-dimensional space path planning method based on an improved FMT* algorithm, which can efficiently and stably generate a spatially feasible path and improve the application value.
[0008] To achieve the above object, the technical solution of the present invention is: a three-dimensional space path planning method based on an improved FMT* algorithm, comprising the following steps:
[0009] Step S1: in the three-dimensional workspace, initialize the required parameters: initial node, target node, search radius, number of sampling points n, and define the required point set;
[0010] Step S2: Generate n sampling points using a global uniform random sampling strategy, store the initial node, the target node and the generated sampling points into a sampling point set, and store the sampling point set except the initial node into an unvisited point set;
[0011] Step S3: Initialize the current working node as the initial node;
[0012] Step S4: Execute the path planning step, and perform global path planning by combining the FMT* algorithm with the neighbor node heuristic guidance strategy based on uniform random sampling;
[0013] Step S5: Return the planned path from the initial node to the target node and generate a feasible path node set;
[0014] Step S6: Prune the path planned in step S5 using a node optimization strategy.
[0015] Furthermore, the definition of the required point set is specifically: defining the open point set as the currently active sampling point set, and storing the initial node in the open point set, defining the closed point set as the sampling point set that has been added to the incremental path tree, and the unvisited point set as all sampling point sets that have not yet been considered for addition to the incremental path tree.
[0016] Furthermore, the method of generating n sampling points by adopting a global uniform random sampling strategy is as follows:
[0017] Step S2-1: define a uniform random coefficient α and calculate the random spacing H corresponding to each dimension;
[0018] Step S2-2: Perform uniform sampling: uniformly sample k values in each dimension respectively. After obtaining all the values in the three-dimensional workspace, perform loop iterations to obtain the final sampling points by adding a random number within the positive and negative random spacing range [-H, H] of each value as a random offset. Perform collision detection on the obtained sampling points to obtain uniform sampling points in the workspace and outside obstacles.
[0019] Step S2-3: Perform random sampling: subtract the number of uniform sampling points from the number of sampling points n to obtain the total number of random sampling points, randomly generate sampling points in the three-dimensional workspace, and perform collision detection to obtain random sampling points in the workspace and outside obstacles according to the total number of random sampling points.
[0020] Furthermore, the calculation formula of the random spacing H corresponding to each dimension is:
[0021] H=(D max -D min ) / α / k
[0022] Where D max is the maximum boundary of a certain dimension, D min is the minimum boundary of a certain dimension, and the parameter k is used to evenly divide the grid.
[0023] Furthermore, the parameter k is calculated as follows:
[0024]
[0025] Where n is the total number of sampling points, d is the dimension of the workspace, d=3.
[0026] Furthermore, the step S4 is specifically as follows:
[0027] Step S4-1: Find all unvisited nodes within the search radius of the current working node, store them in a subset of the current working node, and refer to the points in the subset as candidate nodes. At this time, traverse all candidate nodes: for each candidate node, find the open nodes within the search radius of the candidate node, calculate the path costs of all open nodes and the current candidate node, select the open node with the smallest path cost, and perform collision detection with the candidate node. If there is no collision and the neighbor node optimization condition is met, the candidate node is deleted from the unvisited point set and added to the open point set; if there is no collision but the neighbor node optimization condition is not met or a collision occurs, ignore the current candidate point; in this step, the neighbor node optimization condition adopts the neighbor node optimization heuristic guidance strategy;
[0028] Step S4-2: remove the current working node from the open point set and add it to the closed point set;
[0029] Step S4-3: Judgment condition: If the open point set is empty, the path planning failure is returned; if it is not empty, the open node with the smallest path cost from the open point set to the initial node is selected as the current working node; and return to step S4-1 for the next loop until the current working node is equal to the target node and the loop stops.
[0030] Furthermore, the neighbor node optimization heuristic guidance strategy in step S4-1 includes the following steps:
[0031] Step S4-1-1: Initialization: Calculate the reference vector from the initial node to the target node, and the modulus of the reference vector;
[0032] Step S4-1-2: After obtaining the open node with the shortest distance to the candidate node in step S4-1, calculate the vector pointing from the open node to the candidate node and the modulus of the vector;
[0033] Step S4-1-3: Calculate the angle between the reference vector in step S4-1-1 and the vector in step S4-1-2;
[0034] Step S4-1-4: Judgment: If the angle between the two vectors is less than a certain threshold, the neighbor node optimization condition is met, otherwise the neighbor node optimization condition is not met.
[0035] Furthermore, the step S4-1-3 is specifically as follows: calculating the reference vector in step S4-1-1 The vector in step S4-1-2 The vector dot product between Then calculate the cosine value cosθ between the two vectors:
[0036]
[0037] Finally, the angle between the two vectors is calculated by the inverse cosine function:
[0038]
[0039] in, represents the base vector, represents the vector in step S4-1-2, and Respectively and Model.
[0040] Furthermore, returning the planned path from the initial node to the target node in step S5 specifically includes returning all points in the closed point set in step S4 and the target node as the planned path.
[0041] Furthermore, the step S6 is specifically to use the node optimization strategy to re-plan the path nodes of the path node set obtained in step S5, including the following steps:
[0042] Step S6-1: Initialize an optimized path list, add the initial node to the list, set the current node as the initial node, initialize an index value to 1, and set the node to be detected to the node corresponding to the index value 1 in the path node set obtained in step S5; that is, the next node of the initial node in the path node set;
[0043] Step S6-2: Determine whether a collision occurs between the current node and the target node. If not, add the target node to the optimized path list. If a collision occurs, execute the following loop steps:
[0044] Step S6-3: Determine whether there is a collision between the current node and the node to be detected; if not, add 1 to the index value, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; if there is a collision, add the previous node of the node corresponding to the index value in the path point set obtained in step S5 to the optimized path list and set it as the current node, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; stop until the index value is greater than or equal to the length of the path point set obtained in step S5, and add the target node to the optimized path list;
[0045] Step S6-4: Finally, return to the optimized path list.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] (1) The present invention not only ensures the asymptotic optimality of the FMT* algorithm, but also improves the path quality of the algorithm while ensuring the randomness of the sampling points by improving the global random sampling in the original algorithm to global uniform random sampling, and solves the problem that the algorithm cannot plan the path when there are few sampling points.
[0048] (2) The present invention proposes an inert dynamic recursive method guided by neighbor node optimization heuristics, which can avoid the algorithm from searching for worthless nodes unnecessarily, enhance the algorithm's guidance, reduce the utilization rate of computing resources, and improve the algorithm's speed.
[0049] (3) The present invention proposes a node optimization strategy, which makes the path cost more optimal by deleting redundant nodes in the planned path. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a flow chart of the method of the present invention;
[0051] Figure 2 This is a top view schematic diagram of a three-dimensional environment when the random coefficient α of the global random sampling strategy of the present invention is 1;
[0052] Figure 3 This is a top view schematic diagram of a three-dimensional environment when the random coefficient α of the global random sampling strategy of the present invention is 20;
[0053] Figure 4 This is a schematic diagram of the three-dimensional environment after neighbor node optimization of the improved FMT* algorithm of the present invention;
[0054] Figure 5 This is a schematic diagram of the three-dimensional environment of the improved FMT* algorithm node optimization strategy described in the present invention. DETAILED DESCRIPTION
[0055] The following is combined with Figure 1-5 , the technical solution of the present invention is specifically described.
[0056] The present invention proposes a three-dimensional space path planning method based on an improved FMT* algorithm; the path planning is a three-dimensional space obstacle avoidance path planning, that is, when there are multiple obstacles in the three-dimensional workspace, an object completes the movement from a starting position to a target position without collision.
[0057] The present invention is based on a three-dimensional space path planning method based on an improved FMT*, which is applied to a three-dimensional workspace with multiple obstacles. On the basis of uniform random sampling, the FMT* algorithm is combined with a neighbor node heuristic guidance strategy to perform global path planning. The planning scheme includes a global uniform random sampling strategy, a neighbor node optimization heuristic guidance strategy, and a node optimization strategy. First, the overall sampling space is evenly divided, and then the sampling points are selected through the dividing line; secondly, under the premise of ensuring the asymptotic optimality of the algorithm, a neighbor node optimization guidance strategy is added to the dynamic recursive optimization function to give the algorithm a target orientation. Finally, the path after the algorithm completes the planning is subjected to redundant node deletion operations, so that the generated path has fewer bends and the path length is optimized. The present invention can reduce the risk of planning failure and reduce the waste of computing resources under the premise of ensuring randomness.
[0058] like Figure 1 As shown, a three-dimensional space path planning method based on an improved FMT* algorithm of the present invention has the following specific steps for implementation:
[0059] Step S1: In the three-dimensional workspace, initialize the required parameters: give the initial node, target node, search radius, number of sampling points n, define the open point set V o is the currently active sampling point set and closed point set V c is the sample set that has been added to the incremental path tree and the unvisited point set V u For all samples that have not yet been considered to be added to the incremental path tree, the initial node is stored in the open point set V o .
[0060] Step S2: Global uniform random sampling strategy, uniformly divide the workspace for random sampling, generate n sampling points, store them in the sampling point set V together with the initial node and the target node, and store the sampling points in the sampling point set except the initial node in the unvisited point set V u .
[0061] Step S3: Initialize the current working node z as the initial node.
[0062] Step S4: Execute the following loop steps: until the current working node is equal to the end point:
[0063] Step S4-1: Find all unvisited nodes within the search radius of the current working node z and store them in the subset X of the current working node nearThe points in this subset are collectively referred to as candidate nodes. At this time, all candidate nodes are traversed. For each candidate node x, the open nodes within the candidate node search radius are found, the path costs of all open nodes and the current candidate node are calculated, and the open node with the smallest path cost is selected. It is subjected to collision detection with the candidate node. If there is no collision and the neighbor node optimization condition is met, the candidate node x is removed from the unvisited point set V. u Delete it and add it to the open point set V o If there is no collision but the neighbor node optimization condition is not met or a collision occurs, the current candidate point x is ignored and the next candidate node is judged. In this step, the neighbor node optimization condition adopts the neighbor node optimization heuristic guidance strategy.
[0064] Step S4-2: Remove the current working node z from the open node set V o Remove from and add to the closed point set V c among.
[0065] Step S4-3: Judgment condition: If the open point set V o If it is empty, the path planning fails; if it is not empty, the open point set V is selected. o The open node with the smallest path cost to the initial node is set as the current working node z.
[0066] Step S5: The algorithm returns the path from the initial node to the target node, that is, returns all the points in the closed point set in step S4 and the target node as the planned path, generating a feasible path node set.
[0067] Step S6: Node optimization strategy: The node path planned in step S5 is subjected to tree pruning using the node optimization strategy.
[0068] In this embodiment, step S2 includes the following steps:
[0069] Step S2-1: Define a uniform random coefficient α and calculate the random spacing H on both sides of the grid corresponding to each dimension. The calculation formula is:
[0070] H=(D max -D min ) / α / k;
[0071] Where D max is the maximum boundary of a certain dimension, D min is the minimum boundary of a certain dimension, and the parameter k is used to evenly divide the grid. Its calculation formula is as follows:
[0072]
[0073] Where n is the total number of sampling points, d is the dimension of the workspace, and the present invention can be applied to two-dimensional and three-dimensional workspaces. Here, d=3 is selected.
[0074] Step S2-2: Perform uniform sampling: uniformly sample k values in the three dimensions respectively. After obtaining all the values in the three dimensions, perform loop iterations to obtain the final sampling points by adding a random number within the positive and negative random spacing range [-H, H] of each value as a random offset. The obtained sampling points are subjected to collision detection to obtain uniform sampling points within the workspace and outside obstacles.
[0075] Step S2-3: Perform random sampling: the total number of sampling points minus the sampling points generated by uniform sampling, the remainder is the total number of random sampling points, the second part of the sampling points is obtained by randomly generating sampling points within the specified workspace, and performing collision detection to obtain random sampling points within the workspace and outside obstacles.
[0076] like Figure 2 and Figure 3 As shown in the figure, by increasing the uniform random coefficient α, the sampling points in the three-dimensional environment are transformed from random distribution to a certain number of sampling points in each interval. This strategy can improve the success rate of algorithm planning under the conditions of few sampling points and many obstacles.
[0077] In this embodiment, the neighbor node optimization heuristic guidance strategy in step S4-1 includes the following steps:
[0078] Step S4-1-1: Initialization: Calculate the reference vector from the initial node to the target node, and the modulus of the reference vector.
[0079] Step S4-1-2: After obtaining the open node with the shortest distance to the candidate node in the above step S4-1, calculate the vector from the open node to the candidate node and the modulus of the vector.
[0080] Step S4-1-3: Calculate the vector dot product between the reference vector in step S4-1-1 and the vector in step S4-1-2, then calculate the cosine value between the two vectors, and finally calculate the angle between the two vectors through the inverse cosine function. Step S4-1-4: Judgment: If the angle between the two vectors is less than a certain threshold, the neighbor node optimization condition is met, and the subsequent steps of step S4-1 are executed.
[0081] Here, the threshold θ is set to 75° in a three-dimensional environment, such as Figure 4 As shown, it can be seen that compared with the original algorithm, the neighbor node optimization heuristic guidance strategy enters the open point set V by setting x o The conditions are used to limit the generation of redundant nodes, which greatly improves the computing efficiency and reduces the time cost loss.
[0082] In this embodiment, the step S6 uses the node optimization strategy to re-plan the path nodes of the node path set obtained in step S5, including the following steps:
[0083] Step S6-1: Initialize an optimized path list, add the initial node to the list, set the current node as the initial node, initialize an index value to 1, and set the node to be detected to the node corresponding to the path point set index value obtained in step S5.
[0084] Step S6-2: Execute the following loop steps:
[0085] Step S6-3: Determine whether there is a collision between the current node and the target node, that is, determine whether the line between the current node and the target node passes through an obstacle? If not, exit the loop and add the target node to the optimization path list. At this time, the current node and the target node are directly connected as the optimization path, and there is no need to go through the redundant nodes between the current node and the target node planned in step S4; if a collision occurs, determine whether there is a collision between the current node and the node to be detected? If not, add 1 to the index value, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; if a collision occurs, it means that the connection between the current node and the node to be detected will pass through an obstacle, and the current node cannot be connected to the node to be detected, then add the previous node of the node corresponding to the index value in the path point set obtained in step S5 to the optimization path list and set it as the current node, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; stop until the index value is greater than or equal to the length of the path point set obtained in step S5, and add the target node to the optimization path list.
[0086] Step S6-4: Finally, return to the optimized path list.
[0087] like Figure 5 As shown, compared with the original algorithm, the optimized path avoids the problems of bending, unevenness and high path cost caused by redundant nodes.
[0088] In summary, the present invention adopts a global uniform random sampling method to generate sampling points, that is, the sampling points are generated based on the uniform division of the workspace, and the sampling points are given a certain randomness to avoid the situation where the algorithm fails in path planning under the condition of few sampling points. Adopting a neighboring node optimization heuristic guidance strategy, under the premise of ensuring the completeness of the algorithm probability, by comparing whether the angle between the edge of the generated tree and the connecting line between the starting point and the end point is within a certain range to judge whether the node can be added to the tree, the iteration speed of the algorithm can be improved, the generation of redundant nodes can be reduced, the calculation efficiency can be improved, and the time loss can be reduced. Adopting a node optimization strategy, the redundant node deletion operation is performed on the path after the algorithm completes the planning, so that the generated path has fewer bends and the path cost is reduced. Compared with the original FMT* algorithm, the three-dimensional space path planning method based on the improved FMT* of the present invention can obtain a higher path planning success rate and less planning time cost and a smaller planning path cost.
[0089] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.
Claims
1. A three-dimensional space path planning method based on an improved FMT* algorithm, characterized in that: The following steps are involved: Step S1: in the three-dimensional workspace, initialize the required parameters: initial node, target node, search radius, number of sampling points n, and define the required point set; Step S2: Generate n sampling points using a global uniform random sampling strategy, store the initial node, the target node and the generated sampling points into a sampling point set, and store the sampling point set except the initial node into an unvisited point set; Step S3: Initialize the current working node as the initial node; Step S4: Execute the path planning step, and perform global path planning by combining the FMT* algorithm with the neighbor node heuristic guidance strategy based on uniform random sampling; Step S5: Return the planned path from the initial node to the target node and generate a feasible path node set; Step S6: Prune the path planned in step S5 using a node optimization strategy.
2. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 1, characterized in that: The definition of the required point set is specifically: define the open point set as the currently active sampling point set, and store the initial node in the open point set, define the closed point set as the sampling point set that has been added to the incremental path tree, and define the unvisited point set as all sampling point sets that have not yet been considered for addition to the incremental path tree.
3. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 1, characterized in that: The global uniform random sampling strategy is used to generate n sampling points as follows: Step S2-1: define a uniform random coefficient α and calculate the random spacing H corresponding to each dimension; Step S2-2: Perform uniform sampling: uniformly sample k values in each dimension respectively. After obtaining all the values in the three-dimensional workspace, perform loop iterations to obtain the final sampling points by adding a random number within the positive and negative random spacing range [-H, H] of each value as a random offset. Perform collision detection on the obtained sampling points to obtain uniform sampling points in the workspace and outside obstacles. Step S2-3: Perform random sampling: subtract the number of uniform sampling points from the number of sampling points n to obtain the total number of random sampling points, randomly generate sampling points in the three-dimensional workspace, and perform collision detection to obtain random sampling points in the workspace and outside obstacles according to the total number of random sampling points.
4. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 3, characterized in that: The calculation formula of the random spacing H corresponding to each dimension is: H=(D max -D min ) / a / k Where D max is the maximum boundary of a certain dimension, D min is the minimum boundary of a certain dimension, and the parameter k is used to evenly divide the grid.
5. The three-dimensional space path planning method based on the improved FMT* algorithm according to claim 3 is characterized in that: The calculation formula of parameter k is as follows: Where n is the total number of sampling points, d is the dimension of the workspace, d=3.
6. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 2, characterized in that: The step S4 is specifically as follows: Step S4-1: Find all unvisited nodes within the search radius of the current working node, store them in a subset of the current working node, and refer to the points in the subset as candidate nodes. At this time, traverse all candidate nodes: for each candidate node, find the open nodes within the search radius of the candidate node, calculate the path costs of all open nodes and the current candidate node, select the open node with the smallest path cost, and perform collision detection with the candidate node. If there is no collision and the neighbor node optimization condition is met, the candidate node is deleted from the unvisited point set and added to the open point set; if there is no collision but the neighbor node optimization condition is not met or a collision occurs, ignore the current candidate point; in this step, the neighbor node optimization condition adopts the neighbor node optimization heuristic guidance strategy; Step S4-2: remove the current working node from the open point set and add it to the closed point set; Step S4-3: Judgment condition: If the open point set is empty, the path planning failure is returned; if it is not empty, the open node with the smallest path cost from the open point set to the initial node is selected as the current working node; and return to step S4-1 for the next loop until the current working node is equal to the target node and the loop stops.
7. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 6, characterized in that: The step S4-1 neighbor node optimization heuristic guidance strategy includes the following steps: Step S4-1-1: Initialization: Calculate the reference vector from the initial node to the target node, and the modulus of the reference vector; Step S4-1-2: After obtaining the open node with the shortest distance to the candidate node in step S4-1, calculate the vector pointing from the open node to the candidate node and the modulus of the vector; Step S4-1-3: Calculate the angle between the reference vector in step S4-1-1 and the vector in step S4-1-2; Step S4-1-4: Judgment: If the angle between the two vectors is less than a certain threshold, the neighbor node optimization condition is met, otherwise the neighbor node optimization condition is not met.
8. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 7, characterized in that: The step S4-1-3 is specifically as follows: calculating the reference vector in step S4-1-1 The vector in step S4-1-2 The vector dot product between Then calculate the cosine value cosθ between the two vectors: Finally, the angle between the two vectors is calculated by the inverse cosine function: in, represents the base vector, represents the vector in step S4-1-2, and Respectively and Model.
9. A three-dimensional space path planning method based on an improved FMT* algorithm according to claim 1, characterized in that: The step S5 returns the planned path from the initial node to the target node by returning all the points in the closed point set in step S4 and the target node as the planned path.
10. The three-dimensional space path planning method based on the improved FMT* algorithm according to claim 1, characterized in that: The step S6 specifically includes replanning the path nodes using the node optimization strategy for the path node set obtained in step S5, and includes the following steps: Step S6-1: Initialize an optimized path list, add the initial node to the list, set the current node as the initial node, initialize an index value to 1, and set the node to be detected to the node corresponding to the index value 1 in the path node set obtained in step S5, that is, the next node of the initial node in the path node set; Step S6-2: Determine whether a collision occurs between the current node and the target node. If not, add the target node to the optimized path list. If a collision occurs, execute the following loop steps: Step S6-3: Determine whether there is a collision between the current node and the node to be detected; if not, add 1 to the index value, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; if there is a collision, add the previous node of the node corresponding to the index value in the path point set obtained in step S5 to the optimized path list and set it as the current node, take the node corresponding to the index value as the node to be detected, and continue to determine whether there is a collision between the current node and the node to be detected; stop until the index value is greater than or equal to the length of the path point set obtained in step S5, and add the target node to the optimized path list; Step S6-4: Finally, return to the optimized path list.
