A double-layer path planning method, device, equipment and storage medium

By optimizing the collaborative path of vehicles and UAVs through a double-layer path planning method and genetic algorithm, the problem of efficiency decline caused by short UAV endurance time is solved, and a UAV area coverage solution that minimizes the completion time of the entire mission is achieved.

CN117629207BActive Publication Date: 2024-10-29GUANGDONG YIJING INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311407847.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2024-10-29
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

When UAVs cover multiple discontinuous areas or large areas, their efficiency may decrease due to their short endurance. It is difficult for existing technologies to effectively solve this problem.

Method used

A double-layer path planning method is adopted to establish a double-layer path planning model for the vehicle and the UAV by determining the mission area grid information of the vehicle and the UAV, and the genetic algorithm is used to solve the problem to optimize the collaborative path of the vehicle and the UAV to ensure Task completion time is minimized.

Benefits of technology

Under the condition of shortening the calculation time, a vehicle-UAV two-layer collaborative path planning scheme with the smallest completion time of the entire task is obtained, which improves the application efficiency of UAVs in regional coverage tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117629207B_ABST
    Figure CN117629207B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a double-layer path planning method, apparatus, device and storage medium, including: first determining the grid information of the mission area of ​​the vehicle and the drone; according to the grid information, taking the driving path of the vehicle and the endurance of the drone as constraints, and taking the minimization of the mission completion time of the vehicle and the drone as the objective function, establishing a double-layer path planning model for the vehicle and the drone; using a genetic algorithm to solve the double-layer path planning model to obtain the collaborative path of the vehicle and the drone. The technical solution of the disclosed embodiment solves the constructed drone double-layer path planning model through a genetic algorithm to obtain the collaborative path of the vehicle and the drone. This method obtains a vehicle-drone double-layer collaborative path planning solution with the minimum full mission completion time under the condition of shortening the calculation time, providing guidance for the application of drones in regional coverage tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of drone technology, and more particularly to a double-layer path planning method, device, equipment, and storage medium. Background Art

[0002] In many cases, detailed information of an entire area is required, such as agricultural monitoring, topographic mapping, mineral exploration, etc. Remote sensing is one of the traditional methods for collecting information over an area, for example, monitoring crop growth. However, this method is not only costly, risky, and time-inefficient, but also severely limited by short revisit times and limited spatial variations. In addition, manned airborne platforms are also used, which are not widely used due to high costs, complex operations, and long product delivery times. These problems have prompted many researchers to look for more efficient methods, among which the use of drones for regional coverage has shown great potential in recent years.

[0003] However, when drones are used to cover multiple discontinuous areas or large areas, their efficiency may decrease due to their short endurance. It is not appropriate to waste too much energy of drones on transitions between different areas. A potential way to overcome the obstacle caused by the limited endurance of drones is to use ground vehicles equipped with smart airports with charging / swapping functions to work together with drones. Summary of the invention

[0004] The embodiments of the present disclosure provide a double-layer path planning method, apparatus, device and storage medium, which realize the path planning of a double-layer collaborative path of a vehicle and an unmanned aerial vehicle.

[0005] In a first aspect, a two-layer path planning method is provided, comprising:

[0006] Determine the grid information of the mission area for vehicles and drones;

[0007] According to the grid information, a two-layer path planning model for the vehicle and the UAV is established with the driving path of the vehicle and the flight time of the UAV as constraints and minimizing the task completion time of the vehicle and the UAV as the objective function;

[0008] A genetic algorithm is used to solve a double-layer path planning model to obtain a collaborative path between the vehicle and the UAV.

[0009] In a second aspect, a dual-layer path planning device is provided, comprising:

[0010] An information determination module, used to determine the grid information of the mission area of ​​the vehicle and the UAV;

[0011] A modeling module is used to establish a two-layer path planning model for the vehicle and the UAV based on the grid information, with the driving path of the vehicle and the flight time of the UAV as constraints, and minimizing the task completion time of the vehicle and the UAV as the objective function;

[0012] The solution module is used to solve the double-layer path planning model by using a genetic algorithm to obtain a collaborative path between the vehicle and the UAV.

[0013] According to a third aspect, a computing device is provided, the computing device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the double-layer path planning method provided in any embodiment of the present disclosure.

[0017] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a controller to implement the double-layer path planning method provided in the first aspect of the embodiment of the present disclosure when executed.

[0018] The disclosed embodiment provides a double-layer path planning method, device, equipment and storage medium. The method first determines the grid information of the mission area of ​​the vehicle and the drone; then, based on the grid information, the driving path of the vehicle and the endurance of the drone are used as constraints, and the mission completion time of the vehicle and the drone is minimized as the objective function, a double-layer path planning model for the vehicle and the drone is established; a genetic algorithm is used to solve the double-layer path planning model to obtain the collaborative path of the vehicle and the drone. The technical solution of the disclosed embodiment solves the constructed drone double-layer path planning model through a genetic algorithm to obtain the collaborative path of the vehicle and the drone. In the prior art, research on using drones to cover multiple discontinuous areas is still very limited. Compared with the prior art, the technical solution solves the problem that when drones are used to cover multiple discontinuous areas or large areas, the efficiency may decrease due to their short endurance. Under the condition of shortening the calculation time, a vehicle-drone double-layer collaborative path planning solution with the minimum full mission completion time is obtained, which provides guidance for the application of drones in regional coverage tasks.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the embodiments of the present disclosure. Other features of the embodiments of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 is a flow chart of a double-layer path planning method provided in Embodiment 1 of the present disclosure;

