A multi-agent coverage method in complex environments based on lightweight A* algorithm

By using lightweight A* algorithm and genetic algorithm to optimize the path planning of multi-agents in complex environments, the problem of inefficient coverage of multi-agents in complex environments is solved, and efficient and robust coverage effect is achieved.

CN118171574BActive Publication Date: 2024-11-01UNIV OF SCI & TECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410322044.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-11-01
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

In complex environments, it is difficult for multiple agents to achieve effective coverage of the target area, resulting in inefficiency and incompleteness during exploration.

Method used

Using a multi-agent coverage method based on lightweight A* algorithm, the coverage performance is optimized by determining the location of the static agent and the dynamic agent path, and combining path planning and path optimization, effective coverage of complex environments is achieved. .

Benefits of technology

It improves the coverage performance and efficiency of multiple agents in complex environments, achieves effective coverage of the target area, and has the advantages of high efficiency and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118171574B_ABST
    Figure CN118171574B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-agent coverage method in a complex environment based on a lightweight A* algorithm, which belongs to the technical field of multi-agent system coverage optimization. The method includes: with the goal of maximizing coverage performance, determining the position of a static agent in a region, and dividing the region into an effectively covered region and an ineffectively covered region according to the position of the static agent; calculating the maximum coverage performance that a dynamic agent can obtain; sampling the ineffectively covered region to obtain the path point of the dynamic agent; taking the initial position of the dynamic agent as the starting point and the point that enables the dynamic agent to obtain the maximum coverage performance as the end point, using the lightweight A* algorithm combined with a genetic algorithm to perform path planning based on the path point; according to the planned path, controlling the movement of the dynamic agent to achieve effective coverage of the region. The technical solution of the present invention not only has a fast running speed and excellent performance, but also can achieve effective coverage of complex environment areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multi-agent system coverage optimization, and in particular to a multi-agent coverage method in a complex environment based on a lightweight A* algorithm. Background Art

[0002] In many practical applications, multiple agents are needed to cover complex environments, such as urban search and rescue or environmental monitoring. The task of coverage means controlling multiple agents to cooperate with each other and specifying cooperation strategies to achieve the largest possible coverage of the target area. However, if only static agents want to achieve full coverage of the target area, it will consume considerable resources, and if only dynamic agents want to achieve full coverage of the target area, it will be difficult to achieve long-term observation of some areas with high incidence of emergencies. Therefore, the method of using dynamic and static agents to cooperate can achieve the target task more efficiently.

[0003] At present, although there are solutions to solve the problem of effective coverage of the target area by intelligent agents, it is not possible to achieve effective coverage of the target area in complex environments with obstacles and guarantee the coverage performance of the system. As a result, the current multi-agent exploration of complex environments is inefficient and incomplete. Summary of the invention

[0004] The present invention provides a multi-agent coverage method in complex environments based on a lightweight A* algorithm to quickly achieve effective coverage of the target area and improve the regional coverage performance, so as to solve the current technical problems of low efficiency and incomplete exploration of complex environments by multi-agents.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] On the one hand, the present invention provides a multi-agent coverage method in a complex environment based on a lightweight A* algorithm, wherein the complex environment refers to a two-dimensional environment with obstacles; the multi-agent includes a static agent and a dynamic agent; the multi-agent coverage method in the complex environment includes:

[0007] With the goal of maximizing coverage performance, determining the position of the static agent in the area, and dividing the area into an effectively covered area and an ineffectively covered area according to the position of the static agent;

[0008] Calculate the maximum coverage performance that a dynamic agent can achieve;

[0009] Sampling the effectively uncovered area to obtain a path point of the dynamic intelligent agent;

[0010] Taking the initial position of the dynamic agent as the starting point and the point where the dynamic agent can obtain the maximum coverage performance as the end point, a lightweight A* algorithm combined with a genetic algorithm is used to perform path planning based on the path points;

[0011] According to the planned path, the dynamic intelligent body is controlled to move to achieve effective coverage of the area.

[0012] Furthermore, the calculation formula of the coverage performance is:

[0013] H(S)=∫ Ω R(x)P(x,S)dx

[0014] Where H(S) represents the calculated coverage performance; P(x,S) represents the joint detection probability of the multi-agent system at point x, represents the detection probability of agent i at point x, N is the number of agents; R(x) is the event density function; Ω represents the two-dimensional target area.

[0015] Furthermore, the detection probability of the agent i at point x is divided into two parts, the visible area and the invisible area, under the influence of obstacles, as shown below:

[0016]

[0017] Where V(s i ) is the visible area of ​​agent i, is the invisible area of ​​agent i, λ i is the attenuation coefficient of the agent’s detection capability, ||xs i || is the Euclidean distance from x to agent i,

[0018] Furthermore, the joint detection probability P(x, S) of the multi-agent system at point x is affected by obstacles and is divided into two parts, as shown below:

[0019]

[0020]

[0021] in, represents the detection probability of the remaining agents except agent i at point x.

[0022] Further, determining the position of the static agent in the area includes:

[0023] The position that maximizes the coverage performance is obtained through the gradient algorithm as the position of the static agent in the area.

[0024] Furthermore, the expression of the gradient algorithm is:

[0025]

[0026] Where V(S) represents the visible area of ​​the agent; s x Represents the x-coordinate of the agent; Indicates the boundary of the agent's visible area; (u x ,u y ) represents the velocity vector at the boundary point of the agent's visible area, which is used to calculate the line integral at the boundary; dx x ,dx y They represent the differentials in the x and y directions respectively.

[0027] Furthermore, when the area is divided into an effectively covered area and an ineffectively covered area, the basis for judging whether a point x in the area is effectively covered is: whether the joint detection probability P(x, S) of the multi-agent system at point x is greater than a preset threshold; when P(x, S) is greater than the preset threshold, it is determined that point x is effectively covered; when P(x, S) is not greater than the preset threshold, it is determined that point x is not effectively covered.

[0028] Furthermore, the ineffectively covered area is sampled to obtain the path points of the dynamic agent, including:

[0029] Step 1, removing the area that the dynamic agent can cover at the starting point and the end point from the ineffective coverage area, so as to update the ineffective coverage area and obtain a new ineffective coverage area;

[0030] Step 2: Sample the current uncovered area, randomly select an uncovered point from it, and obtain the radius that can effectively cover it according to the difference between the joint detection probability of the point and the preset threshold. Randomly select ten points in this radius, and then select the point that can maximize the coverage performance from these ten points as the path point of the dynamic intelligent agent, and remove the area that can be covered by the path point from the current uncovered area to update the uncovered area and obtain a new uncovered area.

[0031] Step 3, repeat step 2 until all areas are effectively covered and multiple path points are obtained.

[0032] Furthermore, taking the initial position of the dynamic agent as the starting point and the point where the dynamic agent can obtain the maximum coverage performance as the end point, a lightweight A* algorithm combined with a genetic algorithm is used to perform path planning based on the path points, including:

[0033] Select all the vertices of each obstacle in the two-dimensional task space, and then for each selected vertex, select the points one unit length away from it in the upper left, lower left, upper right, and lower right directions, and determine whether these points are inside the corresponding obstacles. Select the points that are not inside the obstacles as feasible points, and combine these selected feasible points with each path point to form a search point set. Then, use this search point set as the search range of the traditional A* algorithm to find the path from each path point to the remaining path points.

[0034] For the path obtained by the A* algorithm, a genetic algorithm is used to solve the order of visiting nodes.

[0035] Furthermore, when using a genetic algorithm to solve the order of visiting nodes, the movement cost of the path is:

[0036]

[0037] Among them, H scost represents the calculated moving cost of the path; L ij represents the length of the dynamic agent path; H max Represents the value of the dynamic agent maximizing the objective function; It represents the average value of the objective function when the dynamic agent passes through the current path; V represents the moving speed of the agent.

[0038] On the other hand, the present invention further provides an electronic device, comprising a processor and a memory; wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the above method.

[0039] In yet another aspect, the present invention further provides a computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the above method.

[0040] The beneficial effects brought about by the technical solution provided by the present invention include at least:

[0041] 1. The present invention can realize effective coverage of an area through collaboration of multiple intelligent agents.

[0042] 2. The present invention proposes an improved lightweight A* algorithm, which can not only improve the coverage performance of the area while achieving effective coverage, but also has the advantages of high efficiency and strong robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 It is a schematic diagram of the execution flow of a multi-agent coverage method in a complex environment based on a lightweight A* algorithm provided by an embodiment of the present invention;

[0045] Figure 2 is a schematic diagram of a coverage model of an intelligent agent provided by an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram comparing the lightweight A* search method provided by an embodiment of the present invention and the traditional A* search method;

[0047] Figure 4 is a schematic diagram of the location deployment of a stationary intelligent agent provided by an embodiment of the present invention;

