A multi-robot dynamic motion planning method based on safe channel sampling

Through the multi-robot dynamic motion planning method based on safe channel sampling, the problem of slow path planning speed of multi-robots in dynamic environments is solved, and efficient and safe path planning in complex environments is achieved.

CN118548898BActive Publication Date: 2024-10-11HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411009065.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-11
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing multi-robot motion planning algorithms are slow to solve in dynamic environments and difficult to handle the interaction between robots and obstacles in real time, affecting operating efficiency and safety.

Method used

A multi-robot dynamic motion planning method based on safe channel sampling is adopted. By constructing an initial static map and a dynamic map, the shortest path of the robot in the static environment is planned, and the path is updated in the dynamic environment. The bidirectional algorithm and sampling technology are used to optimize the path planning. .

Benefits of technology

In the case of high real-time dynamics and limited work space, the efficiency and safety of multi-robot path planning are improved, the time of path planning is reduced, and the stability of robot operation is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548898B_ABST
    Figure CN118548898B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-robot dynamic motion planning method based on safe channel sampling, constructs an initial static map, presets the initial points and target points corresponding to each of the multiple robots on the initial static map, constructs a GVG route map and plans the initial shortest GVG paths of each of the multiple robots and establishes a safe channel, randomly samples sampling points in the safe channels of the multiple robots, plans the motion paths of each of the multiple robots from the initial point along the sampling points to the target point on the static map, executes the motion paths of each of the multiple robots obtained on the static map on the dynamic map, performs dynamic obstacle detection and updates the motion paths, until each robot reaches the corresponding target point, thereby obtaining the motion paths of each of the multiple robots in the dynamic map. The method can complete the path planning of multiple robots in the case of high real-time dynamics and limited workspace, and improve the operation efficiency and safety of the robots.
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 motion planning, and in particular to a multi-robot dynamic motion planning method based on safety channel sampling. Background Art

[0002] Large and complex components on major equipment are usually large in size and space, and their manufacturing process has many tasks and complex scenes, which makes it difficult for a single robot to meet manufacturing needs. Therefore, the use of multiple robots for collaborative manufacturing has become an important development direction. Multi-robot motion planning is the decision-making center of the robot manufacturing system. Its performance directly affects the operating efficiency of the entire system. The robot searches for collision-free paths in complex environments and plans the motion path in real time during the movement process to meet the needs of safety and smoothness. For path planning, there are currently sampling-based algorithms, such as and The sampling algorithm has been proposed, making it one of the most widely used algorithms. However, one limitation of the sampling algorithm is that it converges to the optimal solution slowly, requiring a large number of iterative processes or samples to asymptotically find the optimal solution to the planned problem. At the same time, there are problems such as high real-time dynamics and limited workspace in multi-robot manufacturing scenarios, which brings huge challenges to multi-robot path planning. Although some scholars have conducted research on it to a certain extent, there are still some technical difficulties that need to be overcome. First, the speed of solving the robot path in a dynamic environment is one of the problems that need to be overcome; second, the way the robot handles encountering other robots or obstacles is also one of the important factors affecting the robot's operating efficiency and safety. Summary of the invention

[0003] In view of the above problems, the present invention proposes a multi-robot dynamic motion planning method based on safe channel sampling, which includes the following steps:

[0004] S1. Build an initial static map based on all obstacles and boundaries in the static environment, preset the initial points and target points corresponding to multiple robots on the initial static map, build a GVG route map based on the initial static map, and use The algorithm plans the initial shortest GVG paths for multiple robots on the GVG roadmap;

[0005] S2, establishing corresponding safety channels for the multiple robots according to their respective initial shortest GVG paths, and randomly sampling the multiple robots in the safety channels to obtain sampling points;

[0006] S3, use bidirectional The algorithm plans the motion paths of multiple robots from the initial point along the sampling point to the target point on the static map;

[0007] S4. Obtain a dynamic map in a real scene, execute the motion paths of multiple robots obtained on the static map on the dynamic map, and perform dynamic obstacle detection and motion path update during the movement of each robot until each robot reaches its corresponding target point, thereby obtaining the motion paths of multiple robots in the dynamic map.

[0008] Preferably, in S2, corresponding safety channels are established according to the initial shortest GVG paths of the multiple robots. Specifically, each node on the initial shortest GVG path of each robot is taken as the center of the circle, and the radius of the circle is the distance from each node to the nearest obstacle, thereby forming a safety channel corresponding to each robot.

[0009] Preferably, S3 specifically includes the following:

[0010] S31, preset total number of robots, sampling radius, initial path cost of each robot, forward tree and reverse tree of each robot, unexplored set of each tree, explored set of each tree, total number of sampling times of each tree;

[0011] S32, The initial point of the robot and target point As forward trees The root node and reverse tree The root node of The initial point of the robot Put it in the forward tree In the explored set, the sampling points and target points Put it in the forward tree In the unexplored set of The robot's target point Inverted tree In the explored set, the sampling point and the The initial point of the robot Inverted tree in the unexplored collection of;

[0012] S33, for Forward tree of a robot and reverse tree Alternately perform the nth sampling, and update the unexplored set and explored set corresponding to the forward tree and the reverse tree after the nth sampling;

