A UAV full coverage path planning method based on improved genetic algorithm

By improving the genetic algorithm and grid method modeling, combined with the flight route distance and direction cost function, the adaptability and convergence speed problems of UAV path planning in complex three-dimensional environments are solved, and efficient full-coverage path planning and capability are achieved. consumption optimization.

CN115202394BActive Publication Date: 2024-09-27ANHUI CHENGFANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210826983.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2024-09-27
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

Existing UAV full-coverage path planning methods have poor adaptability in complex three-dimensional environments, are slow to converge and easily fall into local optimal solutions, and do not consider the cost and cost caused by direction.

Method used

An improved genetic algorithm is used, combined with grid method modeling and flight route distance and direction cost functions, and a greedy algorithm and dynamic mutation rate are introduced to optimize UAV full coverage path planning to ensure improved convergence speed and global optimization in complex three-dimensional environments. ability.

Benefits of technology

It achieves efficient full-coverage path planning for UAVs in complex three-dimensional environments, reduces flight time and energy consumption, and enhances adaptability and global optimization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202394B
    Figure CN115202394B
Patent Text Reader

Abstract

The invention relates to the technical field of unmanned aerial vehicles, and in particular to a method for planning a full-coverage path for an unmanned aerial vehicle based on an improved genetic algorithm. The method comprises the following steps: scanning an environmental map to obtain basic information; using a grid method to convert longitude and latitude coordinates into grid point coordinates, and defining the grid height as the maximum value of the obstacle height in the grid, and establishing a three-dimensional model of a full-coverage flight environment for the unmanned aerial vehicle; respectively introducing a flight route distance cost function and a flight route direction cost function to optimize the endurance of the full-coverage flight of the unmanned aerial vehicle; improving genetic algorithm training; converting the obtained traversal sequence into longitude and latitude coordinates and inputting them into a control program of the unmanned aerial vehicle to realize full-coverage path planning for the flight of the unmanned aerial vehicle; the invention uses a grid method to model the flight environment of the unmanned aerial vehicle, and applies the improved genetic algorithm to the flight track planning of the unmanned aerial vehicle, wherein the improved algorithm improves the convergence speed, enhances the global optimization capability, and reduces the flight time and energy consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicles, and in particular to a method for planning a full-coverage path for an unmanned aerial vehicle based on an improved genetic algorithm. Background Art

[0002] With the improvement of electronic technology and intelligence, the full coverage path planning problem of drones has become an important research topic in today's society. Drones not only play an important role in the military, but also have great application prospects in people's lives and business, such as the auxiliary role of drones in epidemic prevention and control, forest fire monitoring, and protection of immovable cultural heritage. Among the many application scenarios of drones, the perception and obstacle avoidance technology of drones is a necessary link for the realization of automation and intelligence. The obstacle avoidance technology of drones can be divided into three stages: perception of obstacles, bypassing obstacles, and scene models. The first two stages will complete automatic identification, suspension, and bypassing obstacles. The third stage is to scan the target environment, establish a three-dimensional stereogram, and then plan an optimal route from a global perspective.

[0003] Early full coverage path planning algorithms mainly used random search coverage strategies, which are easy to implement, but have problems such as high time cost, low map coverage, and weak intelligence. Contemporary full coverage path algorithm research has its own advantages in specific environments, but when facing more complex UAV flight environments, it also has its own problems, such as long algorithm convergence time, weak globality, large amount of calculation, low search efficiency, etc. There is still much room for improvement and enhancement. A Chinese patent application with application number CN202010312645.4 discloses a method for full-coverage path planning for an unmanned aerial vehicle, the method being: determining the coverage flight range to be carried out by the unmanned aerial vehicle, and selecting multiple boundary points at the outer edge of the path planning range; obtaining the longitude and latitude coordinates of the boundary points, and converting the longitude and latitude coordinates into horizontal and vertical coordinates of equal unit lengths; taking a line connecting the boundary point and the center point of the coverage flight range, and the unmanned aerial vehicle performs a spiral cruise on the line until all ranges are completely covered; or connecting two adjacent boundary points to calculate the lateral movement length of the selected range, taking equally divided points on the lateral movement length and connecting the boundary points to obtain intersections, connecting the intersections for serpentine cruises until all ranges are covered; taking out the coordinates of each point connected in sequence, storing and sending them to the controller of the unmanned aerial vehicle, realizing full-coverage path planning for the unmanned aerial vehicle, and solving the problems of complex, large error and low precision in existing full-coverage path planning for unmanned aerial vehicles.