[0048] Figure 5 Schematic diagram of the movement paths of a dynamic intelligent agent in multiple complex environments provided by an embodiment of the present invention; wherein (a) is the movement path in a normal environment; (b) is the movement path in a room environment; (c) is the movement path in a maze environment;

[0049] Figure 6 It is a system block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0051] First of all, it should be noted that in the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplarily" is intended to present the concept in a concrete way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0052] Moreover, in the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0053] In addition, in the embodiments of the present invention, sometimes a subscript (such as W1) may be mistakenly written as a non-subscript form (such as W1). When the difference is not emphasized, the meanings to be expressed are consistent.

[0054] First embodiment

[0055] This embodiment provides a multi-agent coverage method in a complex environment based on a lightweight A* algorithm; wherein, in this embodiment, a complex environment means a two-dimensional environment with multiple obstacles, and the multi-agent includes two types of static agents and dynamic agents (the number of static agents and dynamic agents can be multiple, and this embodiment does not specifically limit this). Through the cooperation of static agents and dynamic agents, effective coverage of the area is achieved and the coverage performance of the area is improved. The method can be implemented by an electronic device, which can be a terminal or a server. The execution process of the method is as follows Figure 1 As shown, the following steps are included:

[0056] S1, with the goal of maximizing coverage performance, determining the position of the static agent in the area, and dividing the area into an effectively covered area and an ineffectively covered area according to the position of the static agent;

[0057] It should be noted that in this embodiment, the position that can maximize the coverage performance is obtained by the gradient algorithm as the position of the static agent in the area, that is, the position S = (s1, ..., s N ), so that the coverage performance function H(S) is as large as possible, where the coverage performance of the multi-agent in the target area is the integral of the product of the event density function in the target area and the detection probability of the agent in the target area, that is: H(S) = ∫ Ω R(x)P(x,S)dx, where P(x,S) is the joint detection probability of the multi-agent system S at point x, is the detection probability of agent i at point x, N is the number of agents; R(x) is the event density function; Ω represents the two-dimensional target area. The area affected by obstacles is divided into two parts: visible area and invisible area:

[0058]

[0059] Among them, V(s i ) is the visible area of ​​agent i, is the invisible area of ​​agent i, λ i is the attenuation coefficient of the agent’s detection capability, ||xs i || is the Euclidean distance from x to agent i, Therefore, the joint detection probability P(x,S) of the multi-agent system at point x is also divided into two parts:

[0060]

[0061]

[0062] in, represents the detection probability of the remaining agents at point x, p i (x,s i ) is the detection probability of agent i at point x when there is no obstacle blocking it, is the detection probability of agent i at point x when it is blocked by obstacles.

[0063] Furthermore, the gradient direction is calculated as follows:

[0064]

[0065] Where V(S) represents the visible area of ​​the agent; s x Represents the x-coordinate of the agent; Represents the boundary of the agent's visible area, such as Figure 2 As shown; (u x ,u y ) represents the velocity vector at the boundary point of the agent's visible area, which is used to calculate the line integral at the boundary; dx x ,dx y They represent the differentials in the x and y directions respectively.

[0066] Specifically, in this embodiment, the positions of the stationary agents are arranged as follows: Figure 4 As shown, the black area is the area that has been effectively covered. In this embodiment, the basis for judging whether a point x in the area is effectively covered is whether the multi-agent joint detection probability P(x, S) at the point x is greater than the threshold value ρ. When P(x, S) is greater than ρ, it means that x is effectively covered, otherwise, it means that x is not effectively covered. After obtaining the ineffectively covered areas, the goal of the dynamic agent is to cover these ineffectively covered areas, that is, at a certain moment, P(x, S) ≥ ρ, and to improve the coverage performance H(S) as much as possible during the movement.

[0067] S2, calculates the maximum coverage performance that the dynamic agent can obtain;

[0068] It should be noted that, in this embodiment, the maximum coverage performance H that can be obtained by the dynamic agent is calculated. max , that is, maximize the coverage performance H(S) = ∫R(x)P(x,S)dx.

[0069] The purpose of S2 above is to be used for the calculation of the cost function during the dynamic agent planning in the subsequent steps. When the number of dynamic agents is small, a greedy algorithm can usually be used for calculation, that is, adding a dynamic agent each time on the basis of the static agent to maximize the increase in coverage performance.

[0070] S3, sampling the effectively uncovered area to obtain the path points of the dynamic intelligent body;