[0022] Figure 2 It is a schematic diagram of an implementation scenario provided by Embodiment 1 of the present disclosure;

[0023] Figure 3 It is a flowchart of the implementation process of the technical solution provided in the first embodiment of the present disclosure;

[0024] Figure 4 A flowchart of another dual-layer path planning method provided in Embodiment 2 of the present disclosure;

[0025] Figure 5 A schematic diagram of a task area provided in the second embodiment of the present disclosure;

[0026] Figure 6 A schematic diagram of a vehicle's driving path provided in the second embodiment of the present disclosure;

[0027] Figure 7 A schematic diagram of the structure of a double-layer path planning device provided in Embodiment 3 of the present disclosure;

[0028] Figure 8 A schematic diagram of the structure of a computing device provided in Embodiment 4 of the present disclosure. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the embodiments of the present disclosure.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present embodiment and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present embodiment described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1 A flowchart of a double-layer path planning method is provided for the first embodiment of the present disclosure. This embodiment is applicable to the case of vehicle-UAV path planning. The method can be executed by a double-layer path planning device. The double-layer path planning device can be implemented in the form of hardware and / or software. The double-layer path planning device can be configured in a computing device. Figure 1 As shown, the method includes:

[0033] S110: Determine grid information of mission areas of vehicles and UAVs.

[0034] In this embodiment, the mission areas of the vehicle and the UAV may be determined first. When the UAV performs an area coverage mission, its real-time coverage portion may be regarded as a square, and the mission area may be the portion covered by the UAV in real time.

[0035] Continuing with the above description, after the task area is determined, each task area can be decomposed into grids based on the above squares. The grid information can be information for locating the grid in the task area, wherein the grid information can include two-dimensional serial numbers corresponding to the task area and the grid, two-dimensional serial numbers of vertices on the edge of the grid, the straight-line distance between any two vertices, and the actual distance between any two vertices.

[0036] Specifically, the original task area can be represented as an undirected acyclic graph with the grid center as the vertex and the lines between adjacent grid centers as the edge. At the same time, the edge part of each area is defined, and the vehicle can only travel along the actual road on the edge part.

[0037] S120. Based on the grid information, a two-layer path planning model for vehicles and drones is established with the vehicle's driving path and the drone's endurance as constraints and minimizing the vehicle and drone's task completion time as the objective function.

[0038] It should be explained that after dividing the mission area into grids, grid information can be obtained. The driving path of the vehicle and the endurance of the UAV can be used as constraints, wherein the driving path of the vehicle can be the path of the vehicle during actual driving, the endurance of the UAV can be the duration that the UAV's onboard battery can make the UAV work, and the constraint can be a condition constraining the driving path of the vehicle and the endurance of the UAV.

[0039] The constraints may include: constraints on the number of vertices of the vehicle's travel route; constraints on the number of flights of the drone; constraints on the stop time of the vehicle at the vertex of each route; constraints on the number of vertices covered by the drone in each flight; constraints on the departure vertex of each flight of the drone; constraints on the return vertex of each flight of the drone; constraints on the departure vertex of the vehicle; constraints on the return vertex of the vehicle; constraints on the departure vertex of each flight of the drone being consistent with the corresponding vertex of the vehicle; constraints on the return vertex of each flight of the drone being consistent with the corresponding vertex of the vehicle;

[0040] The constraints on the waiting time after each return flight of the UAV; the constraints on the vertices of the vehicle's driving path; the constraints on the vertices of each flight path of the UAV; the constraints on two adjacent vertices of each flight path of the UAV belonging to the same mission area; the constraints on the non-repetition of vertices in the path of the UAV in the same flight; the constraints on the non-repetition of vertices in the paths of different flights of the UAV; the constraints on the complete coverage of concentrated mission areas; the constraints on the duration of each flight of the UAV; the constraints on the vehicle being in a docked state when the UAV departs; the constraints on the vehicle being in a docked state when the UAV returns.

[0041] Specifically, after the constraints are determined, the objective function may be to minimize the task completion time of the vehicle and the UAV, where the task completion time may be the maximum value of the time for the vehicle to complete the task and the time for the UAV to complete the task:

[0042]

[0043] The time when the vehicle completes the task is the time when the vehicle reaches the last vertex, that is: The time it takes for the drone to complete the mission is the sum of the return time of the drone's last flight and the waiting time after the last flight returns, that is:

[0044] Continuing from the above description, according to the grid information of the mission area, after the constraints and objective functions are determined, a two-layer path planning model for vehicles and UAVs can be constructed. The two-layer path planning model can be a vehicle-UAV two-layer collaborative path planning solution that meets the vehicle's driving path constraints and the UAV's endurance constraints and minimizes the time to complete the entire mission by using mixed integer nonlinear programming modeling.

[0045] S130. Using a genetic algorithm to solve the double-layer path planning model, obtain a collaborative path for the vehicle and the UAV.