[0004] However, in the process of implementing the specific embodiments of the present invention, the inventors of the present application found that the above-mentioned UAV full coverage path planning method still has the following defects: (1) The above-mentioned UAV full coverage path planning method is a path planning method applied to a two-dimensional environment, and cannot adapt well to the full coverage path planning of UAVs in a complex three-dimensional environment; (2) The above-mentioned UAV full coverage path planning method only considers the cost and price brought by the path, and does not consider the cost and price brought by the direction; (2) The above-mentioned UAV full coverage path planning method adopts a traditional genetic algorithm, which not only has a slow convergence speed, but also easily falls into a local optimal solution. To this end, we provide a UAV full coverage path planning method based on an improved genetic algorithm to solve the above-mentioned technical problems. Summary of the invention

[0005] In response to the above problems, the present invention provides a UAV full coverage path planning method based on an improved genetic algorithm, which improves the convergence speed, enhances the global optimization capability, reduces the flight time and energy consumption, and enables the UAV to adapt to the complex three-dimensional environment when traversing the coverage environment required for actual flight.

[0006] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:

[0007] The present invention is a UAV full coverage path planning method based on an improved genetic algorithm, comprising the following steps:

[0008] S1. Determine the coverage flight range that the UAV is to perform, and scan the map of the coverage flight range to obtain basic information;

[0009] S2. Use the grid method to convert the latitude and longitude coordinates in the basic information obtained by scanning into grid point coordinates, and define the grid height as the maximum obstacle height in the grid to establish a three-dimensional model of the UAV's full coverage flight environment;

[0010] S3, introduce the flight path distance cost function and the flight path direction cost function respectively to optimize the endurance of the UAV's full coverage flight;

[0011] S4, improving genetic algorithm training, which mainly includes the following steps:

[0012] S41, traversal sequence coding;

[0013] S42, introduce the greedy algorithm to determine the initial population and calculate the fitness;

[0014] S43. When selecting excellent genes, adopt the selection method without replacement to increase the replication probability of other genes;

[0015] S44. Improve the gene crossover method so that each node in the three-dimensional model is traversed only once;

[0016] S45, introducing the flight path direction cost function, so that the mutation process of the genetic algorithm moves towards the direction of the optimal solution;

[0017] S46, after multiple consecutive iterations, determine whether the optimal fitness value of the population has changed. If the optimal fitness value of the population has not changed, increase the mutation probability to jump out of the local optimal solution;

[0018] S5. Convert the traversal sequence obtained by the improved genetic algorithm training into longitude and latitude coordinates, and then input the longitude and latitude coordinates into the control program of the UAV. The UAV executes according to the control program to realize the full coverage path planning of the UAV flight.

[0019] As a preferred technical solution of the present invention, the three-dimensional model of the fully covered flight environment of the UAV is established, comprising the following steps:

[0020] S21, dividing the flight environment of the UAV into a number of cubes to represent the undulations of the ground and the locations of obstacles;

[0021] S22, abstract the height of the highest obstacle in the grid into the height of the grid cube, and make each grid have a coordinate point Form presentation;

[0022] S23, if the height of the obstacle in the grid is less than or equal to the set height When the obstacle is set as a drone accessible point by default, if there is a point with a height greater than When an obstacle is detected, the obstacle is considered an inaccessible point by the drone by default.

[0023] As a preferred technical solution of the present invention, whether the obstacle can be accessed by the drone in step S23 uses the variable To indicate that the variable It is defined according to the following formula: .

