Multi-robot path planning method and device based on multi-target immune optimization algorithm and medium
Through the multi-objective immune optimization algorithm and the vector rotation angle obstacle avoidance path cost matrix algorithm, the multi-robot patrol path is optimized, solving the problem of high computational complexity of path planning in complex environments, and achieving efficient and accurate multi-robot patrol path planning. Suitable for scenes such as expo parks.
Patent Information
- Application Number
- CN202410901198.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-11
AI Technical Summary
In a complex environment, the computational complexity of path planning in a multi-robot patrol system is high, making it difficult to effectively optimize the multi-robot patrol path. Especially in scenarios such as expo parks, it is necessary to consider the patrol order and path planning of multiple target points, which increases The complexity of the problem.
A method based on multi-objective immune optimization algorithm is adopted to optimize path planning through map modeling, vector rotation angle obstacle avoidance path cost matrix algorithm and multi-objective immune algorithm, and the path cost matrix is used to store obstacle avoidance nodes and path lengths to reduce computational costs. , and improve the crossover operator through the van der Waals force mechanism to improve the convergence and diversity of the algorithm.
It effectively reduces the calculation cost of path planning, improves the efficiency and accuracy of path optimization, generates efficient multi-robot patrol paths, and ensures safety monitoring in the expo park.
Smart Images

