Mechanical arm path planning method based on direction expansion RRT algorithm

By introducing the direction expansion RRT algorithm and B-spline optimization into the robotic arm path planning, the efficiency and redundant node problems of robotic arm path planning in complex spaces are solved, and more efficient path generation and optimization are achieved.

CN118769256APending Publication Date: 2024-10-15NORTH CHINA UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411150087.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing robotic arm path planning algorithms have problems such as blind sampling points, excessive number of nodes, repeated spatial sampling, and high time complexity in complex spaces, resulting in low search efficiency and many redundant nodes.

Method used

The RRT algorithm based on direction expansion is used to generate paths by initializing random tree models, dynamic sampling and adaptive step strategies, and uses B-spline curves for smoothing in the path optimization stage to reduce redundant nodes and the number of iterations.

Benefits of technology

The search efficiency and time efficiency of robotic arm path planning are significantly improved, the number of redundant nodes is reduced, the generated path is more optimized, and the speed mutation phenomenon is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769256A_ABST
    Figure CN118769256A_ABST
Patent Text Reader

Abstract

The invention provides a mechanical arm path planning method based on a direction expansion RRT algorithm, and relates to the technical field of mechanical arm path planning. The method includes: determining a working space of a mechanical arm; based on the working space, determining a starting node and a target node, performing modeling by using the initialized random tree to obtain an obstacle space, and in the obstacle space, generating a random node and setting a bias probability; judging whether the current random node collides with an obstacle or not, if so, obtaining a new random node until the currently generated random node does not collide with the obstacle, if not, judging whether the current random node is a target node or not, if so, continuing to generate new random nodes, and if so, obtaining an initial path; and optimizing the initial path to obtain a final path. According to the method, the problems of blind sampling points, too many nodes, repeated sampling in space, high time complexity and the like in the path planning aspect of the mechanical arm in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot arm path planning, and in particular to a robot arm path planning method based on a direction expansion RRT algorithm. Background Art

[0002] As a robot that imitates the movement of human arms, the robotic arm can replace manual operation in complex environments, thereby improving production efficiency and product quality. Currently, the robotic arm has been widely used in important fields such as aerospace, medical, and military. Path planning of the robotic arm in complex space refers to the use of appropriate planning methods to automatically generate a path from the starting point to the target point, and meet the obstacle avoidance requirements of the robotic arm end and connecting rod in complex space.

[0003] Among the existing path planning technologies, there are three main directions for design:

[0004] (1) Algorithms based on graph search, such as the A* algorithm and the Dijkstra algorithm, can ensure the optimal path from the starting point to the target point. However, when the dimension increases and the scene becomes more complicated, the time consumed by the path search will increase significantly.

[0005] (2) Intelligent algorithms based on bionics, such as ant colony algorithm, genetic algorithm, particle swarm optimization algorithm, etc. Genetic algorithm searches for paths by simulating the biological evolution process of natural selection and can converge to the optimal value, but its convergence speed is slow and the operation time is long;

[0006] (3) Algorithms based on random sampling, such as PRM and RRT algorithms. These algorithms do not need to map obstacles from the task space to the configuration space in advance. They have a fast search speed and are more suitable for path planning in complex and high-dimensional spaces. However, the paths they generate are only probabilistically complete and not optimal. Summary of the invention

[0007] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a robot arm path planning method based on the directional expansion RRT algorithm. The present invention solves the problems of blind sampling points, excessive number of nodes, repeated sampling of space, high time complexity, etc. in the path planning of the robot arm in the prior art.

[0008] To achieve the above object, the present invention provides the following solutions:

[0009] A robot arm path planning method based on a direction expansion RRT algorithm, comprising:

[0010] Determine the working space of the robot arm;

[0011] Based on the workspace, a starting node and a target node are determined and modeled using an initialized random tree to obtain an obstacle space, wherein the obstacle space includes: a circular obstacle space and a rectangular obstacle space;

[0012] In the obstacle space, a random node is generated using a target node sampling method and a bias probability is set;

[0013] Determine whether the current random node collides with an obstacle. If so, adjust the direction and step size of the regenerated random node according to the bias probability and the direction-based adaptive step size adjustment strategy to obtain a new random node until the currently generated random node does not collide with an obstacle. If not, determine whether the current random node is the target node. If so, continue to generate new random points. If so, obtain the initial path.