[0024] As a preferred technical solution of the present invention, the flight path distance cost function is defined according to the following formula: in, Represents the distance cost between two nodes, is the Euclidean distance between two nodes. When there is no obstacle between two nodes in the path, the cost of the path is set to the Euclidean distance between the two points. When there is an obstacle on the path between the two points, the height of all obstacles is saved in the set The drone will start from the set initial altitude Rise to Then go to the target point and finally descend to the initial set height .

[0025] As a preferred technical solution of the present invention, the flight path direction cost function is defined according to the following formula: in, is the angle difference between the current moving direction of the drone and the next moving direction, The larger the value, the greater the direction of the corresponding drone changes, and the greater the cost of the corresponding change in the direction of the drone;

[0026] The angle difference Specifically defined as follows: in, is the angle between the straight line formed by the next state point and the current node and the horizontal coordinate, The angle between the current node and the last covered node. is the target position coordinate point, is the current position coordinate point, is the coordinate point of the previous position. The more similar the direction of the next movement is to the original movement direction, the smaller the cost will be.

[0027] As a preferred technical solution of the present invention, the specific method of introducing the greedy algorithm to determine the initialization population is: after randomly selecting the initial coordinate point, the greedy algorithm is used to solve a better traversal sequence as the population gene.

[0028] As a preferred technical solution of the present invention, the specific method of improving the gene crossover method is: first take a continuous gene segment from the parent sequence, and then sequentially take genes different from this continuous gene segment from the mother sequence and add them to the daughter sequence.

[0029] As a preferred technical solution of the present invention, the specific method of introducing the flight path direction cost function in step S45 is: after randomly selecting a gene to be replaced, the directional cost values ​​of the remaining genes to the gene are calculated, and the gene with the smallest cost loss is selected for exchange.

[0030] As a preferred technical solution of the present invention, increasing the mutation probability to jump out of the local optimal solution in step S46 is achieved by adopting a dynamic mutation rate, and the dynamic mutation rate is defined by the following formula: in, Indicates the probability of genetic algorithm mutation. If the current optimal fitness value of the genetic algorithm does not change after more than 10 iterations, the probability of mutation is dynamically increased. The probability increases with each repeated iteration on the original probability. , until the mutation probability is 1, when the optimal solution is updated, Restore it to the initial value and increase the genetic diversity of the population by introducing a dynamic mutation rate, while avoiding the impact of excessive mutation probability on the retention of individual excellent genes.

[0031] The present invention has the following beneficial effects:

[0032] 1. The present invention uses the grid method to model the UAV flight environment. The UAV flight environment is mapped using the grid method and the model is constructed using cubes of different heights, so that the environment traversed and covered by the actual flight of the UAV can adapt to the complex three-dimensional environment.

[0033] 2. The present invention applies the improved genetic algorithm to UAV flight trajectory planning, and effectively combines the flight path distance cost function and the flight path direction cost function, thereby improving the convergence speed, enhancing the global optimization capability, and reducing the flight time and energy consumption.

[0034] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 This is the obstacle-overcoming flight diagram of the UAV in the present invention.

[0037] Figure 2 It is the difference map of the directional cost function in the present invention.

[0038] Figure 3 This is a basic genetic algorithm flow chart of the present invention.

[0039] Figure 4 It is a schematic diagram of the cross flow in the present invention.

[0040] Figure 5 This is the flow chart of the improved genetic algorithm in the present invention.

[0041] Figure 6 It is a flow chart of the overall scheme of the present invention. DETAILED DESCRIPTION

[0042] 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.

[0043] 1. Grid environment modeling

[0044] To study the problem of path planning, we must first select a suitable method to model the environment map. Common three-dimensional environment modeling methods include: geometric modeling, topological modeling, and grid method. Considering the actual terrain conditions and the computational efficiency of drone coverage traversal, this paper applies the grid method to the simulation of the environment map and divides the flight environment of the drone into several cubes to represent the undulations of the ground and the location of obstacles.