[0046] In this embodiment, a two-layer path planning model for vehicles and drones can be constructed based on the grid information, constraints and objective functions of the mission area. After the model is constructed, a genetic algorithm can be used to solve the constructed two-layer path planning model for vehicles and drones, wherein the genetic algorithm can be a variable segment variable length two-dimensional genetic algorithm.

[0047] It should be noted that by segmentally encoding the vehicle driving path plan and the UAV's flight path plan for each time, a complete encoding of the UAV's multi-area coverage double-layer path planning plan can be obtained. The variable segmentation variable length two-dimensional genetic algorithm is used to solve the optimal encoding, and then the collaborative path of the vehicle and the UAV can be obtained. Among them, the collaborative path can be the path that minimizes the time required for the vehicle and the UAV to complete the task together.

[0048] This embodiment provides a double-layer path planning method, first determining the grid information of the mission area of ​​the vehicle and the UAV; then, based on the grid information, taking the driving path of the vehicle and the endurance of the UAV as constraints, and taking minimizing the mission completion time of the vehicle and the UAV as the objective function, a double-layer path planning model for the vehicle and the UAV is established; a genetic algorithm is used to solve the double-layer path planning model to obtain the collaborative path of the vehicle and the UAV, and using this method, a vehicle-UAV double-layer collaborative path planning scheme with the minimum full mission completion time is obtained under the condition of shortening the calculation time, which provides guidance for the application of UAVs in regional coverage tasks.

[0049] Figure 2 A schematic diagram of an implementation scenario provided for an embodiment of the present disclosure. Figure 3The implementation process of the technical solution of the embodiment of the present disclosure is given. This method is aimed at the scenario of using a vehicle-mounted intelligent airport that can carry and charge drones to cover multiple mission areas. Considering the vehicle's driving path constraints and the drone's endurance constraints, the above problem is modeled using mixed integer nonlinear programming, and a vehicle-drone two-layer collaborative path planning solution that satisfies the above constraints and minimizes the time to complete the entire mission is solved. At the same time, the embodiment of the present disclosure also discloses a two-layer collaborative path planning algorithm based on a variable segmentation variable length two-dimensional genetic algorithm for the above mixed integer nonlinear programming model.

[0050] The purpose of the embodiments of the present disclosure is to provide a method for planning a dual-layer path for multi-area coverage of a UAV based on a vehicle-mounted intelligent airport, which can solve the following technical problems:

[0051] 1) There is currently limited research on using drones to cover multiple, non-contiguous areas;

[0052] 2) When using vehicle-mounted smart airports in scenarios with multiple discontinuous area coverage, it is necessary to solve the path coordination problem between vehicles and drones. At the same time, vehicles can only travel along actual roads at the edge of the area;

[0053] 3) The double-layer path planning for multi-area coverage of UAVs is a multi-dimensional and highly complex integer programming problem. Therefore, it is necessary to study targeted solution algorithms to reduce the time of optimization iterations.

[0054] Embodiment 2

[0055] Figure 4 This is a flow chart of another dual-layer path planning method provided in the second embodiment of the present disclosure. The present embodiment is further optimized and expanded based on the above embodiment. Figure 4 As shown, the method includes:

[0056] S210: Determine grid information of mission areas of vehicles and UAVs.

[0057] Specifically, firstly, the task areas are sorted to form a task area set, which may be:

[0058] S={S1,...,S n ,...,S N}

[0059] Among them, S n represents the nth mission area, S represents the set of all mission areas, and N is the number of mission areas. For example, N=3. The real-time coverage part of the drone can be modeled as a square with a side length of l, and each mission area can be decomposed into grids based on the square. The grid centers can form the mission vertex set V n :

[0060] V n ={(n,1),(n,2),...,(n,m),...,(n,M n )},1≤n≤N

[0061] Among them, V n is the set of all vertices in the nth task area, (n,m) represents the two-dimensional serial number of the center of the mth grid, M n In this embodiment, the number next to each region represents the sequence number of the region, such as: M1=65, M2=143, M3=61.

[0062] Following the above description, the edge vertices of the mesh can be defined as Then we have:

[0063]

[0064] in, is the two-dimensional serial number set of edge vertices of the nth task area, Represents a set of two-dimensional serial numbers of all edge vertices, where an edge vertex can be the center of a grid at the edge of a task area. For example, Figure 5 A schematic diagram of the task area is given, such as Figure 5 As shown, Figure 5 The meshes with hollow dots in the middle represent edge vertices.

[0065] It needs to be explained that in obtaining the task vertex set V in the task area n After that, the straight-line distance between any two vertices can be calculated:

[0066]

[0067] in, represents the straight-line distance between the m1-th vertex of the n1-th task area and the m2-th vertex of the n2-th task area, and Respectively represent the two-dimensional coordinates of the m1-th vertex of the n1-th task area and the m2-th vertex of the n2-th task area;

[0068] Continuing with the above description, after obtaining the set of edge vertices, the actual distance between edge vertices can be calculated:

[0069]

[0070] in, represents the actual distance between the m1th edge vertex of the n1th task area and the m2th edge vertex of the n2th task area, d Vis the set of all actual distances;

[0071] In this embodiment, the task area number defining the starting point and the end point may be 0, and the vertex number may be 0, such as Figure 5 As shown, in Figure 5 The starting and ending points are represented by triangles.