[0013] S34, determine the Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination condition is met, if the sampling termination condition is not met, step S33 is executed to Forward tree of a robot and reverse tree Alternately perform the n+1th sampling. Otherwise, if the sampling termination condition is met, the sampling is terminated and the n+1th sampling is output. The motion path of a robot from the initial point along the sampling point to the target point in a static environment;

[0014] S35, repeat steps S32 to S34, plan the The motion paths of the robots in the static environment are calculated until the motion paths corresponding to the robot's arrival at the target point along the sampling points are planned.

[0015] Preferably, in S33, Forward tree of a robot Perform the nth sampling and update the unexplored set and explored set corresponding to the nth sampling of the forward tree, which are specifically as follows:

[0016] S331, for Forward tree of a robot Perform the nth sampling, select the corresponding explored sampling point with the lowest cumulative path cost from the explored set of the forward tree, draw a circle with the preset sampling radius and take the selected explored sampling point as the center, and then select the explored sampling point from the forward tree. Divide the unexplored sampling points in the unexplored set, and use the divided unexplored sampling points as the unexplored subset after the nth sampling;

[0017] S332, calculate the forward tree Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding lowest path cost point in the explored set, if there is no obstacle between the lowest path cost point and the corresponding unexplored sampling point, connect the lowest path cost point and the corresponding unexplored sampling point, thereby obtaining all unexplored sampling points connected to the lowest path cost point after the nth sampling of the forward tree;

[0018] S333, using all the unexplored sampling points connected to the minimum path cost point after the n-th sampling of the forward tree, to update the unexplored set and the explored set corresponding to the n-th sampling of the forward tree.

[0019] Preferably, in S332, the forward tree is calculated Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding minimum path cost points in the explored set are as follows:

[0020] S3321, randomly selecting an unexplored sampling point from the unexplored subset obtained after the n-th sampling of the forward tree, drawing a circle with a preset sampling radius and taking the selected unexplored sampling point as the center, dividing the explored sampling points from the explored set obtained after the n-th sampling of the forward tree, and using the divided explored sampling points as the explored subset corresponding to the unexplored sampling points selected after the n-th sampling of the forward tree;

[0021] S3322, calculate the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the explored subset corresponding to the unexplored sampling point selected after the forward tree is sampled for the nth time, and the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the forward tree. The cumulative path cost between the root nodes of , the explored sampling point corresponding to the minimum sum of the straight path cost and the cumulative path cost is taken as the minimum path cost point corresponding to the selected unexplored sampling point;

[0022] S3323, check whether there is an obstacle between the minimum path cost point and the corresponding unexplored sampling point, and if there is no obstacle, connect the minimum path cost point and the corresponding unexplored sampling point;

[0023] S3324, select another unexplored sampling point from the unexplored subset obtained after the n-th sampling of the forward tree, until all the unexplored sampling points in the unexplored subset obtained after the n-th sampling of the forward tree are selected, and repeat steps S3321 and S3323 to obtain the forward tree. The lowest path cost point corresponding to each unexplored sampling point in the unexplored subset after the nth sampling.

[0024] Preferably, S333 is specifically: replacing the original explored sampling points in the explored set after the nth sampling of the forward tree with all the unexplored sampling points connected to the minimum path cost point after the nth sampling of the forward tree, and deleting all the unexplored sampling points connected to the minimum path cost point after the nth sampling from the unexplored set after the nth sampling of the forward tree.

[0025] Preferably, in S34, it is determined that Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination conditions are met, specifically including:

[0026] S341, check After the nth sampling, the forward tree Updated explored set and reverse tree Whether there is at least one identical explored sampling point in the updated explored set;

[0027] S342, check Whether the robot reaches the preset total number of sampling times after the nth sampling;

[0028] S343, if the forward tree after the nth sampling Updated explored set and reverse tree There is no at least one identical explored sampling point in the updated explored set, and the If the robot does not reach the preset total number of sampling times after the nth sampling, the sampling termination condition is not met;

[0029] S344, if the forward tree after the nth sampling Updated explored set and reverse tree If there is at least one identical explored sampling point in the updated explored set, the sampling termination condition is met.

[0030] Preferably, if the sampling termination condition is met in S34, the sampling is terminated and the first The motion path of a robot from the initial point along the sampling point to the target point in a static environment includes:

[0031] Jordi After the nth sampling, the robot Updated explored set and reverse tree There is only one identical explored sampling point in the updated explored set, so the first A robot moves along the sampling point from the initial point to the target point in a static environment; or

[0032] Jordi After the nth sampling, the robot Updated explored set and reverse tree There are multiple identical explored sampling points in the updated explored set. At this time, the cumulative path costs from each explored sampling point to the initial point and the target point are calculated and summed up. The corresponding explored sampling point with the lowest cumulative path cost is selected, thus obtaining the first The motion path of a robot from the initial point along the sampling point to the target point in a static environment.

[0033] Preferably, S4 specifically includes the following:

[0034] S41. Obtain a dynamic map in a real scene and preset a first distance and the second distance , executing the motion paths obtained by multiple robots on the static map on the dynamic map, multiple robots move from their respective initial points to the next adjacent node and reach their respective current positions;

[0035] S42, randomly selecting a robot from the plurality of robots, calculating the distance between the current position of the selected robot and the target point, and summing the distance between the current position of the selected robot and the target point and the first distance Compare, if the distance between the current position of the selected robot and the target point is greater than the first distance , then execute step S43, otherwise, execute S48;