[0071] Among them, it should be noted that this embodiment uses a sampling-based method to obtain the path points of the dynamic agent's movement according to the ineffective coverage area. The specific implementation principle is: the dynamic agent will start from the starting point. At the same time, in order to ensure that the multi-agent system finally obtains the maximum coverage performance, the final stop position of the dynamic agent will be at the point of maximum coverage performance obtained in S2. The area covered by the dynamic agent on these two path points is deleted from the area that is not effectively covered to obtain a new ineffective coverage area. The ineffective coverage area is sampled, and a point that is not effectively covered is randomly selected. According to the difference between the joint detection probability of the point and the threshold, the radius that allows it to be effectively covered is obtained. Among them, ρ is the effective coverage threshold, λ i is the agent attenuation coefficient, R is the agent detection radius, ten points are randomly selected within this radius, and then the point that can maximize the objective function is selected from these ten points as the path point of the dynamic agent, and the area that can be covered by this point is deleted from the area that has not been effectively covered, and the area that has not been effectively covered is obtained again. The above process is repeated until all areas are effectively covered, and a series of path points that the dynamic agent needs to pass through can be obtained.

[0072] S4, taking the initial position of the dynamic agent as the starting point and the point where the dynamic agent can obtain the maximum coverage performance as the end point, using the lightweight A* algorithm combined with the genetic algorithm to perform path planning based on the path points;

[0073] It should be noted that after sampling the path points, the task goal of the dynamic intelligent agent is changed to start from the starting point and plan the path for these points. In this regard, the present embodiment adopts an improved lightweight A* algorithm, which no longer randomly selects path points for path planning, but selects points outside the obstacle endpoints as sampling points, and then connects these sampling points with the path points to obtain the connected path between each path point.

[0074] Specifically, the implementation process of the algorithm is as follows: select points of one unit length in the upper left, lower left, upper right, and lower right directions of all vertices of all obstacles in the two-dimensional task space, determine whether these points are inside the obstacles, and select the points that are not inside the obstacles as feasible points. The schematic diagram of feasible points is shown in the figure. These selected feasible points are combined with each path point to form a search point set. After that, this search point set only needs to be used as the search range of the traditional A* algorithm to obtain the path from each path point to the remaining path points. Compared with the traditional A* algorithm, this method greatly reduces the search range and greatly improves the search speed. The search comparison diagram is shown in the figure. Figure 3 shown.

[0075] After obtaining the path from each path point to all other path points, the genetic algorithm is used to solve the order of visiting nodes according to the path between the obtained path points, and the path point visiting order of the dynamic agent is obtained; that is, the starting point is taken as the first element of the sequence, and the position where the dynamic agent achieves the maximum objective function H(s) is taken as the end point, and the intermediate order is obtained by the evolutionary algorithm. The following objective function is used as an indicator to judge the quality of the dynamic agent path:

[0076]

[0077] Among them, t L represents the time of the dynamic agent's movement, t M represents the time when the dynamic agent stops at the target point, represents the average value of the objective function number H(s) at each moment on the path. Therefore, H scost As the cost of the path rather than just the distance.

[0078]

[0079] Among them, L ij is the length of the dynamic agent path, H max Maximize the value of the objective function H(s) for the dynamic agent, is the average value of the objective function when the dynamic agent passes through this path, and V is the moving speed of the agent.

[0080] The specific implementation process of the algorithm is as follows:

[0081] First, randomly initialize a certain number of populations, and we will As the cost calculation between any two points, the fitness function is set to f = 1 / H scost In the iterative process, the 10% species with the strongest adaptability are first retained, and then The probability of selection is used as the weight, and the remaining 90% of species are selected. In the iterative process, the 10% of species with the strongest adaptability are first retained, and the species that survive the selection are crossovered with a probability of 70%. Two species are selected to exchange the nodes after one point, and the repeated positions are also identified. The repeated nodes of both parties are exchanged to obtain the iterative result. In order to prevent falling into the local optimal situation, mutation is added, that is, the order of cities in the node is disrupted with a certain probability. The current probability used is 20%.

[0082] By executing the above steps, this embodiment obtains the paths of dynamic agents and the positions of static agents in three different environments. Figure 5 As shown, effective coverage of the target area can be completed in a shorter time. At the same time, the path planning of the dynamic intelligent agent of this embodiment is compared with the search-based A* algorithm and the sampling-based SFF* algorithm. The results are shown in Table 1. It can be seen that in the process of implementing effective coverage, the method used in this embodiment is optimal in terms of both time and loss.