[0014] The initial path is optimized to obtain a final path.

[0015] Preferably, determining the working space of the robotic arm comprises:

[0016] Obtain the transformation matrix according to the working parameters of the robot arm;

[0017] Obtaining an end effector pose matrix according to the transformation matrix;

[0018] The working space of the robot arm is obtained according to the end effector posture matrix and using the Monte Carlo method.

[0019] Preferably, the operating parameters include:

[0020] Joint angles, joint distances, link lengths, and link relative rotation angles.

[0021] Preferably, the obstacle collision judgment method in the circular obstacle space is a spherical envelope method.

[0022] Preferably, the obstacle collision judgment method in the rectangular obstacle space is an axis-aligned bounding box method.

[0023] Preferably, the optimizing the initial path to obtain the final path includes:

[0024] Delete redundant nodes to get a shorter path with less curvature and fewer bends;

[0025] The currently generated path is smoothed using a cubic B-spline curve to obtain the final path.

[0026] Preferably, the basis function expression of the B-spline curve is:

[0027]

[0028] Among them, P i is the control point of the curve to be optimized, and F is the k-order B-spline basis function.

[0029] The present invention discloses the following technical effects:

[0030] The present invention provides a manipulator path planning method based on a directional expansion RRT algorithm, comprising: determining a working space of the manipulator; based on the working space, determining a starting node and a target node and using an initialized random tree to perform modeling to obtain an obstacle space, wherein the obstacle space comprises: a circular obstacle space and a rectangular obstacle space; in the obstacle space, using a target node sampling method, generating random nodes and setting a bias probability; judging whether an obstacle collision occurs to a current random node, and if so, adjusting the direction and step length of the regenerated random node according to the bias probability and a direction-based adaptive step length value adjustment strategy to obtain a new random node, until the currently generated random node does not collide with an obstacle, and if not, judging whether the current random node is a target node, and if so, continuing to generate new random nodes, and if so, obtaining an initial path; optimizing the initial path to obtain a final path. By designing a spherical dynamic sampling area, the spatial range of new nodes is adaptively selected; when generating new nodes, the target bias method is introduced so that the nodes can quickly converge to the target point, and the adaptive step size strategy of direction expansion is used to reduce the number of algorithm iterations and the time of path planning. Finally, in order to prevent the speed mutation phenomenon when the robot is running, a path optimization method is proposed to prune the path, remove the redundant nodes in the generated path, and use the B-spline function to optimize the generated final path. The present invention has significantly improved the search efficiency, search time and the number of redundant nodes in the process of robot path planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 A flow chart of a robot arm path planning method based on a direction expansion RRT algorithm provided in an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of a six-degree-of-freedom robotic arm workspace provided by an embodiment of the present invention;

[0034] Figure 3A flow chart of a directional expansion RRT algorithm provided in an embodiment of the present invention;

[0035] Figure 4 A diagram of the operation process of the RRT algorithm in the robot path planning algorithm based on the direction expansion RRT algorithm provided in an embodiment of the present invention;

[0036] Figure 5 A schematic diagram of the dynamic sampling process in the robot path planning algorithm based on the directional expansion RRT algorithm provided in an embodiment of the present invention;

[0037] Figure 6 Angle expansion principle diagram in the robot arm path planning algorithm based on the direction expansion RRT algorithm provided in an embodiment of the present invention;

[0038] Figure 7 A schematic diagram of sampling point direction generation in a robot arm path planning algorithm based on a direction-expanding RRT algorithm provided in an embodiment of the present invention;

[0039] Figure 8 A path optimization processing diagram in a robot arm path planning algorithm based on a direction expansion RRT algorithm provided in an embodiment of the present invention;

[0040] Fig. 9 A path planning experiment diagram obtained by using the direction expansion RRT algorithm in a two-dimensional large obstacle environment provided by an embodiment of the present invention;

[0041] Fig.10 A path planning experiment diagram obtained by using the direction expansion RRT algorithm in a two-dimensional narrow obstacle environment provided by an embodiment of the present invention;