Figure CN118760172A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of path planning, and in particular to a multi-robot path planning method and a patrol system based on a multi-objective immune optimization algorithm. Background Art
[0002] In today's society, the exhibition park has become a favorite entertainment and leisure center. The exhibition park is characterized by a complex ground environment, bustling flow of people, and prone to accidents. Therefore, it is crucial to establish a multi-robot patrol system to monitor and collect environmental information in real time to ensure the safety of the exhibition park.
[0003] Multi-robot system is one of the important directions in the field of robotics. It mainly studies the methods of multiple robots to complete tasks that are difficult for a single robot to complete through cooperation, such as environmental map construction, search and rescue, patrol, monitoring, etc. Multi-robot system has become a hot topic of research and has been widely used in different environments such as marine exploration, mining, disaster relief, etc. The multi-robot patrol problem is an important part of the multi-robot system. It requires multiple robots to move continuously in a specified environment, visit target points and perform tasks to define the patrol problem in this field. Therefore, in order to allow patrol robots to work in complex environments, it is necessary to study path planning algorithms so that the robots do not encounter obstacles from the starting point to the destination. In an environment with many obstacles, it is more difficult to determine the optimal path. Path planning research usually specifies the type of environment assumed, which can be a known environment or an unknown environment based on a pre-identified map. At the same time, depending on whether the obstacles change when the mobile robot is active, the environment can be static or dynamic.
[0004] Different from the general multi-robot system, the path planning problem in the multi-robot patrol system is a combined optimization problem involving multi-robot task allocation and multi-robot path planning. In the multi-robot patrol system, the task of the patrol robot is not only to reach a single target point, but also to cross multiple target points. It is necessary to consider the patrol order of the target points and the path planning between the target points at the same time, which greatly increases the complexity of the problem.
[0005] Therefore, it is urgent to design a multi-robot path planning method with low path planning computational complexity. Summary of the invention
[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a multi-robot path planning method, device and medium based on a multi-objective immune optimization algorithm with low path planning calculation complexity.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] According to a first aspect of the present invention, a multi-robot path planning method based on a multi-objective immune optimization algorithm is provided, the method comprising:
[0009] S1. Carry out map modeling of the park scene, abstract the exhibition hall area and the inaccessible area into convex polygon obstacles, and initialize the robot station and patrol point;
[0010] S2. Taking the total patrol path length of the robots and the standard deviation of the path lengths between robots as the objective function, mathematical modeling of the multi-robot patrol problem in the Expo Park is carried out;
[0011] S3. According to the map modeling information of the park scene, the path cost matrix is calculated using the path cost matrix algorithm PCM-VRAOA based on vector rotation angle obstacle avoidance; wherein the path cost matrix stores the obstacle avoidance nodes and path lengths between all patrol points;
[0012] S4. Use a multi-objective immune algorithm to optimize the path cost matrix and output the multi-robot patrol path planning results in the Expo Park.
[0013] Preferably, the initialization of the robot station and patrol point in S1 is specifically as follows:
[0014] Define the robot set R = {1, 2, ... m}, where m is the number of robots;
[0015] Define the robot to start from the robot station S and perform a series of patrol tasks P = {1, 2, ... n}, where n is the number of patrol tasks;
[0016] Define the coordinates of patrol point i (x i ,y i );
[0017] Introducing binary variable κ ij , if there is a robot visiting from patrol point i to patrol point j, then κ ij =1, otherwise k ij =0.
[0018] Preferably, in S2, the standard deviation of the total patrol path length of the robots and the path length between the robots is used as the objective function to mathematically model the multi-robot patrol problem in the Expo Park, specifically:
[0019] Minimize the total patrol path length of all robots:
[0020]
[0021] Where: d ij represents the path length of the robot from patrol point i to patrol point j; k ijkrepresents a binary variable that determines whether robot k visits patrol point j from patrol point i;
[0022] Minimize the standard deviation of the lengths of all patrol paths of the robots:
[0023]
[0024] Where: L k represents the total path length of robot k, represents the average path length of the robot, m is the number of robots, and n is the number of patrol tasks;
[0025] The constraints include: each patrol point is visited once and not repeatedly; each robot starts from robot station S; each robot returns to robot station S after visiting all patrol points; the number of patrol points visited by each robot is within T min and T max Between min and T max Set the minimum and maximum number of tasks for a single robot to execute.
[0026] Preferably, the path cost matrix is calculated based on the map modeling information of the park scene using a path cost matrix algorithm based on vector rotation angle obstacle avoidance, specifically including:
[0027] Initialize the path cost matrix used to store the path lengths between all patrol points and the obstacle avoidance nodes, traverse each patrol point, and check whether there is an obstacle between the current two patrol points:
[0028] If there is, use the vector based on the rotation angle to calculate the rotation vector angle from the starting point to each convex point in the convex polygon; according to the rotation vector angle, start from the detour point corresponding to the maximum rotation vector angle and the detour point corresponding to the minimum rotation vector angle respectively, and select the detour points in sequence according to the order of the convex points on the convex polygon, and judge whether there is an obstacle between the selected detour point and the patrol point, until two complete obstacle avoidance paths are found, and then compare the lengths of the two obstacle avoidance paths, select the shorter obstacle avoidance path, and store the path length and obstacle avoidance detour points in the path cost matrix;
[0029] If not, the Euclidean distance is directly used to calculate the path length. After traversing all patrol points, the path cost matrix with path length and detour points is output.
[0030] Preferably, in S4, a multi-objective immune algorithm is used to optimize the path cost matrix, specifically including:
[0031] 1) According to the number of robots m, the number of patrol points n, and the maximum number of tasks that robots can perform T maxand the minimum number of tasks that the robot can perform T min The antibody population is initialized based on the constraints; for each antibody, the first n gene values represent the execution order of the patrol points, and the last m gene values represent the number of patrol points that each robot needs to visit;
[0032] 2) Calculate the objective function value of each antibody, and then perform fast non-dominated sorting to obtain the Pareto solution set;
[0033] 3) Update the memory cell library, compare the antibodies in the Pareto solution set with the original antibodies in the memory library, and replace the worse antibodies in the memory cell library with the better antibodies in the Pareto solution set;
[0034] 4) Using van der Waals forces to match and cross-link antibody gene fragments to obtain progeny antibody groups;
[0035] 5) merging the parent and progeny antibody groups, and then performing a selection operation to obtain a new parent antibody group;
[0036] 6) Determine whether the termination reaches the maximum number of iterations. If not, add the memory bank capacity antibodies stored in the memory bank to the new parent antibody group, and go to step S6 to continue iteration. If yes, output the non-dominated solution, and then concentrate the robot patrol point sequence according to the Pareto solution to complete the multi-robot patrol path planning in the Expo Park.
[0037] Preferably, the van der Waals force calculation expression is:
[0038]
[0039] Where: F v (a,b) is the van der Waals force between gene fragments a and b; S(a,b) is the similarity between antibody gene fragments a and b; d(a,b) is the distance between gene fragments a and b.
[0040] Preferably, the similarity S(a, b) between the antibody gene fragments a and b is calculated as:
[0041]
[0042] d(a,b)=L a -N(a,b)
[0043] Where: L a and L b represent the lengths of gene fragments a and b, respectively, and L a <L b ; N(a,b) is the number of identical gene values contained in gene fragments a and b.
[0044] Preferably, the use of van der Waals forces to match and cross-link antibody gene fragments to obtain a progeny antibody population specifically includes:
[0045] 1) Calculate the van der Waals forces between all gene fragments in the parental antibodies and match the gene fragment pairs with the largest van der Waals forces;
[0046] 2) Taking the mother antibody as the benchmark, initialize each gene value in the first sub-antibody to 0, randomly generate two intersection points c1 and c2, cross the two gene fragments, check whether there are repeated gene values in the new gene fragments obtained after the exchange, if so, set the repeated genes to 0, and fill the new gene fragments into the corresponding positions in the first sub-antibody according to the positions of the original gene fragments in the mother antibody; fill the remaining patrol points into the empty gene positions of the first sub-antibody in sequence according to their order in the mother antibody, and update the first sub-antibody;
[0047] 3) Using the parent antibody as a reference, repeat step 2) to generate a second daughter antibody.
[0048] According to a second aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, any one of the methods described above is implemented.
[0049] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, any one of the methods described above is implemented.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] 1) The present invention calculates the path cost matrix through a path cost matrix algorithm based on vector rotation angle obstacle avoidance, and stores the obstacle avoidance nodes and path lengths between all patrol points in the path cost matrix. When performing path planning for the robot, it only needs to read the corresponding information from the path cost matrix, avoiding the calculation of obstacle avoidance paths for all patrol points of the robot, which effectively reduces the path planning calculation cost and improves the path optimization operation speed.
[0052] 2) In the process of optimizing the path cost matrix using a multi-objective immune algorithm, the present invention introduces a crossover operator inspired by the van der Waals force mechanism to construct a van der Waals force field for the antibody, so that the better gene fragments in the antibody are matched together and cross-linked to produce more effective offspring antibodies, which can improve the convergence and diversity of the algorithm and improve the efficiency and accuracy of the multi-robot patrol path optimization in the Expo park. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of the method of the present invention;
[0054] Figure 2 This is a schematic diagram of the process of optimizing the path cost matrix using a multi-objective immune algorithm in an embodiment;
[0055] Figure 3 Schematic diagram of the patrol plan generated for the embodiment. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0057] Example
[0058] like Figure 1 The present embodiment provides a multi-robot path planning method based on a multi-objective immune optimization algorithm, the method comprising:
[0059] S1. Carry out map modeling of the park scene, abstract the exhibition hall area and the inaccessible area into convex polygon obstacles, and initialize the robot station and patrol point;
[0060] S2. Taking the total patrol path length of the robots and the standard deviation of the path lengths between robots as the objective function, mathematical modeling of the multi-robot patrol problem in the Expo Park is carried out;
[0061] S3. According to the map modeling information of the park scene, the path cost matrix is calculated using the path cost matrix algorithm PCM-VRAOA based on vector rotation angle obstacle avoidance; wherein the path cost matrix stores the obstacle avoidance nodes and path lengths between all patrol points;
[0062] S4. Use a multi-objective immune algorithm to optimize the path cost matrix and output the multi-robot patrol path planning results in the Expo Park.
[0063] Next, the method of this embodiment is introduced in detail.
[0064] The parameter settings of the multi-objective immune optimization algorithm are as follows:
[0065] Table 1 Parameter settings of multi-objective immune optimization algorithm
[0066] Parameter name Parameter Value Population size N 100 Memory capacity nc 20 Crossover probability pc 0.9 Mutation probability pm 0.1 Maximum number of iterations MAXGEN 100
[0067] The map scene parameter settings are as shown in Table 2:
[0068] Table 2 Expo Park Map Scene Parameter Settings
[0069] Parameter name Parameter Value Number of robots num_robots 4 Number of patrol points num_points 30 Number of obstacles num_obstacles 3 Robot station coordinates robot_station (50,50) Minimum number of tasks to be executed Tmin 4 Maximum number of tasks to be executed Tmax 12
[0070] A multi-objective immune optimization algorithm for a multi-robot patrol system in an exhibition park, combined with Figure 2 , specifically including:
[0071] 1) According to the parameter settings given in Table 1 and Table 2, initialize all parameters, including the number of antibody groups N, crossover probability pc, mutation probability pm, memory capacity nc, number of robots nun_robots, number of patrol points num_points, maximum number of iterations MAXGEN, maximum number of tasks that can be executed by the robot Tmax, minimum number of tasks that can be executed by the robot Tmin, number of convex polygon obstacles num_obstacles, robot station robot_station and number of patrol points num_points;
[0072] 2) Carry out map modeling of the Expo Park, initialize a 100×100 map, set a robot station with coordinates (50,50), generate num_obstcles convex polygon obstacles and num_points patrol points;
[0073] 3) Mathematical modeling of the multi-robot patrol system in the Expo Park is carried out. The specific mathematical model is:
[0074] Define a robot set R = {1, 2, ... m} starting from the robot station S to perform a series of patrol tasks P = {1, 2, ... n}. The coordinates of patrol point i are expressed as (x i ,y i ), introduce a binary variable κ ij To indicate whether there is a robot visiting from patrol point i to patrol point j, if so, then κ ij =1, otherwise, κ ij =0; define a distance matrix D = [d ij ],d ij It represents the path length of the robot from patrol point i to patrol point j. The calculation formula is as follows:
[0075]
[0076] Then, for each robot, define L k to represent the total path length of robot k, Represents the average path length of the robot, and the calculation formula is as follows:
[0077]
[0078] In addition, it is necessary to set the maximum and minimum number of tasks to be performed by a single robot, which are denoted as T and max and Tmin ;
[0079] Finally, based on the above definition, we can get the mathematical model of the multi-robot patrol problem for the Expo Park, and the formula for calculating the objective function value is:
[0080]
[0081] This formula represents minimizing the total patrol path length of all robots;
[0082]
[0083] This formula represents minimizing the standard deviation of the patrol path lengths of all robots, that is, ensuring that the workload of each robot is balanced;
[0084] The constraints are:
[0085]
[0086] This constraint ensures that each patrol point is visited once and not repeatedly;
[0087]
[0088] This constraint ensures that each robot starts from robot station S;
[0089]
[0090] This constraint ensures that each robot will return to robot station S after visiting all patrol points;
[0091]
[0092] This constraint ensures that the number of patrol points visited by each robot is within T min and T max between.
[0093] 4) According to the exhibition park map information, the PCM-VRAOA algorithm is used to calculate the path cost matrix of the exhibition park map, and then a path cost matrix storing the obstacle avoidance nodes and path lengths between all patrol points is output. The specific implementation method is as follows:
[0094] First, initialize a path cost matrix C to store the path lengths and obstacle avoidance nodes between all patrol points. Traverse each patrol point to check whether there are obstacles between the current two patrol points. If so, use the vector based on the rotation angle to calculate the rotation vector angle from the starting point to each convex point in the convex polygon. According to the rotation vector angle, start from the detour point corresponding to the maximum rotation vector angle and the detour point corresponding to the minimum rotation vector angle respectively. Select the detour points in sequence according to the order of the convex points on the convex polygon, and determine whether there are obstacles between the selected detour point and the patrol point until two complete obstacle avoidance paths are found. Then compare the lengths of the two obstacle avoidance paths, select the shorter obstacle avoidance path, and store the path length and obstacle avoidance detour point in the path cost matrix. If not, directly use the Euclidean distance to calculate the path length. After traversing all patrol points, output a path cost matrix C with path length and detour points.
[0095] 5) Initialize the antibody population. According to the constraints of the number of robots num_robots, the number of patrol points num_points, the maximum number of tasks executed by robots Tmax, and the minimum number of tasks executed by robots Tmin, generate an antibody population matrix of N×(num_points+num_robots) dimensions, which is the initialized antibody population. For each antibody, the first num_points gene values represent the execution order of patrol points, and the last num_robots gene values represent the number of patrol points that each robot needs to visit.
[0096] 6) Calculate the target values F1 and F2 of the antibody, perform non-dominated sorting, and obtain the Pareto solution set, which is defined as:
[0097] For antibody group B = [b1, b2, ... b n ], if and only if antibody b j ∈B satisfies
[0098]
[0099] When , the antibody is called the dominant antibody, and the set composed of the dominant antibodies is called the Pareto solution set.
[0100] 7) Update the memory cell library, compare the antibodies in the Pareto solution set with the original antibodies in the memory library, and replace the worse antibodies in the memory cell library with the better antibodies in the Pareto solution set;
[0101] 8) Performing van der Waals crossover and mutation on the antibody group to obtain a progeny antibody group, the specific implementation method is as follows:
[0102] Define the van der Waals force F between two antibody gene fragments a and b v Calculation formula:
[0103]
[0104] Among them, S(a,b) is the similarity between gene fragments a and b, and d(a,b) is the distance between gene fragments a and b. The calculation formula is as follows:
[0105]
[0106] d(a,b)=L a -N(a,b)
[0107] Among them, L a and L b represent the lengths of gene fragments a and b, respectively, and L a <L b ; N(a,b) is the number of identical gene values contained in gene fragments a and b.
[0108] Steps for matching and crossing antibody gene fragments using van der Waals forces:
[0109] First, the van der Waals forces between all gene fragments in the parental antibody are calculated according to formula (11), and the gene fragment pairs with the largest van der Waals forces are matched;
[0110] Then, initialize the child antibody child1, and each gene value of child1 is 0;
[0111] Next, two intersection points c1 and c2 are randomly generated, and the two gene fragments are crossed to check whether there are duplicate gene values in the new gene fragments obtained after the exchange. If there are, the duplicate genes are set to 0, and the new gene fragments are filled into the corresponding positions in child1 according to the positions of the original gene fragments in Mom antibody;
[0112] Finally, the remaining patrol points are filled into the empty gene positions of child1 in the order in which they appear in the Mom antibody to generate the daughter antibody child1. The same method is then used based on the Dad antibody to generate the daughter antibody child2.
[0113] 9) The parent and progeny antibody groups are combined, and then a selection operation is performed to obtain a new parent antibody group. The specific implementation method is as follows:
[0114] For the antibody group generated by the combination of the parent and offspring generations, selection is performed based on the non-dominated level and crowding distance of all antibodies. First, all antibodies with a non-dominated level of 1 are selected to determine whether the antibody group size N is reached. If exceeded, the first N antibodies are selected in descending order of the crowding distance value. If not, antibodies with a non-dominated level of 2 are continued to be selected, and the previous judgment is repeated until the number of selected antibodies meets the antibody group size N.
[0115] 10) Determine whether the termination conditions are met. The specific implementation method is as follows:
[0116] Determine whether the current number of iterations reaches the maximum number of iterations MAXGEN. If not, add the nc antibodies stored in the memory bank to the new parent antibody group, and jump back to step S6 to continue the algorithm iteration. If so, output the non-dominated solution, and then complete the multi-robot patrol path planning in the Expo Park based on the robot patrol point sequence in the non-dominated solution.
[0117] According to the above specific implementation steps, the multi-objective immune optimization algorithm proposed in the present invention is used to implement path planning for a multi-robot patrol system in an abstract exhibition park. The patrol effect is as follows: Figure 3 As shown, Figure 3 These are the multi-robot patrol path plans corresponding to the two non-dominated solutions. (a) is the patrol plan with a smaller total multi-robot patrol path length, and (b) is the patrol plan with a smaller standard deviation of the multi-robot patrol path length.
[0118] On the one hand, the present invention takes into account the problem of excessive computational cost of a multi-objective immune optimization algorithm in the process of generating a multi-robot patrol path, designs a path cost matrix algorithm based on a vector rotation angle, and utilizes the obstacle avoidance nodes and path length information stored in the path cost matrix, so that the multi-objective immune optimization algorithm can directly extract the obstacle avoidance information when calculating the multi-robot patrol path in iteration, so as to reduce the time cost of the algorithm. On the other hand, the crossover stage is improved by introducing the van der Waals force mechanism, constructing a van der Waals force field for antibodies, so that better gene fragments in the antibodies are matched together, crossover is performed, and more effective offspring antibodies are produced, which helps to improve the convergence and diversity of the algorithm.
[0119] The electronic device of the present invention includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0120] Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0121] The processing unit performs the various methods and processes described above, such as methods S1 to S4. For example, in some embodiments, methods S1 to S4 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps of methods S1 to S4 described above may be performed. Alternatively, in other embodiments, the CPU may be configured to execute methods S1 to S4 in any other appropriate manner (e.g., by means of firmware).
[0122] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), load programmable logic devices (CPLDs), and the like.
[0123] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A multi-robot path planning method based on a multi-objective immune optimization algorithm, characterized in that: The method includes: S1. Carry out map modeling of the park scene, abstract the exhibition hall area and the inaccessible area into convex polygon obstacles, and initialize the robot station and patrol point; S2. Taking the total patrol path length of the robots and the standard deviation of the path lengths between robots as the objective function, mathematical modeling of the multi-robot patrol problem in the Expo Park is carried out; S3. According to the map modeling information of the park scene, a path cost matrix is calculated using a path cost matrix algorithm based on vector rotation angle obstacle avoidance; wherein the path cost matrix stores obstacle avoidance nodes and path lengths between all patrol points; S4. Use a multi-objective immune algorithm to optimize the path cost matrix and output the multi-robot patrol path planning results in the Expo Park.
2. A multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 1, characterized in that: In S1, the robot station and patrol point are initialized, specifically: Define the robot set R = {1, 2, ... m}, where m is the number of robots; Define the robot to start from the robot station S and perform a series of patrol tasks P = {1, 2, ... n}, where n is the number of patrol tasks; Define the coordinates of patrol point i (x i ,y i ); Introducing binary variable κ ij , if there is a robot visiting from patrol point i to patrol point j, then κ ij =1, otherwise κ ij =0.
3. A multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 2, characterized in that: In S2, the total patrol path length of the robots and the standard deviation of the path lengths between the robots are used as the objective function to mathematically model the multi-robot patrol problem in the Expo Park, specifically: Minimize the total patrol path length of all robots: Where: d ij represents the path length of the robot from patrol point i to patrol point j; κ ijk represents a binary variable that determines whether robot k visits patrol point j from patrol point i; Minimize the standard deviation of the lengths of all patrol paths of the robots: Where: L k represents the total path length of robot k, represents the average path length of the robot, m is the number of robots, and n is the number of patrol tasks; The constraints include: each patrol point is visited once and not repeatedly; each robot starts from robot station S; each robot returns to robot station S after visiting all patrol points; the number of patrol points visited by each robot is within T min and T max Between min and T max Set the minimum and maximum number of tasks for a single robot to execute.
4. The multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 1 is characterized in that: The path cost matrix is calculated based on the map modeling information of the park scene by using a path cost matrix algorithm based on vector rotation angle obstacle avoidance, specifically including: Initialize the path cost matrix used to store the path lengths between all patrol points and the obstacle avoidance nodes, traverse each patrol point, and check whether there is an obstacle between the current two patrol points: If there is, use the vector based on the rotation angle to calculate the rotation vector angle from the starting point to each convex point in the convex polygon; according to the rotation vector angle, start from the detour point corresponding to the maximum rotation vector angle and the detour point corresponding to the minimum rotation vector angle respectively, and select the detour points in sequence according to the order of the convex points on the convex polygon, and judge whether there is an obstacle between the selected detour point and the patrol point, until two complete obstacle avoidance paths are found, and then compare the lengths of the two obstacle avoidance paths, select the shorter obstacle avoidance path, and store the path length and obstacle avoidance detour points in the path cost matrix; If not, the Euclidean distance is directly used to calculate the path length. After traversing all patrol points, the path cost matrix with path length and detour points is output.
5. The multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 1 is characterized in that: In S4, a multi-objective immune algorithm is used to optimize the path cost matrix, specifically including: 1) According to the number of robots m, the number of patrol points n, and the maximum number of tasks that robots can perform T max and the minimum number of tasks that the robot can perform T min The antibody population is initialized based on the constraints; for each antibody, the first n gene values represent the execution order of the patrol points, and the last m gene values represent the number of patrol points that each robot needs to visit; 2) Calculate the objective function value of each antibody, and then perform fast non-dominated sorting to obtain the Pareto solution set; 3) Update the memory cell library, compare the antibodies in the Pareto solution set with the original antibodies in the memory library, and replace the worse antibodies in the memory cell library with the better antibodies in the Pareto solution set; 4) Using van der Waals forces to match and cross-link antibody gene fragments to obtain progeny antibody groups; 5) merging the parent and progeny antibody groups, and then performing a selection operation to obtain a new parent antibody group; 6) Determine whether the termination reaches the maximum number of iterations. If not, add the memory bank capacity antibodies stored in the memory bank to the new parent antibody group, and go to step S6 to continue iteration. If yes, output the non-dominated solution, and then concentrate the robot patrol point sequence according to the Pareto solution to complete the multi-robot patrol path planning in the Expo Park.
6. A multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 5, characterized in that: The van der Waals force calculation expression is: Where: F v (a,b) is the van der Waals force between gene fragments a and b; S(a,b) is the similarity between antibody gene fragments a and b; d(a,b) is the distance between gene fragments a and b.
7. A multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 6, characterized in that: The similarity S(a,b) between the antibody gene fragments a and b is calculated as follows: d(a,b)=L a -N(a,b) Where: L a and L b represent the lengths of gene fragments a and b, respectively, and L a <L b ; N(a,b) is the number of identical gene values contained in gene fragments a and b.
8. The multi-robot path planning method based on a multi-objective immune optimization algorithm according to claim 5 is characterized in that: The use of van der Waals forces to match and cross-link antibody gene fragments to obtain a progeny antibody group specifically includes: 1) Calculate the van der Waals forces between all gene fragments in the parental antibodies and match the gene fragment pairs with the largest van der Waals forces; 2) Taking the mother antibody as the benchmark, initialize each gene value in the first sub-antibody to 0, randomly generate two intersection points c1 and c2, cross the two gene fragments, check whether there are repeated gene values in the new gene fragments obtained after the exchange, if so, set the repeated genes to 0, and fill the new gene fragments into the corresponding positions in the first sub-antibody according to the positions of the original gene fragments in the mother antibody; fill the remaining patrol points into the empty gene positions of the first sub-antibody in sequence according to their order in the mother antibody, and update the first sub-antibody; 3) Using the parent antibody as a reference, repeat step 2) to generate a second daughter antibody.
9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Multi-robot maritime patrol path planning method based on immune algorithm optimization
CN120471088A