[0083] Table 1 Comparison of the improved lightweight A* algorithm, the A* algorithm and the SFF* algorithm

[0084]

[0085]

[0086] S5, controlling the movement of the dynamic intelligent agent according to the planned path to achieve effective coverage of the area.

[0087] In summary, this embodiment provides a multi-agent coverage method in a complex environment based on a lightweight A* algorithm, which mainly includes three parts: determining the position of the static agent, determining the moving path points of the dynamic agent, and determining the path of the dynamic agent by combining the lightweight A* algorithm with the TSP algorithm to achieve effective coverage of the area that is not effectively covered. Among them, the determination of the position of the static agent is determined based on the coverage performance, and the position that can maximize the coverage performance is obtained by the gradient algorithm as the position of the static agent in the area; the determination of the path points of the dynamic agent is based on the sampling method to sample the area that the static agent cannot cover, and supplement the dynamic agent path points to cover the uncovered area; the determination of the path of the dynamic agent is to rely on the search-based algorithm to obtain the path of the path points connected in pairs, and then continuously evolve the result through the genetic algorithm, which can obtain a better result in a shorter time. Based on this, not only can the coverage performance be improved while achieving effective coverage, but it also has the advantages of high efficiency and strong robustness.

[0088] Second embodiment

[0089] This embodiment provides an electronic device, such as Figure 6 As shown, the electronic device includes: a processor and a memory; wherein the processor and the memory can be connected via a communication bus; the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method of the first embodiment. In addition, the electronic device may also include a transceiver, the processor and the transceiver can be connected via a communication bus, and the transceiver is used to communicate with other devices.

[0090] Next, combine Figure 6 The following is a detailed introduction to the various components of the electronic device:

[0091] Among them, the processor is the control center of the electronic device, and the electronic device may include multiple processors, each of which may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may be a processor or a general term for multiple processing elements. For example, the processor is one or more central processing units (CPUs), or other general-purpose processors, application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement an embodiment of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor may execute various functions of the electronic device by running or executing software programs stored in the memory and calling data stored in the memory.

[0092] In a specific implementation, as an embodiment, the processor may include one or more CPUs, such as Figure 6 The CPU0 and CPU1 shown in the figure are, of course, only exemplary.

[0093] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0094] Optionally, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be integrated with the processor or exist independently and accessed through the interface circuit ( Figure 6 (not shown) is coupled to the processor, which is not specifically limited in this embodiment of the present invention.

[0095] The transceiver may include a receiver and a transmitter ( Figure 6 The receiver is used to implement the receiving function, and the transmitter is used to implement the sending function. The transceiver can be integrated with the processor or exist independently and communicate with the electronic device through the interface circuit ( Figure 6 (not shown) is coupled to the processor, which is not specifically limited in this embodiment of the present invention.

[0096] In addition, it should be noted that Figure 6 The structure of the electronic device shown in the figure does not constitute a limitation on the device, and the actual device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In addition, the technical effects achieved by the electronic device when executing the method of the first embodiment above can refer to the technical effects described in the first embodiment above, so they are not repeated here.

[0097] Third embodiment

[0098] This embodiment provides a computer-readable storage medium, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the method of the first embodiment. The computer-readable storage medium may be a ROM, a random access memory, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc. The instructions stored therein may be loaded by a processor in a terminal to execute the method.

[0099] In addition, it should be noted that the present invention can be provided as a method, an apparatus or a computer program product. Therefore, the embodiment of the present invention can be in the form of a full or partial hardware embodiment, a full or partial software embodiment or an embodiment combining software and hardware. Moreover, when implemented using software, the embodiment of the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center containing one or more available media sets. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium. The semiconductor medium may be a solid state hard disk.

[0100] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0102] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements. In addition, the term "and / or" is only an association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding. "At least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can be represented by: a, b, c, ab, ac, bc or abc, where a, b, c can be single or plural.

[0103] In addition, it can be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] In several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of functional modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0106] If the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0107] Finally, it should be noted that the above is a preferred embodiment of the present invention. It should be pointed out that although the preferred embodiment of the present invention has been described, for those skilled in the art, once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention. Therefore, the attached claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.

Claims