[0045] The UAV flight environment is divided into 81 grids, and the size of each grid is In order to facilitate calculation and research, the height of the highest obstacle in the grid is abstracted as the height of the grid cube and each grid is represented by a coordinate point The goal of drone full coverage path planning is to traverse all coverable grids (i.e. all accessible points) from a certain starting position and return to the starting position, and to minimize the flight cost of the drone. This problem can be compared to the traveling salesman problem (TSP).

[0046] Considering the specific requirements of drones for flight altitude in application scenarios such as cruising, scanning, and spraying pesticides, the present invention makes the following settings. If the height of the obstacle in the grid is less than or equal to the set height By default, the obstacle is an accessible point for drones. If there is an obstacle with a height greater than If there is an obstacle, the obstacle is considered to be an inaccessible point for the drone. To indicate whether the grid can be accessed, and make the following formula definition: .

[0047] 2. Flight route distance cost function

[0048] A major problem faced by drones in practical applications is poor endurance, so flight energy consumption must be considered when studying drone path planning. The primary indicator that determines the energy consumption of a drone is the flight distance after path planning, and the following definition is made: in, Represents the distance cost between two nodes, is the Euclidean distance between two nodes. When there is no obstacle between two nodes in the path, the cost of the path is set to the Euclidean distance between the two points. When there is an obstacle on the path between the two points, the height of all obstacles is saved in the set The drone will start from the set initial altitude Rise to Then go to the target point and finally descend to the initial set height ,like Figure 1 shown.

[0049] 3. Flight path direction cost function

[0050] It is proved that the energy consumption of a UAV when turning is higher than that of a straight line without changing direction. In order to evaluate the quality of UAV path planning, the present invention introduces a direction cost function, i.e., the cost caused by the UAV heading change, on the basis of considering the shortest global flight length, and makes the following definition: in, is the angle between the straight line formed by the next state point and the current node and the horizontal coordinate, The angle between the current node and the last covered node. is the target position coordinate point, is the current position coordinate point, is the coordinate point of the previous position. The more similar the direction of the next movement is to the original movement direction, the smaller the cost is. The difference diagram of the direction cost function is as follows: Figure 2 shown.

[0051] 4. Methods and steps of genetic algorithm

[0052] Genetic algorithm (GA) is an algorithm based on natural selection and genetic mechanism, which iterates the process of natural evolution to obtain the best results. The basic operation steps of genetic algorithm are as follows:

[0053] 1) Determine the population size, number of iterations, and probability of gene mutation;

[0054] 2) Initialize the population (initialize the order of traversal of drone grid nodes);

[0055] 3) Calculate the fitness of individuals in the population;

[0056] When calculating the fitness value of the population, the three-dimensional moving distance cost must be considered, and the reciprocal of the complete coverage distance is used as the fitness value, as shown in the following formula:

[0057] 4) Select individuals for retention;

[0058] 5) Select individuals for mutation;

[0059] 6) Set the termination condition; it should be noted here that Figure 3 The termination condition is to reach the maximum number of iterations specified initially or the optimal value remains unchanged, specifically: (1) the predetermined number of evolutionary generations is completed; (2) the optimal individual in the population has not improved for several consecutive generations or the average fitness has basically not improved for several consecutive generations.

[0060] Figure 3 The figure is a basic genetic algorithm flow chart. When solving the problem using the basic genetic algorithm, the height of obstacles between adjacent nodes in the path sequence is comprehensively considered, so that the algorithm gives priority to the latter between paths with obstacles and paths without obstacles, but does not completely abandon paths with obstacles, and based on this, finds the shortest path with the least number of obstacles. However, the basic genetic algorithm has some shortcomings, such as slow convergence speed and easy to fall into local optimal solutions. In order to solve the above problems, the present invention proposes five corresponding optimization strategies based on the basic algorithm.

[0061] Introduce a greedy algorithm to determine the initial population

[0062] In the basic genetic algorithm, the gene sequence of the primary population is randomly generated, resulting in low fitness value of the primary population and difficulty in rapid convergence. The present invention introduces a greedy algorithm for determining the gene sequence of the primary population, that is, after randomly selecting the initial coordinate point, the greedy algorithm is used to solve a better traversal sequence as the population gene.

