A method and device for autonomous robot obstacle avoidance path planning in a narrow bone space
By constructing an artificial potential field using the Alpha-shape algorithm and improved APF and RRT* algorithms, the local optimum problem of path planning and obstacle avoidance of concave obstacles in narrow bony spaces is solved, achieving efficient local path planning.
Patent Information
- Application Number
- CN202510141735.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-02-08
AI Technical Summary
In confined bony spaces, the proximity of the nucleus pulposus target to nerve root obstacles can cause path planning algorithms to get stuck in local optima. Furthermore, when dealing with concave obstacles, obstacle avoidance strategies using the multi-morphic irregular obstacle-enclosing method present difficulties.
The Alpha-shape algorithm is used to surround concave nerve root obstacles, and an artificial potential field is constructed by combining the improved APF algorithm and RRT* algorithm to optimize path planning.
It effectively avoids paths getting stuck in local optima, improves the accessibility and efficiency of path planning, and efficiently avoids obstacles such as concave complex obstacles, planning feasible local paths.
Smart Images

Figure CN120038743B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous path planning technology for robots, and in particular to a method and apparatus for obstacle avoidance path planning for autonomous robots in confined bony spaces. Background Technology
[0002] Autonomous robotic surgery has the potential to provide efficacy, safety, and consistency independent of the surgeon's individual skills and experience, particularly in tasks requiring high precision, such as autonomous discectomy in confined bony spaces. These tasks are extremely challenging because they demand sophisticated imaging, tissue tracking, and surgical planning techniques, while simultaneously executing surgical maneuvers precisely in unstructured and deformable environments through highly adaptive control strategies. Summary of the Invention
[0003] This invention addresses two key issues in autonomous obstacle avoidance path planning within confined spaces: first, the proximity of the nucleus pulposus target to nerve root obstacles causes the path planning algorithm to get stuck in a local optimum, rendering the path unreachable; second, the obstacle avoidance strategy for dealing with concave obstacles and irregularly shaped obstacles. This invention provides a method and apparatus for obstacle avoidance path planning for autonomous robots in narrow bony spaces. The technical solution is as follows:
[0004] On the one hand, a method for obstacle avoidance path planning of an autonomous robot in confined bony spaces is provided. This method is implemented by an obstacle avoidance path planning device for an autonomous robot in confined bony spaces, and includes:
[0005] S1. For concave nerve root obstacles in narrow bony spaces, use the Alpha-shape algorithm to enclose them and obtain the enclosed obstacles.
[0006] S2. An improved APF algorithm is used to construct an artificial potential field for the robot, the preset target point, and the surrounding obstacles.
[0007] S3. Based on the improved RRT* algorithm and the artificial potential field method, the obstacle avoidance path planning results of the autonomous robot in narrow bony spaces based on the improved RRT*-APF are obtained.
[0008] Optionally, the potential field function of the obstacle repulsive potential field in the improved APF algorithm in S2 is shown in equation (1) below:
[0009]
[0010] In the formula, U obs (q) represents the potential field function of the repulsive potential field of the obstacle, K obsLet ρ(q, q0) represent the proportionality coefficient, ρ(q, q0) represent the distance between the robot and the neural root obstacle, q represent the robot's position, q0 represent the obstacle's position, and ρ0 represent the obstacle's perceived distance. g ) represents the distance between the robot and the target location of the nucleus pulposus, q g Indicates the location of the nucleus pulposus.
[0011] The repulsive force F from the obstacle towards the robot r The negative gradient of the repulsive potential field is represented by the improved obstacle repulsive potential field function, as shown in equation (2) below:
[0012]
[0013] In the formula, F obs (q) represents the improved obstacle repulsive potential field function, F obs1 F represents the force exerted by the obstacle on the robot. obs2 This represents the force the robot exerts towards the target.
[0014] in,
[0015]
[0016] In the formula, n represents the adjustment parameter. This represents the unit vector pointing from the obstacle to the robot. This represents the unit vector pointing from the target to the robot.
[0017] Optionally, the improved RRT* algorithm in S3 includes:
[0018] S311. Initialize the starting node q in the search space. start and target node q target Define the probability threshold p target And the step size parameter ρ.
[0019] S312. Generate a random probability value p between 0 and 1; determine whether the random probability value p is greater than the probability threshold p. target If it is greater than , then a state q is randomly generated. rand If it is not greater than, then the target node q will be... target As a random state q rand .
[0020] S313. Find the state q in the current tree. rand The nearest node q near .
[0021] S314. Construct the overall growth direction and generate a new node q based on the overall growth direction. new .
[0022] S315, Based on the new node q new Optimize path cost.
[0023] S316, Move the new node q new Add to the tree, and determine whether the tree has reached the target node or meets the preset stopping condition; if yes, output the optimal path; otherwise, proceed to step S312.
[0024] Optionally, the overall growth direction of the build in S314 includes:
[0025] The random growth function is calculated as shown in equation (5):
[0026]
[0027] In the formula, Rd(n) represents the random growth function, ρ represents the step size parameter, and q rand Represents a random state, q near Represents the state q rand The most recent node.
[0028] The gravitational components of the target are calculated as shown in equation (6):
[0029]
[0030] In the formula, G(n) represents the gravitational component of the target, and g represents the gravitational gain coefficient.
[0031] The overall growth direction of the synthesis is shown in equation (7) below:
[0032] F(n)=Rd(n)+G(n) (7)
[0033] In the formula, F(n) represents the total growth direction.
[0034] Optionally, in S3, based on the artificial potential field and the improved RRT* algorithm, the obstacle avoidance path planning results for the autonomous robot in confined bony spaces based on the improved RRT*-APF are obtained, including:
[0035] S321. Initialize the starting position X start and the finish line position X end .
[0036] S322. Determine the current node X current Have we reached the finish line position X? end If the objective is achieved, output the obstacle avoidance path planning result of the autonomous robot in a narrow bony space based on the improved RRT*-APF; if the objective is not achieved, execute step S323.
[0037] S323. Generate a random number and determine if the obstacle avoidance event has been triggered; if not, generate node X. next1Execute step S324; if triggered, generate node X. next2 Proceed to step S325.
[0038] S324, Determine node X next1 Is it within a feasible region? If so, then move node X. next1 Set as current node X current If not, proceed to step S322; otherwise, proceed to step S322.
[0039] S325, Search Node X next2 Node X is generated from neighboring nodes within a preset range. next2 The parent node.
[0040] S326. Determine if node X passes. next2 Does acting as a relay reduce path cost? If so, then reconnect neighboring nodes to node X. next2 If not, proceed to step S327; otherwise, proceed to step S327.
[0041] S327, Move node X next2 Add it to the tree and add node X next2 Set as current node X current Proceed to step S322.
[0042] Optionally, node X is generated in S323. next1 ,include:
[0043] Generate random node X rand And find the tree with the random node X rand The nearest node X near Along the nearest node X near To random node X rand Move one step in the direction to generate node X next1 .
[0044] Optionally, the generating node X in S323 next2 ,include:
[0045] Establish an artificial potential field, calculate the total growth direction of the current node, and move one step along the total growth direction of the current node to generate node X. next2 .
[0046] On the other hand, a path planning device for obstacle avoidance of an autonomous robot in a confined bony space is provided. This device is applied to the path planning method for obstacle avoidance of an autonomous robot in a confined bony space. The device includes:
[0047] The processing module is used to enclose concave nerve root obstacles in narrow bony spaces using the Alpha-shape algorithm to obtain the enclosed obstacle.
[0048] The module is used to construct an artificial potential field for the robot, the preset target point, and the surrounding obstacles using an improved APF algorithm.
[0049] The output module is used to obtain the obstacle avoidance path planning results of the autonomous robot in narrow bony spaces based on the improved RRT* algorithm and the artificial potential field method.
[0050] Optionally, the potential field function of the obstacle repulsive potential field in the improved APF algorithm is shown in equation (1) below:
[0051]
[0052] In the formula, U obs (q) represents the potential field function of the repulsive potential field of the obstacle, K obs Let ρ(q, q0) represent the proportionality coefficient, ρ(q, q0) represent the distance between the robot and the neural root obstacle, q represent the robot's position, q0 represent the obstacle's position, and ρ0 represent the obstacle's perceived distance. g ) represents the distance between the robot and the target location of the nucleus pulposus, q g Indicates the location of the nucleus pulposus.
[0053] The repulsive force F from the obstacle towards the robot r The negative gradient of the repulsive potential field is represented by the improved obstacle repulsive potential field function, as shown in equation (2) below:
[0054]
[0055] In the formula, F obs (q) represents the improved obstacle repulsive potential field function, F obs1 F represents the force exerted by the obstacle on the robot. obs2 This represents the force the robot exerts towards the target.
[0056] in,
[0057]
[0058] In the formula, n represents the adjustment parameter. This represents the unit vector pointing from the obstacle to the robot. This represents the unit vector pointing from the target to the robot.
[0059] Optionally, the RRT* algorithm is improved by including:
[0060] S311. Initialize the starting node q in the search space. start and target node q target Define the probability threshold p target and step size parameter ρ.
[0061] S312. Generate a random probability value p between 0 and 1; determine whether the random probability value p is greater than the probability threshold p. target If it is greater than , then a state q is randomly generated. rand If it is not greater than, then the target node q will be... target As a random state q rand .
[0062] S313. Find the state q in the current tree. rand The nearest node q near .
[0063] S314. Construct the overall growth direction and generate a new node q based on the overall growth direction. new .
[0064] S315, Based on the new node q new Optimize path cost.
[0065] S316, Move the new node q new Add to the tree, and determine whether the tree has reached the target node or meets the preset stopping condition; if yes, output the optimal path; otherwise, proceed to step S312.
[0066] Optionally, the output module is further used for:
[0067] The random growth function is calculated as shown in equation (5):
[0068]
[0069] In the formula, Rd(n) represents the random growth function, ρ represents the step size parameter, and q rand Represents a random state, q near Represents the state q rand The most recent node.
[0070] The gravitational components of the target are calculated as shown in equation (6):
[0071]
[0072] In the formula, G(n) represents the gravitational component of the target, and g represents the gravitational gain coefficient.
[0073] The overall growth direction of the synthesis is shown in equation (7) below:
[0074] F(n)=Rd(n)+G(n) (7)
[0075] In the formula, F(n) represents the total growth direction.
[0076] Optionally, the output module is further used for:
[0077] S321. Initialize the starting position X start and the finish line position X end .
[0078] S322. Determine the current node X current Have we reached the finish line position X? end If the objective is achieved, output the obstacle avoidance path planning result of the autonomous robot in a narrow bony space based on the improved RRT*-APF; if the objective is not achieved, execute step S323.
[0079] S323. Generate a random number and determine if the obstacle avoidance event has been triggered; if not, generate node X. next1 Execute step S324; if triggered, generate node X. next2 Proceed to step S325.
[0080] S324, Determine node X next1 Is it within a feasible region? If so, then move node X. next1 Set as current node X current If not, proceed to step S322; otherwise, proceed to step S322.
[0081] S325, Search Node X next2 Node X is generated from neighboring nodes within a preset range. next2 The parent node.
[0082] S326. Determine if node X passes. next2 Does acting as a relay reduce path cost? If so, then reconnect neighboring nodes to node X. next2 If not, proceed to step S327; otherwise, proceed to step S327.
[0083] S327, Move node X next2 Add it to the tree and add node X next2 Set as current node X current Proceed to step S322.
[0084] Optionally, the output module is further used for:
[0085] Generate random node X rand And find the tree with the random node X rand The nearest node X near Along the nearest node X near To random node X rand Move one step in the direction to generate node X next1 .
[0086] Optionally, the output module is further used for:
[0087] Establish an artificial potential field, calculate the total growth direction of the current node, and move one step along the total growth direction of the current node to generate node X. next2 .
[0088] On the other hand, a path planning device for obstacle avoidance of an autonomous robot in a confined bony space is provided. The path planning device for obstacle avoidance of an autonomous robot in a confined bony space includes: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the methods described above for path planning of obstacle avoidance of an autonomous robot in a confined bony space is implemented.
[0089] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, the at least one instruction being loaded and executed by a processor to implement any of the above-described methods for obstacle avoidance path planning of autonomous robots in confined bony spaces.
[0090] The beneficial effects of the technical solutions provided in the embodiments of the present invention include at least the following:
[0091] This invention aims to solve the accessibility and obstacle avoidance strategies in local path planning. Specifically, it constructs an artificial potential field for the starting point, target point, and obstacles. Based on this, the random sampling step of the RRT* algorithm is modified so that, guided by the artificial potential field, the randomly sampled points can get closer to the optimal path, while significantly reducing invalid sampling points. This improvement effectively avoids the problem of the path getting trapped in local optima and provides efficient obstacle avoidance for complex concave obstacles, ultimately planning a feasible local path. Attached Figure Description
[0092] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0093] Figure 1 This is a flowchart of an obstacle avoidance path planning method for an autonomous robot in a confined bony space, provided by an embodiment of the present invention.
[0094] Figure 2 This is a flowchart of the RRT*-APF algorithm for obstacle avoidance path planning of autonomous robots in a local space, provided in an embodiment of the present invention.
[0095] Figure 3 This is a block diagram of an obstacle avoidance path planning device for an autonomous robot in a confined bony space, provided in an embodiment of the present invention.
[0096] Figure 4 This is a structural schematic diagram of an obstacle avoidance path planning device for an autonomous robot in a confined bony space, provided in an embodiment of the present invention. Detailed Implementation
[0097] The technical solution of the present invention will now be described with reference to the accompanying drawings.
[0098] In embodiments of the present invention, words such as "exemplarily," "for example," etc., are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present the concept in a concrete manner. Furthermore, in embodiments of the present invention, the meaning expressed by "and / or" can be both, or either one.
[0099] In the embodiments of this invention, the terms "image" and "picture" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction between them, their intended meanings are consistent. Similarly, the terms "of," "corresponding (relevant)," and "corresponding" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction between them, their intended meanings are consistent.
[0100] In this embodiment of the invention, sometimes a subscript such as W1 may be written in a non-subscript form such as W1. When the difference is not emphasized, the meaning they express is the same.
[0101] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0102] This invention provides a method for obstacle avoidance path planning for autonomous robots in confined bony spaces. This method can be implemented using an obstacle avoidance path planning device for autonomous robots in confined bony spaces, which can be a terminal or a server. Figure 1 The flowchart shown is for an obstacle avoidance path planning method for an autonomous robot in a confined bony space. The processing flow of this method may include the following steps:
[0103] S1. For concave nerve root obstacles in narrow bony spaces, use the Alpha-shape algorithm to enclose them and obtain the enclosed obstacles.
[0104] In one feasible implementation, an Alpha-shape algorithm is used to surround concave nerve root obstacles, preventing the surgical actuator from hitting or accidentally grasping the obstacles.
[0105] Specifically, the Alpha-shape algorithm is used to enclose the concave nerve root obstacle, resulting in a compact enclosing shape using an irregular polygon. The alpha_value in the algorithm is a parameter controlling the obstacle's shape, determining its "precision" or "relaxation." The Alpha-shape algorithm creates an approximate geometric shape representing the obstacle based on the obstacle's point set o and the parameter alpha_value. The obstacle avoidance detection method used for this algorithm checks whether the path from the starting point to the ending point collides with the given obstacle set o. This involves uniformly sampling the path and checking each point for overlap with obstacles.
[0106] Furthermore, the algorithm flow:
[0107] (1) Construct a tree structure and dynamically adjust the threshold: Construct a kd-tree for a given set of points, starting from an arbitrary initial point p. i First, calculate the average distance to its k nearest neighbors, denoted as α. Then, calculate the average distance to p. i Store the current point and its neighboring points less than 2d as a new set S. Select any set of points p2p3 from S and find the center of the sphere passing through points p1p2 and p3 with radius α.
[0108] (2) Boundary determination: Traverse the point set S and calculate the distance set from other points to the center of the sphere in turn. If all distance values in this distance set are greater than or equal to the radius α, then points p1p2 and p3 can be determined to be edge contour points and triangle p1p2p3 is a boundary triangle; if all distance values in the distance set are less than the radius α, then it can be determined that they are not edge contour points, stop traversing, and go to step 3.
[0109] (3) Select the next set of points in S and make judgments according to steps (1) and (2) until all points in S have been judged.
[0110] (4) Iterative loop: Repeat the above steps for the remaining unmarked points until all points have been processed, and finally generate the target Alpha-shape.
[0111] S2. An improved APF algorithm is used to construct an artificial potential field for the robot, the preset target point, and the surrounding obstacles.
[0112] In one feasible implementation, the APF algorithm is optimized to construct an artificial potential field for the robot, the target point, and the obstacles, effectively avoiding the problem of the planned path getting trapped in local optima and the path being unreachable.
[0113] Specifically, the optimized APF algorithm effectively avoids the problems of the planned path getting trapped in local optima and the path becoming unreachable. Because the nucleus pulposus target and the nerve root obstacle in this invention are very close, they are prone to getting trapped in local optima and the problem of the target becoming unreachable. Local optima, or local minima, occur when the robot moves towards the nucleus pulposus target, and the repulsive force of the nerve root obstacle and the attractive force of the nucleus pulposus target are exactly equal in magnitude but opposite in direction. In this case, the net force propelling the robot becomes zero, and the robot cannot continue moving. The target becomes unreachable because as the robot approaches the nucleus pulposus target, the attractive force from the target decreases, while as the robot approaches the nerve root obstacle, the repulsive force from the obstacle increases. Obstacles near the target exert a repulsive force on the robot. In this situation, insufficient attractive force and excessively strong repulsive force can both hinder the robot from moving towards the target. Therefore, this invention optimizes the APF algorithm to solve these two major problems in the autonomous path planning of this invention. This invention decomposes the original repulsive force into two repulsive forces to avoid these problems, so that the final resultant force of the repulsive and attractive forces can drive the obstacle avoidance to reach the target point near the nucleus pulposus. In this way, the controlled object is subjected to both repulsive and attractive forces in the combined field of these two potential fields. The resultant force of the repulsive and attractive forces guides the movement of the controlled object, searching for a collision-free obstacle avoidance path. The problems of local optima and target unreachability are addressed by improving the obstacle repulsive potential field function. The improved obstacle repulsive potential field function of the APF algorithm is expressed by the following formula:
[0114]
[0115] In the formula, U obs (q) represents the potential field function of the repulsive potential field of the obstacle, K obs Let ρ(q,q0) be a vector representing the distance between the robot and the neural root obstacle, directed from the obstacle to the robot. Let q represent the robot's position, q0 represent the obstacle's position, and ρ0 represent the obstacle's perceived distance. g Let q be a vector representing the distance between the robot and the target location of the nucleus pulposus. The vector direction is from the robot's position to the target location of the nucleus pulposus. g This indicates the location of the nucleus pulposus. The factor that determines the repulsive potential field of an obstacle is the distance between the robot and the obstacle. When the robot is not within the influence range of the obstacle, its potential energy is zero. After the robot enters the influence range of the obstacle, the greater the distance between the two, the smaller the potential energy of the robot, and the smaller the distance, the greater the potential energy of the robot.
[0116] Furthermore, the repulsive force F from the obstacle towards the robot r The improved obstacle repulsive potential field function is represented as the negative gradient of the repulsive potential field:
[0117]
[0118] In the formula, F obs (q) represents the improved obstacle repulsive potential field function, F obs1 F represents the force exerted by the obstacle on the robot. obs2 This represents the force exerted by the robot pointing towards the target, but F... obs2 This force is generated by the obstacle; it's just that the direction is from the Robot towards the target. This avoids local optima and goal unreachability problems. The obstacle generates two repulsive forces F on the Robot. obs1 and F obs2 :
[0119]
[0120] In the formula, n is a user-defined parameter that plays a role in adjusting the properties of the holding force field in the function. This represents the unit vector pointing from the obstacle to the robot. This represents the unit vector pointing from the target to the robot.
[0121] The trajectory generated by RRT* is adjusted only within the sensing distance ρ0. This can be achieved by changing the parameters ρ0 and K. obs Adjusting the trajectory away from obstacles involves adjusting the range of the Artificial Potential Field (APF) and the magnitude of the potential force. When the guiding trajectory is in free space unaffected by obstacles, the APF will not interfere with the path planning system's stable execution of the predetermined path in obstacle-free free space.
[0122] S3. Based on the improved RRT* algorithm and the artificial potential field method, the obstacle avoidance path planning results of the autonomous robot in narrow bony spaces based on the improved RRT*-APF are obtained.
[0123] In one feasible implementation, the RRT* random sampling step is optimized to efficiently plan the path.
[0124] Specifically, in the improved RRT* algorithm, a probability factor is introduced in the random tree expansion step, significantly improving the convergence efficiency of the path planning algorithm. Specifically, a certain gravity mechanism is added during the random tree expansion process to guide branches to grow preferentially towards the target node, thereby accelerating the search process. Simultaneously, a repulsive field is constructed near obstacles to limit the expansion range of the search tree in the obstacle region, thus reducing the randomness of path planning and improving the efficiency and stability of the algorithm. This target-guided RRT* algorithm employs a probability-driven search strategy to further optimize search speed and path quality. First, the target-biased RRT* algorithm proposes a target partial probability threshold P. targetThen, a random probability value P is obtained between 0 and 1. When P > P<0. target At that time, obtain a random state q in the search space. rand Otherwise q rand equals q target This algorithm retains the characteristics of the original algorithm and speeds up the convergence to the target node.
[0125] This improved Fast Random Tree (RRT) algorithm incorporates the concept of Artificial Potential Field (APF). It guides the growth direction of the random tree by increasing the attractiveness of the target, making it more inclined to expand towards the target point while reducing randomness. The algorithm introduces a gravitational potential field as a guiding force for newly generated nodes, thereby altering the tree's expansion trajectory and prioritizing its alignment towards the target point, rather than relying entirely on random expansion. The gravitational potential field is primarily related to the distance between the robot and the target location (the nucleus pulposus). The greater the distance, the greater the potential energy experienced by the robot; conversely, the smaller the distance, the smaller the potential energy. This improvement aims to enhance the efficiency of path planning and the target-oriented characteristics. As a local path planning method, the Artificial Potential Field (APF) treats the robot's workspace as an artificial force field. In this field, the target point exerts an attractive force on the robot, while obstacles exert a repulsive force. Guided by the combined force of the target's attraction and the obstacle's repulsion, the robot moves along an optimized path.
[0126] Optionally, the basic process of the RRT* algorithm can be improved as follows:
[0127] S311. Initialize the starting node q in the search space. start and target node q target Define the probability threshold p target And the step size parameter ρ. Set the potential field parameters, such as the gravitational gain coefficient g.
[0128] S312. Generate a random probability value p between 0 and 1; determine whether the random probability value p is greater than the probability threshold p. target If it is greater than , then a state q is randomly generated. rand If it is not greater than q, then the target node is directly treated as a random state. rand =q target .
[0129] S313. Find the state q in the current tree. rand The nearest node q near .
[0130] S314. Construct the overall growth direction and generate a new node q based on the overall growth direction. new .
[0131] In one feasible implementation, step S314 is the combined effect of the gravitational component and the random component.
[0132] Specifically, the random growth function is calculated as shown in equation (5):
[0133]
[0134] In the formula, Rd(n) represents the random growth function, n is part of the function name used to represent these functions, ρ represents the step size parameter, and q rand Represents a random state, q near Represents the state q rand The most recent node.
[0135] Calculate the target gravitational component (if q rand ≠q target (This item can also be retained), as shown in equation (6) below:
[0136]
[0137] In the formula, G(n) represents the gravitational component of the target, and g represents the gravitational gain coefficient.
[0138] The overall growth direction of the synthesis is shown in equation (7) below:
[0139] F(n)=Rd(n)+G(n) (7)
[0140] In the formula, F(n) represents the total growth direction.
[0141] S315, Based on the new node q new Optimize path cost.
[0142] In one feasible implementation, the path optimization algorithm used is RRT*, with q added. new Then, the tree is reconnected according to the principle of optimality to optimize the path cost. Specifically, q is recalculated. new The cost of the node and its neighboring nodes is calculated, and the parent node with the lowest cost is selected.
[0143] S316, Move the new node q new Add to the tree, and determine whether the tree has reached the target node or meets the preset stopping condition; if yes, output the optimal path; otherwise, proceed to step S312.
[0144] New node q new Add it to the tree and repeat steps S312-S315 until the tree reaches the target node or meets the preset stopping conditions (such as the maximum number of iterations or the search time).
[0145] Furthermore, after the search is complete, backtracking from qtarget to q start Given the path, output the final optimal path.
[0146] To obtain an algorithm that combines the advantages of RRT* and APF while compensating for each other's disadvantages, this invention attempts to fuse the two algorithms. Using an improved RRT* algorithm as the main architecture, an improved APF algorithm is introduced to guide path selection, thereby addressing some shortcomings of RRT* path selection, such as path irregularity and high time and distance costs. The improved APF is defined within the search space of the RRT* algorithm, so each point moves towards the direction of the resultant force with a certain probability. This method enhances the target directionality while still retaining randomly generated nodes, which can help the algorithm escape local optima. Ultimately, the optimal planned path can be found.
[0147] Optionally, such as Figure 2 As shown, step S3 above may include the following steps S321-S327:
[0148] S321. Start and end point initialization.
[0149] To begin the process, enter the starting position X. start and the finish line position X end .
[0150] S322. Check if the current node is the endpoint.
[0151] Determine the current node X current Have we reached the finish line position X? end If the obstacle is reached, then search for a global path, end the algorithm, and output the obstacle avoidance path planning result of the autonomous robot in narrow bony spaces based on the improved RRT*-APF; if the obstacle is not reached, then execute step S323.
[0152] S323, Random point generation and navigation strategy.
[0153] Generate a random number to determine if an obstacle avoidance event has been triggered; if not, generate node X. next1 Execute step S324; if triggered, generate node X. next2 Proceed to step S325.
[0154] In one feasible implementation, random numbers are generated and it is determined whether to use the potential field method to generate X. next .
[0155] Obstacle avoidance event trigger: Establish an artificial potential field, calculate the direction of the resultant force (attraction + repulsion) at the current point, move one step along that direction to generate X. next .
[0156] Obstacle avoidance event not triggered: Generate random point Xrand And find the tree with X rand The nearest point X near Along X near To X rand Shift direction by one step to generate X next .
[0157] S324. Check the feasibility of Xnext.
[0158] Determine node X next1 Is it within a feasible region (no collisions and meets constraints)? If so, then move node X... next1 Set as current node X current If not, proceed to step S322; otherwise, proceed to step S322.
[0159] S325. Find the best parent node.
[0160] In the generated X next Search for neighboring nodes within a certain range.
[0161] Calculate the distance from each neighboring node to X next Calculate the path cost and select the node with the lowest cost as X. next The parent node.
[0162] S326, Update neighboring node connections.
[0163] Check X next Determine whether the neighboring nodes are connected to X. next Using it as a relay can reduce costs.
[0164] If the path cost decreases, then reconnect these nodes to X. next .
[0165] S327, If X next If it is a valid node, add it to the tree and set it as the current node X. current .
[0166] Repeat the above steps until the termination condition is met (find the source from X). start To X end The globally optimal path.
[0167] Path planning can be divided into global path planning and local path planning. This invention focuses on local path planning for specific application scenarios. Local path planning is based on a more partial and microscopic perspective. It performs a limited local search around the robot to find a good path and the location of surrounding obstacles. Once the location information of obstacles is known and their specific conditions are determined, obstacles can be avoided, and a feasible path can be found. This invention proposes an improved algorithm combining RRT (Rapidly Exploring Random Tree) and APF (Artificial Potential Field) to solve the problems of random sampling and low efficiency in traditional RRT path planning algorithms. Addressing the shortcomings of sampling-based path planning algorithms, this invention utilizes the concept of a target bias algorithm, adding a probability value p to the basic algorithm to improve the RRT* algorithm. The RRT* algorithm can optimize the path length during continuous expansion and fine-tune it near the endpoint. The improved algorithm further enhances search efficiency and path quality. The APF method is used to further improve the algorithm, solving the problems of planned paths getting trapped in local optima and unreachable paths. The obstacle rejection concept introduced in APF is applied to the target bias RRT* algorithm to guide the local random tree to grow away from obstacles.
[0168] This invention aims to address the accessibility and obstacle avoidance strategies in local path planning. Specifically, it constructs an artificial potential field for the starting point, target point, and obstacles. Based on this, the random sampling step of the RRT* algorithm is modified so that, guided by the artificial potential field, the randomly sampled points can more closely approximate the optimal path, while significantly reducing invalid sampling points. This improvement effectively avoids the problem of the path getting trapped in local optima and provides efficient obstacle avoidance for complex concave obstacles, ultimately planning a feasible local path.
[0169] Figure 3 This is a block diagram illustrating an obstacle avoidance path planning device for an autonomous robot in a confined bony space, according to an exemplary embodiment. The device is used in an obstacle avoidance path planning method for an autonomous robot in a confined bony space. (Refer to...) Figure 3 The device includes a processing module 310, a construction module 320, and an output module 330. Wherein:
[0170] The processing module 310 is used to enclose concave nerve root obstacles in narrow bony spaces using the Alpha-shape algorithm to obtain the enclosed obstacle.
[0171] Module 320 is used to construct an artificial potential field for the robot, the preset target point, and the surrounding obstacles using an improved APF algorithm.
[0172] Output module 330 is used to obtain obstacle avoidance path planning results for autonomous robots in narrow bony spaces based on the improved RRT* algorithm and the artificial potential field method.
[0173] This invention aims to address the accessibility and obstacle avoidance strategies in local path planning. Specifically, it constructs an artificial potential field for the starting point, target point, and obstacles. Based on this, the random sampling step of the RRT* algorithm is modified so that, guided by the artificial potential field, the randomly sampled points can more closely approximate the optimal path, while significantly reducing invalid sampling points. This improvement effectively avoids the problem of the path getting trapped in local optima and provides efficient obstacle avoidance for complex concave obstacles, ultimately planning a feasible local path.
[0174] Figure 4 This is a structural schematic diagram of an obstacle avoidance path planning device for an autonomous robot in a confined bony space, as provided in an embodiment of the present invention. Figure 4 As shown, the obstacle avoidance path planning device for autonomous robots in confined bony spaces can include the above-mentioned... Figure 3 The illustrated obstacle avoidance path planning device for autonomous robots in confined bony spaces. Optionally, the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces may include a first processor 2001.
[0175] Optionally, the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces may also include a memory 2002 and a transceiver 2003.
[0176] The first processor 2001, memory 2002, and transceiver 2003 can be connected via a communication bus.
[0177] The following is combined with Figure 4 A detailed description of each component of the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces is provided below:
[0178] The first processor 2001 is the control center of the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces. It can be a single processor or a collective term for multiple processing elements. For example, the first processor 2001 can be one or more central processing units (CPUs), application-specific integrated circuits (ASICs), or one or more integrated circuits configured to implement embodiments of the present invention, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).
[0179] Optionally, the first processor 2001 can perform various functions of the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces by running or executing software programs stored in the memory 2002 and calling data stored in the memory 2002.
[0180] In a specific implementation, as one example, the first processor 2001 may include one or more CPUs, for example... Figure 4 CPU0 and CPU1 are shown in the diagram.
[0181] In a specific implementation, as one example, the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces may also include multiple processors, such as... Figure 4 The first processor 2001 and the second processor 2004 are shown in the diagram. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0182] The memory 2002 is used to store the software program that executes the present invention, and is controlled by the first processor 2001 to execute it. The specific implementation method can be referred to the above method embodiment, and will not be repeated here.
[0183] Optionally, the memory 2002 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory 2002 may be integrated with the first processor 2001 or may exist independently, and may be connected via the interface circuit of the narrow-space autonomous robot obstacle avoidance path planning device 410. Figure 4 (Not shown in the figure) is coupled to the first processor 2001, and the embodiments of the present invention do not specifically limit this.
[0184] The transceiver 2003 is used to communicate with network devices or with terminal devices.
[0185] Alternatively, transceiver 2003 may include a receiver and a transmitter. Figure 4 (Not shown separately). The receiver is used to implement the receiving function, and the transmitter is used to implement the transmitting function.
[0186] Optionally, the transceiver 2003 can be integrated with the first processor 2001, or it can exist independently and be connected to the interface circuit of the autonomous robot obstacle avoidance path planning device 410 in confined bony spaces. Figure 4 (Not shown in the figure) is coupled to the first processor 2001, and the embodiments of the present invention do not specifically limit this.
[0187] It should be noted that, Figure 4 The structure of the obstacle avoidance path planning device 410 for autonomous robots in narrow bony spaces shown does not constitute a limitation on this router. Actual knowledge structure recognition devices may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0188] Furthermore, the technical effect of the obstacle avoidance path planning device 410 for autonomous robots in confined bony spaces can be referred to the technical effect of the obstacle avoidance path planning method for autonomous robots in confined bony spaces described in the above method embodiments, and will not be repeated here.
[0189] It should be understood that the first processor 2001 in this embodiment of the invention may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0190] It should also be understood that the memory in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0191] The above embodiments can be implemented, in whole or in part, by software, hardware (such as circuits), firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.
[0192] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. A and B can be singular or plural. Additionally, the character " / " in this article generally indicates an "or" relationship between the preceding and following related objects, but it can also represent an "and / or" relationship. Please refer to the context for a more accurate understanding.
[0193] In this invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be a single item or multiple items.
[0194] It should be understood that, in various embodiments of the present invention, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0195] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0196] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0197] In the several embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0198] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0199] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0200] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0201] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for obstacle avoidance path planning for an autonomous robot in a confined bony space, characterized in that, The method includes: S1. For concave nerve root obstacles in narrow bony spaces, use the Alpha-shape algorithm to enclose them to obtain the enclosed obstacles. S2. An improved APF algorithm is used to construct an artificial potential field for the robot, the preset target point, and the enclosed obstacles. S3, based on the improved RRT Algorithm and artificial potential field method, to obtain the improved RRT -APF obstacle avoidance path planning results for autonomous robots in narrow bony spaces; The potential field function of the obstacle repulsive potential field in the improved APF algorithm in S2 is shown in the following equation (1): (1) In the formula, The potential field function represents the repulsive potential field of the obstacle. This represents the proportionality coefficient. Indicates the distance between the robot and the nerve root obstacle. Indicates the robot's position. Indicates the location of the obstacle. Indicates the perceived distance to the obstacle. This indicates the distance between the robot and the target location in the nucleus pulposus. Indicates the location of the nucleus pulposus; Repulsive force from the obstacle towards the robot The negative gradient of the repulsive potential field is represented by the improved obstacle repulsive potential field function, as shown in equation (2) below: (2) In the formula, This represents the improved obstacle repulsive potential field function. This represents the force exerted by the obstacle on the robot. This represents the force the robot exerts towards the target; in, (3) (4) In the formula, Indicates the adjustment parameter. This represents the unit vector pointing from the obstacle to the robot. This represents the unit vector pointing from the target to the robot; The S3 is based on the artificial potential field and the improved RRT The algorithm yields a result based on the improved RRT. -APF's obstacle avoidance path planning results for autonomous robots in confined bony spaces include: S321. Initialize the starting position and finish line ; S322, Determine the current node Has the endpoint been reached? If achieved, the output is based on the improved RRT. -APF obstacle avoidance path planning results for autonomous robots in narrow bony spaces; if not achieved, proceed to step S323; S323. Generate a random number and determine if the obstacle avoidance event has been triggered; if not, generate a node. Execute step S324; if triggered, generate a node. Proceed to step S325; S324, Determine the node Is it within a feasible region? If so, then move the node... Set as current node If not, proceed to step S322; S325, Search the node The node is generated from neighboring nodes within a preset range. The parent node; S326. Determine if the node has passed. Does the node act as a relay to reduce path cost? If so, then reconnect neighboring nodes to the node. If not, proceed to step S327; otherwise, proceed to step S327. S327, the node Add to the tree and the node Set as current node Proceed to step S322.
2. The obstacle avoidance path planning method for autonomous robots in confined bony spaces according to claim 1, characterized in that, The improved RRT in S3 Algorithms, including: S311. Initialize the starting node in the search space. and target node Define probability threshold and step size parameters ; S312. Generate a random probability value between 0 and 1. Determine the random probability value Is it greater than the probability threshold? If it is greater than 0, then a state is randomly generated. If it is not greater than, then the target node will be... As a random state ; S313. Find the state in the current tree. The nearest node ; S314. Construct the overall growth direction and generate new nodes according to the overall growth direction. ; S315, Based on the new node Optimize path cost; S316, the new node Add to the tree, and determine whether the tree has reached the target node or meets the preset stopping condition; if yes, output the optimal path; otherwise, proceed to step S312.
3. The obstacle avoidance path planning method for autonomous robots in confined bony spaces according to claim 2, characterized in that, The overall growth direction of the construction in S314 includes: The random growth function is calculated as shown in equation (5): (5) In the formula, Represents a random growth function. Indicates the step size parameter. Represents a random state. Indicates the state of being out of control The nearest node; The gravitational components of the target are calculated as shown in equation (6): (6) In the formula, Indicates the gravitational component of the target. Indicates the gravitational gain coefficient; The overall growth direction of the synthesis is shown in equation (7) below: (7) In the formula, Indicates the general growth direction.
4. The obstacle avoidance path planning method for autonomous robots in confined bony spaces according to claim 1, characterized in that, Nodes are generated in S323 ,include: Generate random nodes And find the random node in the tree. The nearest node Along the nearest node To the random node Move one step in the direction to generate a node .
5. The obstacle avoidance path planning method for autonomous robots in confined bony spaces according to claim 1, characterized in that, The generation node in S323 ,include: Establish an artificial potential field, calculate the total growth direction of the current node, and move one step along the total growth direction of the current node to generate a new node. .
6. A path planning device for obstacle avoidance in confined bony spaces for autonomous robots, wherein the path planning device is used to implement the path planning method for obstacle avoidance in confined bony spaces as described in any one of claims 1-5, characterized in that, The device includes: The processing module is used to enclose concave nerve root obstacles in narrow bony spaces using the Alpha-shape algorithm to obtain the enclosed obstacle. The construction module is used to construct an artificial potential field for the robot, the preset target point, and the enclosed obstacles using an improved APF algorithm; Output module, used for improving RRT Algorithm and artificial potential field method, to obtain the improved RRT -APF obstacle avoidance path planning results for autonomous robots in narrow bony spaces.
7. A path planning device for obstacle avoidance of an autonomous robot in a confined bony space, characterized in that, The obstacle avoidance path planning device for autonomous robots in confined bony spaces includes: processor; A memory storing computer-readable instructions that, when executed by the processor, implement the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Multi-arm robotic system for spine surgery with imaging guidance
US20210186615A1
Robotic surgical tool alignment
US20240366320A1