[0042] Fig.11 A path planning experiment diagram obtained by using the direction expansion RRT algorithm in a two-dimensional maze environment provided by an embodiment of the present invention;

[0043] Fig.12 A path planning experiment diagram obtained by using the direction expansion RRT algorithm in a three-dimensional large obstacle environment provided by an embodiment of the present invention;

[0044] Fig.13 A path planning experiment diagram obtained by using the direction expansion RRT algorithm in a three-dimensional narrow obstacle environment provided by an embodiment of the present invention;

[0045] Fig.14 This is a path planning experiment diagram obtained by using the direction expansion RRT algorithm in a three-dimensional multi-obstacle environment provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] like Figure 1 As shown, the present invention provides a robot arm path planning method based on the direction expansion RRT algorithm, comprising:

[0049] Step 100: Determine the working space of the robot arm;

[0050] Step 200: Based on the workspace, determine the start node and the target node and use the initialized random tree to perform modeling to obtain an obstacle space, wherein the obstacle space includes: a circular obstacle space and a rectangular obstacle space;

[0051] Specifically, the workspace of the six-degree-of-freedom robot is constructed, the starting node and the target node are input, and the random tree is initialized to model the obstacles in the space;

[0052] Step 300: In the obstacle space, using a target node sampling method, a random node is generated and a bias probability is set;

[0053] Specifically, the target node sampling method is used in node selection, and a bias probability is artificially set when generating a new random node;

[0054] More specifically, when generating a new random node X new When 0 = 0.6, so that the random tree is P 0 The probability of setting the new node at the target node is P 0 is the bias probability;

[0055] Generate a random probability P in the interval (0, 1). If P is less than or equal to P 0 Then the sampling point is directly generated at the target node, that is, X new =X goal , if P is greater than P 0 , the sampling point is still set to a random node. The expression for generating the sampling point is:

[0056]

[0057] Step 400: Determine whether the current random node collides with an obstacle. If so, adjust the direction and step size of the regenerated random node according to the bias probability and the direction-based adaptive step size adjustment strategy to obtain a new random node until the currently generated random node does not collide with an obstacle. If not, determine whether the current random node is the target node. If so, continue to generate new random points. If so, obtain the initial path.

[0058] Specifically, a dynamic sampling strategy that integrates the greedy idea is designed to regulate the growth rate of the random tree in the obstacle-free area. At the same time, a direction-based adaptive step value adjustment strategy is proposed. In the initial stage of path planning, uniform sampling is used to enable the algorithm to find an appropriate number of random nodes in the environment. After a collision occurs, the step size is adjusted to determine whether the random tree has reached the target point of the path. If not, sampling will continue in space and return to "construct the workspace of the six-degree-of-freedom robot, input the starting node and the target node, and initialize the random tree to model the obstacles in the space". Otherwise, proceed to the next step.

[0059] Specifically, the sampling area is set to change within the range of X new The sampling circle is centered at R and has a radius of , where the expression for the sampling circle radius is: When a new sampling point X is generated in the dynamic circle, the distance L to its nearest parent node X' and the step size S are determined; if they are greater, the new node is searched along the growth direction with a step size S until an obstacle is encountered and the range of the sampling area is determined by the weight value λ, which is expressed as:

[0060]

[0061] Among them, N 1 N is the number of sampling points that can generate new child nodes for the random tree; 2 is the number of sampling points that fail the collision detection and are to be deleted; γ is the sampling coefficient that determines the change in weight value.

[0062] Introduce the concept of direction angle and set X near With X goal The direction vector and X new and X goal The angle between the direction vectors is the direction angle θ. Set an angle threshold and dynamically adjust the sampling step size according to the angle between the random tree lines. Use spherical coordinates for analysis, where the rectangular coordinates of the node can be defined as the coordinates To express it, when a node is generated, its path is from an existing node on the random tree to a newly generated node. When the sampling node P on the random tree is about to connect to the newly generated node Q, a certain distance and angle difference will be generated, so that the random tree can adjust the size of the step value while changing the generation direction. The expressions of the spherical coordinates and the step adjustment value are as follows:

[0063]

[0064]