[0036] S43, calculating the distances between the selected robot and the obstacles or other robots respectively, and adding the distances between the selected robot and the obstacles or other robots respectively to the second distance Compare, if the distance between the selected robot and the obstacle or other robots is greater than the second distance , execute step S46, otherwise, execute S44;

[0037] S44: Determine whether the path of the selected robot is within a preset time period, and whether the path of the selected robot is within a preset time period. Check whether they intersect. If not, execute S46. If they intersect, execute S45.

[0038] S45, the selected robot and the selected robot in a preset time period The robots that intersect each other update their motion paths in a static environment and use the updated motion paths as their corresponding current paths;

[0039] S46, the selected robot moves one step forward to the next node along the current path and updates the current position at the same time;

[0040] S47, selecting another robot from the multiple robots again until all robots are selected, repeating steps S42 to S46, so that each selected robot moves one step from the current position along the next node of the current path corresponding to each robot, and updating the current position at the same time, and executing S42;

[0041] S48. Determine whether the selected robot has reached the corresponding target point, and obtain the corresponding motion path of the selected robot in the dynamic map.

[0042] Preferably, in S45, the selected robot and the selected robot are in a preset time period. The other robots that intersect each other in the static environment update their motion paths separately, including the following:

[0043] S451, preset third distance , so that the path of the selected robot and the paths of other robots are in a preset time period The intersection point is the center, with the third distance Draw a circle with the radius as the input, delete all sampling points within the circle, and obtain the updated sampling points;

[0044] S452: The current position and target point of the selected robot are used as the root nodes of the forward tree and the reverse tree of the selected robot respectively, and the nodes that are connected to the selected robot in the preset time period are connected to the forward tree and the reverse tree respectively. The current positions and target points of other robots that intersect with the robot are used as the root nodes of the corresponding forward and reverse trees of other robots;

[0045] S453, executing steps S32 to S35, replanning the motion path of the selected robot in the static environment according to the root nodes of the forward tree and the reverse tree of the selected robot and the updated sampling points;

[0046] S454, execute steps S32 to S35, according to the selected robot in the preset time period The root nodes of the forward and reverse trees of other robots that intersect in the robot and the updated sampling points are replanned with the selected robot in the preset time period The motion paths of other robots that intersect in a static environment.

[0047] The above multi-robot dynamic motion planning method based on safe channel sampling first constructs an initial static map, presets the initial points and target points corresponding to each of the multiple robots on the initial static map, constructs a GVG route map based on the initial static map, and then uses The algorithm plans the initial shortest GVG paths of multiple robots on the GVG roadmap and establishes their corresponding safe channels on this basis. It randomly samples sampling points in the safe channels of multiple robots. Then it plans the motion paths of multiple robots from the initial point along the sampling points to the target point on the static map. Finally, it executes the motion paths of multiple robots on the dynamic map and performs dynamic obstacle detection and motion path updates until each robot reaches its corresponding target point. Thus, the motion paths of multiple robots in the dynamic scene map are obtained. This method can complete the path planning of multiple robots in the case of high real-time dynamics and limited workspace, and improve the efficiency and safety of robot operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a flow chart of a multi-robot dynamic motion planning method based on safe channel sampling in one embodiment of the present invention;

[0049] Figure 2is a schematic diagram of a GVG route in one embodiment of the present invention;

[0050] Figure 3 is a schematic diagram of the shortest path of GVG in one embodiment of the present invention;

[0051] Figure 4 is a schematic diagram of a safety channel in one embodiment of the present invention;

[0052] Figure 5 is a schematic diagram of sampling in a safety channel of a robot in one embodiment of the present invention;

[0053] Figure 6 is a schematic diagram of initial paths of multiple robots planned in a static environment in one embodiment of the present invention;

[0054] Figure 7 is a schematic diagram of a process of planning motion paths of multiple robots in a dynamic scene in one embodiment of the present invention;

[0055] Figure 8 is a schematic diagram of path interference when multiple robots move in a dynamic environment in one embodiment of the present invention;

[0056] Fig. 9 is a schematic diagram of obstacles existing during the movement of the robot in a dynamic scene in one embodiment of the present invention;

[0057] Fig.10 1 is a schematic diagram of MATLAB-Vrep dynamic simulation in one embodiment of the present invention, wherein (a) is a trajectory diagram calculated by MATLAB, and (b) is a physical simulation diagram obtained by Vrep. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings.

[0059] See also Figure 1 , a multi-robot dynamic motion planning method based on safe channel sampling, the method comprises the following steps:

[0060] S1. Build an initial static map based on all obstacles and boundaries in the static environment, preset the initial points and target points corresponding to multiple robots on the initial static map, build a GVG route map based on the initial static map, and use The algorithm plans the initial shortest GVG paths for multiple robots on the GVG roadmap.

[0061] Specifically, first set obstacles in a static environment and record the set of obstacles as , is the number of obstacles, and the initial static map is obtained. The starting point and target point of each robot are set on the initial static map, and the generalized Voronoi diagram, i.e., the GVG roadmap, is established by using the incremental construction method. The specific implementation steps are as follows:

[0062] In the initial static map, coordinate points are uniformly taken in the non-obstacle area, assuming From the coordinate point x to the The shortest distance to obstacles, that is, setting:

[0063] ,

[0064] in, It is an obstacle Points on the boundary, set The direction is from point x to .

[0065] The GVG roadmap established is as follows Figure 2 As shown, Figure 2 In the figure, the black solid lines represent the map boundaries and obstacles, the irregular curves represent the established GVG roadmap, the solid points represent the initial positions of the three robots, and the five-pointed stars represent the target positions of the three robots.

[0066] After getting the GVG roadmap, use The algorithm finds the shortest GVG path for each robot as follows:

[0067] 1) Set the initial position of each robot , Target location ,in , is the number of robots;

[0068] 2) Use existing GVG in the roadmap The algorithm finds the initial path and discretizes the initial path to obtain the initial shortest GVG path for each robot, such as Figure 3 shown.

[0069] S2. Establish corresponding safety channels for the multiple robots according to their respective initial shortest GVG paths, and randomly sample the multiple robots in the safety channels to obtain sampling points.

[0070] Furthermore, corresponding safety channels are established according to the initial shortest GVG paths of the multiple robots. Specifically, each node on the initial shortest GVG path of each robot is taken as the center of the circle, and a circle is drawn with the radius of the distance from each node to the nearest obstacle, thereby forming a safety channel corresponding to each robot.

[0071] Specifically, find the distance from each node on the robot's initial shortest GVG path to the nearest obstacle, draw a circle with each node as the center and the distance from each node to the nearest obstacle as the radius, and establish a safe channel for each robot's initial shortest GVG path. The safe channel is as follows: Figure 4 shown.

[0072] Set the total number of sampling points to , for each robot in Figure 4 Random sampling is performed in the security channel in, and the set of sampling points is obtained as (See Figure 5 ), that is, There are a total of n sampling points in , which are obtained after m robots perform random sampling in their respective corresponding safety channels.

[0073] S3, use bidirectional The algorithm plans the motion paths of multiple robots on a static map, from the initial point along the sampling points to the target point.

[0074] Furthermore, S3 specifically includes the following:

[0075] S31, preset total number of robots, sampling radius, initial path cost of each robot, forward tree and reverse tree of each robot, unexplored set of each tree, explored set of each tree, total number of sampling times of each tree.

[0076] S32, The initial point of the robot and target point As forward trees The root node and reverse tree The root node of The initial point of the robot Put it in the forward tree In the explored set, the sampling points and target points Put it in the forward tree In the unexplored set of The robot's target point Inverted tree In the explored set, the sampling point and the The initial point of the robot Inverted tree in the unexplored collection.

[0077] S33, for Forward tree of a robot and reverse tree The n-th sampling is performed alternately, and the unexplored set and the explored set corresponding to the forward tree and the reverse tree after the n-th sampling are updated.

[0078] Furthermore, Forward tree of a robot Taking the nth sampling and updating the unexplored set and the explored set corresponding to the nth sampling of the forward tree as an example, the process is described as follows:

[0079] S331, for Forward tree of a robot Perform the nth sampling, select the corresponding explored sampling point with the lowest cumulative path cost from the explored set of the forward tree, draw a circle with the selected explored sampling point as the center and the preset sampling radius r, and Unexplored collection of The unexplored sampling points are divided out, and the unexplored sampling points are used as the unexplored subset obtained after the nth sampling.

[0080] It should be noted that the cumulative path cost refers to the sum of the straight-line path costs between all nodes in the explored set from the root node to the current node. Forward tree of a robot When the first sampling is performed, there is only one initial point in the explored set of the forward tree. At this time, the cumulative path cost is zero. With the initial point as the center, a circle with a preset sampling radius r is drawn from the forward tree. Unexplored collection of Unexplored sampling points are divided out, and the unexplored sampling points are used as the unexplored subset obtained after the first sampling.

[0081] S332, calculate the forward tree Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding lowest path cost point in the explored set is selected. If there is no obstacle between the lowest path cost point and the corresponding unexplored sampling point, the lowest path cost point is connected to the corresponding unexplored sampling point, thereby obtaining all unexplored sampling points connected to the lowest path cost point after the nth sampling of the forward tree.

[0082] Furthermore, in S332, the forward tree is calculated Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding minimum path cost points in the explored set are as follows:

[0083] S3321. Select an unexplored sampling point at random from the unexplored subset obtained after the n-th sampling of the forward tree, draw a circle with a preset sampling radius and the selected unexplored sampling point as the center, divide the explored sampling points from the explored set obtained after the n-th sampling of the forward tree, and use the divided explored sampling points as the explored subset corresponding to the unexplored sampling points selected after the n-th sampling of the forward tree.

[0084] S3322, calculate the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the explored subset corresponding to the unexplored sampling point selected after the forward tree is sampled for the nth time, and the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the forward tree. The cumulative path cost between the root nodes of , the explored sampling point corresponding to the minimum sum of the straight path cost and the cumulative path cost is taken as the minimum path cost point corresponding to the selected unexplored sampling point;

[0085] ,

[0086] in, ;

[0087] In the formula, represents the unexplored subset obtained after the nth sampling of the forward tree, Indicates that the subset has never been explored An unexplored sampling point randomly selected from Indicates the selected unexplored sampling points The corresponding explored subset, express One of the explored sampling points in Indicates from To the forward tree The cumulative path cost of the root node, Indicates from arrive The straight-line path cost, express The point with the lowest path cost.