[0063] Selection without replacement

[0064] In basic genetic algorithms, the method with replacement is often used to screen individuals. Individuals with larger fitness values ​​are easier to screen, while individuals with lower fitness have a probability of being selected that approaches 0 after multiple iterations.

[0065] The traditional selection method can easily lead to the algorithm falling into the local optimal solution during the solution process. Therefore, when selecting excellent genes, the method of not replacing them is adopted to increase the replication probability of other genes, and a new crossover method is introduced.

[0066] 3) Improve the genetic crossover method

[0067] When considering the crossover problem, according to the requirements of minimum repetition rate and maximum coverage rate in full coverage path planning. If each node is to be traversed only once, the traditional crossover method that is prone to duplicate points cannot be relied on. Therefore, the present invention introduces an improved gene crossover method, which considers taking a continuous gene segment from the parent sequence, and then taking genes different from this continuous gene segment from the parent sequence in order and adding them to the daughter sequence, such as Figure 4 shown.

[0068] 4) Introducing direction cost function

[0069] Since the mutation mode set by the basic genetic algorithm is to randomly exchange the position order of two access nodes, there is a certain probability that the path cost will increase, so the directional cost function is introduced. After randomly selecting a gene to be replaced, the directional cost value of the remaining genes to the gene is calculated, and the gene with the smallest cost loss is selected for exchange. By introducing the directional cost function, the mutation process of the genetic algorithm can move towards the direction of the optimal solution.

[0070] 5) Use dynamic mutation rate

[0071] In order to prevent the algorithm from falling into the local optimum, after multiple consecutive iterations, if the optimal fitness value of the population has not changed, the mutation probability is increased to a certain extent to jump out of the local optimal solution. in, Indicates the probability of genetic algorithm mutation. If the current optimal fitness value of the genetic algorithm does not change after more than 10 iterations, the probability of mutation is dynamically increased. The probability increases with each repeated iteration on the original probability. , until the mutation probability is 1, when the optimal solution is updated, Restore to the initial value, and increase the genetic diversity of the population by introducing a dynamic mutation rate, while avoiding the high mutation probability that affects the retention of individual excellent genes. The flowchart of the improved genetic algorithm is as follows Figure 5 As shown, Figure 5 The termination conditions and Figure 3 Similarly, the maximum number of iterations or the optimal value specified initially remains unchanged, specifically: (1) the predetermined number of evolutionary generations is completed; (2) the optimal individual in the population has not improved for several consecutive generations or the average fitness has not improved for several consecutive generations.

[0072] Finally, the traversal sequence obtained by algorithm training is converted into longitude and latitude coordinates to input into the program for controlling the flight of the UAV, realizing the overall design of the full coverage path planning of the UAV flight. The overall solution flow chart is shown in the figure. Figure 6 As shown, Figure 5 The termination condition in Figure 3 Similarly, the maximum number of iterations or the optimal value specified initially remains unchanged, specifically: (1) the predetermined number of evolutionary generations is completed; (2) the optimal individual in the population has not improved for several consecutive generations or the average fitness has not improved for several consecutive generations.