[0065] Among them, N is the step size adjustment coefficient, where X new The point is the center of the sphere, 1.5L is the radius, and the ratio of the surface area of ​​the obstacle inside the sphere to the surface area of ​​the sphere is expressed as:

[0066]

[0067] Among them, S obstacle is the obstacle area. To facilitate calculation and speed up the algorithm, the obstacle boundary value d is taken as the intersection point x between the obstacle and the detection circle and the obstacle. 0 , x 1 , which is expressed as follows:

[0068]

[0069] Step 500: Optimize the initial path to obtain a final path.

[0070] Furthermore, determining the working space of the robotic arm includes:

[0071] Obtain the transformation matrix according to the working parameters of the robot arm;

[0072] Obtaining an end effector pose matrix according to the transformation matrix;

[0073] The working space of the robot arm is obtained according to the end effector posture matrix and using the Monte Carlo method.

[0074] Specifically, the DH parameter method is used to model the robot arm, and a spatial coordinate system is established at the end of each connecting rod. The DH parameters of the robot arm are shown in Table 1. Table 1 is a DH parameter table of a six-degree-of-freedom robot arm. Table 1 is as follows:

[0075] Table 1 Parameters of six-degree-of-freedom robot DH

[0076]

[0077] The parameters include the joint angle (α i ), joint distance (ai ), connecting rod length (d i ) and the relative rotation angle of the connecting rod (θ i ). The matrix composed of four parameters of each joint of the robot can be used to describe the relationship between two adjacent links of the joint. The transformation matrix is:

[0078]

[0079] The mathematical model of the robot arm is established using the six joint angles to solve the end effector pose matrix. At the same time, the Monte Carlo method is used to obtain the robot arm's working space (such as Figure 2 shown).

[0080] Furthermore, the geometric characteristics of each part of the robot are described by establishing a coordinate system. The robot model is created in MATLAB using DH parameters, and the Robotic Toolbox for MATLAB is used to verify the accuracy of the end effector's position in different models; the DH parameter method is used to analyze the six-degree-of-freedom robot, in which the specific parameters include the joint angle (α i ), joint distance (a i ), connecting rod length (d i ) and the relative rotation angle of the connecting rod (θ i ). According to the DH parameter method, the matrix composed of four parameters of each joint of the robot can be used to describe the relationship between two adjacent links of the joint; through the DH parameters of each joint of the robot arm, the four parameters are substituted into the transformation matrix respectively to obtain the parameter matrix of each link, and then the obtained 6 matrices are multiplied in sequence to obtain the parameter relationship between the robot arm postures. The terminal posture matrix is ​​shown in the following matrix:

[0081]

[0082] Among them, the three column vectors n, s, and a represent the posture of the robot arm; p represents the position of the origin of the end effector coordinate system relative to the base coordinate system;

[0083] The Monte Carlo method is a numerical simulation method that takes probabilistic phenomena as its research object. By randomly selecting 10,000 robot positions, the robot's operational workspace is obtained.

[0084] Furthermore, the working parameters include:

[0085] Joint angles, joint distances, link lengths, and link relative rotation angles.

[0086] Furthermore, the obstacle collision judgment method in the circular obstacle space is a spherical envelope method.

[0087] Specifically, the cylindrical envelope method is used to simplify the link model. The spherical obstacles in three-dimensional space use the spherical envelope method, while the rectangular obstacles use the axis-aligned bounding box method. The collision detection of obstacles can be simplified to solve the distance judgment between the center of the obstacle sphere and the axis of the robot arm.

[0088] Furthermore, the obstacle collision judgment method in the rectangular obstacle space is an axis-aligned bounding box method.

[0089] Further, the optimizing the initial path to obtain the final path includes:

[0090] Delete redundant nodes to get a shorter path with less curvature and fewer bends;

[0091] The currently generated path is smoothed using a cubic B-spline curve to obtain the final path.

[0092] Furthermore, the basis function expression of the B-spline curve is:

[0093]

[0094] Among them, P i is the control point of the curve to be optimized, and F is the k-order B-spline basis function.

[0095] Specifically, perform collision detection on the path between each node; delete redundant nodes to obtain a shorter path with less curvature and fewer bends. Re-traverse all nodes from the starting point; use a cubic B-spline curve to smooth the path. The basis function expression of the B-spline function is:

[0096]

[0097] Where P i is the control point of the curve to be optimized, F is the k-order B-spline basis function, and the third-order B-spline function expression is:

[0098]

[0099]

[0100]

[0101]

[0102] Furthermore, Figure 3-4 As shown, this embodiment also provides another step of the robot arm path planning method based on the direction expansion RRT algorithm:

[0103] Step 1: Construct the workspace of the six-degree-of-freedom robot, input the starting node and the target node, and initialize the random tree to model the obstacles in the space;

[0104] Step 2: Use the target node sampling method to select nodes. When generating a new random node, set a bias probability artificially and set the probability P according to the obstacle distribution in the space. 0 , when the obstacle space in the path planning space is a large obstacle space and the number is large, P 0 Take a larger value. If the obstacle space is narrow and the node growth space is small, P 0 At the same time, a random probability P is generated in the interval from 0 to 1. When the random probability P is less than P 0 When the random probability P is greater than P 0 When , the sampling points are still set to random nodes;

[0105] Step 3: If Figure 5 As shown in the figure, a dynamic sampling strategy integrating greedy ideas is designed to adjust the growth rate of random trees in obstacle-free areas. Figure 6 , Figure 7 A direction-based adaptive step-size adjustment strategy is proposed. In the early stage of path planning, uniform sampling is used to enable the algorithm to find an appropriate number of random nodes in the environment. After a collision occurs, the step-size is adjusted.

[0106] Step 4: Use the cylindrical envelope method to simplify the link model. The spherical obstacles in three-dimensional space use the spherical envelope method, while the rectangular obstacles use the axis-aligned bounding box method. The collision detection of obstacles can be simplified to solve the distance judgment between the center of the obstacle sphere and the axis of the robot arm;

[0107] Step 5: Determine whether the random tree has reached the target point of the path. If not, continue sampling in the space and return to step 2. Otherwise, proceed to the next step.

[0108] Step 6: Figure 8 As shown, redundant nodes are deleted from the generated path to obtain a shorter path with less curvature and fewer bends, and a cubic B-spline curve is used to smooth the path. Figure 8-10 The black areas are obstacles.

[0109] The present invention significantly accelerates the speed of path generation and improves the efficiency of algorithm convergence; the smoothing of the path reduces the problems of unstable operation and sudden speed changes that occur during the operation of the robot arm. The robot arm path planning algorithm based on the direction expansion RRT algorithm is used to perform continuous path planning 50 times in two-dimensional space, three-dimensional space and the working space of the robot arm. The initial node X startSet to (2,2), target node X goal The coordinates are (27,25). In the maze environment, the initial node X start Set to (10,10), target node X goal The coordinates are (100,100). The initial value of the adaptive step size S is 1, the weight value is 0.8, and P 0 = 0.5, V = 2, the angle threshold is set to 65° in large obstacle space, and 45° in narrow space and maze space. The RRT algorithm based on direction expansion is used to plan a path from X start To X goal The collision-free path is compared with RRT and GB-RRT respectively, and the results are as follows:

[0110] The robot path planning algorithm based on the direction expansion RRT algorithm is used in a two-dimensional large obstacle space experiment (such as Fig. 9 The average time is 0.14s, the average number of nodes is 48.72, and the average path length is 43.30. The comparison results are shown in Table 2. Table 2 is a two-dimensional large obstacle environment simulation data table. Table 2 is as follows:

[0111] Table 2 Two-dimensional large obstacle environment simulation data table

[0112]

[0113]

[0114] From the simulation data of the two-dimensional large obstacle environment, it can be seen that the average running time and the average number of sampling nodes of the RRT algorithm based on directional expansion are also significantly reduced. The average running time is 87% and 94% faster than that of RRT and GB-RRT, respectively, and the average number of sampling nodes is 78% and 43% less than that of the two algorithms, respectively.

[0115] In the two-dimensional narrow obstacle space experiment (such as Fig.10 The average time is 4.41s, the average number of nodes is 1416.48, and the average path length is 94.20. The comparison results are shown in Table 3. Table 3 is a two-dimensional narrow obstacle environment simulation data table. Table 3 is as follows:

[0116] Table 3 Two-dimensional narrow obstacle environment simulation data table

[0117]

[0118] From the simulation data of a two-dimensional narrow obstacle environment, it can be seen that the RRT algorithm based on directional expansion reduces the average running time, sampling path length and average sampling nodes by 84%, 6% and 52% respectively compared with the standard RRT algorithm, and reduces by 48%, 4% and 49% compared with the GB-RRT algorithm.

[0119] In the two-dimensional maze obstacle space experiment (such as Fig.11 The average time is 9.76s, the average number of nodes is 2595.04, and the average path length is 266.31. The comparison results are shown in Table 4. Table 4 is a two-dimensional maze environment simulation data table. Table 4 is as follows:

[0120] Table 4 Two-dimensional maze environment simulation data table

[0121]

[0122]

[0123] From the simulation data of two-dimensional narrow obstacle environment, it can be seen that the RRT algorithm based on directional expansion reduces the average running time, average sampling nodes and sampling path length by 82%, 52% and 33% respectively compared with RRT, and reduces the average running time, average sampling nodes and sampling path length by 24%, 28% and 25% compared with GB-RRT algorithm.

[0124] In the three-dimensional large obstacle space experiment (such as Fig.12 The average time is 1.28s, the average number of nodes is 813.34, and the average path length is 1883.45. The comparison results are shown in Table 5, which is a three-dimensional large obstacle environment simulation data table. Table 5 is as follows:

[0125] Table 5 Three-dimensional large obstacle environment simulation data table

[0126]

[0127] From the simulation data of the three-dimensional large obstacle environment, it can be seen that the directional expansion RRT algorithm and the standard RRT algorithm reduce the average time, average number of nodes and path length by 77%, 71% and 22% respectively, and compared with GB-RRT, they reduce by 12%, 4% and 1% respectively.

[0128] In three-dimensional narrow obstacle space experiments (such as Fig.13 The average time is 0.27s, the average number of nodes is 932.87, and the average path length is 1986.73. The comparison results are shown in Table 6. Table 6 is a three-dimensional narrow obstacle environment simulation data table. Table 6 is as follows:

[0129] Table 6 Three-dimensional narrow obstacle environment simulation data table

[0130]

[0131] From the simulation data of the three-dimensional narrow obstacle environment, it can be seen that the average time, average number of nodes and path length of the RRT algorithm based on directional expansion and the standard RRT algorithm are reduced by 96%, 67% and 16% respectively. Compared with the target-biased RRT algorithm, the time is reduced by 0.88s, the number of nodes is reduced by 12.36, and the path length is reduced by 1.42.

[0132] In the three-dimensional multi-obstacle space experiment (such as Fig.14 The average time is 3.82s, the average number of nodes is 842.32, and the average path length is 2039.74. The comparison results are shown in Table 7. Table 7 is a three-dimensional multi-obstacle environment simulation data table. Table 7 is as follows:

[0133] Table 7 Three-dimensional multi-obstacle environment simulation data table

[0134]

[0135]

[0136] From the simulation data of three-dimensional multi-obstacle environment, it can be seen that the directional expansion RRT algorithm and the standard RRT algorithm reduce the average time, average number of nodes and path length by 66%, 56% and 20% respectively. Compared with the GB-RRT algorithm, the three parameters are reduced by 14%, 41% and 8% respectively.

[0137] In the robot workspace experiment, 50 consecutive path planning experiments were conducted. The robot model was imported into MoveIt! to build a simulation test bench for the robot. The RRT algorithm and GB-RRT algorithm were imported into the OMPL (open motion planning library) motion planning library using RVIZ as a visualization simulation platform, and sampling comparison experiments were conducted in the joint space.

[0138] The average time of the large obstacle path planning experiment of the robot arm is 1.23s, and the average number of nodes is 796. The comparison results are shown in Table 8. Table 8 is the simulation data table of the large obstacle environment of the robot arm. Table 8 is as follows:

[0139] Table 8 Robotic arm large obstacle environment simulation data table

[0140]

[0141] From the simulation data of the large obstacle environment of the robotic arm, it can be seen that the directional expansion RRT algorithm reduces the average time by 88% and the average number of nodes by 59% compared with the basic RRT algorithm, and reduces the number of nodes by 0.19s and 97 respectively compared with the GB-RRT algorithm.

[0142] The average time of the robot arm narrow obstacle path planning experiment is 1.29s, and the average number of nodes is 632. The comparison results are shown in Table 9. Table 9 is a simulation data table of the robot arm narrow environment. Table 9 is as follows:

[0143] Table 9 Robotic arm narrow environment simulation data table

[0144]

[0145] From the simulation data of the robot arm in a narrow environment, it can be seen that the directional expansion algorithm reduces the average time by 90% and the average number of nodes by 69% compared with the basic RRT algorithm, and the number of nodes is significantly less than that of the GB-RRT algorithm.

[0146] The average time of the multi-obstacle path planning experiment of the robot arm is 0.98s, and the average number of nodes is 986. The comparison results are shown in Table 10. Table 10 is a simulation data table of the multi-obstacle environment of the robot arm. Table 10 is as follows:

[0147] Table 10 Robotic arm multi-obstacle environment simulation data table

[0148]

[0149] From the simulation data of the robotic arm's multi-obstacle environment, it can be seen that the direction expansion algorithm saves 18.84s in time and 2015 nodes in the number of nodes compared with the basic RRT algorithm. Compared with the target biased RRT, the time is reduced by 4.15s and the number of nodes is reduced by 53. The improved algorithm has obvious advantages in the multi-obstacle space.

[0150] These data are sufficient to prove that the directional expansion RRT algorithm has strong planning and adaptability in different complex spaces.

[0151] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0152] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A robot arm path planning method based on the direction expansion RRT algorithm, characterized in that: include: Determine the working space of the robot arm; Based on the workspace, a starting node and a target node are determined and modeled using an initialized random tree to obtain an obstacle space, wherein the obstacle space includes: a circular obstacle space and a rectangular obstacle space; In the obstacle space, a random node is generated using a target node sampling method and a bias probability is set; Determine whether the current random node collides with an obstacle. If so, adjust the direction and step size of the regenerated random node according to the bias probability and the direction-based adaptive step size adjustment strategy to obtain a new random node until the currently generated random node does not collide with an obstacle. If not, determine whether the current random node is the target node. If so, continue to generate new random points. If so, obtain the initial path. The initial path is optimized to obtain a final path.

2. A robot arm path planning method based on the direction expansion RRT algorithm according to claim 1, characterized in that: Determining the working space of the robotic arm includes: Obtain the transformation matrix according to the working parameters of the robot arm; Obtaining an end effector pose matrix according to the transformation matrix; The working space of the robot arm is obtained according to the end effector posture matrix and using the Monte Carlo method.

3. A robot arm path planning method based on the direction expansion RRT algorithm according to claim 2, characterized in that: The operating parameters include: Joint angles, joint distances, link lengths, and link relative rotation angles.

4. A robot arm path planning method based on the direction expansion RRT algorithm according to claim 1, characterized in that: The obstacle collision judgment method in the circular obstacle space is a spherical envelope method.

5. The method for manipulator path planning based on the direction expansion RRT algorithm according to claim 1, characterized in that: The obstacle collision judgment method in the rectangular obstacle space is an axis-aligned bounding box method.

6. The method for manipulator path planning based on the direction expansion RRT algorithm according to claim 1, characterized in that: The step of optimizing the initial path to obtain a final path includes: Delete redundant nodes to get a shorter path with less curvature and fewer bends; The currently generated path is smoothed using a cubic B-spline curve to obtain the final path.

7. A robot arm path planning method based on the direction expansion RRT algorithm according to claim 6, characterized in that: The basis function expression of the B-spline curve is: Among them, P i is the control point of the curve to be optimized, and F is the k-order B-spline basis function.

Citation Information

Cited By

  • Robot global path planning method and system based on probability interval division

    CN119292291A

  • Mechanical arm obstacle avoidance path planning method based on double-balance rapid exploration random rattan

    CN120395883A

  • Mechanical arm path planning method, device and equipment and storage medium

    CN121893290A

  • Mechanical arm path planning method, device and equipment and storage medium

    CN121893290B