Mobile robot path planning method based on random adaptive variable step size RRT*
By introducing target point information and adaptive step size into the RRT* algorithm, the path planning of the multi-joint mobile robot is optimized, solving the problems of low search efficiency and uneven path, and achieving efficient and smooth path planning.
Patent Information
- Application Number
- CN202410956059.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-20
AI Technical Summary
Existing path planning algorithms for multi-joint mobile robots have low search efficiency and uneven paths in multi-dimensional space. In particular, the RRT* algorithm lacks target guidance, resulting in slow convergence, and the average growth step causes the robot's end trajectory to be uneven.
The RRT* path planning method based on random adaptive variable step size is adopted. By introducing target point information and weighted Manhattan distance, the distance weight between joints is adaptively calculated, and path generation is optimized to ensure path smoothness and rapid obstacle avoidance.
It improves the efficiency and smoothness of path planning, avoids local optimal solutions, reduces redundant calculations, and generates a smooth obstacle avoidance path for multi-jointed mobile robots in complex environments.
Smart Images

Figure CN118664598A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of robot path planning, and in particular relates to a mobile robot path planning method based on random adaptive variable step size RRT*. Background Art
[0002] With the rapid development of the science and technology industry, the robotics industry is also changing with each passing day. Robots not only bring great convenience to humans and improve work efficiency, but also become an important support for the transformation and upgrading of the manufacturing industry. With the expansion of application scenarios, the working environment of robots is becoming increasingly complex. It is a key technical issue to enable robots to have autonomous perception and path planning capabilities, autonomously plan the optimal path according to obstacles in the working environment, and complete various task goals safely and efficiently. This can not only improve work efficiency, but also better ensure work safety and promote the application of robots in complex environments.
[0003] At present, the mainstream mobile robot path planning algorithms mainly include artificial market method, genetic algorithm, particle swarm algorithm and ant colony algorithm. These algorithms can plan smooth paths without obstacle collision in two-dimensional and three-dimensional space. However, multi-joint mobile robots cannot be simply regarded as particles when moving. In addition to considering the path planning of the end position, it is also necessary to pay attention to the position of each link of the robot in space. Therefore, the path planning of multi-joint mobile robots is a multi-dimensional space path search problem. Rapidly-exploring Random Trees (RRT) is a fast search algorithm proposed by SM LaValle and JJ Kuffner, which is mainly used to solve the path design problem of high-dimensional nonlinear systems. It is a strategy to generate search trees by random sampling in space. Since the sampling points are randomly generated, the search tree grows uniformly in all directions, which leads to no directionality when searching for paths and slow convergence speed. The RRT* algorithm is an improved form of the RRT algorithm. By introducing a cost function, the path points with the lowest cost are selected for re-optimization connection when generating new sampling points, so that the path converges to the optimal solution.
[0004] When using the RRT* algorithm to search for feasible paths in multidimensional space, the algorithm search efficiency is low due to the lack of target guidance. In addition, the average growth step length of each joint of a multi-joint mobile robot in multidimensional space is likely to cause the robot's end trajectory to be non-smooth in three-dimensional space. Therefore, it is of great significance to design an efficient and smooth obstacle avoidance path planning strategy. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a mobile robot path planning method based on random adaptive variable step size RRT*, which can enable a multi-joint mobile robot to plan a smooth path to reach a specified position while avoiding obstacles, and can reach the specified position directly, quickly and smoothly when there is no obstacle collision.
[0006] The technical solution adopted by the present invention is: a mobile robot path planning method based on random adaptive variable step size RRT*, comprising:
[0007] S1, initialize the starting point θ for the RRT* algorithm start 、Target point θ goal And a fixed step length ε. The corresponding DH parameter table is established for the multi-joint robot, and the robot's forward kinematics equation is calculated. The calculation results are as follows:
[0008]
[0009] where sθ i = sinθ i , cθ i = cosθ i , sα i-1 = sinα i-1 , cα i-1 =cosα i-1 , α i-1 、a i-1 ,θ i and d i represents the transformation relationship coefficient between connecting rod i-1 and connecting rod i; R x (α i-1 ) represents a rotation α around the x-axis i-1 Angle, D x (a i-1 ) represents a movement along the x-axis i-1 , the rest is the same; T i i-1 represents the homogeneous transformation matrix from link i-1 to link i. Therefore, the transformation matrix of the end pose can be expressed as:
[0010]
[0011] in, Represents the transformation matrix between the world coordinate system and link 1, T1 2 represents the transformation matrix between link 1 and link 2, Equivalently; p x ,p y ,p z is the three-dimensional coordinate of the robot end; (n x ,n y ,nz )、(o x ,o y ,o z ) and (a x ,a y ,a z ) represents the unit vector of the end coordinate system in the world coordinate system;
[0012] S2. Generate new nodes by sampling in multidimensional space, add target point information to the algorithm, and obtain the improved node generation formula:
[0013]
[0014] where ε is a fixed step size, ||θ goal -θ near ||(||θ rand -θ near ||) represents the distance between two sets of joints in the multidimensional joint space, θ new is the joint vector of the newly generated sampling point, θ near is the distance from the generated node to θ new The nearest node, θ goal is the joint vector of the target node, p is a random number between 0 and 1, and α represents the probability of selecting a random point (initial α = 0, and α = 0.9 when the new node collides with an obstacle);
[0015] S3. The weighted Manhattan distance is introduced to measure the distance between two groups of joints in the multidimensional joint space. Its expression is:
[0016]
[0017] Among them, θ1 and θ2 are two sets of joint vectors in the multidimensional joint space, n is the dimension of the joint space, and λ i Calculate the weights for the distances in each dimension, and At the same time, the weight coefficient is introduced into the joint vector difference, and its expression is:
[0018] θ1-θ2=[λ1(θ 11 -θ 21 )…λ i (θ 1i -θ 2i )…λ n (θ 1n -θ 2n )] (5)
[0019] Step S3 i The calculation process is:
[0020] S31, when improving the RRT* algorithm sampling search, λ iRandomly select between the average weight and the adaptive weight, and its expression is:
[0021]
[0022] Where n is the number of robot joints, p is a random number between 0 and 1, and β represents the adaptive growth probability (β = 1 at the beginning, and β = 0.4 when the new node collides with an obstacle);
[0023] λ in S32 and A1 adp The distance calculation weight of each joint is adaptively calculated according to the joint gap between the parent node of the sampling point and the target point. Its expression is:
[0024]
[0025] S33. To avoid joint lock due to the same joint angles between the robot's starting posture and the target posture, the minimum weight is set to improve the adaptive weight calculation. The expression is:
[0026]
[0027] Among them, σ is the minimum weight. When A2 calculates λ i When it is less than σ, set it equal to σ, and after all weights less than σ are reassigned, the remaining weights are distributed proportionally, so that
[0028] S4, substitute the weighted Manhattan distance calculated in S3 into S2 to obtain the new joint vector node θ new , and θ new Substitute the forward kinematics equation calculated in S1 to obtain the information status of each link and end position of the robot in three-dimensional space. If the node does not collide with the obstacle, select the parent node of the new node from the generated nodes according to the principle of the shortest path from the starting point to the new node, and add the node to the search tree; if the node collides with the obstacle, delete the node and set α=0.9, β=0.4.
[0029] S5. Repeat steps S2 to S4 until the newly generated node enters the target point threshold range, connect the new node and the target point, and the algorithm ends and obtains a smooth motion path for obstacle avoidance of the multi-joint mobile robot.
[0030] The beneficial effects of the present invention are as follows: when the conventional RRT* algorithm is used to explore feasible paths, many invalid spaces will be explored, which reduces the efficiency of the algorithm. Moreover, since the motion ranges of different joints in the robot joint space are not the same, the method of evenly distributing weights will cause the joints to vibrate during motion. The present invention adds target point information as a guide to the RRT* algorithm, improves the efficiency of path exploration, and distributes corresponding adaptive distance calculation weights λ according to the different distances from different sampling points to the target point. i , while preventing the algorithm from falling into the local optimal solution, it ensures the smoothness of joint movement, and quickly plans a smooth obstacle avoidance path when there is no collision on the path, reducing the redundant calculation amount of the random search algorithm in an obstacle-free environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the solution of the present invention. DETAILED DESCRIPTION
[0032] Rapidly-exploring Random Trees (RRT) is a fast search algorithm that is mainly used to solve the path design problem of high-dimensional nonlinear systems. It generates a search tree by random sampling in space to find a feasible path. Based on the RRT improved algorithm RRT*, the present invention adds target guidance information and random adaptive variable step size to improve the path quality, reduce the algorithm calculation time, and plan a smooth obstacle avoidance path.
[0033] The following is combined with Figure 1 The technical solution of the present invention is further described.
[0034] like Figure 1 As shown, the present invention proposes a mobile robot path planning method based on random adaptive variable step size RRT*, comprising the following steps:
[0035] S1, initialize the starting point θ for the RRT* algorithm start 、Target point θ goal And a fixed step length ε. The corresponding DH parameter table is established for the multi-joint robot, and the robot's forward kinematics equation is calculated. The calculation results are as follows:
[0036]
[0037] where sθ i = sinθ i , cθ i = cosθ i , sα i-1 = sinα i-1 , cα i-1 =cosα i-1 , α i-1 、ai-1 ,θ i and d i represents the transformation relationship coefficient between connecting rod i-1 and connecting rod i; R x (α i-1 ) represents a rotation α around the x-axis i-1 Angle, D x (a i-1 ) represents a movement along the x-axis i-1 , the rest is the same; T i i-1 represents the homogeneous transformation matrix from link i-1 to link i. Therefore, the transformation matrix of the end pose can be expressed as:
[0038]
[0039] in, Represents the transformation matrix between the world coordinate system and link 1, T1 2 represents the transformation matrix between link 1 and link 2, Equivalently; p x ,p y ,p z is the three-dimensional coordinate of the robot end; (n x ,n y ,n z )、(o x ,o y ,o z ) and (a x ,a y ,a z )
[0040] Represents the unit vector of the end coordinate system in the world coordinate system;
[0041] S2. Generate new nodes by sampling in multidimensional space, add target point information to the algorithm, and obtain the improved node generation formula:
[0042]
[0043] where ε is a fixed step size, ||θ goal -θ near ||(||θ rand -θ near ||) represents the distance between two sets of joints in the multidimensional joint space, θ new is the joint vector of the newly generated sampling point, θ near is the distance from the generated node to θ new The nearest node, θ goal is the joint vector of the target node, p is a random number between 0 and 1, and α represents the probability of selecting a random point (initial α = 0, and α = 0.9 when the new node collides with an obstacle);
[0044] S3. The weighted Manhattan distance is introduced to measure the distance between two groups of joints in the multidimensional joint space. Its expression is:
[0045]
[0046] Among them, θ1 and θ2 are two sets of joint vectors in the multidimensional joint space, n is the dimension of the joint space, and λ i Calculate the weights for the distances in each dimension, and At the same time, the weight coefficient is introduced into the joint vector difference, and its expression is:
[0047] θ1-θ2=[λ1(θ 11 -θ 21 )…λ i (θ 1i -θ 2i )…λ(θ1i-θ2i)…λ n (θ 1n -θ 2n )] (5)
[0048] Step S3 i The calculation process is:
[0049] S31, when improving the RRT* algorithm sampling search, λ i Randomly select between the average weight and the adaptive weight, and its expression is:
[0050]
[0051] Where n is the number of robot joints, p is a random number between 0 and 1, and β represents the adaptive growth probability (β = 1 at the beginning, and β = 0.4 when the new node collides with an obstacle);
[0052] λ in S32 and A1 adp The distance calculation weight of each joint is adaptively calculated according to the joint gap between the parent node of the sampling point and the target point. Its expression is:
[0053]
[0054] S33. To avoid joint lock due to the same joint angles between the robot's starting posture and the target posture, the minimum weight is set to improve the adaptive weight calculation. The expression is:
[0055]
[0056] Among them, σ is the minimum weight. When A2 calculates λ iWhen it is less than σ, set it equal to σ, and after all weights less than σ are reassigned, the remaining weights are distributed proportionally, so that
[0057] S4, substitute the weighted Manhattan distance calculated in S3 into S2 to obtain the new joint vector node θ new , and θ new Substitute the forward kinematics equation calculated in S1 to obtain the information status of each link and end position of the robot in three-dimensional space. If the node does not collide with the obstacle, select the parent node of the new node from the generated nodes according to the principle of the shortest path from the starting point to the new node, and add the node to the search tree; if the node collides with the obstacle, delete the node and set α=0.9, β=0.4.
[0058] S5. Repeat steps S2 to S4 until the newly generated node enters the target point threshold range, connect the new node and the target point, and the algorithm ends and obtains a smooth motion path for obstacle avoidance of the multi-joint mobile robot.
[0059] In summary, the present invention optimizes the existing RRT* algorithm for the problems of slow convergence speed and uneven path, introduces target guidance information to improve the problem of slow convergence speed of the RRT* algorithm, and combines the target guidance information to generate an adaptive growth step to improve the path planning quality. Finally, in order to avoid path planning falling into a local optimal solution, a random adaptive variable step size is used to enable the improved RRT* algorithm to optimize the path quality while retaining the exploratory nature.
[0060] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A random adaptive variable step size RRT* obstacle avoidance path planning strategy with target guidance, comprising the following steps: S1, initialize the starting point θ for the RRT* algorithm start 、Target point θ goal With a fixed step length ε, the corresponding DH parameter table is established for the multi-joint robot, and the robot's forward kinematics equation is calculated. The calculation results are as follows: where sθ i = sinθ i , cθ i = cosθ i , sα i-1 = sinα i-1 , cα i-1 =cosα i-1 , α i-1 、a i-1 ,θ i and d i represents the transformation relationship coefficient between connecting rod i-1 and connecting rod i; R x (α i-1 ) represents a rotation α around the x-axis i-1 Angle, D x (a i-1 ) represents a movement along the x-axis i-1 , the rest is the same; T i i-1 represents the homogeneous transformation matrix from link i-1 to link i, so the transformation matrix of the end pose can be expressed as: in, Represents the transformation matrix between the world coordinate system and link 1, T1 2 represents the transformation matrix between link 1 and link 2, Equivalently; p x ,p y ,p z is the three-dimensional coordinate of the robot end; (n x ,n y ,n z )、(o x ,o y ,o z ) and (a x ,a y ,a z ) represents the unit vector of the end coordinate system in the world coordinate system; S2. Generate new nodes by sampling in multidimensional space, add target point information to the algorithm, and obtain the improved node generation formula: where ε is a fixed step size, ||θ goal -θ near ||(||θ rand -θ near ||) represents the distance between two sets of joints in the multidimensional joint space, θ new is the joint vector of the newly generated sampling point, θ near is the distance from the generated node to θ new The nearest node, θ goal is the joint vector of the target node, p is a random number between 0 and 1, and α represents the probability of selecting a random point (initial α = 0, and α = 0.9 when the new node collides with an obstacle); S3. The weighted Manhattan distance is introduced to measure the distance between two groups of joints in the multidimensional joint space. Its expression is: Among them, θ1 and θ2 are two sets of joint vectors in the multidimensional joint space, n is the dimension of the joint space, and λ i Calculate the weights for the distances in each dimension, and At the same time, the weight coefficient is introduced into the joint vector difference, and its expression is: θ1-θ2=[λ1(θ 11 -θ 21 ) … l i (i 1i -θ 2i ) … l n (i 1n -θ 2n )] (5) Step S3 i The calculation process is: S31, when improving the RRT* algorithm sampling search, λ i Randomly select between the average weight and the adaptive weight, and its expression is: Where n is the number of robot joints, p is a random number between 0 and 1, and β represents the adaptive growth probability (β = 1 at the beginning, and β = 0.4 when the new node collides with an obstacle); λ in S32 and A1 adp The distance calculation weight of each joint is adaptively calculated according to the joint gap between the parent node of the sampling point and the target point. Its expression is: S33. To avoid joint lock due to the same joint angles between the robot's starting posture and the target posture, the minimum weight is set to improve the adaptive weight calculation. The expression is: Among them, σ is the minimum weight. When A2 calculates λ i When it is less than σ, set it equal to σ, and after all weights less than σ are reassigned, the remaining weights are distributed proportionally, so that S4, substitute the weighted Manhattan distance calculated in S3 into S2 to obtain the new joint vector node θ new , and θ new Substitute the forward kinematics equation calculated in S1 to obtain the information state of each link and end position of the robot in three-dimensional space. If the node does not collide with the obstacle, select the parent node of the new node from the generated nodes according to the principle of the shortest path from the starting point to the new node, and add the node to the search tree; if the node collides with the obstacle, delete the node and set α = 0.9, β = 0.4; S5. Repeat steps S2 to S4 until the newly generated node enters the target point threshold range, connect the new node and the target point, and the algorithm ends and obtains a smooth motion path for obstacle avoidance of the multi-joint mobile robot.
Citation Information
Cited By
Industrial robot dynamic obstacle avoidance method oriented to man-machine cooperation safety
CN120631007A
A human-robot collaboration safety-oriented dynamic obstacle avoidance method for industrial robots
CN120631007B