[0072] S220. Based on the grid information, a two-layer path planning model for vehicles and drones is established with the vehicle's driving path and the drone's endurance as constraints and minimizing the vehicle and drone's task completion time as the objective function.

[0073] In this embodiment, the vehicle's driving path and the drone's endurance can be used as constraints based on the grid information. The constraints may include: constraining the value of the decision variable of the number of vertices of the vehicle's driving path: Among them, K V Indicates the number of task vertices along the vehicle’s route. Represents the set of all natural numbers; constrains the value of the decision variable of the number of flights of the drone: Among them, K U Represents the number of UAV flights. The flight from the take-off of the UAV from the onboard smart airport to its next landing is counted as one flight. The vehicle driving path matrix decision variable can be defined as:

[0074]

[0075] Among them, X represents the vehicle driving path matrix decision variable, X i represents the i-th path vertex of the vehicle, x i,1 Indicates the region number to which the i-th path vertex belongs, x i,2 Represents the serial number of the i-th path vertex.

[0076] Constrain the values ​​of the vehicle's stop time decision variables at each route vertex: in, Represents the stop time of the vehicle at the i-th vertex of the route; constrains the value of the decision variable of the number of covered vertices of each flight of the drone: in, Represents the number of covered vertices of the UAV's i-th flight; the vertex matrix decision variable of each flight path of the UAV can be defined as:

[0077]

[0078] Among them, Y i Represents the vertex matrix decision variables of the path of the UAV's i-th flight, where represents the jth path vertex of the UAV’s i-th flight, Indicates the region number to which the jth path vertex belongs, Represents the serial number of the j-th path vertex.

[0079] Constrain the values ​​of the decision variables of the starting vertex of each flight of the drone:

[0080] 0≤a i ≤K V +1,i=1,2,...,K U

[0081] Among them, a i Indicates the starting vertex of the i-th flight of the UAV is the nth vertex of the vehicle's path;

[0082] Constrain the value of the return vertex decision variable for each flight of the drone:

[0083] 0≤b i ≤K V +1,i=1,2,...,K U ,

[0084] Among them, b i Indicates the return vertex of the UAV's ith flight is the nth vertex of the vehicle's path;

[0085] The vehicle's departure vertex must be a start / end point constraint: X0 =

[00] ; the vehicle's return vertex must be a start / end point constraint: The starting vertex consistency constraint of each flight of the drone: Consistency constraints on the returned vertices for each flight of the drone: Constrain the value of the waiting time decision variable after each return flight of the drone: in, represents the waiting time decision variable after the drone returns from the i-th flight, t0 represents the total time consumed by the necessary steps such as inspection, charging / battery replacement after each flight of the drone, and t0 = 1.5 for example;

[0086] The actual distance between two adjacent path vertices in the vehicle's driving path can be defined as:

[0087]

[0088] in, It represents the actual distance between the i-1th vertex and the i-th vertex in the vehicle's driving path.

[0089] The time for the vehicle to depart from each route vertex can be:

[0090]

[0091] in, represents the time when the vehicle departs from the i-th path vertex,

[0092] The time it takes for a vehicle to reach each vertex of the route can be:

[0093]

[0094] in, represents the time when the vehicle reaches the i-th path vertex, v V is the speed of the vehicle. For example, v V =60;

[0095] The straight-line distance between two adjacent path vertices in each flight of the drone can be defined as:

[0096]

[0097] in, represents the straight-line distance between the j-1th path vertex and the jth path vertex in the i-th flight of the UAV;

[0098] The time consumed by each drone flight can be:

[0099]

[0100] in, represents the time consumed by the drone’s i-th flight, v U is the flight speed of the drone.

[0101] In this case, v U =120;

[0102] The departure time of each flight of the drone can be:

[0103]

[0104] in, represents the departure time of the i-th flight of the UAV, where is the decision variable;

[0105] The return time of each flight of the drone can be:

[0106]

[0107] in, represents the return time of the UAV’s i-th flight;

[0108] The path task vertex of the vehicle's driving path must be an edge vertex constraint:

[0109]

[0110] The path mission vertices of each flight of the drone must be grid vertex constraints:

[0111]

[0112] The two forward and backward path task vertices belonging to the same area in each flight of the drone must be adjacent to each other:

[0113]

[0114] Among them, I(·) is a conditional judgment function, which takes 1 when the condition is met and takes 0 when it is not met;

[0115] The constraint that the vertices of the mission paths during the same flight of the drone should not be repeated:

[0116]

[0117] The constraints on non-repetitive vertices of different UAV flight paths and missions are as follows:

[0118]

[0119] All regions are fully covered:

[0120]

[0121] Among them, for any set S, |S| represents the number of its elements;

[0122] The flight duration of each drone flight is limited to:

[0123]

[0124] in, For the flight time of the drone, for example,

[0125] The vehicle is in a parked state when the drone takes off. Constraints:

[0126]

[0127] The vehicle is in a docked state when the drone returns:

[0128]

[0129] Finally, the objective function is set to minimize the total task completion time:

[0130]

[0131] By summarizing the formulas involved in S220, we can obtain a dual-layer path planning model for multi-area coverage of UAVs that minimizes the vehicle's driving path and the full mission completion time under the constraints of the UAV's flight time.