[0088] S3323. Check whether there is an obstacle between the minimum path cost point and the corresponding unexplored sampling point. If there is no obstacle, connect the minimum path cost point and the corresponding unexplored sampling point.

[0089] It should be noted that it is checked whether there are obstacles between the minimum path cost point and the corresponding unexplored sampling point. If there are obstacles, the corresponding explored sampling point with the second lowest sum of the straight line path cost and the cumulative path cost is selected as the minimum path cost point, and so on.

[0090] S3324, select another unexplored sampling point from the unexplored subset obtained after the n-th sampling of the forward tree, until all the unexplored sampling points in the unexplored subset obtained after the n-th sampling of the forward tree are selected, and repeat steps S3321 and S3323 to obtain the forward tree. The lowest path cost point corresponding to each unexplored sampling point in the unexplored subset after the nth sampling.

[0091] The same method as above can be used to Reverse tree of robots Perform the nth sampling and update the unexplored set corresponding to the nth sampling of the reverse tree. The specific process will not be repeated here.

[0092] S333, using all the unexplored sampling points connected to the minimum path cost point after the n-th sampling of the forward tree, to update the unexplored set and the explored set corresponding to the n-th sampling of the forward tree.

[0093] Further, S333 is specifically: using all the unexplored sampling points connected to the minimum path cost point after the nth sampling of the forward tree to replace the original explored sampling points in the explored set after the nth sampling of the forward tree, and deleting all the unexplored sampling points connected to the minimum path cost point after the nth sampling from the unexplored set after the nth sampling of the forward tree.

[0094] S34, determine the Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination condition is met, if the sampling termination condition is not met, step S33 is executed to Forward tree of a robot and reverse tree Alternately perform the n+1th sampling. Otherwise, if the sampling termination condition is met, the sampling is terminated and the n+1th sampling is output. The motion path of a robot from the initial point along the sampling point to the target point in a static environment.

[0095] Further, in S34, it is determined that Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination conditions are met, specifically including:

[0096] S341, check After the nth sampling, the robot Updated explored set and reverse tree Whether there is at least one identical explored sampling point in the updated explored set.

[0097] S342, check After the nth sampling, the robot reaches the preset total number of sampling times.

[0098] S343, if the forward tree after the nth sampling Updated explored set and reverse tree There is no at least one identical explored sampling point in the updated explored set, and the If the robot does not reach the preset total number of sampling times after the nth sampling, the sampling termination condition is not met.

[0099] S344, if the forward tree after the nth sampling Updated explored set and reverse tree If there is at least one identical explored sampling point in the updated explored set, the sampling termination condition is met.

[0100] Further, if the sampling termination condition is met in S34, the sampling is terminated and the first The motion path of a robot from the initial point along the sampling point to the target point in a static environment includes:

[0101] Jordi After the nth sampling, the robot Updated explored set and reverse tree There is only one identical explored sampling point in the updated explored set, so the first A robot moves along the sampling point from the initial point to the target point in a static environment; or

[0102] Jordi After the nth sampling, the robot Updated explored set and reverse tree There are multiple identical explored sampling points in the updated explored set. At this time, the cumulative path costs from each explored sampling point to the initial point and the target point are calculated and summed up. The corresponding explored sampling point with the lowest cumulative path cost is selected, thus obtaining the first The motion path of a robot from the initial point along the sampling point to the target point in a static environment.

[0103] It should be noted that if After the nth sampling, the robot Updated explored set and reverse tree If there is no identical explored sampling point in the updated explored set and the current sampling times reaches the preset total sampling times, then If the path planning of a robot in a static environment fails, it is necessary to replan the motion path from the initial point to the target point in the same way as described above.

[0104] S35, repeat steps S32 to S34, plan the The motion paths of the robots in the static environment are calculated until the motion paths corresponding to the robot's arrival at the target point along the sampling points are planned.

[0105] See also Figure 6 , Figure 6 It is a schematic diagram of initial paths of multiple robots planned in a static environment according to an embodiment of the present invention.

[0106] S4. Obtain a dynamic map in a real scene, execute the motion paths of multiple robots obtained on the static map on the dynamic map, and perform dynamic obstacle detection and motion path update during the movement of each robot until each robot reaches its corresponding target point, thereby obtaining the motion paths of multiple robots in the dynamic map.

[0107] Furthermore, S4 specifically includes the following:

[0108] S41. Obtain a dynamic map in a real scene and preset a first distance and the second distance , the motion paths obtained by multiple robots on the static map are executed on the dynamic map, and multiple robots move from their respective initial points to the next adjacent node and reach their respective current positions.

[0109] Specifically, since the scene-based map is dynamic, it is necessary to establish the motion paths of the multiple robots in the dynamic map based on the motion paths obtained by each of the multiple robots on the static map.

[0110] Get a dynamic map of the real scene and preset the first distance and the second distance , execute the motion paths of multiple robots on the dynamic map, and multiple robots start from their respective starting points Move to the next adjacent node and reach their respective current positions The obstacles and boundaries in the dynamic map and the initial static map in the real scene, the initial point and target point of each robot, and the sampling points based on the safe channel remain unchanged. The only difference is that in the dynamic map, multiple robots run at the same time, and there may be interference between them. In addition, other unknown obstacles may appear.