1. A multi-agent coverage method in a complex environment based on a lightweight A* algorithm, where: The complex environment refers to a two-dimensional environment with obstacles; The multi-agent includes a static agent and a dynamic agent; the characteristic is that the multi-agent coverage method under a complex environment includes: With the goal of maximizing coverage performance, determining the position of the static agent in the area, and dividing the area into an effectively covered area and an ineffectively covered area according to the position of the static agent; Calculate the maximum coverage performance that a dynamic agent can achieve; Sampling the effectively uncovered area to obtain a path point of the dynamic intelligent agent; Taking the initial position of the dynamic agent as the starting point and the point where the dynamic agent can obtain the maximum coverage performance as the end point, a lightweight A* algorithm combined with a genetic algorithm is used to perform path planning based on the path points; According to the planned path, the dynamic intelligent body is controlled to move to achieve effective coverage of the area; Taking the initial position of the dynamic agent as the starting point and the point where the dynamic agent can obtain the maximum coverage performance as the end point, a lightweight A* algorithm combined with a genetic algorithm is used to perform path planning based on the path points, including: Select all vertices of each obstacle in the two-dimensional task space, and then for each selected vertex, select points one unit length away from it in the upper left, lower left, upper right, and lower right directions, and determine whether these points are inside the corresponding obstacles. Select the points that are not inside the obstacles as feasible points, and combine these selected feasible points with each path point to form a search point set. Then, use this search point set as the search range of the traditional A* algorithm to find the path from each path point to the remaining path points; For the path obtained by the A* algorithm, a genetic algorithm is used to solve the order of visiting nodes.

2. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 1, characterized in that: The calculation formula of the coverage performance is: H(S)=∫ Ω R(x)P(x,S)dx Where H(S) represents the calculated coverage performance; P(x,S) represents the joint detection probability of the multi-agent system at point x, is the detection probability of agent i at point x; N is the number of agents; R(x) is the event density function; Ω represents the two-dimensional target area.

3. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 2, characterized in that: The detection probability of agent i at point x is divided into two parts, visible area and invisible area, due to the influence of obstacles, as shown below: Among them, V(s i ) represents the visible area of ​​agent i; represents the invisible area of ​​agent i; λ i represents the attenuation coefficient of the agent's detection ability, ‖xs i ‖ represents the Euclidean distance from x to agent i; 4. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 3, characterized in that: The joint detection probability P(x,S) of the multi-agent system at point x is affected by obstacles and is divided into two parts, as shown below: in, represents the detection probability of the remaining agents except agent i at point x.

5. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 4, characterized in that: The determining the position of the static agent in the area comprises: The position that maximizes the coverage performance is obtained through the gradient algorithm as the position of the static agent in the area.

6. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 5, characterized in that: The expression of the gradient algorithm in the x direction is: Where V(S) represents the visible area of ​​the agent; s x Represents the x-coordinate of the agent; Indicates the boundary of the agent's visible area; u x 、u y Represents the value of the velocity vector in the x and y directions at the boundary point of the agent's visible area; dx x ,dx y They represent the differentials in the x and y directions respectively.

7. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 1, characterized in that: When the area is divided into effectively covered areas and not effectively covered areas, the basis for judging whether a point x in the area is effectively covered is: whether the joint detection probability P(x, S) of the multi-agent system at point x is greater than a preset threshold. When P(x, S) is greater than the preset threshold, it is determined that point x is effectively covered; when P(x, S) is not greater than the preset threshold, it is determined that point x is not effectively covered.

8. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 1, characterized in that: Sampling the effectively uncovered area to obtain the path points of the dynamic agent includes: Step 1, removing the area that the dynamic agent can cover at the starting point and the end point from the ineffective coverage area, so as to update the ineffective coverage area and obtain a new ineffective coverage area; Step 2: Sample the current uncovered area, randomly select an uncovered point from it, and obtain the radius that can effectively cover it according to the difference between the joint detection probability of the point and the preset threshold. Randomly select ten points in this radius, and then select the point that can maximize the coverage performance from these ten points as the path point of the dynamic intelligent agent, and remove the area that can be covered by the path point from the current uncovered area to update the uncovered area and obtain a new uncovered area. Step 3, repeat step 2 until all areas are effectively covered and multiple path points are obtained.

9. The multi-agent coverage method in a complex environment based on the lightweight A* algorithm as claimed in claim 1, characterized in that: When using a genetic algorithm to solve the order of visiting nodes, the movement cost of the path is: Among them, H scost represents the calculated moving cost of the path; L ij represents the length of the dynamic agent path; H max Represents the value of the dynamic agent maximizing the objective function; It represents the average value of the objective function when the dynamic agent passes through the current path; V represents the moving speed of the agent.