Obstacle avoidance path planning method for mechanical arm
Through the combination of virtual joint point interpolation and RRT-Connect algorithm, the artificial potential field method is improved, and the guiding force and distance influencing factors are introduced, combined with the pre-planning and following mechanism, to solve the real-time and problem of obstacle avoidance of the robot arm in a dynamic environment. The target unreachable problem is solved, and fast and safe path planning and movement are realized.
Patent Information
- Application Number
- PCT/CN2024/082578
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-11
- Filing Date
- 2024-03-20
- Publication Date
- 2024-10-17
AI Technical Summary
Existing robotic arm obstacle avoidance technology lacks real-time performance in dynamic environments and is difficult to effectively avoid obstacles. It is easy to fall into local minima, causing motion to stop and the target to be unreachable.
Use virtual joint point interpolation to simplify the manipulator model, use the RRT-Connect algorithm for global path planning, introduce guidance force and distance influence factors to improve the artificial potential field method, and combine pre-planning and following mechanisms to avoid local minima and unreachable targets. question.
It realizes fast, safe and smooth path planning of the robotic arm in a dynamic environment, avoids the problems of local minima and unreachable targets, and ensures that the robotic arm can move normally to the target point.
Smart Images

Figure CN2024082578_17102024_PF_FP_ABST
Abstract
Description
A method for obstacle avoidance path planning of a robotic arm Technical Field
[0001] The present invention relates to the technical field of robot arm obstacle avoidance, and in particular to a robot arm obstacle avoidance path planning method. Background Art
[0002] As the application areas of robotic arms continue to expand, their obstacle avoidance capabilities in dynamic environments such as multi-machine collaboration and human-machine collaboration have become particularly important. Robotic arm obstacle avoidance refers to obtaining a reasonable path in a complex environment through advance planning that allows the robotic arm to bypass obstacles without collision. At present, there is no mature, highly applicable technical solution for real-time obstacle avoidance of robotic arms that can be truly applied to industrial production. The main problems with robotic arm obstacle avoidance technology currently include: the robotic arm has many joints, strong flexibility, and various postures, and cannot be simply regarded as a point mass; obstacle avoidance in a dynamic environment requires that the planning algorithm used by the robotic arm must have strong real-time performance to cope with real-time changes in obstacles; the robotic arm is prone to falling into a local minimum during dynamic planning, causing the robotic arm to stop moving.
[0003] Summary of the Invention
[0004] (1) Technical problems solved
[0005] In response to the shortcomings of the existing technology, the present invention provides a robot arm obstacle avoidance path planning method with the following advantages: 1. The simplified model approach facilitates distance calculation for subsequent obstacle avoidance problems by interpolating the links between adjacent joints using virtual joint point interpolation, and using spherical bounding boxes to envelop the robot arm at the joint points to replace the model; 2. The speed and directionality of global path planning are improved. The global path is planned based on RRT-Connect and the alternating growth of random trees is controlled; 3. It effectively avoids falling into local minimum problems and target unreachability problems, and introduces guiding force and distance influencing factors to modify the repulsive force of the artificial potential field method.
[0006] (2) Technical solution
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A method for obstacle avoidance path planning for a robotic arm comprises the following steps:
[0009] Step 1: Simplify the robot model and obstacles, determine the robot joints, and use virtual joint interpolation to interpolate the links between adjacent joints; use a spherical bounding box at each joint to envelop the robot model, so that the robot can be completely replaced for distance calculation in any posture;
[0010] Step 2: Place the depth camera in an eye-outside-hand arrangement to obtain real-time point cloud information of the robotic arm and obstacles in the workspace. Use the robot's real-time filtering package to filter out the point cloud information of the robotic arm itself, retaining only the obstacle point cloud information.
[0011] Step 3: Before the robot moves, use the RRT-Connect algorithm to plan the path of the static environment in which the robot is located, and rely on its completeness to obtain a feasible global planning path;
[0012] Step 4: Control the robotic arm to move along the globally planned path, and obtain the obstacle point cloud data in the space where the robotic arm is located in real time. Calculate the distance between the obstacle point cloud and the robotic arm joint points in the robotic arm coordinates to obtain the shortest distance.
[0013] When the shortest distance is less than the set safety distance, the robot arm is controlled to use a local planner and adopt an improved artificial potential field method to plan a local path for real-time obstacle avoidance;
[0014] Step 5: Obstacle avoidance is achieved by performing local path planning using an improved artificial potential field method. The distance and position vector between the end of the manipulator and the target point are determined in real time. The attraction of the target point to the end of the manipulator is determined based on the distance and position vector between the end of the manipulator and the target point.
[0015] Step 6: Introduce a guiding force to the end of the robot arm. When the robot arm falls into a local minimum, the guiding force causes it to move to the next position for replanning.
[0016] Step 7: Introduce pre-planning mechanism into local path planning;
[0017] Step 8: Add a following mechanism to the local path planning.
[0018] Preferably, the RRT-Connect algorithm connects random sampling points based on a random sampling method to form a feasible path. The connection process is similar to the growth of a tree, so it is called a random tree. The algorithm obtains a feasible path by simultaneously generating two random trees from the starting point and the target point and intersecting them to improve its path planning speed.
[0019] To avoid excessive randomness during sampling and improve the directionality of the path, the RRT-Connect algorithm also uses an alternating method to grow random trees.
[0020] Preferably, the target point is the target position to be reached by the robot arm; the distance and position vector between the end of the robot arm and the target point are determined in real time, and the function formula for determining the attractive force according to the distance and position vector between the end of the robot arm and the target point is:
[0021] Among them, ρ(q,qgoal ) is the Euclidean distance between the end of the robot arm and the target point; U att is the improved gravitational field function, ξ' is the dynamic gain coefficient of gravity, which is expressed as The dynamic gain coefficient is inversely proportional to the distance between the robotic arm and the target point. The gain coefficient at the starting point is the smallest, so that the gravity can be adjusted to prevent excessive gravity from causing a collision between the robotic arm and obstacles, ensuring that the robotic arm obtains a safe and smooth path.
[0022] The shortest distance between the joint point of the manipulator and the obstacle point cloud is determined in real time. When the shortest distance is greater than the set safety distance, the repulsive force of the obstacle on the manipulator is 0. When the shortest distance is less than the set safety distance, the magnitude of the repulsive force is determined based on the joint point on the manipulator and the nearest obstacle point. The function formula of the repulsive force is:
[0023] Where U rep is the repulsive potential field generated by the obstacle; ρ0 is the safety distance radius; ρ(q,q obst ) is the Euclidean distance between the end of the robotic arm and the obstacle point cloud;
[0024] F rep1 is the repulsive force component, the direction is from the obstacle to the end of the robotic arm, and the magnitude is:
[0025] F rep2 is the gravitational component, the direction is from the end of the robotic arm to the target point, and the magnitude is:
[0026] When the robotic arm plans a path using a local planner, the combined force generated by the attractive and repulsive forces guides the movement of the robotic arm.
[0027] Preferably, the function formula of the guiding force is:
[0028] Function formula of the resultant force when entering the local minimum:
[0029] Where s is the number of obstacles; a is the guidance coefficient; the value range of x is [1,10]; the value of a changes with the number of obstacles and the distance between the robot arm and the obstacle. When the number of obstacles is 1, if the distance between the robot arm and the obstacle is less than 1 / 2 of the safety distance, the value of a is 1, otherwise the value of a is 0.5; when the number of obstacles is greater than 1, a monotonically decreasing function is used as the guidance function to assign a value until the robot arm escapes from the local minimum point. If the next position is still trapped in the local minimum, the above method is repeated.
[0030] Preferably, in order to solve the problem of unreachable target point, the improved artificial potential field method introduces a distance influencing factor to the repulsive force to change the magnitude of the repulsive force generated by obstacles near the target point, so that the repulsive force generated by obstacles at a certain distance from the target point is 0, thereby avoiding the robot arm from being unable to reach the target point. When the robot arm is far away from the target point, it is still affected by the repulsive force of the obstacle, retaining the obstacle avoidance capability.
[0031] The improved repulsive force formula is:
[0032] Where, represents a unit vector pointing from the obstacle point cloud to the end of the robotic arm; k rep is a positive real number representing the repulsion coefficient.
[0033] Preferably, the pre-planning mechanism involves planning and moving simultaneously during the movement process, as shown in Figure 4. While the robot arm is still moving along the local path S2 planned based on the previous frame of environmental information, it obtains the current frame's environmental information and uses it as data to pre-plan a new local path S3. This local path is required to be continuous with the previous local path. After the robot arm completes its movement along local path S2, it can immediately move along local path S3 to ensure the continuity of the robot arm's movement.
[0034] Preferably, the following mechanism can be divided into a target following mechanism and a path following mechanism. When the robot arm completes obstacle avoidance and can return to the global planned path under the action of the combined force, the robot arm will continue to move along the global planned path toward the target point. This mechanism is called the path following mechanism. If the robot arm cannot return to the global planned path, it will move along the target point under the action of the combined force. This mechanism is called the target following mechanism. The robot arm uses the following mechanism throughout the entire movement process. (3) Beneficial effects
[0035] Compared with the prior art, the present invention provides a method for planning a robot arm's obstacle avoidance path, which has the following beneficial effects:
[0036] 1. This robot arm obstacle avoidance path planning method uses virtual joint point interpolation to interpolate the links between adjacent joints, and then uses a spherical bounding box to envelop the robot arm to simplify the robot arm model, while also effectively simplifying the distance calculation of the obstacle avoidance process.
[0037] 2. This robot arm obstacle avoidance path planning method uses the RRT-Connect algorithm to perform global path planning in a static environment. It can quickly obtain a feasible path. By controlling the alternating growth of random trees, the directionality of the path is improved. Due to its completeness, a feasible path can be found as long as there is enough time.
[0038] 3. Compared with the traditional artificial potential field method, the improved artificial potential field method can effectively avoid the problems of stopping movement and jittering caused by falling into local minimum and the problem of target unreachability caused by repulsive force near the target point by introducing guiding force and distance influencing factors, so that the robotic arm can move to the target point normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] FIG1 is a flow chart of the present invention;
[0040] FIG2 is a simplified model diagram of setting an enclosing sphere at a joint in the present invention;
[0041] FIG3 is a diagram showing a camera arrangement in which the eye is outside the hand according to the present invention;
[0042] FIG4 is a schematic diagram of the pre-planning mechanism of the present invention;
[0043] FIG5 is a schematic diagram of the following mechanism in the present invention;
[0044] FIG6 is a simulation diagram of the obstacle avoidance of the robotic arm in the present invention. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0046] Referring to Figure 1-6, a method for planning a robot arm's obstacle avoidance path includes the following steps:
[0047] Step 1: Simplify the robot arm model and obstacles (see Figure 2). Determine the robot arm joints and use virtual joint interpolation to interpolate the links between adjacent joints. Use a spherical bounding box at each joint to replace the robot arm model, ensuring that the robot arm can be completely replaced in any posture for distance calculation.
[0048] Step 2: Place the depth camera in an eye-outside-hand configuration (see Figure 3). Obtain real-time point cloud information of the robotic arm and obstacles in the workspace. Use the robot's real-time filtering package to filter out the point cloud information of the robotic arm itself, retaining only the obstacle point cloud information.
[0049] Step 3: Before the robot moves, use the RRT-Connect algorithm to plan the path of the static environment in which the robot is located, and rely on its completeness to obtain a feasible global planning path;
[0050] The RRT-Connect algorithm uses a random sampling method to connect randomly sampled points to form a feasible path. This connection process is similar to tree growth, hence the name Random Tree. The algorithm simultaneously generates two random trees from the starting point and the target point, intersecting them to obtain a feasible path, thereby improving path planning speed. To avoid excessive randomness during sampling and improve path directionality, the RRT-Connect algorithm also uses an alternating method to grow random trees.
[0051] Step 4: Control the robotic arm to move along the globally planned path, and obtain the obstacle point cloud data in the space where the robotic arm is located in real time. Calculate the distance between the obstacle point cloud and the robotic arm joint points in the robotic arm coordinates to obtain the shortest distance.
[0052] When the shortest distance is less than the set safety distance, the robot arm is controlled to use a local planner and adopt an improved artificial potential field method to plan a local path for real-time obstacle avoidance;
[0053] Step 5: Obstacle avoidance is achieved by performing local path planning using an improved artificial potential field method. The distance and position vector between the end of the manipulator and the target point are determined in real time. The attraction of the target point to the end of the manipulator is determined based on the distance and position vector between the end of the manipulator and the target point.
[0054] The target point is the target position to which the manipulator is controlled to reach; the distance and position vector between the end of the manipulator and the target point are determined in real time, and the function formula for determining the attractive force based on the distance and position vector between the end of the manipulator and the target point is:
[0055] Among them, ρ(q,q goal ) is the Euclidean distance between the end of the robot arm and the target point; U att is the improved gravitational field function, ξ' is the dynamic gain coefficient of gravity, which is expressed as The dynamic gain coefficient is inversely proportional to the distance between the robotic arm and the target point. The gain coefficient at the starting point is the smallest, so that the gravity can be adjusted to prevent excessive gravity from causing a collision between the robotic arm and obstacles, ensuring that the robotic arm obtains a safe and smooth path.
[0056] The shortest distance between the joint point of the manipulator and the obstacle point cloud is determined in real time. When the shortest distance is greater than the set safety distance, the repulsive force of the obstacle on the manipulator is 0. When the shortest distance is less than the set safety distance, the magnitude of the repulsive force is determined based on the joint point on the manipulator and the nearest obstacle point. The function formula of the repulsive force is:
[0057] Where U repis the repulsive potential field generated by the obstacle; ρ0 is the safety distance radius; ρ(q,q obst ) is the Euclidean distance between the end of the robotic arm and the obstacle point cloud;
[0058] F rep1 is the repulsive force component, the direction is from the obstacle to the end of the robotic arm, and the magnitude is:
[0059] F rep2 is the gravitational component, the direction is from the end of the robotic arm to the target point, and the magnitude is:
[0060] When the robotic arm plans a path using a local planner, the combined force generated by the attractive and repulsive forces guides the movement of the robotic arm.
[0061] Step 6: The traditional artificial potential field method is prone to falling into local minima and the target being unreachable. Falling into the local minimum means that when the combined force of the attraction and repulsion on the robot arm is 0, the robot arm will stop moving or oscillate. The target being unreachable means that when the robot arm moves near the target point, if there is a large repulsive force generated by an obstacle near the robot arm, it will hinder the robot arm from reaching the target point. In order to solve the problem of falling into the local minimum, the improved artificial potential field method introduces a guiding force to the end of the robot arm. When the robot arm falls into the local minimum, the guiding force causes the robot arm to move to the next position for replanning. The function formula of the guiding force is:
[0062] Function formula of the resultant force when entering the local minimum:
[0063] Where s is the number of obstacles; a is the guidance coefficient; and x ranges from [1,10]. The value of a varies with the number of obstacles and the distance between the robot arm and the obstacle. When the number of obstacles is 1, if the distance between the robot arm and the obstacle is less than 1 / 2 of the safe distance, the value of a is 1, otherwise the value of a is 0.5. When the number of obstacles is greater than 1, a monotonically decreasing function is used as the guidance function to assign a value until the robot arm escapes from the local minimum point. If the next position is still trapped in the local minimum, the above method is repeated. To solve the problem of unreachable target points, the improved artificial potential field method introduces a distance influence factor to the repulsive force to change the magnitude of the repulsive force generated by obstacles near the target point, so that the repulsive force generated by obstacles at a certain distance from the target point is 0, thereby preventing the robot arm from being unable to reach the target point. When the robot arm is far away from the target point, it is still affected by the repulsive force of the obstacle, retaining the obstacle avoidance capability. The improved repulsive force formula is:
[0064] Where, represents a unit vector pointing from the obstacle point cloud to the end of the robotic arm; k rep is a positive real number representing the repulsion coefficient.
[0065] Step 7: Introduce a pre-planning mechanism in local path planning. In order to make timely movement changes to adapt to the dynamic environment and avoid obstacle avoidance failures due to movement delays, a pre-planning mechanism is introduced in local path planning. The pre-planning mechanism refers to the method of planning and moving at the same time during the movement process, as shown in Figure 4. When the robot arm has not stopped moving on the local path S2 planned by the previous frame of environmental information, the environmental information of the current frame is obtained and used as data to pre-plan a new local path S3. This local path is required to be continuous with the previous local path. When the robot arm completes the movement on the local path S2, it can immediately move on the local path S3 to ensure the continuity of the robot arm's movement.
[0066] Step 8: Incorporate a following mechanism into local path planning. When the robot arm enters local planning, it can use the combined force and pre-planning mechanism to quickly and safely avoid obstacles. However, this also deviates from the original global path, affecting subsequent movement. Therefore, a following mechanism is introduced, as shown in Figure 5. The following mechanism can be divided into a target following mechanism and a path following mechanism. When the robot arm completes obstacle avoidance and can return to the global planned path under the action of the combined force, the robot arm will continue to move toward the target point along the global planned path. This mechanism is called the path following mechanism. If the robot arm cannot return to the global planned path, it will move along the target point under the action of the combined force. This mechanism is called the target following mechanism. The robot arm uses the following mechanism throughout the entire movement process.
Claims
1. A robot arm obstacle avoidance path planning method, It is characterized in that The steps include: Step 1: Simplify the robot model and obstacles, determine the joints of the robot, and use virtual joint interpolation to interpolate the connecting rods between adjacent joints; use a spherical bounding box to envelop each joint to replace the robot model, so that the robot can be completely replaced for distance calculation in any posture; Step 2: Place the depth camera in an eye-outside-hand arrangement to obtain the point cloud information of the robotic arm and obstacles in the workspace in real time, and use the robot real-time filtering package to filter out the point cloud information of the robotic arm body, leaving only the point cloud information of the obstacles; Step 3: Use the RRT-Connect algorithm to plan the path of the static environment where the robot is located before the robot moves, and obtain a feasible global planning path based on its completeness; Step 4: Control the robot arm to move along the global planning path, and obtain the obstacle point cloud data of the space where the robot arm is located in real time, and calculate the distance between the obstacle point cloud and the robot arm joint point in the robot arm coordinates to obtain the shortest distance; Step 5: Obstacle avoidance is achieved by performing local path planning through improved artificial potential field method; the distance and position vector between the end of the robotic arm and the target point are determined in real time, and the attraction of the target point to the end of the robotic arm is determined based on the distance and position vector between the end of the robotic arm and the target point; Step 6: Introduce a guiding force to the end of the robot arm, which causes the robot arm to move to the next position for replanning when it falls into a local minimum; Step 7: Introduce pre-planning mechanism in local path planning; Step 8: Add a following mechanism to local path planning.
2. A robot arm obstacle avoidance path planning method according to claim 1, Features: The RRT-Connect algorithm is based on a random sampling method to connect random sampling points to form a feasible path. The connection process is similar to the growth of a tree, so it is called a random tree. The algorithm obtains a feasible path by generating two random trees from the starting point and the target point at the same time to intersect and improve its path planning speed; In order to avoid excessive randomness in sampling and improve the directionality of the path, the RRT-Connect algorithm also uses Alternate way to grow random trees.
3. A robot arm obstacle avoidance path planning method according to claim 2, Features: The target point is the target position to which the robot arm is controlled to reach; the distance and position vector between the end of the robot arm and the target point are determined in real time, and the function formula for determining the attractive force magnitude according to the distance and position vector between the end of the robot arm and the target point is: Among them, ρ(q,q goal ) is the Euclidean distance between the end of the robot and the target point; U att is the improved gravitational field function, ξ' is the dynamic gain coefficient of gravity, which is expressed as The dynamic gain coefficient is inversely proportional to the distance between the robot arm and the target point. The gain coefficient at the starting point is the smallest, so that the gravity can be adjusted to prevent the robot arm from colliding with obstacles due to excessive gravity, ensuring that the robot arm obtains a safe and smooth path. The shortest distance between the joint point of the robot arm and the obstacle point cloud is determined in real time. When the shortest distance is greater than the set safety distance, the repulsive force of the obstacle on the robot arm is 0. When the shortest distance is less than the set safety distance, the magnitude of the repulsive force is determined according to the joint point on the robot arm and the nearest obstacle point. The function formula of the repulsive force is: Where U rep is the repulsive potential field generated by the obstacle; ρ 0 is the safety distance radius; ρ(q,q obst ) is the Euclidean distance between the end of the robot arm and the obstacle point cloud; F rep1 is the repulsive force component, the direction is from the obstacle to the end of the robot arm, and the magnitude is: F rep2 is the gravitational component, the direction is that the end of the robot arm points to the target point, and the magnitude is: When the robot arm plans a path using a local planner, the combined force of attraction and repulsion is Force guides the movement of the robot arm.
4. A robot arm obstacle avoidance path planning method according to claim 3, Features: The function formula of the guiding force is: The function formula of the resultant force when entering the local minimum is: Where s is the number of obstacles; a is the guidance coefficient; the value range of x is [1,10]; the value of a changes with the number of obstacles and the distance between the robot and the obstacle. When the number of obstacles is 1, if the distance between the robot and the obstacle is less than 1 / 2 of the safety distance, the value of a is 1, otherwise the value of a is 0.5; when the number of obstacles is greater than 1, a monotonically decreasing function is used as the guidance function to assign a until the robot leaves the local minimum point. If the next position is still trapped in the local minimum, the above method is repeated.
5. A robot arm obstacle avoidance path planning method according to claim 4, Features: The improved artificial potential field method introduces a distance influence factor to the repulsive force to change the magnitude of the repulsive force generated by obstacles near the target point, so that the repulsive force generated by obstacles at a certain distance from the target point is 0, thereby preventing the robot from being unable to reach the target point. When the robot is far away from the target point, it is still affected by the repulsive force of the obstacle and retains the obstacle avoidance ability. The improved repulsive force formula is: In the formula, represents a unit vector pointing from the obstacle point cloud to the end of the robotic arm; k rep is a positive real number, representing the repulsion coefficient.
6. A robot arm obstacle avoidance path planning method according to claim 1, Features: The pre-planning mechanism refers to a method of planning and moving during the movement process. When the robot arm has not stopped moving on the local path S2 planned by the previous frame of environmental information, the environmental information of the current frame is obtained and used as data to pre-plan a new local path S3. It is required that the local path is continuous with the previous local path. When the robot arm completes the movement on the local path S2, it can immediately move on the local path S3 to ensure the continuity of the robot arm's movement.
7. A robot arm obstacle avoidance path planning method according to claim 1, Features: The following mechanism can be divided into a target following mechanism and a path following mechanism. When the robot arm can return to the global planned path under the action of the resultant force after completing obstacle avoidance, the robot arm will continue to move toward the target point along the global planned path. This mechanism is called a path following mechanism. If the robot arm cannot return to the global planned path, it will move along the target point under the action of the resultant force. This mechanism is called a target following mechanism. The robot arm uses the following mechanism to move during the entire movement process.
Citation Information
Patent Citations
Manipulator artificial potential field space path planning method combined with spherical tree model
CN109434836A
Obstacle avoidance path planning method for six-degree-of-freedom mechanical arm
CN113799141A
Mechanical arm obstacle avoidance path planning method based on improved artificial potential field method
CN115416016A
Human-machine online obstacle avoidance method and system based on human arm motion information prediction
CN115502961A
Mechanical arm obstacle avoidance path planning method
CN116352714A
Cited By
Visual servo control method and device for neurosurgical robot and storage medium
CN119407775A
Double-arm collision detection and obstacle avoidance path planning method based on improved artificial potential field method
CN119407791A
Control method of robot system
CN119407800A
A control method for a robot system
CN119407800B
Path planning method for cooperative control of crown block moving mechanical arm
CN119596941A