[0111] S42, randomly selecting a robot from the plurality of robots, calculating the distance between the current position of the selected robot and the target point, and summing the distance between the current position of the selected robot and the target point and the first distance Compare, if the distance between the current position of the selected robot and the target point is greater than the first distance ,Right now , then execute step S43, otherwise, execute S48.

[0112] S43, calculating the distances between the selected robot and the obstacles or other robots respectively, and adding the distances between the selected robot and the obstacles or other robots respectively to the second distance Compare, if the distance between the selected robot and the obstacle or other robots is greater than the second distance ,Right now , execute step S46, otherwise, execute S44.

[0113] S44: Determine whether the path of the selected robot is within a preset time period, and whether the path of the selected robot is within a preset time period. Check whether they intersect. If not, execute S46. If so, execute S45.

[0114] Furthermore, if the path of the selected robot is within a preset time period and is in contact with the obstacle or the path of another robot The inner parts do not intersect, which can be expressed by the formula:

[0115] ;

[0116] In the formula, For the A robot in The coordinates after time, For the A robot in The coordinates after time, , is a vector symbol, is the cross product symbol.

[0117] S45, the selected robot and the selected robot in a preset time period The robots that intersect each other update their motion paths in a static environment and use the updated motion paths as their corresponding current paths.

[0118] Furthermore, in S45, the selected robot and the selected robot in a preset time period The other robots that intersect each other in the static environment update their motion paths separately, including the following:

[0119] S451, preset third distance , so that the path of the selected robot and the paths of other robots are in a preset time period The intersection point is the center, with the third distance Draw a circle with radius , delete all sampling points within the circle, and get the updated sampling points.

[0120] Specifically, if the path of the selected robot is within a preset time period and is in contact with an obstacle or other robot's path Internal intersection, that is , at this time, you need to re-plan the paths of the selected robot and the robots that intersect with the selected robot's path: Preset the third distance , with the intersection point as the center and the third distance Draw a circle for the search radius and delete all sampling points within the circle to obtain updated sampling points.

[0121] It should be noted that in order to avoid the robot's re-planned path from colliding again and the robot's current position node being accidentally deleted, the third distance is preset. When considering the radius of the robot, the position of the robot, and the preset time period, The positions of other robots that may intersect with the inner path, specifically: from a preset time period The robot closest to the intersection point is selected from the robots whose inner paths may intersect, and the distance from the edge of the robot closest to the intersection point to the intersection point is measured. The minimum value of should be greater than the radius of the robot body. The maximum value of should be smaller than the distance from the edge of the robot closest to the intersection point to the intersection point.

[0122] S452: The current position and target point of the selected robot are used as the root nodes of the forward tree and the reverse tree of the selected robot respectively, and the nodes that are connected to the selected robot in the preset time period are connected to the forward tree and the reverse tree respectively. The current positions and target points of other robots that intersect within the robot are used as the root nodes of the corresponding forward tree and reverse tree of the other robots.

[0123] S453, executing steps S32 to S35, replanning the motion path of the selected robot in the static environment according to the root nodes of the forward tree and the reverse tree of the selected robot and the updated sampling points;

[0124] S454, execute steps S32 to S35, according to the selected robot in the preset time period The root nodes of the forward and reverse trees of other robots that intersect in the robot and the updated sampling points are replanned with the selected robot in the preset time period The motion paths of other robots that intersect in a static environment.

[0125] S46, the selected robot moves one step forward to the next node along the current path and updates the current position at the same time;

[0126] S47, selecting another robot from the multiple robots again until all robots are selected, repeating steps S42 to S46, so that each selected robot moves one step from the current position along the next node of the current path corresponding to each robot, and updating the current position at the same time, and executing S42;

[0127] S48. Determine whether the selected robot has reached the corresponding target point, and obtain the corresponding motion path of the selected robot in the dynamic map.

[0128] If the distance between the current position of the selected robot and the target point is less than or equal to the first distance ,Right now: , determine whether the selected robot has reached the corresponding target point, and obtain the corresponding motion path of the selected robot in the dynamic map.

[0129] The following specific simulation experiment is used to verify in detail the multi-robot dynamic motion planning method based on safe channel sampling proposed in the present invention. The specific experimental settings are as follows:

[0130] 1) The mathematical simulation experiment was carried out in MATLAB R2022a. The size of the dynamic scene map was set to X=Y=500m. The square solid box was a static obstacle, and the square dotted hollow box obstacle was a dynamic obstacle (such as Figure 6 ), the starting point coordinates of the three robots are [80,80; 300,30; 50,450], and the end point coordinates are [460, 350; 160, 460; 420,180], respectively. The sampling radius is set to ,in, is the total number of sampling points, and the obstacle moving speed is The experimental results are as follows Figure 2-Figure 6 , Figure 8-Figure 9 As shown, the experimental results verify that the multi-robot dynamic motion planning method based on safe channel sampling in this application has good stability and high search efficiency.

[0131] 2) Physical simulation of multi-robot dynamic programming in MATLAB-Vrep environment, such as Fig.10 As shown in the figure, the feasibility of the proposed planning method is verified.

