A multi-robot containment method
Through the multi-robot containment method based on centralized software architecture and shortest path algorithm, the problems of low multi-robot containment efficiency and poor fault tolerance are solved, and an efficient and fault-tolerant containment effect is achieved.
Patent Information
- Application Number
- CN202410385471.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-04-01
AI Technical Summary
It is difficult to realize multi-robot containment intelligently with existing technology, especially in multi-robot systems, the containment efficiency is low and the fault tolerance is poor.
A robot containment method based on centralized software architecture and shortest path algorithm is adopted. The control system issues target points and selects robots to participate in the task. The shortest path algorithm is used to calculate the shortest path, and the path is intercepted by calculating geometric knowledge to calculate the containment point. , ensuring that all robots arrive at the containment point at the same time.
The time complexity is optimized, real-time mapping is not required, and containment efficiency is improved. Moreover, because the centralized software is independent of the robot itself, it has good fault tolerance and can continue to complete the task when a certain robot is damaged.
Smart Images

Figure CN118329034B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of robots, and in particular relates to a multi-robot containment method. Background Art
[0002] The application of containment in the field of robots includes intelligent disposal, such as attacking or monitoring suspects. How to achieve multi-robot containment intelligently is a hot topic in the field of unmanned equipment.
[0003] The main technologies used to solve the containment problem in a multi-robot system are technologies based on distributed systems and centralized systems. The containment technology under the distributed system mainly involves technologies such as image processing, real-time mapping and path planning. A ground robot equipped with a camera and a processor is used to search for targets. One of the robots is additionally equipped with a laser radar. The laser radar is used to build an environmental map and transmit the map to other robots. All robots obtain image information of the surrounding environment through the camera and process it. The pre-trained detection and tracking algorithm is used to identify the designated target object among multiple objects, and it is tracked for a long time. The data is transmitted between the robots through a wireless network; a robot detects a target and tracks it, and sends the target position information to other ground robots in real time for real-time path planning and capture. The containment technology under the centralized system mainly involves technologies or theories such as centralized command and control systems, road network construction, satellite navigation positioning, shortest path algorithms and computational geometry. The containment target is issued through the command and control system, and the robot that performs the task is called to perform the containment operation on the constructed road network according to the planned route. Route planning involves the shortest path algorithm and computational geometry principles. The present invention is mainly used in the robot single-point containment problem. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] The technical problem to be solved by the present invention is how to provide a multi-robot containment method to solve the problem of realizing multi-robot containment intelligently.
[0006] (II) Technical solution
[0007] In order to solve the above technical problems, the present invention proposes a multi-robot containment method, which comprises the following steps:
[0008] S1. The command system sends the target point and selects the robot to participate in the task. It calls the shortest path algorithm to calculate the shortest path from each robot to the target and sends it to the robot. The robot can then move toward the target along the shortest path.
[0009] S2, intercept the path and calculate the containment point through computational geometry knowledge, so that each robot reaches its own containment point to capture and dispose of the target;
[0010] S3. Calculate the length of the driving route according to the path and the containment point, and then calculate the speed of each robot so that all robots arrive at their respective containment points at the same time.
[0011] (III) Beneficial effects
[0012] The present invention proposes a multi-robot containment method. The present invention adopts a robot-containment technology based on a centralized software architecture and a shortest path algorithm. Compared with a distributed containment algorithm, it does not require real-time mapping, thereby optimizing the time complexity. In addition, the centralized software used in the present invention is independent of the robot itself, and the containment task is not affected by the damage of a certain robot. It has good fault tolerance and has been applied in actual scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a schematic diagram of the execution flow of the containment algorithm of the present invention;
[0014] Figure 2 Give an example of a weighted graph for the shortest path algorithm;
[0015] Figure 3 This is a schematic diagram of the path interception algorithm;
[0016] Figure 4 For example - road network information;
[0017] Figure 5 For example - preliminary route planning;
[0018] Figure 6 For example - containment effect. DETAILED DESCRIPTION
[0019] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0020] The present invention relates to a robot containment technology, in particular to a robot containment method based on a centralized software architecture and a shortest path algorithm.
[0021] The purpose of the present invention is to provide an efficient and accurate multi-robot containment method, so that the robots can be controlled to move toward the target point along their respective shortest paths by manipulating the command and control system, and stop at appropriate positions to contain the target.
[0022] The invention proposes a multi-robot containment method based on a centralized software architecture and a shortest path algorithm, the method comprising the following steps:
[0023] S1. The command system sends the target point and selects the robot to participate in the task. It calls the shortest path algorithm to calculate the shortest path from each robot to the target and sends it to the robot. The robot can then move toward the target along the shortest path.
[0024] S2. To ensure that the robots do not collide or cross the target point, the path is intercepted and the containment point is calculated through computational geometry knowledge, so that each robot reaches its own containment point to capture and dispose of the target;
[0025] S3: Calculate the length of the driving route based on the path and the blocking point, and then calculate the speed of each robot so that all robots can reach their respective blocking points at the same time. Figure 1 shown.
[0026] First, as a centralized software system, the command and control system is responsible for calling various algorithms such as shortest path planning, task allocation, patrolling and containment, etc. In the containment scenario, the command and control system is mainly responsible for setting the containment target on the road network map, selecting the robot to perform the task, obtaining the latitude and longitude information of the target and the robot, and calling the shortest path algorithm to plan the route from the robot to the target.
[0027] The shortest path algorithms include Floyd algorithm, Dijkstra algorithm and Spfa algorithm. Considering the complexity of the algorithm and the density of the actual road network, the present invention selects the Dijkstra algorithm based on heap optimization, which can solve the shortest distance from a given starting point to other nodes. The algorithm steps are as follows:
[0028] S11, Figure 2 Take the weighted graph shown as an example, specify a node as the position of the robot, for example, calculate the shortest path from A to other nodes;
[0029] S12. Introduce two sets (S, U). The S set contains the points of the shortest path that have been found and the corresponding shortest lengths. The U set contains the points for which the shortest path has not been found (as well as the path from A to the point. A->C is initially ∞ because there is no direct connection).
[0030] S13, initialize two sets. Initially, the S set only contains the node to be calculated, A->A=0, and the U set is initially the length from the node to other points, such as: A->B=4, A->C=∞, A->D=2, A->E=∞;
[0031] S14. Find the point with the shortest path from the U set and add it to the S set, for example, A->D=2;
[0032] S15, update the U set path, if ('D to B, C, E distance' + 'AD distance' < 'A to B, C, E distance') then update U;
[0033] S16. Loop through steps S14 and S15 until the traversal is complete and the shortest path from A to other nodes is obtained.
[0034] In step S14, a small root heap data structure is used instead of an ordinary array. The first element of the small root heap is the point with the shortest path in the U set, which optimizes the time complexity of the naive Dijkstra algorithm from O(n2) to O(nlogn).
[0035] The command system sends the path to each robot. After each robot obtains its own path, it automatically switches to autonomous cruise mode and moves to the target point by point along the path. The route format is composed of a series of longitude and latitude coordinates, such as "119.223341.1222,119.223441.1223,119.223541.1222,119.223641.1223".
[0036] When multiple robots reach the same target point, they may collide. To avoid this, the acquired route needs to be clipped. The usual practice is to clip 20% of the path points so that each robot stops around the target point. This approach is often difficult to achieve the "containment" effect because the route length from the initial position to the target position of each robot is inconsistent, and the distance from the last stop position (containment point) to the target point is also inconsistent. In order to achieve the same distance between each containment point and the target point, it is necessary to use the geographic science computing library pyproj to convert the longitude and latitude coordinates into two-dimensional plane coordinates, and then use computational geometry knowledge to intercept the path and calculate the containment points. The specific steps are as follows:
[0037] S21, such as Figure 3 As shown, let the target position coordinates be (x0, y0), and stipulate that the robot needs to stop t meters near the target point. The robot is located at (xr, yr). For each point in the planned path, "119.2233
[0038] 41.1222,119.223441.1223,119.223541.1222,119.223641.1223", after conversion to plane coordinates, the path is "(x1,y1)-(x2,y2)-(x3,y3)-(x4,y4)", (xr,yr)-(x4,y4)-(x3,y3)-(x2,y2)-(x1,y1)-(x0,y0) is the planned route, and the Euclidean distance between two adjacent points (xi,yi) and (xj,yj) is specified as Then the path length is Lr,4+L4,3+L3,2+L2,1+L1,0.
[0039] S22. In order to accurately find the intercept point (xm, ym) on the planned route so that the distance from (xm, ym) to the target point is t, the following algorithm is designed: for the planned route, starting from the target point (x0, y0), the distance of each section is accumulated and calculated in turn. If it does not reach t, continue to accumulate until it reaches t. The point at this time is the point to be found, such as Figure 3 As shown, assume that the point to be found (xm, ym) is between points (x1, y1) and (x2, y2), where L0m=L01+L1m=t; let q=L12, distance cum=L01+L12>t, according to the similarity principle, we can get:
[0040]
[0041] The solution is:
[0042] xm=x2-(x2-x1)(cum-t) / q
[0043] ym=y2-(y2-y1)(cum-t) / q
[0044] S23. After obtaining the plane coordinates (xm, ym) of the containment point, use the geographic science computing library pyproj to convert it into the longitude and latitude coordinates, i.e., the containment point, and then reassemble the new planned route so that the robots can travel along the new route to their respective containment points.
[0045] To ensure that all robots arrive at their respective blocking points at the same time, the speed of the robot should be proportional to the length of its route. Assuming that the route lengths of n robots are s1, s2, s3, ..., sn, and smin = min{s1, s2, s3, ..., sn}, by setting the minimum speed parameter vmin on the command system (i.e., the speed of the robot corresponding to the route length smin), we can get:
[0046]
[0047] Thus the speed of each robot is calculated:
[0048] v1=s1*vmin / smin
[0049] v2=s2*vmin / smin ...
[0051] vn=sn*vmin / smin.
[0052] Embodiment 1:
[0053] The present invention is a robot-containment technology based on a centralized software architecture and a shortest path algorithm.
[0054] Figure 1It is a schematic diagram of the execution flow of the containment algorithm of the present invention.
[0055] A robot-containment technique based on a centralized software architecture and a shortest path algorithm, the steps are as follows:
[0056] 1) As a centralized software system, the command and control system is responsible for calling various algorithms such as shortest path planning, task allocation, patrolling and containment. In the containment scenario, the command and control system is mainly responsible for setting the containment target on the road network map, selecting the robot to perform the task, obtaining the latitude and longitude information of the target and the robot, and calling the shortest path algorithm to plan the route from the robot to the target.
[0057] 2) The shortest path algorithms include Floyd algorithm, Dijkstra algorithm and Spfa algorithm. Considering the complexity of the algorithm and the density of the actual road network, the present invention selects the Dijkstra algorithm based on heap optimization, which can solve the shortest distance from a given starting point to other nodes. The algorithm steps are as follows:
[0058] (1) Figure 2 Take the weighted graph shown as an example, specify a node, such as calculating the shortest path from 'A' to other nodes;
[0059] (2) Introduce two sets (S, U). The S set contains the points whose shortest paths have been found (and the corresponding shortest lengths), and the U set contains the points whose shortest paths have not been found (and the path from A to the point. A->C is not directly connected, so it is initially ∞).
[0060] (3) Initialize two sets. Initially, the S set only contains the node to be calculated, A->A = 0. Initially, the U set is A->B = 4, A->C = ∞, A->D = 2, A->E = ∞.
[0061] (4) Find the point with the shortest path from set U and add it to set S, for example, A->D=2;
[0062] (5) Update the U set path. If ('D to B, C, E distance' + 'AD distance' < 'A to B, C, E distance'), then update U;
[0063] (6) Repeat steps 4 and 5 until the traversal is completed and the shortest path from A to other nodes is obtained.
[0064] In step (4), a small root heap data structure is used instead of an ordinary array. The first element of the small root heap is the point with the shortest path in the U set, which optimizes the time complexity of the naive Dijkstra algorithm from O(n2) to O(nlogn).
[0065] The command system sends the route to each robot. After each robot obtains its own route, it automatically switches to autonomous cruise mode and moves to the target point by point along the path. The route format is composed of a series of longitude and latitude coordinates, such as "119.223341.1222,119.223441.1223,119.223541.1222,119.223641.1223".
[0066] 3) When multiple robots reach the same target point, they may collide. To avoid this, the acquired route needs to be clipped. The usual practice is to clip 20% of the path points so that each robot stops around the target point. This approach is often difficult to achieve a "blocking" effect, because the length of the route from the initial position to the target position of each robot is inconsistent, and the distance from the last stop position (blocking point) to the target point is also inconsistent. In order to achieve the same distance between each blockade point and the target point, it is necessary to use the geographic science computing library pyproj to convert the longitude and latitude coordinates into two-dimensional plane coordinates, and then use computational geometry knowledge to intercept the path and calculate the blockade points. The specific steps are as follows:
[0067] (1) Figure 3 As shown in the figure, let the target position coordinates be (x0, y0), and stipulate that the robot needs to stop t meters near the target point. The robot is located at (xr, yr). For the planned path "119.223341.1222, 119.223441.1223, 119.223541.1222, 119.223641.1223", the path after conversion to plane coordinates is "(x1, y1)-(x2, y2)-(x3, y3)-(x4, y4)", (xr, yr)-(x4, y4)-(x3, y3)-(x2, y2)-(x1, y1)-(x0, y0) is the planned route, and the Euclidean distance between two points (xi, yi) and (xj, yj) is stipulated to be Lij, and the path length is L12+L2,3+L3,4.
[0068] (2) In order to accurately find the intercept point (xm, ym) on the planned route so that the distance from (xm, ym) to the target point is t, the following algorithm is designed: For the planned route, starting from the target point (x0, y0), the distance of each section is accumulated in sequence. If it does not reach t, continue to accumulate; if it exceeds t, Figure 3 As shown, let the point to be found be (xm, ym), where L0m=L01+L1m=t; let q=L12, distance cum=L01+L12>t, according to the similarity principle, we can get:
[0069]
[0070] The solution is:
[0071] xm=x2-(x2-x1)(cum-t) / q
[0072] ym=y2-(y2-y1)(cum-t) / q
[0073] (3) After obtaining the plane coordinates (xm, ym) of the containment point, the geographic science computing library pyproj is used to convert it into the longitude and latitude coordinates, i.e., the containment point, and then the new planned route is reassembled so that the robots can drive along the new route to their respective containment points.
[0074] To ensure that all robots arrive at their respective blocking points at the same time, the speed of the robot should be proportional to the length of its route. Assuming that the route lengths of n robots are s1, s2, s3, ..., sn, and smin = min{s1, s2, s3, ..., sn}, by setting the minimum speed parameter vmin on the command system (i.e., the speed of the robot corresponding to the route length smin), we can get:
[0075]
[0076] Thus the speed of each robot is calculated:
[0077] v1=s1*vmin / smin
[0078] v2=s2*vmin / smin ...
[0080] vn=sn*vmin / smin.
[0081] Embodiment 2:
[0082] The following is a simple example to illustrate the process of the containment algorithm:
[0083] Assume that there are two robots performing a containment task, and the road network information, robot and containment target locations are as follows: Figure 4 As shown, the robot's blocking point is required to be 3m away from the target point. By calling the shortest path algorithm, the following Figure 5 The preliminary planned route is shown in Figure 2. By cutting the route, the final result is as follows: Figure 6 Containment effect shown.
[0084] The present invention adopts a robot-containment technology based on a centralized software architecture and a shortest path algorithm. Compared with a distributed containment algorithm, it does not require real-time mapping, thereby optimizing the time complexity. In addition, the centralized software used in the present invention is independent of the robot itself, and the containment task will not be affected by the damage of a certain robot. It has good fault tolerance and has been applied in actual scenarios.
[0085] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A multi-robot containment method, characterized in that: The method comprises the following steps: S1. The command system sends the target point and selects the robot to participate in the task. It calls the shortest path algorithm to calculate the shortest path from each robot to the target and sends it to the robot. The robot can then move toward the target along the shortest path. S2, intercept the path and calculate the containment point through computational geometry knowledge, so that each robot reaches its own containment point to capture and dispose of the target; S3, calculating the length of the driving route according to the path and the blocking point, and then calculating the speed of each robot, so that all robots arrive at their respective blocking points at the same time; in, The step S2 specifically includes: S21. Let the target position coordinates be (x0, y0), and stipulate that the robot needs to stop t meters near the target point. The robot is located at (xr, yr). For each point in the planned path, after converting it into plane coordinates, the Euclidean distance between two adjacent points (xi, yi) and (xj, yj) is stipulated to be S22. In order to accurately find the intercept point (xm, ym) on the planned route so that the distance from (xm, ym) to the target point is t, the following algorithm is designed: for the planned route, starting from the target point (x0, y0), the distance of each section is accumulated and calculated in turn. If t is not reached, continue to accumulate until t is reached. The point at this time is the point to be found. Assume that the point to be found (xm, ym) is between points (x1, y1) and (x2, y2), where L0m=L01+L1m=t; let q=L12, distance cum=L01+L12>t, according to the similarity principle, we can get: The solution is: xm=x2-(x2-x1)(cum-t) / q ym=y2-(y2-y1)(cum-t) / q S23. After obtaining the plane coordinates (xm, ym) of the containment point, convert them into longitude and latitude coordinates, i.e., the containment point, and then reassemble the new planned route so that the robots can travel along the new route to their respective containment points.
2. The multi-robot containment method according to claim 1, characterized in that: The command and control system is a centralized software system responsible for calling the shortest path planning, task allocation, patrol and containment algorithms.
3. The multi-robot containment method according to claim 1, characterized in that: In the containment scenario, the command and control system is responsible for setting the containment target on the road network map and selecting the robot to perform the task. After obtaining the longitude and latitude information of the target and the robot, it calls the shortest path algorithm to plan the route from the robot to the target.
4. The multi-robot containment method according to claim 3, characterized in that: The shortest path algorithm is Floyd algorithm, Dijkstra algorithm or Spfa algorithm.
5. The multi-robot containment method according to claim 3, characterized in that: The shortest path algorithm is the Dijkstra algorithm. In step S1, the shortest path algorithm is called to calculate the shortest path from each robot to the target, specifically including: S11, specify a node as the position of the robot; S12. Introduce two sets (S, U), the S set contains the points of the shortest path that have been found and the corresponding shortest lengths, and the U set contains the points of the shortest path that have not been found; S13, initialize two sets. The S set initially contains only the node to be calculated, and the U set initially contains the length from the node to other points. S14. Find the point with the shortest path from the U set and add it to the S set; S15, updating the U set path; S16. Loop through steps S14 and S15 until the traversal is complete and the shortest path from A to other nodes is obtained.
6. The multi-robot containment method according to claim 5, characterized in that: Step S14 uses a small root heap data structure, and the first element of the small root heap is the point with the shortest path in the U set.
7. The multi-robot containment method according to claim 1, characterized in that: After each robot obtains its own path, it automatically switches to autonomous cruising mode and moves toward the target point by point along the path.
8. The multi-robot containment method according to claim 1, characterized in that: Use the geographic science computing library pyproj to convert plane coordinates into longitude and latitude coordinates.
9. The multi-robot containment method according to claim 1, characterized in that: The speed of the robot should be proportional to the length of its route. Assuming that the route lengths of n robots are s1, s2, s3, ..., sn, and smin = mins1, s2, s3, ..., sn, by setting the minimum speed parameter vmin on the command system, we can get: Thus the speed of each robot is calculated: v1=s1*vmin / smin v2=s2*vmin / smin ... vn=sn*vmin / smin.
Citation Information
Patent Citations
Collaborative search blocking method based on ground robot
CN109917818A
Multi-intelligent-robot underwater cooperative round-up control system and method
CN113759942A
Multi-robot cooperative control method and system
CN114510024A
Multi-unmanned vehicle cooperative target hunting method and system based on road network information
CN116027793A
Multi-robot cooperative pursuit method and system based on ellipse robustness control
CN116165893A