[0132] S230. Randomly generate a set number of segment codes, where the segment codes include the code of the vehicle's driving path, the code of the drone's first flight path, and the code of the drone's non-first flight path.

[0133] In this embodiment, after the two-layer path planning model is generated, segment codes can be randomly generated according to a set number, wherein the set number can be a pre-set number, and the segment codes can include the code of the vehicle's driving path, the code of the drone's first flight, and the code of the drone's non-first flight.

[0134] The vehicle driving path can be encoded as:

[0135]

[0136] in, Exemplarily, Q1=4;

[0137] The first flight path encoding of the drone can be:

[0138]

[0139] in, Exemplarily, Q2=106;

[0140] The drone's next few flight path codes can be:

[0141]

[0142] in, Exemplarily, Q3=8.

[0143] S240. Based on the set number of segmented codes, a segmented genetic algorithm with variable segmented and variable length chromosomes is used to solve the optimal code to solve the double-layer path planning model, and obtain the collaborative path of the vehicle and the UAV.

[0144] It can be known that after the two-layer path planning model is generated, segmented codes can be randomly generated according to the set number. Based on the generated segmented codes, the segmented genetic algorithm with variable segmented and variable length chromosomes can be used to solve the optimal code to solve the two-layer path planning model, and then obtain the collaborative path of the vehicle and the drone.

[0145] Optionally, based on the set number of segmented codes, a segmented genetic algorithm with variable segmented and variable length chromosomes is used to solve the optimal code to solve the double-layer path planning model, so as to obtain the collaborative path between the vehicle and the drone, including:

[0146] a1) In the current iteration, individuals in the current population are selected for replication based on the exponential sorting selection method, where one individual is one segment code, and the initial population includes a set number of randomly generated segment codes;

[0147] Specifically, G codes are randomly generated as the initial population, and illustratively, G may be 200. In the current iteration, the individuals of the current population are replicated using the exponential sorting selection method, and one individual corresponds to one segment code.

[0148] b1) randomly pairing the selected individuals with the replicated individuals to obtain multiple groups of individual pairs;

[0149] In this embodiment, the selected individuals are randomly paired with the copied individuals to obtain multiple groups of individual pairs that match each other.

[0150] c1) performing cutting and splicing processing on the chromosome fragments corresponding to the driving path of the vehicle, the first flight path of the drone, and the non-first flight path of the drone in each group of individual pairs, respectively, to obtain multiple processed individuals;

[0151] Continuing with the above description, after obtaining multiple groups of paired individuals, the chromosome fragments corresponding to vehicle driving, the first flight of the drone, and the subsequent flights of the drone in the two randomly paired individuals are cut and spliced, respectively, so as to obtain multiple individuals that have been cut and spliced.

[0152] Among them, the cutting process can be to randomly select a position with a certain pre-specified probability, cut off the individual in the position, and make it into two individuals. The splicing process can be to connect two individuals together with a certain pre-specified probability, so that they are merged into one individual.

[0153] d1) For the individuals with excess designation after treatment, the leftmost locus and gene value pair is decoded;

[0154] It can be known that multiple individuals that have been cut and spliced ​​can be obtained by cutting and splicing multiple groups of paired individuals. When there are excess designated individuals, it is stipulated that the leftmost locus and gene value binary is decoded, wherein the locus can be the specific position where the code is located, the gene value can be the specific code value located at the locus position, the locus and gene value binary can be an array composed of the locus position in the code string and the corresponding gene value, and the excess designation can be that there are still excess individuals and their data after all individuals and their data are binary composed.

[0155] e1) For individuals with default assignments, set the gene value at the default position to -1;

[0156] The default specification may be that only some of the individuals and their data in the population form a tuple. When a default specification occurs, the gene value of the default position is set to -1.

[0157] f1) performing mutation operations on each processed individual to update the current population;

[0158] Exemplarily, a mutation operation is performed on each processed individual with a mutation probability of 0.01 to update the current population. The mutation operation may be an operation of changing the data within the individual to form a new individual.

[0159] g1) Calculate the fitness of each individual in the current population;

[0160] Specifically, the fitness of each individual in the current population may be calculated by a fitness function, and the fitness may be used to measure the environmental adaptability of each individual in the population.

[0161] h1) If the current iteration does not meet the iteration number requirement, proceed to the next iteration;

[0162] Exemplarily, the number of iterations must be greater than or equal to 30, and the current number of iterations is 15, which does not meet the requirement of the number of iterations, and the next iteration can be entered.

[0163] i1) If the current iteration meets the iteration number requirement, the individual with the largest fitness is output, and the collaborative path of the vehicle and the UAV is determined according to the segmented coding with the largest fitness.

[0164] For example, the current number of iterations is 30, which meets the requirement of the number of iterations, and the code with the highest fitness at this time is output. After decoding, the path planned by the UAV multi-region coverage double-layer path is obtained as the optimal solution. In this embodiment, the minimum value of the full task completion time that can be solved is 163.51 minutes. Figure 6 is a schematic diagram of the vehicle's driving path, such as Figure 6Shown: The vehicle's driving path and the dwelling time at each stop are displayed, where the arrow indicates the vehicle's driving direction and the value next to the edge grid indicates the dwelling time.