[0073] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0074] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A UAV full coverage path planning method based on improved genetic algorithm, Features: The steps include: S1. Determine the coverage flight range that the UAV is to perform, and scan the map of the coverage flight range to obtain basic information; S2. Use the grid method to convert the latitude and longitude coordinates in the basic information obtained by scanning into grid point coordinates, and define the grid height as the maximum obstacle height in the grid to establish a three-dimensional model of the UAV's full coverage flight environment; S3, introduce the flight path distance cost function and the flight path direction cost function respectively to optimize the endurance of the UAV's full coverage flight; S4, improving genetic algorithm training, which mainly includes the following steps: S41, traversal sequence coding; S42. Introduce a greedy algorithm to determine the initial population and calculate the fitness. When calculating the fitness value of the population, the three-dimensional moving distance consumption must be considered, and the reciprocal of the distance covered completely is used as the fitness value, as shown in the following formula: in, Represents the distance cost between two nodes; S43. When selecting excellent genes, adopt the selection method without replacement to increase the replication probability of other genes; S44. Improve the gene crossover method so that each node in the three-dimensional model is traversed only once; S45, introducing a flight path direction cost function so that the mutation process of the genetic algorithm moves in the direction of the optimal solution; wherein the specific method of introducing the flight path direction cost function is: after randomly selecting a gene to be replaced, calculating the direction cost values ​​of the remaining genes to the gene, and selecting the gene with the smallest cost loss for exchange; S46, after multiple consecutive iterations, determine whether the optimal fitness value of the population has changed. If the optimal fitness value of the population has not changed, increase the mutation probability to jump out of the local optimal solution; S5. Convert the traversal sequence obtained by the improved genetic algorithm training into longitude and latitude coordinates, and then input the longitude and latitude coordinates into the control program of the UAV. The UAV executes according to the control program to realize the full coverage path planning of the UAV flight.

2. According to claim 1, a method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm, It is characterized in that The step of establishing a three-dimensional model of the UAV's full coverage flight environment includes the following steps: S21, dividing the flight environment of the UAV into a number of cubes to represent the undulations of the ground and the locations of obstacles; S22, abstract the height of the highest obstacle in the grid into the height of the grid cube, and make each grid have a coordinate point Form presentation; S23, if the height of the obstacle in the grid is less than or equal to the set height When the obstacle is set as a drone accessible point by default, if there is a point with a height greater than When an obstacle is detected, the obstacle is considered an inaccessible point by the drone by default.

3. According to claim 2, a method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm, It is characterized in that In step S23, whether the obstacle can be accessed by the drone is determined by using the variable To indicate that the variable It is defined according to the following formula: .

4. According to claim 1, a method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm, It is characterized in that The flight path distance cost function is defined according to the following formula: in, Represents the distance cost between two nodes, is the Euclidean distance between two nodes. When there is no obstacle between two nodes in the path, the cost of the path is set to the Euclidean distance between the two points. When there is an obstacle on the path between the two points, the height of all obstacles is saved in the set The drone will start from the set initial altitude Rise to Then go to the target point and finally descend to the initial set height .

5. According to claim 1, a method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm, It is characterized in that The flight path direction cost function is defined according to the following formula: in, is the angle difference between the current moving direction of the drone and the next moving direction, The larger the value, the greater the direction of the corresponding drone changes, and the greater the cost of the corresponding change in the direction of the drone; The angle difference Specifically defined as follows: in, is the angle between the straight line formed by the next state point and the current node and the horizontal coordinate, The angle between the current node and the last covered node. is the target position coordinate point, is the current position coordinate point, is the coordinate point of the previous position. The more similar the direction of the next movement is to the original movement direction, the smaller the cost will be.

6. The method for full coverage path planning of unmanned aerial vehicle based on improved genetic algorithm according to claim 1, It is characterized in that The specific method of introducing the greedy algorithm to determine the initial population is: after randomly selecting the initial coordinate point, the greedy algorithm is used to solve a better traversal sequence as the population gene.

7. The method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm according to claim 1, It is characterized in that The specific method of improving the gene crossover method is: firstly take a continuous gene segment from the parent sequence, and then sequentially take genes different from this continuous gene segment from the mother sequence and add them into the daughter sequence.

8. The method for full coverage path planning of unmanned aerial vehicles based on improved genetic algorithm according to claim 1, It is characterized in that In step S46, increasing the mutation probability to jump out of the local optimal solution is achieved by adopting a dynamic mutation rate, and the dynamic mutation rate is defined by the following formula: in, Indicates the probability of genetic algorithm mutation. If the current optimal fitness value of the genetic algorithm does not change after more than 10 iterations, the probability of mutation is dynamically increased. The probability increases with each repeated iteration on the original probability. , until the mutation probability is 1, when the optimal solution is updated, Restore it to the initial value and increase the genetic diversity of the population by introducing a dynamic mutation rate, while avoiding the impact of excessive mutation probability on the retention of individual excellent genes.