[0132] The above multi-robot dynamic motion planning method based on safe channel sampling first constructs an initial static map, presets the initial points and target points corresponding to each of the multiple robots on the initial static map, constructs a GVG route map based on the initial static map, and then uses The algorithm plans the initial shortest GVG paths of multiple robots on the GVG roadmap and establishes their corresponding safe channels on this basis. It randomly samples sampling points in the safe channels of multiple robots. Then it plans the motion paths of multiple robots from the initial point along the sampling points to the target point on the static map. Finally, it executes the motion paths of multiple robots on the dynamic map and performs dynamic obstacle detection and motion path updates until each robot reaches its corresponding target point, thereby obtaining the motion paths of multiple robots in the dynamic map. This method can complete the path planning of multiple robots in the case of high real-time dynamics and limited workspace, and improve the efficiency and safety of robot operation.

[0133] The above is a detailed introduction to a multi-robot dynamic motion planning method based on safe channel sampling provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A multi-robot dynamic motion planning method based on safe channel sampling, It is characterized in that The method includes: S1. Build an initial static map based on all obstacles and boundaries in the static environment, preset the initial points and target points corresponding to multiple robots on the initial static map, build a GVG route map based on the initial static map, and use The algorithm plans the initial shortest GVG paths for multiple robots on the GVG roadmap; S2, establishing corresponding safety channels for the multiple robots according to their respective initial shortest GVG paths, and randomly sampling the multiple robots in the safety channels to obtain sampling points; S3, use bidirectional The algorithm plans the motion paths of multiple robots from the initial point along the sampling points to the target point on the static map; S4, obtaining a dynamic map in a real scene, executing the motion paths of the multiple robots obtained on the static map on the dynamic map, and performing dynamic obstacle detection and motion path update during the motion of each robot until each robot reaches its corresponding target point, thereby obtaining the motion paths of the multiple robots in the dynamic map; S4 specifically includes the following: S41. Obtain a dynamic map in a real scene and preset a first distance and the second distance , executing the motion paths obtained by multiple robots on the static map on the dynamic map, multiple robots move from their respective initial points to the next adjacent node and reach their respective current positions; S42, randomly selecting a robot from the plurality of robots, calculating the distance between the current position of the selected robot and the target point, and summing the distance between the current position of the selected robot and the target point and the first distance Compare, if the distance between the current position of the selected robot and the target point is greater than the first distance , then execute step S43, otherwise, execute S48; S43, calculating the distances between the selected robot and the obstacles or other robots respectively, and adding the distances between the selected robot and the obstacles or other robots respectively to the second distance Compare, if the distance between the selected robot and the obstacle or other robots is greater than the second distance , execute step S46, otherwise, execute S44; S44: Determine whether the path of the selected robot is within a preset time period, and whether the path of the selected robot is within a preset time period. Check whether they intersect. If not, execute S46. If they intersect, execute S45. S45, the selected robot and the selected robot in a preset time period The robots that intersect each other update their motion paths in a static environment and use the updated motion paths as their corresponding current paths; S46, the selected robot moves one step forward to the next node along the current path and updates the current position at the same time; S47, selecting another robot from the multiple robots again until all robots are selected, repeating steps S42 to S46, so that each selected robot moves one step from the current position along the next node of the current path corresponding to each robot, and updating the current position at the same time, and executing S42; S48. Determine whether the selected robot has reached the corresponding target point, and obtain the corresponding motion path of the selected robot in the dynamic map.

2. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 1, It is characterized in that In S2, the corresponding safety channels are established according to the initial shortest GVG paths of the multiple robots. Specifically, each node on the initial shortest GVG path of each robot is taken as the center of the circle, and the radius of the distance from each node to the nearest obstacle is used to make a circle, thereby forming the corresponding safety channel of each robot.

3. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 2, It is characterized in that S3 specifically includes the following: S31, preset total number of robots, sampling radius, initial path cost of each robot, forward tree and reverse tree of each robot, unexplored set of each tree, explored set of each tree, total number of sampling times of each tree; S32, The initial point of the robot and target point As forward trees The root node and reverse tree The root node of The initial point of the robot Put it in the forward tree In the explored set, the sampling points and target points Put it in the forward tree In the unexplored set of The robot's target point Inverted tree In the explored set, the sampling point and the The initial point of the robot Inverted tree in the unexplored collection of; S33, for Forward tree of a robot and reverse tree Alternately perform the nth sampling, and update the unexplored set and explored set corresponding to the forward tree and the reverse tree after the nth sampling; S34, determine the Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination condition is met, if the sampling termination condition is not met, step S33 is executed to Forward tree of a robot and reverse tree Alternately perform the n+1th sampling. Otherwise, if the sampling termination condition is met, the sampling is terminated and the n+1th sampling is output. The motion path of a robot from the initial point along the sampling point to the target point in a static environment; S35, repeat steps S32 to S34, plan the The motion paths of the robots in the static environment are calculated until the motion paths corresponding to the robot's arrival at the target point along the sampling points are planned.

4. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 3, It is characterized in that S33 Forward tree of a robot Perform the nth sampling and update the unexplored set and explored set corresponding to the nth sampling of the forward tree, which are specifically as follows: S331, for Forward tree of a robot Perform the nth sampling, select the corresponding explored sampling point with the lowest cumulative path cost from the explored set of the forward tree, draw a circle with the preset sampling radius and take the selected explored sampling point as the center, and then select the explored sampling point from the forward tree. Divide the unexplored sampling points in the unexplored set, and use the divided unexplored sampling points as the unexplored subset after the nth sampling; S332, calculate the forward tree Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding lowest path cost point in the explored set, if there is no obstacle between the lowest path cost point and the corresponding unexplored sampling point, connect the lowest path cost point and the corresponding unexplored sampling point, thereby obtaining all unexplored sampling points connected to the lowest path cost point after the nth sampling of the forward tree; S333, using all the unexplored sampling points connected to the minimum path cost point after the n-th sampling of the forward tree, to update the unexplored set and the explored set corresponding to the n-th sampling of the forward tree.

5. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 4, It is characterized in that Calculate the forward tree in S332 Each unexplored sampling point in the unexplored subset obtained after the nth sampling is in the forward tree The corresponding minimum path cost points in the explored set are as follows: S3321, randomly selecting an unexplored sampling point from the unexplored subset obtained after the n-th sampling of the forward tree, drawing a circle with a preset sampling radius and taking the selected unexplored sampling point as the center, dividing the explored sampling points from the explored set obtained after the n-th sampling of the forward tree, and using the divided explored sampling points as the explored subset corresponding to the unexplored sampling points selected after the n-th sampling of the forward tree; S3322, calculate the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the explored subset corresponding to the unexplored sampling point selected after the forward tree is sampled for the nth time, and the straight-line path cost between each explored sampling point and the selected unexplored sampling point in the forward tree. The cumulative path cost between the root nodes of , the explored sampling point corresponding to the minimum sum of the straight path cost and the cumulative path cost is taken as the minimum path cost point corresponding to the selected unexplored sampling point; S3323, check whether there is an obstacle between the minimum path cost point and the corresponding unexplored sampling point, and if there is no obstacle, connect the minimum path cost point and the corresponding unexplored sampling point; S3324, select another unexplored sampling point from the unexplored subset obtained after the n-th sampling of the forward tree, until all the unexplored sampling points in the unexplored subset obtained after the n-th sampling of the forward tree are selected, and repeat steps S3321 and S3323 to obtain the forward tree. The lowest path cost point corresponding to each unexplored sampling point in the unexplored subset after the nth sampling.

6. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 5, It is characterized in that S333 is specifically: using all the unexplored sampling points connected to the minimum path cost point after the nth sampling of the forward tree to replace the original explored sampling points in the explored set after the nth sampling of the forward tree, and deleting all the unexplored sampling points connected to the minimum path cost point after the nth sampling from the unexplored set after the nth sampling of the forward tree.

7. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 6, It is characterized in that S34 determines Forward tree of a robot and reverse tree After the nth sampling, whether the preset sampling termination conditions are met, specifically including: S341, check After the nth sampling, the robot Updated explored set and reverse tree Whether there is at least one identical explored sampling point in the updated explored set; S342, check Whether the robot reaches the preset total number of sampling times after the nth sampling; S343, if the forward tree after the nth sampling Updated explored set and reverse tree There is no at least one identical explored sampling point in the updated explored set, and the If the robot does not reach the preset total number of sampling times after the nth sampling, the sampling termination condition is not met; S344, if the forward tree after the nth sampling Updated explored set and reverse tree If there is at least one identical explored sampling point in the updated explored set, the sampling termination condition is met.

8. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 7, It is characterized in that If the sampling termination condition is met in S34, the sampling is terminated and the output is The motion path of a robot from the initial point along the sampling point to the target point in a static environment includes: Jordi After the nth sampling, the robot Updated explored set and reverse tree There is only one identical explored sampling point in the updated explored set, so the first A robot moves along the sampling point from the initial point to the target point in a static environment; or Jordi After the nth sampling, the robot Updated explored set and reverse tree There are multiple identical explored sampling points in the updated explored set. At this time, the cumulative path costs from each explored sampling point to the initial point and the target point are calculated and summed up. The corresponding explored sampling point with the lowest cumulative path cost is selected, thus obtaining the first The motion path of a robot from the initial point along the sampling point to the target point in a static environment.

9. The multi-robot dynamic motion planning method based on safe channel sampling as claimed in claim 8, It is characterized in that In S45, the selected robot and the selected robot are in a preset time period. The other robots that intersect each other in the static environment update their motion paths separately, including the following: S451, preset third distance , so that the path of the selected robot and the paths of other robots are in a preset time period The intersection point is the center, with the third distance Draw a circle with the radius as the input, delete all sampling points within the circle, and obtain the updated sampling points; S452: The current position and target point of the selected robot are used as the root nodes of the forward tree and the reverse tree of the selected robot respectively, and the nodes that are connected to the selected robot in the preset time period are connected to the forward tree and the reverse tree respectively. The current positions and target points of other robots that intersect with the robot are used as the root nodes of the corresponding forward and reverse trees of other robots; S453, executing steps S32 to S35, replanning the motion path of the selected robot in the static environment according to the root nodes of the forward tree and the reverse tree of the selected robot and the updated sampling points; S454, execute steps S32 to S35, according to the selected robot in the preset time period The root nodes of the forward and reverse trees of other robots that intersect in the robot and the updated sampling points are replanned with the selected robot in the preset time period The motion paths of other robots that intersect in a static environment.