[0165] Optionally, calculate the fitness of each individual in the current population, including:

[0166] For any individual, if the segment code corresponding to the individual is a feasible solution, the inverse of the task completion time is used as the fitness; otherwise, a negative value is used as the fitness.

[0167] For example, for any segment code corresponding to an individual, if it is a feasible solution, then As fitness, if it is not a feasible solution, a negative value is used as fitness.

[0168] This embodiment provides a double-layer path planning method, firstly determining the grid information of the mission area of ​​the vehicle and the UAV, based on the grid information, taking the driving path of the vehicle and the endurance of the UAV as constraints, taking minimizing the mission completion time of the vehicle and the UAV as the objective function, establishing a double-layer path planning model for the vehicle and the UAV, randomly generating a set number of segmented codes, the segmented codes including the codes of the driving path of the vehicle, the codes of the first flight path of the UAV, and the codes of the non-first flight path of the UAV, based on the set number of segmented codes, using a segmented genetic algorithm with variable segmented variable length chromosomes to solve the optimal code to solve the double-layer path planning model, and obtain the collaborative path of the vehicle and the UAV. The technical solution of this embodiment studies the vehicle-UAV double-layer collaborative path planning problem with minimizing the full mission completion time, which can provide further guidance for the application of UAVs in regional coverage tasks, and obtain a solution with sufficiently good performance under the condition of sufficiently shortening the calculation time.

[0169] Embodiment 3

[0170] Figure 7 This is a schematic diagram of the structure of a double-layer path planning device provided in the third embodiment of the present disclosure. Figure 7 As shown, the device includes: an information determination module 310, a modeling module 320, and a solution module 330.

[0171] The information determination module 310 is used to determine the grid information of the mission area of ​​the vehicle and the UAV;

[0172] A modeling module 320 is used to establish a two-layer path planning model for the vehicle and the drone based on the grid information, with the driving path of the vehicle and the flight time of the drone as constraints, and minimizing the task completion time of the vehicle and the drone as an objective function;

[0173] The solution module 330 is used to solve the double-layer path planning model using a genetic algorithm to obtain a collaborative path between the vehicle and the drone.

[0174] Embodiment 3 of the present disclosure provides a dual-layer path planning device, which obtains a vehicle-UAV dual-layer collaborative path planning solution with the shortest full mission completion time under the condition of shortening the calculation time, and provides guidance for the application of UAVs in regional coverage tasks.

[0175] Furthermore, the grid information includes two-dimensional serial numbers corresponding to the task area and the grid, two-dimensional serial numbers of vertices at the edge of the grid, a straight-line distance between any two vertices, and an actual distance between any two vertices.

[0176] Furthermore, the constraints include:

[0177] Constraints on the number of vertices in the vehicle's travel path;

[0178] Constraints on the number of flights of the drone;

[0179] The vehicle's stop time constraints at the vertex of each route;

[0180] A constraint on the number of vertices covered by each flight of the drone;

[0181] Constraints on the starting vertex of each flight of the drone;

[0182] The constraint conditions for the return vertex of each flight of the drone;

[0183] Constraints on the starting vertex of the vehicle;

[0184] The constraint condition of the vehicle returning to the vertex;

[0185] The constraint condition that the starting vertex of each flight of the drone is consistent with the corresponding vertex where the vehicle is located;

[0186] The constraint condition that the return vertex of each flight of the drone is consistent with the corresponding vertex where the vehicle is located;

[0187] The constraints of the waiting time after each return flight of the UAV;

[0188] Constraints on vertices of the vehicle's travel path;

[0189] Constraints on the vertices of each flight path of the drone;

[0190] The constraint condition that each flight path of the UAV belongs to two adjacent vertices of the same mission area;

[0191] The constraint condition that the vertices of the path of the drone in the same flight are not repeated;

[0192] The constraint condition that the vertices of the paths of the drone in different flights are not repeated;

[0193] The constraint that the task areas in the task area set are completely covered;

[0194] Constraints on the duration of each flight of the drone;

[0195] The constraint condition that the vehicle is in a parked state when the drone departs;

[0196] The constraint condition that the vehicle is in a docked state when the drone returns.

[0197] Furthermore, the task completion time is the maximum value of the time for the vehicle to complete the task and the time for the drone to complete the task;

[0198] The time when the vehicle completes the task is the time when the vehicle reaches the last vertex;

[0199] The time it takes for the drone to complete the mission is the sum of the return time of the drone's last flight and the waiting time after the drone returns from the last flight.

[0200] Furthermore, the solution module 330 may also include:

[0201] A segment code generating unit, used for randomly generating a set number of segment codes, wherein the segment codes include a code of the driving path of the vehicle, a code of the first flight path of the UAV, and a code of the non-first flight path of the UAV;

[0202] The model generation unit is used to solve the optimal coding and the double-layer path planning model based on the set number of segmented codes by using a segmented genetic algorithm with variable segmented and variable length chromosomes to obtain the collaborative path of the vehicle and the drone.

[0203] Furthermore, the model generation unit may also include:

[0204] An individual selection subunit, used for selecting individuals in the current population for replication based on an exponential sorting selection method in the current iteration, wherein one individual is one segment code, and the initial population includes a set number of randomly generated segment codes;

