A collaborative planning method for capsule airport deployment and UAV area scanning mission
Through the collaborative planning method of capsule airport deployment and drone area scanning mission, combined with the concave and concave characteristics of the cover area and heuristic algorithm, the flight path of the drone and the allocation of capsule airports is optimized, and flight in drone scanning missions is solved The problem of too long distance improves scanning efficiency and range.
Patent Information
- Application Number
- CN202210625593.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-06-02
AI Technical Summary
In the prior art, it is difficult to select a suitable location to deploy capsule airports and reasonably deploy drones, resulting in the problems of excessive flight distance, low efficiency and insufficient range when performing scanning tasks.
The collaborative planning method of capsule airport deployment and drone area scanning task is adopted. By dividing segmented scanning paths, the path is allocated to candidate capsule airports based on the principle of proximity allocation, and the final deployment capsule airport collection is determined using neighborhood search method to optimize unmanned The flight path of the aircraft and the allocation of capsule airports, combined with the convex and concave characteristics of the cover area, adopts spiral or mowed scanning method to design a heuristic algorithm based on greedy matching and trajectory clustering, and further passes an optimization algorithm based on neighborhood search Adjust the deployment plan.
It realizes the shortest flight distance of the drone when performing scanning tasks, improves scanning efficiency and range, reduces the total distance between the drone and the capsule airport, and improves battery life and mission efficiency.
Smart Images

