A task node partitioning method for multi-robot cooperative traversal
By mapping task nodes to the angle domain and introducing weight coefficients to adjust clustering results in multi-robot path planning, and combining the ant colony algorithm to optimize path planning, the problem of unbalanced load in the traditional K-means algorithm is solved, achieving the effect of load balancing and optimal task time.
Patent Information
- Application Number
- CN202311483842.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-07
AI Technical Summary
In existing multi-robot path planning methods, the traditional K-means algorithm cannot guarantee the load balance of the robot cluster and the overall large task time when dividing task nodes, resulting in low path planning efficiency.
By mapping task nodes to the angle domain and introducing weight coefficients to adjust the clustering results, combined with ant colony optimization algorithm to optimize path planning, the robot's load balance and task time are ensured to be optimal.
It improves robot load balancing and reduces overall task time, thereby increasing the efficiency of multi-robot path planning.
Smart Images

Figure CN117452945B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot path planning technology, specifically a task node partitioning method for multi-robot collaborative traversal. Background Technology
[0002] Multi-robot path planning, simply put, is a technique for finding a path that meets the requirements of multiple mobile robots. As research into path planning technology deepens and the complexity of application scenarios increases, single robots are increasingly unable to meet the needs of actual tasks. Therefore, research on multi-robot path planning is of great value. Existing research on multi-robot path planning methods mainly follows two approaches: one is to plan multiple robots as a whole, and the other is to divide the planning task of the entire robot swarm into several independent planning tasks, transforming the multi-robot path planning task into a single-robot task through a divide-and-conquer approach. Of the two methods, the second approach, being based on single-robot planning technology, has a good transfer effect on existing research results, thus reducing research difficulty. Currently, many domestic and international scholars and experts have made many breakthroughs in this area, proposing and improving many algorithms to solve the problems existing in the application of path planning technology. However, many problems still need further research, such as the problem of task node partitioning. Currently, the mainstream approach is to use clustering algorithms for classification, but general clustering algorithms lack consideration for the balance of task load between different categories. Therefore, how to consider task load balance when partitioning nodes is a direction worthy of further research.
[0003] Currently, many experts and scholars at home and abroad usually use clustering algorithms for classification in the process of studying task node division in multi-robot path planning problems. Commonly used clustering algorithms include K-means algorithm, support vector machine and greedy algorithm.
[0004] K-means is a commonly used clustering algorithm used to divide samples into k distinct categories. The goal of K-means is to minimize the sum of distances between each sample and the centroid of its nearest category. The basic steps of the algorithm can be summarized as follows: Initially, select k randomly located centroids. Then, assign each sample point to its nearest centroid. For each category, calculate the average distance between its samples and use this average as the new centroid location. Repeat these steps until convergence is achieved (e.g., the centroids no longer change) or a predetermined number of iterations is reached. Compared to other similar algorithms, K-means is widely used in various classification problems due to its simplicity and efficiency. However, K-means also has some drawbacks when used for multi-robot task classification. First, K-means classifies task nodes based on the Euclidean distance between the task node and the centroid, which logically cannot guarantee that the robot performing the task will have a shorter path. Second, the algorithm does not consider the difference in the number of tasks between categories during the classification process, which may not guarantee the balanced load of the robot cluster. Summary of the Invention
[0005] The purpose of this invention is to provide a task node partitioning method for multi-robot collaborative traversal. This method can effectively overcome the shortcomings of the traditional K-means algorithm in solving the problem of multi-robot task node partitioning, such as uneven robot cluster load and large overall task time, thereby improving the efficiency of path planning tasks.
[0006] The main idea of this invention is: First, consider all task nodes in the angular domain. Specifically, using the AGV's initial position as the origin, map all task nodes to the r-θ coordinate system, and then reduce the dimensionality of the task nodes in the r-θ coordinate system to... r On the axis, then to r The task nodes on the axis are initially clustered using the K-Means algorithm. Secondly, to ensure that the different clusters are roughly the same size, this invention uses an adaptive method to further adjust the clustering results. Specifically, a weighting coefficient is calculated based on the relative Euclidean distance between the task node and the robot's starting point, forcing smaller cluster centers to shift towards larger cluster centers.
[0007] The multi-robot path planning problem can be described as follows: there are n task nodes in space that need to be traversed by the robots. j 1 ,j 2 ,...,j nEach task node needs to be traversed exactly once. Multiple robots start from a fixed point. For any one robot, it needs to traverse all assigned task nodes according to certain rules, and then return to the starting point. Assume the moving robot speed is 1 m / s, and let the m-th robot traverse... n The task nodes are Then the time it takes to complete the task is t m The definition is shown in equation (1), where Let 's' be the robot's starting point and the task node. The Euclidean distance between them; the total time T for the entire robot cluster to complete the traversal task is defined as shown in equation (2).
[0008]
[0009] In the traditional K-means algorithm, the classification metric is mainly the Euclidean distance between the task node and the class centroid. Although this can ensure that the classification results are clustered around the class centroid in spatial distribution, it cannot guarantee the quality and balance of the load among multiple robots. This invention first proposes a mapping method based on the angle domain.
[0010] by Figure 1 Taking the example shown, assume there are 8 task nodes in a certain plane, such as Figure 1 (a) The coordinates of the nodes are shown in Table 1: Table 1 Task Node Coordinates
[0011] Figure 1 (b) shows the classification result of the K-means algorithm when K is 2. Although the related path planning algorithm can also solve the related path planning problem based on this classification result (assuming the origin is the robot's starting point), such as Figure 1 As shown in (c), but from Figure 1 As shown in (d), the load of robot 1 is 44.01s, while the load of robot 2 is 20.25s. The difference between the two loads is obviously too large.
[0012] Logically speaking, it is more reasonable for {A1, A2, A3, A4} and {B1, B2, B3, B4} to be placed in two separate categories, because when the two robots complete A4 and B4, they also solve other task nodes along the way, at which point the robots are most efficient.
[0013] To achieve the above classification, we first analyze the commonalities of nodes of the same category. Obviously, nodes of the same category have a high degree of similarity in their angles to the origin. Furthermore, for a certain category of task nodes, the main factor affecting the time taken for that category of tasks is related to the maximum value of the Euclidean distance between all task nodes and the origin, because nodes with smaller distances can generally be solved along the way.
[0014] Based on the above ideas, the main steps of the angle domain-based mapping method proposed in this invention are as follows: Let the coordinates of a certain task node j be ( x , y The robot's starting coordinates are (x s y s Then, according to equation (3), the length of the line connecting it to the origin can be calculated. r′ and the angle between the line connecting them and the horizontal axis. θ′ .
[0015]
[0016] Then map node j to r-θ In the coordinate system, let the result be... j′ Considering the above content, r′ This is not very helpful for clustering, therefore, the task nodes... j′ Again θ Projecting the axis, let the result be... j″ This completes the step of mapping task nodes from the spatial domain to the angular domain. Figure 2 This is a schematic diagram of the angle domain mapping process.
[0017] Figure 3 To solve the problem using the method of the present invention Figure 1 The simulation results of the simplified case shown are from Figure 3 (b) It can be seen that {A1, A2, A3, A4} and {B1, B2, B3, B4} were successfully divided into two categories, and through analysis... Figure 3 The data in (d) shows that the robot's load times were 35.77s and 39.59s, respectively, compared to... Figure 1 As shown in the K-means results, the load balance has been greatly improved. At the same time, according to equation (2), the task completion time of the K-means method and the method of this invention are 44.01s and 39.59s respectively. The experiment verifies the effectiveness of the method in this paper.
[0018] To address the load imbalance problem caused by uneven distribution of task nodes of different categories, this invention rewrites the formula for calculating the coordinates of the category center points in the K-means algorithm. Figure 4 This is a case study of uneven load distribution caused by uneven classification results. Figure 4As shown in (b), the classification results show that although the classification results seem to conform to the path-following property, the number of nodes in category 2 is relatively small compared to category 1. This results in a larger load on robot 1, thus increasing the overall task completion time. In the traditional K-means algorithm, the formula for calculating the center point coordinates of a category is shown in equation (4):
[0019] In equation (4), The coordinates of the category center point, For the first in this category n The coordinates of the task nodes. As can be seen from equation (4), the K-means algorithm does not consider the size of each category when classifying. Therefore, the key to solving the problem is to combine the size factor with the construction of the category centroid.
[0020] The formula for calculating the rewritten category center point in this invention is shown in equation (5):
[0021] In the formula, For the corresponding category n The weight coefficients of the ′ task nodes are calculated using the formula shown in equation (6):
[0022] r n The first spatial distribution calculated according to equation (3) n The length of the line connecting each task node to the robot's starting point. The introduction of weighting coefficients ensures that when faced with uneven classification results, the coordinates of the center point of the smaller category will move slightly closer to the larger category to obtain more task nodes and expand its own scale. Figure 5 The simulation results are shown below after introducing weighting coefficients. The simulation results show that the robot's load balance is achieved and the overall task time is reduced.
[0023] The technical solution adopted by this invention to solve its technical problem is: A task node partitioning method for multi-robot cooperative traversal includes the following steps: S1. Algorithm parameter initialization, including the number of clusters K, the number of task nodes M, and the coordinate data of the task nodes; S2, according to formula (3) Calculate the length of the line connecting task node j to the origin. r′ and the angle between the line connecting them and the horizontal axis. θ′ ; S3. Map all task nodes from the spatial domain to the angular domain; S4. Calculate the weight coefficient of the node according to equation (6);
[0024] r n The spatial distribution calculated according to equation (3) is the first n The length of the line connecting each task node to the robot's starting point; S5. Calculate the cluster centers of the K-means algorithm according to equation (5);
[0025] In the formula, For the corresponding category n The weight coefficients of each task node; S6. Use the basic algorithm for solving the Traveling Salesman Problem (TSP) to perform path planning for different types of task nodes; S7. Return the algorithm result and the program ends.
[0026] Based on the above technical solutions, the following further technical solutions are proposed: Step S6, to solve the Traveling Salesman Problem (TSP) subproblem, requires an optimization method. Common optimization methods include ant colony optimization (ACO), genetic algorithm, and particle swarm optimization (PSO). Considering the advantages of ant colony optimization (ACO) such as logical simplicity and ease of implementation, this invention uses the basic ant colony optimization (ACO) as the solution to the TSP problem.
[0027] Step S3 involves mapping all task nodes from the spatial domain to the angular domain, that is, mapping node j to... r-θ In the coordinate system, the result is j′ , will task node j′ Again θ Projecting the axis, the result is j″ .
[0028] The beneficial effect of this invention is that by mapping the task nodes to be assigned to the angle domain and by introducing weight coefficients to fine-tune the scale balance of the classification results, the overall task time is reduced while ensuring the robot's load balance. Attached Figure Description
[0029] The present invention will be further described below with reference to the accompanying drawings and embodiments: Figure 1. Simplified case study (K-means method); Figure 2. Schematic diagram of the angle domain mapping process; Figure 3. Simplified case (method of the present invention); Figure 4. Schematic diagram of cases with uneven classification results; Figure 5. Experimental results with weighting coefficients introduced; Figure 6. Flowchart of the method proposed in this invention; Figure 7 Simulation results of K-means method (scale 10); Figure 8. Simulation results of the method of the present invention (scale 10); Figure 9 Simulation results of K-means method (scale 30); Figure 10 Simulation results of the method of the present invention (scale 30); Figure 11 Simulation results of K-means method (scale 50); Figure 12 Simulation results of the method of the present invention (scale 50).
[0030] A task node partitioning method for multi-robot cooperative traversal includes the following steps: S1. Algorithm parameter initialization, including the number of clusters K, the number of task nodes M, and the coordinate data of the task nodes; S2, according to formula (3) Calculate the length of the line connecting task node j to the origin. and the angle between the line connecting them and the horizontal axis. ; S3. Map all task nodes from the spatial domain to the angular domain, that is, map task node j to the r-θ coordinate system to obtain task node j′, and then project task node j′ onto the θ axis to obtain task node j″. S4. Calculate the weight coefficient of the node according to equation (6);
[0031] The length of the line connecting the nth task node distributed in space and the robot's starting point is calculated according to equation (3); S5. Calculate the cluster centers of the K-means algorithm according to equation (5);
[0032] In the formula, For the corresponding category The weight coefficients of each task node; S6. Use the basic algorithm for solving the Traveling Salesman Problem (TSP) to perform path planning for different types of task nodes; S7. Return the algorithm result and the program ends.
[0033] The flowchart of the method proposed in this invention is as follows: Figure 6 As shown.
[0034] The beneficial effect of this invention is that by mapping the task nodes to be assigned to the angle domain and by introducing weight coefficients to fine-tune the scale balance of the classification results, the overall task time is reduced while ensuring the robot's load balance.
[0035] The effects of this invention can be further illustrated by the following simulation experiments: To verify the correctness and rationality of this method, Python was used to randomly generate task models with 10, 30, and 50 task nodes and 2 categories. Task classification simulations were then performed on both the traditional K-means algorithm and the proposed method. The traditional ant colony algorithm was used to perform path planning on the classification results. The simulation results were statistically analyzed. Simulation data are shown in Table 2, and the simulation results are as follows: Figures 7-12 As shown.
[0036] Table 2 Simulation Results Data
[0037] As shown in Table 2, the load differences of the method of this invention under the three scales are 53, 1, and 4, which are significantly better than the load differences of 153, 145, and 140 of the K-means algorithm. Meanwhile, the total time of this invention is 279, 348, and 363, which are also better than the results of 322, 422, and 447 obtained by the K-means algorithm. Therefore, the method proposed in this invention has a significant advantage over the K-means algorithm in terms of both load balancing and overall task time.
[0038] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Any person skilled in the art can make many possible variations and modifications to the technical solutions of the present invention, or modify them into equivalent embodiments, without departing from the scope of the present invention. Therefore, any simple modifications, equivalent substitutions, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention, without departing from the scope of the present invention, shall still fall within the protection scope of the present invention.
Claims
1. A method for partitioning task nodes for multi-robot cooperative traversal, characterized in that... Includes the following steps: S1. Algorithm parameter initialization, including the number of clusters K, the number of task nodes M, and the coordinate data of the task nodes; S2. Calculate the length r′ of the line connecting task node j and robot starting point and the angle θ′ between the line and the horizontal axis according to formula (3); (3) The coordinates of task node j are (x, y), and the robot's starting coordinates are (x, y). s y s ), S3. Map all task nodes from the spatial domain to the angular domain, that is, map task node j to the r-θ coordinate system to obtain task node j′, and then project task node j′ onto the θ axis to obtain task node j″. S4. Calculate the weight coefficient of the node according to equation (6); (6) r n Let be the length of the line connecting the nth task node distributed in space and the robot's starting point, calculated according to equation (3); S5. Calculate the cluster centers of the K-means algorithm according to equation (5). (5) In the formula, For the corresponding category The weight coefficients of each task node; S6. The basic algorithm for solving the TSP problem is to use the ant colony algorithm to plan paths for different types of task nodes. S7. Return the algorithm result and the program ends.
Citation Information
Patent Citations
Load balance and Lin-Kernighan (LK) algorithm based vehicle route planning method
CN102136104A
Multi-mechanical-arm collaborative offline programming method based on RoboDK
CN107486858A
Staged multi-base unmanned aerial vehicle task allocation and flight path planning method
CN113671985A
Primary-secondary multi-unmanned-platform task allocation and collaborative planning method based on region segmentation
CN116627128A