[0205] An individual pair generation subunit is used to randomly pair the selected individuals with the replicated individuals to obtain multiple groups of individual pairs;

[0206] The individual pair processing subunit is used to perform cutting and splicing processing on the chromosome fragments corresponding to the driving path of the vehicle, the first flight path of the drone, and the non-first flight path of the drone in each group of individual pairs, respectively, to obtain multiple processed individuals;

[0207] A decoding subunit, for decoding the leftmost locus and gene value pair for the processed excess specified individual;

[0208] The default position assignment subunit is used to set the gene value of the default position to -1 for the processed default-assigned individuals;

[0209] An individual updating subunit, used to perform mutation operations on each processed individual to update the current population;

[0210] The fitness calculation subunit is used to calculate the fitness of each individual in the current population;

[0211] The judgment subunit is used to enter the next iteration if the current iteration does not meet the iteration number requirement;

[0212] If the current iteration meets the iteration number requirement, the individual with the largest fitness is output, and the collaborative path of the vehicle and the UAV is determined according to the segmented code with the largest fitness.

[0213] Optionally, the fitness calculation subunit may also be used for:

[0214] For any individual, if the segment code corresponding to the individual is a feasible solution, the inverse of the task completion time is used as the fitness; otherwise, a negative value is used as the fitness.

[0215] The double-layer path planning device provided in the embodiments of the present disclosure can execute the double-layer path planning method provided in any embodiment of the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0216] Embodiment 4

[0217] Figure 8 A schematic diagram of a computing device 10 that can be used to implement an embodiment of the present disclosure is shown. Computing device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present disclosure described and / or claimed herein.

[0218] like Figure 8As shown, the computing device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the computing device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0219] A number of components in the computing device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the computing device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0220] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microprocessor, etc. The processor 11 executes the various methods and processes described above, such as a two-layer path planning method.

[0221] In some embodiments, the dual-layer path planning method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the computing device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the dual-layer path planning method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the dual-layer path planning method in any other suitable manner (e.g., by means of firmware).

[0222] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0223] The computer programs for implementing the methods of the embodiments of the present disclosure may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0224] In the context of the disclosed embodiments, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0225] To provide interaction with a user, the systems and techniques described herein can be implemented on a computing device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computing device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0226] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0227] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0228] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the embodiments of the present disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions of the embodiments of the present disclosure can be achieved, and this document does not limit this.

[0229] The above specific implementations do not constitute a limitation on the protection scope of the embodiments of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the embodiments of the present disclosure shall be included in the protection scope of the embodiments of the present disclosure.

Claims

1. A two-layer path planning method, characterized in that: include: Determine the grid information of the mission area for vehicles and drones; Modeling the real-time coverage portion of the drone as a square with a side length of l, and decomposing the mission area into grids using the square as a unit; According to the grid information, a two-layer path planning model for the vehicle and the UAV is established with the driving path of the vehicle and the flight time of the UAV as constraints and minimizing the task completion time of the vehicle and the UAV as the objective function; A genetic algorithm is used to solve a two-layer path planning model to obtain a collaborative path between the vehicle and the UAV; The method of using a genetic algorithm to solve a two-layer path planning model to obtain a collaborative path between the vehicle and the drone includes: Randomly generate a set number of segment codes, wherein the segment codes include a code of the vehicle's driving path, a code of the first flight path of the UAV, and a code of the non-first flight path of the UAV; The vehicle's driving path is encoded as follows: in, The encoding of the first flight path of the UAV is: in, The code of the non-first flight path of the UAV is: in, in, Represents the set of two-dimensional serial numbers of all edge vertices; is the flight time of the drone; v V is the vehicle’s speed; represents the straight-line distance between the m1-th vertex of the n1-th task area and the m2-th vertex of the n2-th task area; M n is the number of vertices; v U is the flight speed of the UAV; N is the number of mission areas; Based on the set number of segmented codes, a segmented genetic algorithm with variable segmented and variable length chromosomes is used to solve the optimal code to solve the double-layer path planning model, so as to obtain the collaborative path between the vehicle and the UAV; Among them, the segmented coding based on the set number of segmented codes adopts a segmented genetic algorithm with variable segmented and variable length chromosomes to solve the optimal coding and solve the double-layer path planning model to obtain the collaborative path of the vehicle and the drone, including: In the current iteration, individuals in the current population are selected for replication based on the exponential sorting selection method, where one individual is a segment code and the initial population includes a set number of randomly generated segment codes; Randomly pair the selected individuals with the replicated individuals to obtain multiple groups of individual pairs; Cutting and splicing the chromosome fragments corresponding to the vehicle's driving path, the drone's first flight path, and the drone's non-first flight path in each group of individual pairs to obtain multiple processed individuals; For individuals designated by the treated excess, the leftmost locus was decoded with a pair of gene values; For individuals with treated default assignments, let the gene value at the default position be -1; Perform mutation operations on each processed individual to update the current population; Calculate the fitness of each individual in the current population; If the current iteration does not meet the iteration number requirement, it will proceed to the next iteration; If the current iteration meets the iteration number requirement, the individual with the largest fitness is output, and the collaborative path between the vehicle and the UAV is determined according to the segmented code with the largest fitness; The step of calculating the fitness of each individual in the current population includes: For any individual, if the segment code corresponding to the individual is a feasible solution, the inverse of the task completion time is used as the fitness; otherwise, a negative value is used as the fitness.