Figure CN115143988B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unmanned aerial vehicles, and in particular to a method for collaborative planning of capsule airport deployment and unmanned aerial vehicle area scanning tasks. Background Art
[0002] Small drones have the advantages of low cost, flexible deployment, and close reconnaissance. They have been increasingly widely used in civil fields such as reconnaissance and monitoring, vegetation monitoring, field search and rescue, and forest fire prevention. For typical application scenarios such as the wild or wide-area range, where drones have insufficient endurance, capsule airports loaded with small drones can be deployed to store and charge multiple drones and ensure the takeoff and landing of drones.
[0003] When using capsule airports as hubs and drones as mission units to perform reconnaissance and surveillance tasks in the region, how to choose a suitable location to deploy capsule airports and reasonably deploy drones is an important issue facing decision makers.
[0004] In the process of implementing the present invention, the applicant discovered that there are at least the following problems in the prior art:
[0005] How to choose a suitable location to deploy a capsule airport and deploy drones properly. Summary of the invention
[0006] The embodiment of the present invention provides a method for collaborative planning of capsule airport deployment and unmanned aerial vehicle area scanning tasks, which solves the technical problem of how to select a suitable location to deploy a capsule airport and reasonably deploy unmanned aerial vehicles.
[0007] To achieve the above-mentioned purpose, on the one hand, an embodiment of the present invention provides a method for collaborative planning of capsule airport deployment and drone area scanning tasks, which is characterized by comprising:
[0008] Planning a flight path for the drone when scanning the scanning area according to the shape of the scanning area;
[0009] Dividing the flight path into at least one segmented scanning path; wherein all the segmented scanning paths constitute a segmented scanning path set;
[0010] According to the distance between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set, based on the principle of proximity allocation, the segmented scanning path is allocated to the capsule airport to obtain a selected capsule airport set, and the capsule airports that are not allocated to the segmented scanning path form an unselected capsule airport set; wherein the candidate capsule airport set is composed of capsule airports correspondingly set at at least one preset position inside and / or outside the scanning area;
[0011] Determine a final deployed capsule airport set based on a neighborhood search method according to the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set;
[0012] The capsule airport corresponding to the scanning area is deployed according to each capsule airport in the final deployed capsule airport set, and a segmented scanning path is obtained according to the allocation of each capsule airport in the final deployed capsule airport set to execute the drone area scanning task.
[0013] Furthermore, planning a flight path of the drone when scanning the scanning area according to the shape of the scanning area includes:
[0014] Determine the scanning width of the UAV according to the camera parameters, the camera viewing angle and the ground resolution, and obtain the scanning spacing of the UAV according to the scanning width of the UAV and a preset lateral overlap rate;
[0015] The scanning mode is determined according to the shape of the scanning area, and the flight path of the drone when scanning the scanning area is planned according to the scanning mode and the scanning distance of the drone.
[0016] Further, the determining of the scanning width of the UAV according to the camera parameters, the camera viewing angle and the ground resolution, and obtaining the scanning spacing of the UAV according to the scanning width of the UAV and a preset lateral overlap rate include:
[0017] The flight altitude of the drone is calculated according to the following formula (1):
[0018]
[0019] Where: h is the flight altitude of the drone, f is the focal length of the lens, a is the pixel size, and GSD is the ground resolution; wherein the camera parameters include the focal length of the lens and the pixel size;
[0020] According to the flight altitude of the drone and the camera angle of view fov, the drone scanning width W is calculated according to the following formula (2):
[0021]
[0022] Where: h is the flight altitude of the drone;
[0023] By the UAV scanning width W and the lateral overlap rate ω o , the UAV scanning distance D is calculated according to the following formula (3):
[0024] D=W(1-ω o ) (3)
[0025] Furthermore, dividing the flight path into at least one segmented scanning path comprises:
[0026] The flight path is divided into at least one segmented scanning path according to preset equal flight distances.
[0027] Furthermore, the step of allocating the segmented scanning paths to the capsule airports to obtain the selected capsule airport set based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set includes:
[0028] For each segmented scanning path, find the capsule airport with the shortest distance to the current segmented scanning path in the candidate capsule airport set, and assign the current segmented scanning path to the found capsule airport, so that the found capsule airports constitute a first capsule airport set;
[0029] Find the segmented scanning path j with the shortest distance to the capsule airport assigned to each segmented scanning path and the capsule airport i assigned to the segmented scanning path j in the segmented scanning path set, and release the assignment relationship between the capsule airport i and other segmented scanning paths except the segmented scanning path j;
[0030] Find C-1 segmented scanning paths that are shortest to the capsule airport i among the segmented scanning paths other than the segmented scanning path j in the segmented scanning path set, and assign the found C-1 segmented scanning paths to the capsule airport i, add the capsule airport i to the selected capsule airport set, and remove the capsule airport i from the first capsule airport set;
[0031] Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set:
[0032] Randomly select a capsule airport k from the first capsule airport set, cancel the existing assignment relationship between all segmented scanning paths and the capsule airport k, find C segmented scanning paths closest to the capsule airport k from the segmented scanning paths in the segmented scanning path set that are not assigned to the capsule airport in the selected capsule airport set, assign the found C segmented scanning paths to the capsule airport k, add the capsule airport k to the selected capsule airport set, and remove the capsule airport k from the first capsule airport set;
[0033] Where C is the maximum number of segmented scanning paths that can be allocated to each capsule airport.
[0034] Furthermore, the step of allocating the segmented scanning paths to the capsule airports to obtain the selected capsule airport set based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set includes:
[0035] Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set:
[0036] For each capsule airport in the candidate capsule airport set but not in the selected capsule airport set, find C segmented scanning paths closest to the capsule airport from the segmented scanning path set, and assign the found C segmented scanning paths to the capsule airport;
[0037] A capsule airport having the smallest sum of distances between the capsule airport and the C segmented scanning paths assigned to it is found in the candidate capsule airport set, and the found capsule airport is added to the selected capsule airport set.
[0038] Further, the method of determining the final deployed capsule airport set based on the neighborhood search method according to the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set includes:
[0039] Calculate the distance and value of the selected capsule airport set as the initial sum value, and back up the selected capsule airport set to obtain the initial capsule airport set;
[0040] randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set;
[0041] Release the assignment relationship between each capsule airport in the selected capsule airport set and its segmented scanning path;
[0042] For each segmented scanning path in the segmented scanning path set, find the capsule airport with the shortest distance to the current segmented scanning path from the capsule airports in the selected capsule airport set whose number of allocated segmented scanning paths is less than C, and allocate the current segmented scanning path to the found capsule airport;
[0043] Calculate the distance and value of the selected capsule airport set as the first distance and value;
[0044] If the first distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the first distance sum value to the initial sum value; otherwise,
[0045] Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the first distance sum value;
[0046] Randomly select two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T;
[0047] exchanging the segmented scanning paths assigned to the capsule airport S and the capsule airport T;
[0048] Calculating the distance and value of the selected capsule airport set as the second distance and value;
[0049] If the second distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the second distance sum value to the initial sum value; otherwise,
[0050] Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the second distance sum value;
[0051] If the preset first iteration termination condition is not met, then return to the step of randomly selecting two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T; otherwise,
[0052] If the preset second iteration termination condition is not met, return to the step of randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set; otherwise, the initial capsule airport set is used as the final deployed capsule airport set;
[0053] The distance sum value of the selected capsule airport set is the sum of the distances between all capsule airports in the selected capsule airport set and their respective segmented scanning paths.
[0054] Furthermore, determining a scanning mode according to the shape of the scanning area, and planning a flight path of the drone when scanning the scanning area according to the scanning mode and the drone scanning distance, includes:
[0055] The boundary range of the scanning area is obtained, the perimeter and area of the scanning area are calculated, and the circularity is calculated.
[0056] If the circularity is greater than or equal to 0.86, the spiral scanning mode is selected, and the UAV scanning pitch is used as the spiral pitch to calculate the length of the spiral scanning path.
[0057] If the circularity is less than 0.86, a lawn mowing scanning method is selected. The convexity and concavity of the coverage area are determined by the vector cross multiplication method. If it is a concave polygon, the convex hull of the concave polygon is generated by the Graham-Scan algorithm. The long axis of the convex hull is found by the minimum span method. The concave polygon is decomposed into multiple convex polygon sub-areas in a direction parallel to the long axis by the trapezoidal decomposition method. The entire current convex polygon sub-area is traversed along the long axis direction of each convex polygon sub-area using a lawn mowing scanning method. The starting point and end point of the flight path in each convex polygon sub-area are calculated, and the starting point and end point of the flight path of each convex polygon sub-area are sequentially connected in a nearest manner to obtain the flight path of the drone.
[0058] The above technical scheme has the following beneficial effects: a method for calculating the scanning spacing of drones and selecting the scanning mode is given; secondly, a concave polygon decomposition method based on trapezoidal decomposition and a path generation algorithm based on long axis scanning are proposed in combination with the convexity and concavity characteristics of the coverage area; on the basis of the drone coverage scanning path planning, the characteristics of the capsule airport deployment and scanning task allocation problem are analyzed, and the 0-1 integer programming model of the problem is established with the goal of minimizing the total distance of the drone to and from the capsule airport. A heuristic algorithm based on greedy matching and a heuristic algorithm based on trajectory clustering are designed to quickly construct the initial feasible solution of the problem. Then, an improved optimization algorithm based on neighborhood search is further designed to solve the technical problem of how to select a suitable location to deploy the capsule airport and reasonably deploy the drone, so that the drone can fly the shortest distance when performing the scanning task, thereby improving the scanning efficiency and saving power and increasing the range. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0060] Figure 1 It is a flow chart of a method for collaborative planning of capsule airport deployment and UAV area scanning tasks according to one embodiment of the present invention;
[0061] Figure 2 This is a schematic diagram of a capsule airport system according to one embodiment of the present invention;
[0062] Figure 3 It is a schematic diagram of the spiral scanning method in the prior art;
[0063] Figure 4 It is a schematic diagram of the mowing-type scanning method in the prior art;
[0064] Figure 5 It is a schematic diagram of replacing a capsule airport in a selected capsule airport set with a capsule airport in an unselected capsule airport set according to one embodiment of the present invention;
[0065] Figure 6 It is a schematic diagram of segmented scanning service exchange between capsule airports within a selected capsule airport set according to one embodiment of the present invention;
[0066] Figure 7 It is a flowchart of one of the embodiments of the present invention for performing a field search to determine a final deployed capsule airport set and an allocation relationship between capsule airports in the final deployed capsule airport set and segmented scanning paths. DETAILED DESCRIPTION
[0067] 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 only 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 are within the scope of protection of the present invention.
[0068] On the one hand, if Figure 1 As shown, an embodiment of the present invention provides a method for collaborative planning of capsule airport deployment and drone area scanning tasks, including:
[0069] Step S100, planning a flight path for the drone to scan the scanning area according to the shape of the scanning area;
[0070] Step S101, dividing the flight path into at least one segmented scanning path; wherein all segmented scanning paths constitute a segmented scanning path set;
[0071] Step S102, according to the distance between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set, based on the principle of proximity allocation, the segmented scanning path is allocated to the capsule airport to obtain a selected capsule airport set, and the capsule airports that are not allocated to the segmented scanning path are formed into an unselected capsule airport set; wherein the candidate capsule airport set is composed of capsule airports correspondingly arranged at at least one preset position inside and / or outside and / or on the boundary of the scanning area;
[0072] Step S103, determining a final deployed capsule airport set based on a neighborhood search method according to the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set;
[0073] Step S104, deploying capsule airports corresponding to the scanning area according to each capsule airport in the final deployed capsule airport set, and performing the drone area scanning task according to the segmented scanning path allocated to each capsule airport in the final deployed capsule airport set.
[0074] Furthermore, planning a flight path of the drone when scanning the scanning area according to the shape of the scanning area includes:
[0075] Determine the scanning width of the UAV according to the camera parameters, the camera viewing angle and the ground resolution, and obtain the scanning spacing of the UAV according to the scanning width of the UAV and a preset lateral overlap rate;
[0076] The scanning mode is determined according to the shape of the scanning area, and the flight path of the drone when scanning the scanning area is planned according to the scanning mode and the scanning distance of the drone.
[0077] Further, the determining of the scanning width of the UAV according to the camera parameters, the camera viewing angle and the ground resolution, and obtaining the scanning spacing of the UAV according to the scanning width of the UAV and a preset lateral overlap rate include:
[0078] Calculate the flight altitude of the drone according to formula (1);
[0079] According to the flight altitude of the drone and the camera angle of view fov, the drone scanning width W is calculated according to formula (2);
[0080] By the UAV scanning width W and the lateral overlap rate ω o , the UAV scanning distance D is calculated according to formula (3);
[0081] Furthermore, dividing the flight path into at least one segmented scanning path comprises:
[0082] The flight path is divided into at least one segmented scanning path according to preset equal flight distances.
[0083] Furthermore, the step of allocating the segmented scanning paths to the capsule airports to obtain the selected capsule airport set based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set includes:
[0084] For each segmented scanning path, find the capsule airport with the shortest distance to the current segmented scanning path in the candidate capsule airport set, and assign the current segmented scanning path to the found capsule airport, so that the found capsule airports constitute a first capsule airport set;
[0085] Find the segmented scanning path j with the shortest distance to the capsule airport assigned to each segmented scanning path and the capsule airport i assigned to the segmented scanning path j in the segmented scanning path set, and release the assignment relationship between the capsule airport i and other segmented scanning paths except the segmented scanning path j;
[0086] Find C-1 segmented scanning paths that are shortest to the capsule airport i among the segmented scanning paths other than the segmented scanning path j in the segmented scanning path set, and assign the found C-1 segmented scanning paths to the capsule airport i, add the capsule airport i to the selected capsule airport set, and remove the capsule airport i from the first capsule airport set;
[0087] Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set:
[0088] Randomly select a capsule airport k from the first capsule airport set, cancel the existing assignment relationship between all segmented scanning paths and the capsule airport k, find C segmented scanning paths closest to the capsule airport k from the segmented scanning paths in the segmented scanning path set that are not assigned to the capsule airport in the selected capsule airport set, assign the found C segmented scanning paths to the capsule airport k, add the capsule airport k to the selected capsule airport set, and remove the capsule airport k from the first capsule airport set;
[0089] Where C is the maximum number of segmented scanning paths that can be allocated to each capsule airport;
[0090] Among them, i, j, and k in the embodiment of the present invention are only numbers added to the segmented scanning path or capsule airport currently being operated in the corresponding step for the purpose of clearer explanation, so as to more clearly explain the source of the referenced scanning path or capsule airport in the step.
[0091] Furthermore, the step of allocating the segmented scanning paths to the capsule airports to obtain the selected capsule airport set based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set includes:
[0092] Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set:
[0093] For each capsule airport in the candidate capsule airport set but not in the selected capsule airport set, find C segmented scanning paths closest to the capsule airport from the segmented scanning path set, and assign the found C segmented scanning paths to the capsule airport;
[0094] A capsule airport having the smallest sum of distances between the capsule airport and the C segmented scanning paths assigned to it is found in the candidate capsule airport set, and the found capsule airport is added to the selected capsule airport set.
[0095] Further, the method of determining the final deployed capsule airport set based on the neighborhood search method according to the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set includes:
[0096] Calculate the distance and value of the selected capsule airport set as the initial sum value, and back up the selected capsule airport set to obtain the initial capsule airport set;
[0097] randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set;
[0098] Release the assignment relationship between each capsule airport in the selected capsule airport set and its segmented scanning path;
[0099] For each segmented scanning path in the segmented scanning path set, find the capsule airport with the shortest distance to the current segmented scanning path from the capsule airports in the selected capsule airport set whose number of allocated segmented scanning paths is less than C, and allocate the current segmented scanning path to the found capsule airport;
[0100] Calculate the distance and value of the selected capsule airport set as the first distance and value;
[0101] If the first distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the first distance sum value to the initial sum value; otherwise,
[0102] Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the first distance sum value;
[0103] Randomly select two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T;
[0104] exchanging the segmented scanning paths assigned to the capsule airport S and the capsule airport T;
[0105] Calculating the distance and value of the selected capsule airport set as the second distance and value;
[0106] If the second distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the second distance sum value to the initial sum value; otherwise,
[0107] Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the second distance sum value;
[0108] If the preset first iteration termination condition is not met, then return to the step of randomly selecting two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T; otherwise,
[0109] If the preset second iteration termination condition is not met, return to the step of randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set; otherwise, the initial capsule airport set is used as the final deployed capsule airport set;
[0110] The distance sum value of the selected capsule airport set is the sum of the distances of all capsule airports in the selected capsule airport set and their respective segmented scanning paths;
[0111] The first iteration termination condition may be that the number of cycles of the first loop is greater than or equal to a preset first iteration number;
[0112] The first iteration termination condition may also be that the second distance sum value obtained in each execution of the first loop for a first preset number of consecutive executions is greater than or equal to the initial sum value;
[0113] The first loop is a step of randomly selecting two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T, to a step of determining if a preset first iteration termination condition is not met;
[0114] The second iteration termination condition may be that the number of cycles of the second loop is greater than or equal to a preset number of second iterations;
[0115] The second iteration termination condition may also be that the second distance sum value obtained in each execution of the second loop for a second preset number of consecutive executions is greater than or equal to the initial sum value;
[0116] The second loop is a step of randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set until the step does not meet the preset second iteration termination condition;
[0117] Among them, P and Q in the embodiment of the present invention are only numbers added to the capsule airport currently being operated in the corresponding step for the purpose of more clear description, so as to more clearly describe the source of the capsule airport in the step.
[0118] Furthermore, determining a scanning mode according to the shape of the scanning area, and planning a flight path of the drone when scanning the scanning area according to the scanning mode and the drone scanning distance, includes:
[0119] The boundary range of the scanning area is obtained, the perimeter and area of the scanning area are calculated, and the circularity is calculated.
[0120] If the circularity is greater than or equal to 0.86, the spiral scanning mode is selected, and the UAV scanning pitch is used as the spiral pitch to calculate the length of the spiral scanning path.
[0121] If the circularity is less than 0.86, a lawn mowing scanning method is selected. The convexity and concavity of the coverage area are determined by the vector cross multiplication method. If it is a concave polygon, the convex hull of the concave polygon is generated by the Graham-Scan algorithm. The long axis of the convex hull is found by the minimum span method. The concave polygon is decomposed into multiple convex polygon sub-areas in a direction parallel to the long axis by the trapezoidal decomposition method. The entire current convex polygon sub-area is traversed along the long axis direction of each convex polygon sub-area using a lawn mowing scanning method. The starting point and end point of the flight path in each convex polygon sub-area are calculated, and the starting point and end point of the flight path of each convex polygon sub-area are sequentially connected in a nearest manner to obtain the flight path of the drone.
[0122] The embodiments of the present invention have the following beneficial effects: a method for calculating the scanning spacing of a UAV and selecting a scanning mode is provided; secondly, a concave polygon decomposition method based on trapezoidal decomposition and a path generation algorithm based on long-axis scanning are proposed in combination with the convexity and concavity characteristics of the coverage area; on the basis of the UAV coverage scanning path planning, the characteristics of the capsule airport deployment and scanning task allocation problem are analyzed, and a 0-1 integer programming model of the problem is established with the goal of minimizing the total distance of the UAV to and from the capsule airport. A heuristic algorithm based on greedy matching and a heuristic algorithm based on trajectory clustering are designed to quickly construct an initial feasible solution to the problem. Then, an improved optimization algorithm based on neighborhood search is further designed to solve the technical problem of how to select a suitable location to deploy a capsule airport and reasonably deploy UAVs, so that the UAV has the shortest flight distance when performing scanning tasks, thereby improving scanning efficiency and saving power and increasing range.
[0123] The above technical solution of the embodiment of the present invention is described in detail below in conjunction with specific application examples. For technical details not introduced during the implementation process, please refer to the relevant description in the previous text.
[0124] 1 System Model and Problem Definition
[0125] 1.1 System Model
[0126] 1.1.1 Capsule Airport Design
[0127] In view of the need for wide-area reconnaissance in wild areas lacking power supply infrastructure, the functional characteristics of the capsule airport are determined. According to the functional characteristics of the capsule airport system such as "automatic power generation, autonomous charging and battery replacement, and autonomous patrol", the present invention proposes the overall appearance design and subsystem design scheme of the capsule airport. The capsule airport system includes five subsystems: solar automatic charging system, automatic charging and battery replacement system, drone, drone landing and take-off platform, and intelligent environmental monitoring system. Figure 2 As shown in the figure, the capsule airport is a square box on the left and right, with environmental sensors installed on the top to sense changes in environmental conditions such as temperature, light, and wind direction. Folding solar panels are installed on both sides of the box, and the base can rotate. When the lighting conditions are good, the solar panels automatically open and adjust the position by rotating the base, using solar energy to power the airport and charge the drone battery.
[0128] 1.1.2 Model parameter setting
[0129] The capsule airport deployment and drone scanning path planning method mainly includes three factors: capsule airport candidate location, patrol path, and drone:
[0130] (1) Candidate locations for capsule airports
[0131] A series of locations with good terrain, lighting, communication and other conditions are selected as candidate locations for establishing capsule airports. The candidate locations (i.e., candidate capsule airports) can be inside, outside or on the border of the patrol area. The number of candidate locations m should be greater than the actual number P of deployed capsule airports (i.e., the capsule airports in the final set of deployed capsule airports) to find a better deployment plan. The number of drones equipped at each capsule airport does not exceed its upper limit C.
[0132] (2) Patrol route
[0133] After obtaining the drone scanning coverage path (i.e., the flight path of the drone when scanning the scanning area) by applying the drone area coverage path planning method in Section 2.1 of the embodiment of the present invention, the path is divided into several segments of equal length (i.e., at least one segmented scanning path) by uniform segmentation, and the obtained segmented trajectories are numbered to form a segmented trajectory set (i.e., a segmented scanning path set), the number of trajectories is N, and the starting and ending positions of each segment of the trajectory are determined. The sum of the flight distances between the starting and ending points of the trajectory and the candidate capsule airport is defined as the distance between the trajectory (i.e., the segmented scanning path) and the capsule airport, which is d ij .
[0134] (3) Drones
[0135] Suppose that all drones in the capsule airport constitute a set V, with a total of k drones. After taking off from a capsule airport, the drone must return to the original post in a straight line. Therefore, it can be considered that there are two states of drone flight: patrol state and non-patrol state. When the drone flies on the specified patrol track, the onboard camera and other equipment are turned on. At this time, it is in the patrol state and consumes more power; before reaching the patrol area or completing the scanning task of a certain section of the track, the drone turns off the onboard camera and leaves or returns to the original post in a straight line in a non-patrol state. At this time, the drone consumes less power.
[0136] When the candidate locations of capsule airports and the UAV area coverage scanning paths are determined, a 0-1 integer programming model for capsule airport site selection and UAV scanning task allocation is constructed with minimizing the round-trip distance of UAVs as the objective function and taking into account constraints such as the number of UAVs and the relationship between UAVs and patrol trajectories.
[0137] 1.2 Explanation of symbols
[0138] The parameters and decision variables used in the mathematical model are summarized as follows:
[0139]
[0140] Table 1 Description of parameters and decision variables
[0141] 1.3 Model establishment
[0142] If a drone k in capsule airport i is designated to be responsible for the patrol mission of the jth segment of the trajectory, the drone takes off from capsule airport i, enters the patrol state from the starting point of the trajectory, completes the patrol mission at the end point, and returns to capsule airport i. Then the round-trip flight distance d of drone k is ij According to formula (4), it is calculated as follows:
[0143]
[0144] in represents the flight distance between the starting point of the j-th trajectory and the i-th capsule airport, represents the flight distance between the end point of the j-th trajectory and the i-th capsule airport.
[0145] Assuming the objective function is to minimize the sum of the round-trip distances of all drones, the mathematical model constructed is as follows:
[0146] Min∑ i∈M ∑ j∈N ∑ k∈V d ij X ijk (5)
[0147] So that:
[0148] ∑ i∈M y i =P (6)
[0149]
[0150]
[0151]
[0152]
[0153] Constraint (6) indicates that the total number of capsule airports deployed at each candidate location is a constant value P. Constraint (7) indicates that each drone can be called at most once in a patrol mission. Constraint (8) indicates that each scanning reconnaissance trajectory can only be assigned to one drone. Constraint (9) indicates that the number of drones configured at each capsule airport does not exceed its maximum capacity. Constraint (10) indicates the range of variable values.
[0154] 2 Method design
[0155] 2.1 UAV regional coverage path planning method
[0156] In the reconnaissance and surveillance scenario facing irregular surface areas, the path planning problem of drones belongs to the category of coverage path planning (CPP). The drones scan the area in a specific way to generate a shortest path covering all targets. At this time, the scanning method, scanning interval and flight direction of the drone are the key to obtaining the shortest path.
[0157] The method of UAV area coverage path planning refers to obtaining the shortest path that traverses all targets in the area. When the UAV performs a mission, it uses the onboard camera to perform a reciprocating scan of targets in the area at equal intervals. First, the scanning interval is calculated; then, the flight direction of the UAV is determined based on the geometric characteristics of the irregular area; finally, the starting and end points of the scanning path and the total length of the flight path are calculated.
[0158] (1) UAV scanning distance
[0159] The scanning distance of the UAV is related to the UAV height and camera viewing angle. At the same time, the aerial image has certain requirements on the ground resolution. Combined with the performance of the oblique camera, the UAV flight altitude is usually calculated using formula (1);
[0160] The scanning width W of the drone can be calculated by formula (2) according to the drone's flight altitude and the camera's field of view fov;
[0161] In practical applications, the scanning width of a drone is not equivalent to the scanning spacing of the drone. In order to meet the requirements of image processing, the scanning width of a drone should have a certain lateral overlap rate. o , the flight path spacing of the UAV, i.e., the scanning spacing D of the UAV, can be calculated according to formula (3).
[0162] (2) Scanning method
[0163] There are two main ways for drones to scan the coverage area: spiral scanning and mowing scanning. Spiral scanning means that the drone uses the center of the coverage area as the spiral center and performs clockwise or counterclockwise spiral scanning with a constant spiral pitch. Mowing scanning means that the drone flies in a straight line, turns at the boundary, and then flies in the opposite direction along a parallel straight line, and so on until the entire area is covered. The mowing scanning lines are parallel to each other and are equally spaced. Due to its shape characteristics, this scanning method is also called "bow" scanning or "cow-plow" scanning.
[0164] For the same patrol area, the length of the drone's flight path may be significantly different if different scanning methods are used. Figure 3 As shown in the figure, the closer the patrol area is to a circle, the better the spiral scanning effect will be. Figure 4 As shown, the lawn mowing scanning method is more effective. When judging the degree of a polygon's proximity to a circle, the concept of circularity is used. The concept of circularity of a polygon is defined as the polygon area multiplied by 4π divided by the square of the perimeter. The calculation formula (11) is:
[0165]
[0166] Among them, e represents circularity, S represents polygon area, and L represents polygon perimeter. When e is 1, the polygon is a circle; the smaller e is, the more irregular the polygon is, and the greater the difference from a circle is. According to the calculation results of several typical polygon scanning lengths and circularity, when the polygon circularity is greater than 0.86, the spiral scanning method is more effective; otherwise, the lawnmowing scanning method is more effective.
[0167] (3) Determination and decomposition of the convexity and concavity of the coverage area
[0168] The mowing scanning method is mainly for convex polygons. Therefore, it is necessary to first determine the convexity and concavity of the coverage area. If the coverage area is a concave polygon, it is decomposed into multiple convex polygon sub-areas. The vector cross multiplication method is used to determine the convexity and concavity of the polygon.
[0169] For a planar polygon P, suppose there are n vertices, and the vertex set is V = {v1,v2,v3…v n}. For any vertex i, through v i-1 v i ×v i v i+1 , we can get the trend of three adjacent vertices and record the sign of the cross product result. By analogy, if the cross product result of two vectors is negative, the polygon is a concave polygon. If the cross product results of all adjacent vectors are greater than or equal to 0, it is a convex polygon.
[0170] For concave polygons, a trapezoidal decomposition method is used to draw parallel lines based on the long axis of the polygon to divide the polygon into several sub-regions. After decomposition, the sub-regions that meet the following two conditions are merged to reduce turns: one is that the sub-regions are adjacent, that is, at least one edge overlaps with each other; the other is that the long axes of adjacent sub-regions are parallel to each other.
[0171] The long axis of the convex polygon is determined by the minimum span method. For concave polygons, the long axis direction of the convex hull can be used as the long axis direction of the concave polygon. The convex hull of the concave polygon is obtained using the Graham-Scan convex hull generation algorithm.
[0172] Based on the method of selecting the scanning mode of unmanned area and determining and decomposing the convexity and concavity of the coverage area, a UAV area coverage path planning algorithm is designed. The overall process of the algorithm is as shown in algorithm (1):
[0173]
[0174]
[0175] First, input the boundary range of the coverage area and the scanning interval of the drone, calculate the perimeter and area of the area, and calculate the circularity. If the circularity is greater than or equal to 0.86, select the spiral scanning method, use the drone scanning interval as the spiral interval, and calculate the length of the spiral scanning path. If the circularity is less than 0.86, select the lawn mowing scanning method. At this time, first use the vector cross multiplication method to determine the convexity and concavity of the coverage area. If it is a concave polygon, use the Graham-Scan algorithm to generate the convex hull of the concave polygon, and then use the minimum span method to find the major axis of the convex hull, which is the major axis of the corresponding concave polygon. Then, use the trapezoidal decomposition method to decompose the concave polygon into convex polygon sub-areas in a direction parallel to the major axis. Make the drone fly along the major axis of its sub-area, traverse the entire sub-area using the lawn mowing scanning method, and calculate the starting point and end point of the flight path in each area. Finally, connect the starting point and end point of the flight path of each sub-area in turn in a nearest manner to obtain a drone flight path, and calculate the total length of the flight path.
[0176] 2.2 Capsule airport deployment and drone scanning task allocation method
[0177] According to the candidate capsule airport locations and the segmented scanning path of the drone, two feasible solution generation heuristic construction algorithms are adopted: a heuristic construction algorithm based on greedy matching and a heuristic construction algorithm based on trajectory clustering, and an optimization algorithm based on neighborhood search. The initial feasible solution is continuously optimized and iterated to obtain the optimal solution.
[0178] 2.2.1 Heuristic Construction Algorithm Based on Greedy Matching
[0179] Greedy Matchbased Heuristic Algorithm (GMH) refers to the method of selecting capsule airports and trajectories based on the distance between candidate capsule airports and each segmented trajectory, using the proximity principle, to obtain a feasible solution to the problem. The basic steps for generating a feasible solution are as follows:
[0180] Step 11: Given all candidate capsule airports i (i∈M) and the starting and ending positions of each segmented trajectory j (j∈N), the distance d between each segmented trajectory and the candidate capsule airport is ij , adopting the principle of proximity, each trajectory segment is assigned to the capsule airport closest to it.
[0181] Step 12: For all candidate capsule airports with assigned trajectories in Step 11, find dij The smallest capsule airport will be assigned the C-1 trajectories closest to it among the remaining unassigned trajectories. Therefore, the candidate capsule airport is determined as the deployment location (equivalent to joining the selected capsule airport set) and the allocation of the corresponding C trajectories is completed.
[0182] Step 13: Determine whether all segmented trajectories have been assigned to the capsule airport. If not, go to Step 14; if completed, end the algorithm.
[0183] Step 14: Randomly select a capsule airport from the remaining candidate capsule airports, and assign the C trajectories closest to it among the remaining unassigned trajectories to the capsule airport. Therefore, the candidate capsule airport is determined as the deployment location (equivalent to joining the selected capsule airport set) and the corresponding C trajectories are assigned, and then go to Step 13.
[0184] The corresponding pseudo code is shown in Algorithm (2).
[0185]
[0186] 2.2.2 Heuristic Construction Algorithm Based on Trajectory Clustering
[0187] The Trajectory Clustering based Heuristic Algorithm (TCH) is to find the C trajectories closest to each candidate capsule airport, calculate the sum of the round-trip distances between the C trajectories and the capsule airport, find the capsule airport with the smallest sum as the cluster center, and repeat the clustering process until all trajectories are assigned. The basic steps for generating a feasible solution are as follows:
[0188] Step 21: Knowing the starting and ending positions of all candidate capsule airports i and each segmented trajectory j, the sum of the distances d between the starting and ending points of each segmented trajectory and the candidate capsule airport is calculated. ij , find the C trajectories closest to each candidate capsule airport.
[0189] Step 22 For the remaining candidate capsule airports, find the distance d between each candidate capsule airport and its corresponding C trajectories. ij The candidate capsule airport with the smallest sum is determined as the deployment location (equivalent to joining the selected capsule airport set) and the allocation of the corresponding C trajectories is completed.
[0190] Step 23 determines whether all trajectories have been assigned to the capsule airport. If the assignment is not completed, go to Step 22; if the assignment is completed, end the algorithm.
[0191] The corresponding pseudo code is shown in Algorithm (3).
[0192]
[0193] 2.2.3 Optimization algorithm based on neighborhood search
[0194] After obtaining a feasible solution, it is necessary to conduct a local search (LS) on this basis to determine the optimal capsule airport deployment and drone allocation solution. There are two main operations:
[0195] (1) Airport location exchange
[0196] By deploying capsule airports at corresponding locations and assigning drones according to feasible solutions, all trajectories can be covered. However, there are also cases where other candidate capsule airports are closer to the assigned trajectories. Therefore, capsule airport position exchange refers to randomly selecting one from the initial solution, that is, the selected capsule airport (that is, the selected capsule airport set), closing it, and then randomly selecting one from the set of candidate capsule airports that have not been selected (that is, the unselected capsule airport set) to replace the closed capsule airport to form a new solution (that is, the selected capsule airport set that has replaced the capsule airport). Subsequently, each trajectory is assigned to the capsule airport closest to it among the selected capsule airports. If the number of trajectories assigned to the capsule airport reaches the upper limit of the number of drones equipped at the capsule airport, the trajectory is assigned to the closest one among the remaining capsule airports until all trajectories are assigned. At this time, the number of trajectories and drones corresponding to each capsule airport in the new solution are obtained. As Figure 5 As shown, the capsule airport at position 11 is closed and replaced by position 7, thereby completing the capsule airport position exchange operation.
[0197] (2) Scanning task exchange
[0198] Scanning task exchange means that after the capsule airport position exchange operation, two capsule airports are randomly selected from the selected capsule airports for deployment, and their corresponding scanning tasks are exchanged to obtain a new task allocation plan. Figure 6 As shown, capsule airport No. 1 and capsule airport No. 3 were selected and their assigned scanning tasks were exchanged. At this time, the total round-trip distance of the drone, that is, the sum of the lengths of the dotted lines, was significantly reduced.
[0199] The initial solution (i.e., the selected capsule airport set) is subjected to a capsule airport position exchange operation and a scanning task exchange operation in sequence, which is called an iteration. In each iteration, the capsule airport position exchange operation is first performed to obtain a new solution (i.e., the selected capsule airport set that replaces the capsule airport) and the corresponding objective function value (i.e., the sum of the distances between all capsule airports in the currently selected capsule airport set and their respective assigned segmented scanning paths). Then, it is determined whether the solution is improved compared to the initial solution. If there is an improvement, the solution and the objective function value are updated. Otherwise, the solution is discarded and the original solution is retained. Then, the scanning task exchange operation is performed to obtain a new solution again, and its corresponding objective function value is calculated. If there is an improvement, the solution is updated, and the next iteration is performed on this basis. Otherwise, the solution is discarded until the termination condition is reached to exit the loop, and the solution and objective function value at this time are output, i.e., the capsule airport deployment and unmanned scanning task allocation plan and the total round-trip distance of the drone. The detailed process of the algorithm is as follows. Figure 7 shown.
[0200] The embodiments of the present invention have the following beneficial effects: a method for calculating the scanning spacing of a UAV and selecting a scanning mode is provided; secondly, a concave polygon decomposition method based on trapezoidal decomposition and a path generation algorithm based on long-axis scanning are proposed in combination with the convexity and concavity characteristics of the coverage area; on the basis of the UAV coverage scanning path planning, the characteristics of the capsule airport deployment and scanning task allocation problem are analyzed, and a 0-1 integer programming model of the problem is established with the goal of minimizing the total distance of the UAV to and from the capsule airport. A heuristic algorithm based on greedy matching and a heuristic algorithm based on trajectory clustering are designed to quickly construct an initial feasible solution to the problem. Then, an improved optimization algorithm based on neighborhood search is further designed to solve the technical problem of how to select a suitable location to deploy a capsule airport and reasonably deploy UAVs, so that the UAV has the shortest flight distance when performing scanning tasks, thereby improving scanning efficiency and saving power and increasing range.
[0201] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0202] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0203] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.
[0204] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", as explained by "including:" used as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
[0205] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0206] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0207] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.
[0208] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.
[0209] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for collaborative planning of capsule airport deployment and drone area scanning tasks, characterized in that: include: Planning a flight path for the drone when scanning the scanning area according to the shape of the scanning area; Dividing the flight path into at least one segmented scanning path; wherein all the segmented scanning paths constitute a segmented scanning path set; According to the distance between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set, based on the principle of proximity allocation, the segmented scanning path is allocated to the capsule airport to obtain a selected capsule airport set, and the capsule airports that are not allocated to the segmented scanning path form an unselected capsule airport set; wherein the candidate capsule airport set is composed of capsule airports correspondingly set at at least one preset position inside and / or outside the scanning area; Determine a final deployed capsule airport set based on a neighborhood search method according to the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set; The capsule airport corresponding to the scanning area is deployed according to each capsule airport in the final deployed capsule airport set, and a segmented scanning path is obtained according to the allocation of each capsule airport in the final deployed capsule airport set to execute the drone area scanning task.
2. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 1 is characterized in that: The step of planning a flight path of the drone when scanning the scanning area according to the shape of the scanning area comprises: Determine the scanning width of the UAV according to the camera parameters, the camera viewing angle and the ground resolution, and obtain the scanning spacing of the UAV according to the scanning width of the UAV and a preset lateral overlap rate; The scanning mode is determined according to the shape of the scanning area, and the flight path of the drone when scanning the scanning area is planned according to the scanning mode and the scanning distance of the drone.
3. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 2 is characterized in that: Determining the scanning width of the drone according to the camera parameters, the camera viewing angle and the ground resolution, and obtaining the scanning spacing of the drone according to the scanning width of the drone and a preset lateral overlap rate, includes: Calculate the flight altitude of the drone according to the following formula: Where: h is the flight altitude of the drone, f is the focal length of the lens, a is the pixel size, and GSD is the ground resolution; wherein the camera parameters include the focal length of the lens and the pixel size; According to the flight altitude of the drone and the camera angle of view fov, the sweep width W of the drone is calculated according to the following formula: Where: h is the flight altitude of the drone; By the UAV scanning width W and the lateral overlap rate ω o , the UAV scanning distance D is calculated according to the following formula: D=W(1-ω o )。 4. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 1 is characterized in that: The step of dividing the flight path into at least one segmented scanning path comprises: The flight path is divided into at least one segmented scanning path according to preset equal flight distances.
5. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 1, characterized in that: The method allocates the segmented scanning paths to the capsule airports based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set to obtain the selected capsule airport set, including: For each segmented scanning path, find the capsule airport with the shortest distance to the current segmented scanning path in the candidate capsule airport set, and assign the current segmented scanning path to the found capsule airport, so that the found capsule airports constitute a first capsule airport set; Find the segmented scanning path j with the shortest distance to the capsule airport assigned to each segmented scanning path and the capsule airport i assigned to the segmented scanning path j in the segmented scanning path set, and release the assignment relationship between the capsule airport i and other segmented scanning paths except the segmented scanning path j; Find C-1 segmented scanning paths that are shortest to the capsule airport i among the segmented scanning paths other than the segmented scanning path j in the segmented scanning path set, and assign the found C-1 segmented scanning paths to the capsule airport i, add the capsule airport i to the selected capsule airport set, and remove the capsule airport i from the first capsule airport set; Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set: Randomly select a capsule airport k from the first capsule airport set, cancel the existing assignment relationship between all segmented scanning paths and the capsule airport k, find C segmented scanning paths closest to the capsule airport k from the segmented scanning paths in the segmented scanning path set that are not assigned to the capsule airport in the selected capsule airport set, assign the found C segmented scanning paths to the capsule airport k, add the capsule airport k to the selected capsule airport set, and remove the capsule airport k from the first capsule airport set; Where C is the maximum number of segmented scanning paths that can be allocated to each capsule airport.
6. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 1, characterized in that: The method allocates the segmented scanning paths to the capsule airports based on the principle of proximity allocation according to the distances between each segmented scanning path in the segmented scanning path set and each capsule airport in the candidate capsule airport set to obtain the selected capsule airport set, including: Repeat the following steps until all the segmented scanning paths in the segmented scanning path set are assigned to capsule airports in the selected capsule airport set: For each capsule airport in the candidate capsule airport set but not in the selected capsule airport set, find C segmented scanning paths closest to the capsule airport from the segmented scanning path set, and assign the found C segmented scanning paths to the capsule airport; A capsule airport having the smallest sum of distances between the capsule airport and the C segmented scanning paths assigned to it is found in the candidate capsule airport set, and the found capsule airport is added to the selected capsule airport set.
7. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 1, characterized in that: The method of determining the final deployed capsule airport set based on the selected capsule airport set, the unselected capsule airport set and the segmented scanning path set based on a neighborhood search method includes: Calculate the distance and value of the selected capsule airport set as the initial sum value, and back up the selected capsule airport set to obtain the initial capsule airport set; randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set; Release the assignment relationship between each capsule airport in the selected capsule airport set and its segmented scanning path; For each segmented scanning path in the segmented scanning path set, find the capsule airport with the shortest distance to the current segmented scanning path from the capsule airports in the selected capsule airport set whose number of allocated segmented scanning paths is less than C, and allocate the current segmented scanning path to the found capsule airport; Calculate the distance and value of the selected capsule airport set as the first distance and value; If the first distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the first distance sum value to the initial sum value; otherwise, Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the first distance sum value; Randomly select two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T; exchanging the segmented scanning paths assigned to the capsule airport S and the capsule airport T; Calculating the distance and value of the selected capsule airport set as the second distance and value; If the second distance sum value is less than the initial sum value, assign the selected capsule airport set to the initial capsule airport set, and assign the second distance sum value to the initial sum value; otherwise, Assigning the initial capsule airport set to the selected capsule airport set, and assigning the initial sum value to the second distance sum value; If the preset first iteration termination condition is not met, then return to the step of randomly selecting two capsule airports from the selected capsule airport set, namely capsule airport S and capsule airport T; otherwise, If the preset second iteration termination condition is not met, return to the step of randomly selecting a capsule airport P from the selected capsule airport set, randomly selecting a capsule airport Q from the unselected capsule airport set, removing the capsule airport P from the selected capsule airport set, and adding the capsule airport Q to the selected capsule airport set; otherwise, the initial capsule airport set is used as the final deployed capsule airport set; The distance sum value of the selected capsule airport set is the sum of the distances between all capsule airports in the selected capsule airport set and their respective segmented scanning paths.
8. The capsule airport deployment and drone area scanning task collaborative planning method as claimed in claim 2 is characterized in that: The step of determining a scanning mode according to the shape of the scanning area, and planning a flight path of the drone when scanning the scanning area according to the scanning mode and the scanning distance of the drone, includes: Obtaining the boundary range of the scanning area, calculating the perimeter and area of the scanning area, and calculating the circularity; If the circularity is greater than or equal to 0.86, the spiral scanning mode is selected, and the UAV scanning pitch is used as the spiral pitch to calculate the length of the spiral scanning path; If the circularity is less than 0.86, a lawn-mowing scanning method is selected; the convexity and concavity of the coverage area are determined by vector cross multiplication. If it is a concave polygon, the Graham-Scan algorithm is used to generate the convex hull of the concave polygon, and the minimum span method is used to find the major axis of the convex hull. The trapezoidal decomposition method is used to decompose the concave polygon into multiple convex polygon sub-areas along the direction parallel to the major axis. Along the major axis direction of each convex polygon sub-area, the entire current convex polygon sub-area is traversed using a lawn-mowing scanning method, and the starting point and end point of the flight path in each convex polygon sub-area are calculated. The starting point and end point of the flight path of each convex polygon sub-area are connected in sequence in a nearest manner to obtain the flight path of the drone.