2. The method according to claim 1, characterized in that The grid information includes two-dimensional serial numbers corresponding to the task area and the grid, two-dimensional serial numbers of vertices at the edge of the grid, a straight-line distance between any two vertices, and an actual distance between any two vertices.

3. The method according to claim 2, characterized in that The constraints include: Constraints on the number of vertices in the vehicle's travel path; Constraints on the number of flights of the drone; The vehicle's stop time constraints at the vertex of each route; A constraint on the number of vertices covered by each flight of the drone; Constraints on the starting vertex of each flight of the drone; The constraint conditions for the return vertex of each flight of the drone; Constraints on the starting vertex of the vehicle; The constraint condition of the vehicle returning to the vertex; The constraint condition that the starting vertex of each flight of the drone is consistent with the corresponding vertex where the vehicle is located; The constraint condition that the return vertex of each flight of the drone is consistent with the corresponding vertex where the vehicle is located; The constraints of the waiting time after each return flight of the UAV; Constraints on vertices of the vehicle's travel path; Constraints on the vertices of each flight path of the drone; The constraint condition that each flight path of the UAV belongs to two adjacent vertices of the same mission area; The constraint condition that the vertices of the path of the drone in the same flight are not repeated; The constraint condition that the vertices of the paths of the drone in different flights are not repeated; The constraint that the task areas in the task area set are completely covered; Constraints on the duration of each flight of the drone; The constraint condition that the vehicle is in a parked state when the drone departs; The constraint condition that the vehicle is in a docked state when the drone returns.

4. The method according to claim 1, characterized in that: The mission completion time is the maximum value of the time for the vehicle to complete the mission and the time for the drone to complete the mission; The time when the vehicle completes the task is the time when the vehicle reaches the last vertex; The time it takes for the drone to complete the mission is the sum of the return time of the drone's last flight and the waiting time after the drone returns from the last flight.

5. A double-layer path planning device, characterized in that: include: An information determination module, used to determine the grid information of the mission area of ​​the vehicle and the UAV; Modeling the real-time coverage portion of the drone as a square with a side length of l, and decomposing the mission area into grids using the square as a unit; A modeling module is used to establish a two-layer path planning model for the vehicle and the UAV based on the grid information, with the driving path of the vehicle and the flight time of the UAV as constraints, and minimizing the task completion time of the vehicle and the UAV as the objective function; A solution module, used for solving a double-layer path planning model by using a genetic algorithm to obtain a collaborative path between the vehicle and the UAV; Wherein, the solution module also includes: A segment code generating unit, used for randomly generating a set number of segment codes, wherein the segment codes include a code of the driving path of the vehicle, a code of the first flight path of the UAV, and a code of the non-first flight path of the UAV; The vehicle's driving path is encoded as follows: in, The encoding of the first flight path of the UAV is: in, The code of the non-first flight path of the UAV is: in, in, Represents the set of two-dimensional serial numbers of all edge vertices; is the flight time of the drone; v V is the vehicle’s speed; represents the straight-line distance between the m1-th vertex of the n1-th task area and the m2-th vertex of the n2-th task area; M n is the number of vertices; v U is the flight speed of the UAV; N is the number of mission areas; A model generation unit is used to solve the optimal coding and the double-layer path planning model based on the set number of segmented codes by using a segmented genetic algorithm with variable segmented and variable length chromosomes to obtain a cooperative path between the vehicle and the drone; Wherein, the model generation unit further includes: An individual selection subunit, used for selecting individuals in the current population for replication based on an exponential sorting selection method in the current iteration, wherein one individual is one segment code, and the initial population includes a set number of randomly generated segment codes; An individual pair generation subunit is used to randomly pair the selected individuals with the replicated individuals to obtain multiple groups of individual pairs; The individual pair processing subunit is used to perform cutting and splicing processing on the chromosome fragments corresponding to the driving path of the vehicle, the first flight path of the drone, and the non-first flight path of the drone in each group of individual pairs, respectively, to obtain multiple processed individuals; A decoding subunit, for decoding the leftmost locus and gene value pair for the processed excess specified individual; The default position assignment subunit is used to set the gene value of the default position to -1 for the processed default-assigned individuals; An individual updating subunit, used to perform mutation operations on each processed individual to update the current population; The fitness calculation subunit is used to calculate the fitness of each individual in the current population; The judgment subunit is used to enter the next iteration if the current iteration does not meet the iteration number requirement; If the current iteration meets the iteration number requirement, the individual with the largest fitness is output, and the collaborative path between the vehicle and the UAV is determined according to the segmented code with the largest fitness; Wherein, the fitness calculation subunit is specifically used for: For any individual, if the segment code corresponding to the individual is a feasible solution, the inverse of the task completion time is used as the fitness; otherwise, a negative value is used as the fitness.

6. A computing device, characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the double-layer path planning method as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the double-layer path planning method as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Vehicle path planning and unmanned aerial vehicle task allocation joint optimization method and device

    CN111047086A

  • Path optimization method and device for air-ground cooperative traffic inspection

    CN113485429A