UAV flight planning method, system and device based on mission segment mode

Through the UAV flight planning method based on the mission segment mode, dual sequence coding and Dubins curve optimization path are used to solve the problem of insufficient UAV flight planning accuracy in the existing technology and achieve more efficient and accurate flight path planning.

CN118657275BActive Publication Date: 2024-10-25CALCULATION AERODYNAMICS INST CHINA AERODYNAMICS RES & DEV CENT
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411133496.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-25
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

Existing UAV flight planning methods are based on the mission point model, which ignores spatiotemporal constraints, resulting in flight paths that do not comply with motion characteristics, and cannot guarantee the continuous illumination requirements of payloads such as synthetic aperture radar, affecting imaging quality.

Method used

The UAV flight planning method based on the mission segment model is used to describe the timing and direction of the mission segment through dual-sequence coding, use the Dubins curve to calculate the shortest flight distance, and combine the evolutionary algorithm to optimize the path to generate the optimal solution to improve planning accuracy.

Benefits of technology

It improves the accuracy and efficiency of flight planning, ensures the flight performance of UAVs under motion constraints, reduces the difficulty of problem solving, and provides more intuitive and concise planning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657275B_ABST
    Figure CN118657275B_ABST
Patent Text Reader

Abstract

The invention relates to the field of unmanned aerial vehicle flight planning, and provides a method, system and device for unmanned aerial vehicle flight planning based on a mission segment mode. The method comprises: generating mission segments according to unmanned aerial vehicle mission requirements, describing the timing and direction of the mission segments by adopting a dual sequence encoding method; calculating the shortest flight distance between the mission segments; obtaining a distance matrix set; mapping the dual sequences to generate a rectangular solution space; adopting an evolutionary algorithm, initializing algorithm parameters, and uniformly generating an initial population based on the mapped solution space; using the distance matrix set to calculate the path length of the initial population sequence, and recording multiple groups of excellent solution sequences; continuously replacing and cross-talking and mutating the encoding of the population based on the excellent solution sequence until convergence or reaching a maximum number of iterations, and taking the dual sequence corresponding to the shortest path length as the optimal solution; decoding the dual sequence corresponding to the optimal solution to generate a flight track with longitude and latitude, thereby improving the efficiency and accuracy of flight planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned aerial vehicle flight planning, and in particular to a method, system and device for unmanned aerial vehicle flight planning based on a mission segment mode. Background Art

[0002] With the development of technology, drones have been widely used in various industries, such as military, aerial photography, etc.

[0003] The existing UAV flight planning method is a flight planning method based on the mission point mode. It is planned based on the mission point mode of "reach and complete", ignoring the time and space constraints required for the UAV to perform the mission, and is prone to the following problems: First, the planning results are prone to paths that do not conform to the motion characteristics, such as sharp turns. If the flight is based on the plan, the actual flight distance will be greater than the simulation distance. Second, the mission effect is difficult to guarantee: Taking the detection mission of carrying a synthetic aperture radar as an example, when the UAV performs the mission, the radar needs to continue to illuminate the target. In the mission point mode planning, the continuous and stable illumination requirements of the radar payload cannot be considered, resulting in insufficient radar illumination time for the target, affecting the imaging quality. Summary of the invention

[0004] The technical problem solved by the present invention is how to improve the flight planning accuracy in the existing UAV flight planning method.

[0005] In order to solve the above problems, the present invention provides a method, system and device for UAV flight planning based on mission segment mode.

[0006] In a first aspect, the present invention provides a method for UAV flight planning based on a mission segment mode, comprising:

[0007] Generate task segments according to the UAV task requirements, describe the timing and direction of multiple task segments by using a double sequence coding method, and obtain the timing sequence and direction sequence of the task segments;

[0008] Calculate the shortest flight distance between task segments according to the Dubins curve; obtain a distance matrix set based on the shortest flight distance between task segments;

[0009] Encoding the time series by using an inverse Cantor expansion to map the time series into decimal numbers;

[0010] decimal encoding the direction sequence, mapping the direction sequence into decimal numbers;

[0011] An evolutionary algorithm is used to initialize algorithm parameters and uniformly generate the initial population based on the rectangular solution space generated after dual sequence mapping;

[0012] Calculating the path length of the initial population sequence using the distance matrix set, and recording multiple sets of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments;

[0013] Continuously replace the excellent solution sequence and crossover and mutate the codes in the population based on the excellent solution sequence until convergence or reaching the maximum number of iterations, and take the double sequence corresponding to the shortest path length as the optimal solution;

[0014] The dual sequence corresponding to the optimal solution is decoded to generate a flight track with longitude and latitude.

[0015] Further, the step of obtaining the time sequence of the task segments includes:

[0016] The mission segments are encoded according to the time sequence in which the drone passes through the mission segments to obtain the time sequence; the elements in the time sequence are positive integers.

[0017] Further, the obtaining of the direction sequence of the task segment includes:

[0018] Selecting the side target when the UAV passes through the mission segment as the target point corresponding to the mission segment;

[0019] Taking the target point as the center of the circle, determining the flying direction of the UAV passing through the mission segment;

[0020] The flying direction is encoded by 0 and 1, thereby obtaining the direction sequence of the task segment.

[0021] Further, obtaining a distance matrix set based on the shortest flight distance between the task segments includes:

[0022] Obtaining a first distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 0 among the shortest flight distances between the task segments;

[0023] Obtaining a second distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 1 among the shortest flight distances between the task segments;

[0024] Obtaining a third distance matrix based on the shortest flight distance between the task segments from the task segment with the flight direction 1 to the task segment with the flight direction 0 among the shortest flight distances between the task segments;

[0025] Obtaining a fourth distance matrix based on the shortest flight distance between the task segment with the flight direction 1 and the task segment with the flight direction 1 among the shortest flight distances between the task segments;

[0026] The distance matrix set is obtained according to the first distance matrix, the second distance matrix, the third distance matrix and the fourth distance matrix.

[0027] Further, the calculating of the path length of the initial population sequence using the distance matrix set includes:

[0028] Determine a corresponding first direction sequence by using the decimal number mapped by the direction sequence in the initial population, and determine a target distance matrix in the distance matrix set according to the first direction sequence;

[0029] Determine a corresponding first time sequence by using the decimal number mapped by the time sequence in the initial population, determine an element in the target distance matrix according to the first time sequence, and obtain a subpath length;

[0030] The sub-path lengths are accumulated to obtain the path length.

[0031] Furthermore, the crossover and mutation of the codes in the population includes:

[0032] Determine the crossover amplitude and randomly generate the crossover interception point position, start from the crossover interception point position of the time sequence and the direction sequence, intercept backward according to the crossover amplitude, and insert the intercepted subsequence into the corresponding sequence to be crossed;

[0033] Determine the variation range and perform variation in the time series by exchanging two task segments; the variation of the time series is as follows:

[0034]

[0035]

[0036] In the formula, and Indicates the position of the task segment where the timing sequence is interchanged, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned;

[0037] Determine the variation range and adopt the following variation methods in the direction sequence:

[0038]

[0039]

[0040] In the formula, Indicates the corresponding The value of the mutation point after mutation, Indicates the corresponding The value of the mutation point after mutation, Indicates the airport takeoff direction. Indicates the airport landing direction. express The value of the next digit, It means to randomly pick an integer in the closed interval from -2 to 2. express The value of the previous digit, express The value of the next digit, express The value of the previous digit, abs means taking the absolute value, and mod means taking the modulo operation.

[0041] Furthermore, the expression of the crossover amplitude is:

[0042]

[0043] In the formula, represents the crossover amplitude of the ith code, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned;

[0044] The expression of the variation range is:

[0045]

[0046] In the formula, Indicates the variation range of the i-th code.

[0047] Furthermore, it also includes:

[0048] When the number of iterations of the evolutionary algorithm is greater than a first threshold, the crossover amplitude and the mutation amplitude are reduced.

[0049] Furthermore, decoding the dual sequence corresponding to the optimal solution to generate a flight track with longitude and latitude includes:

[0050] Decoding the dual sequence corresponding to the optimal solution, generating the planned timing and planned direction of the mission segment, and obtaining the longitude and latitude of the mission segments that the flight plan passes through in sequence and the planned flight direction of each mission segment;

[0051] Convert the longitude and latitude of the task segments passed in sequence into rectangular coordinates;

[0052] The flight track of the UAV with longitude and latitude is determined through the Dubins curve, the planned flight direction of each mission segment, and the rectangular coordinates to obtain the track point.

[0053] In the second aspect, a UAV flight planning system based on a mission segment mode includes:

[0054] A dual sequence generation module is used to generate a task segment according to the UAV task requirements, and to describe the timing and direction of a plurality of the task segments by using a dual sequence coding method to obtain a timing sequence and a direction sequence of the task segments;

[0055] A distance matrix generation module is used to calculate the shortest flight distance between task segments according to the Dubins curve; and obtain a distance matrix set based on the shortest flight distance between task segments;

[0056] A sequence encoding module, used to encode the time sequence by using an inverse Cantor expansion, and map the time sequence into a decimal number; decimal encode the direction sequence, and map the direction sequence into a decimal number;

[0057] The dual sequence optimization module is used to use an evolutionary algorithm to initialize algorithm parameters and evenly generate an initial population based on the rectangular solution space generated after dual sequence mapping; use the distance matrix set to calculate the path length of the initial population sequence and record multiple groups of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments; continuously replace the excellent solution sequence and cross and mutate the codes in the population based on the excellent solution sequence until convergence or the maximum number of iterations is reached, and the dual sequence corresponding to the shortest path length is taken as the optimal solution;

[0058] The flight track generation module is used to decode the dual sequence corresponding to the optimal solution and generate a flight track with longitude and latitude.

[0059] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the UAV flight planning method based on the task segment mode as described in the first aspect.

[0060] The beneficial effects of the UAV flight planning method, system and equipment based on the mission segment mode described in the present invention are as follows: by adopting mission segment-based flight planning, only flight performance is focused on in the planning stage, thereby improving planning efficiency; by adopting time and direction dual sequence coding, the fit between the planning system and the planning problem is improved, thereby making the planning result more intuitive and concise; by adopting an improved evolutionary algorithm, the efficiency and accuracy of planning are improved; by adopting the Dubins curve model to fit the UAV track in the solution process, the system planning efficiency can be improved and the difficulty of problem solving can be reduced while ensuring that the UAV is under motion flight constraints. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 This is a process of a UAV flight planning method based on a mission segment mode in an embodiment of the present invention. Figure 1 ;

[0062] Figure 2 This is a process of a UAV flight planning method based on a mission segment mode in an embodiment of the present invention. Figure 2 ;

[0063] Figure 3 is a schematic diagram of a flight mode in an embodiment of the present invention;

[0064] Figure 4 is a schematic diagram of selecting points Q1, Q2, Q3, Q4, and Q5 in the solution space in an embodiment of the present invention;

[0065] Figure 5 Schematic diagram of the mapping distance of the solution sequence before and after the algorithm in the embodiment of the present invention;

[0066] Figure 6 is a schematic diagram of a mission segment and a starting position of a drone in an embodiment of the present invention;

[0067] Figure 7 is a schematic diagram of a flight planning result in an embodiment of the present invention;

[0068] Figure 8 It is a range comparison diagram of a UAV flight planning method based on a mission segment mode in an embodiment of the present invention and an existing algorithm. DETAILED DESCRIPTION

[0069] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0070] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0071] The embodiment of the present invention provides a method for UAV flight planning based on a mission segment mode, such as Figure 1 and Figure 2 As shown, the method comprises the following steps:

[0072] 101. Generate mission segments according to the UAV mission requirements, describe the timing and direction of multiple mission segments by using a dual sequence coding method, and obtain the timing sequence and direction sequence of the mission segments.

[0073] In a possible implementation manner, obtaining the time sequence of the task segments includes:

[0074] The mission segments are encoded according to the time sequence in which the drone passes through the mission segments to obtain the time sequence; the elements in the time sequence are positive integers.

[0075] For example, if there are three task segments, namely task segment 1, task segment 2 and task segment 3, the timing sequence of the task segments is: {1, 2, 3}, {1, 3, 2}, {2, 3, 1}, {2, 1, 3}, {3, 1, 2}, {3, 2, 1}. Specifically, 1 in the sequence {1, 3, 2} indicates that the first task segment passed by the drone is task segment 1, 3 in the sequence indicates that the third task segment passed by the drone is task segment 2, and 2 in the sequence indicates that the second task segment passed by the drone is task segment 3, thereby completing the timing encoding of all task segments.

[0076] In a possible implementation manner, obtaining the direction sequence of the task segment includes:

[0077] Selecting the side target when the UAV passes through the mission segment as the target point corresponding to the mission segment;

[0078] Taking the target point as the center of the circle, determining the flying direction of the UAV passing through the mission segment;

[0079] The flying direction is encoded by 0 and 1, thereby obtaining the direction sequence of the task segment.

[0080] Specifically, there are two ways of flying into the same mission segment. Therefore, with the target point as the center of the circle, it is determined whether the direction of the drone passing through the mission segment is clockwise or counterclockwise. The number 1 is used to represent clockwise, and the number 0 is used to represent counterclockwise. In this way, the direction of the mission segment is encoded to obtain a direction sequence.

[0081] For example, assume that there are only two mission segments, namely, mission segment 1 and mission segment 2. If the timing sequence of the mission segments is {1, 2}, that is, the flight plan is to first pass through mission segment 1 and then through mission segment 2. In this case, there will still be four flight modes. That is to say, for the mission segments, even if the timing sequence from mission segment 1 to mission segment 2 is maintained, there will still be four flight modes. Therefore, it is necessary to use a double sequence coding method to describe each flight mode. In addition to the timing coding, the double sequence coding also includes direction coding. If the timing sequence of the mission segments is {1, 2}, there are four directional sequences, namely {1, 1}, {1, 0}, {0, 0}, and {0, 1}. Figure 3 As shown, Figure 3 (a), (b), (c), and (d) correspond to a direction sequence respectively. Figure 3In subgraph (a) in , the task segment first passes through task segment 1 and then through task segment 2. The direction when passing through task segment 1 is clockwise, and the direction when passing through task segment 2 is clockwise. Therefore, the direction of the task segment is encoded as {1, 1}, that is, the direction sequence of the task segment is {1, 1}. Among them, the direction when passing through task segment 1 is determined according to the target point corresponding to task segment 1, that is, target point 1, and the direction when passing through task segment 2 is determined according to the target point corresponding to task segment 2, that is, target point 2.

[0082] One flight mode corresponds to one sequence group, and each sequence group contains a timing sequence and a direction sequence. Figure 3 , Figure 3 There are 4 flying modes in total, so there are 4 sequence groups in total. The sequence group of subgraph (a) is {{1, 2}, {1, 1}}, the sequence group of subgraph (b) is {{1, 2}, {1, 0}}, the sequence group of subgraph (c) is {{1, 2}, {0, 0}}, and the sequence group of subgraph (d) is {{1, 2}, {0, 1}}.

[0083] 102. Calculate the shortest flight distance between task segments according to the Dubins curve; and obtain a distance matrix set based on the shortest flight distance between task segments.

[0084] The Dubins curve is used to calculate the flight distance between each mission segment, and the flight distance here is the shortest flight distance. Specifically, first determine the angles of the starting point and the arrival point, that is, the flight direction of the drone in the two mission segments, and then use the Dubins curve to screen the shortest flight distance. Because there are two different ways of flying into the same mission segment, the flight angles are different, and different situations need to be considered. Dubins can generate a candidate set of the shortest flight path after fixing the departure angle of the starting point, the entry angle of the end point, and determining the maximum turning radius.

[0085] Specifically, when the flight direction is determined in each mission segment, there is a candidate set of the shortest flight paths for the flight modes corresponding to any two mission segments. The set is determined by the Dubins curve and is: , where D is the shortest flight path candidate set, L is the drone turning counterclockwise, R is the drone turning clockwise, and S is the drone flying in a straight line. Determine the shortest flight distance between two mission segments.

[0086] In a possible implementation manner, obtaining a distance matrix set based on the shortest flight distance between the mission segments includes:

[0087] Obtaining a first distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 0 among the shortest flight distances between the task segments;

[0088] Obtaining a second distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 1 among the shortest flight distances between the task segments;

[0089] Obtaining a third distance matrix based on the shortest flight distance between the task segments from the task segment with the flight direction 1 to the task segment with the flight direction 0 among the shortest flight distances between the task segments;

[0090] Obtaining a fourth distance matrix based on the shortest flight distance between the task segment with the flight direction 1 and the task segment with the flight direction 1 among the shortest flight distances between the task segments;

[0091] The distance matrix set is obtained according to the first distance matrix, the second distance matrix, the third distance matrix and the fourth distance matrix.

[0092] Specifically, the first distance matrix is , the second distance matrix is , the third distance matrix is , the fourth distance matrix is For example, assuming there are only three task segments, the distance matrix is ​​3 3 matrix, the elements in the first row and second column of the matrix represent the shortest flight distance from mission segment 1 with a counterclockwise flight direction to mission segment 2 with a counterclockwise flight direction, and the elements in the third row and second column of the matrix represent the shortest flight distance from mission segment 3 with a counterclockwise flight direction to mission segment 2 with a counterclockwise flight direction.

[0093] 103. Encode the time series by using inverse Cantor expansion to map the time series into decimal numbers.

[0094] In order to perform task segment planning through the improved evolutionary algorithm in the future, the dual sequence is first encoded and mapped to the rectangular solution space through inverse Cantor expansion and binary mapping, so as to uniformly sample the solution space, reduce the overlap rate of the population in the initial stage, and increase the representativeness of the initial solution.

[0095] Specifically, the time series of the task segments is actually a permutation and combination of n numbers. The time series can be converted into integers by using the inverse Cantor expansion. The similarity of the sequences can be reflected by the proximity of the converted integers.

[0096] 104. Perform decimal encoding on the direction sequence, and map the direction sequence into decimal numbers.

[0097] The direction sequence of the task segment is actually a combination of n-bit binary representations. The direction sequence is converted into decimal, and the degree of similarity of the sequence can be reflected by the decimal proximity.

[0098] In some cases, the decimal numbers are close, but the corresponding binary sequences are quite different. For example, the direction sequence {1, 0, 0, 0, 0} and the direction sequence {0, 1, 1, 1, 1} are converted to decimal numbers as 16 and 15 respectively. In this case, the binary sequence is very different, but the decimal is not. However, since this situation only occurs in n cases in the entire problem, it has little impact on the subsequent initialization of the entire population, so it is not processed.

[0099] The above two methods are both reversible mappings, which meet the uniqueness requirements of encoding and decoding in the algorithm and can achieve uniform sampling in the rectangular solution space. Select points Q1, Q2, Q3, Q4, Q5 in the solution space. The specific mapping relationship is as follows: Figure 4 As shown in Table 1 below:

[0100] Table 1

[0101]

[0102] 105. An evolutionary algorithm is used to initialize the algorithm parameters and uniformly generate the initial population based on the rectangular solution space generated after dual sequence mapping.

[0103] 106. Use the distance matrix set to calculate the path length of the initial population sequence, and record multiple groups of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments.

[0104] In a possible implementation, the calculating of the path length of the initial population sequence using the distance matrix set includes:

[0105] Determine a corresponding first direction sequence by using the decimal number mapped by the direction sequence in the initial population, and determine a target distance matrix in the distance matrix set according to the first direction sequence;

[0106] Determine a corresponding first time sequence by using the decimal number mapped by the time sequence in the initial population, determine an element in the target distance matrix according to the first time sequence, and obtain a subpath length;

[0107] The sub-path lengths are accumulated to obtain the path length.

[0108] Specifically, the decimal number mapped by the direction sequence in the initial population is the direction number, and the decimal number mapped by the time sequence in the initial population is the time sequence number. The corresponding first time sequence and first direction sequence are determined according to the time sequence number and the direction number, respectively. The flying directions of the two task segments are determined according to the direction codes between any two task segments, thereby determining the distance matrix in the distance matrix set to be searched, and then determining the target element in the distance matrix according to the time sequence codes between the two task segments, thereby obtaining the sub-path length between the two task segments, that is, the shortest path length between the two task segments. Finally, all sub-path lengths are accumulated to obtain the path length corresponding to the time sequence number and the direction number.

[0109] 107. Continuously replace the excellent solution sequence and crossover and mutate the codes in the population based on the excellent solution sequence until convergence or reaching a maximum number of iterations, and take the dual sequence corresponding to the shortest path length as the optimal solution.

[0110] In a possible implementation, the crossover and mutation of the encoding in the population includes:

[0111] The crossover amplitude is determined, and the crossover interception point position is randomly generated. Starting from the crossover interception point position of the timing sequence and the direction sequence, the subsequence is intercepted backward according to the crossover amplitude, and the intercepted subsequence is inserted into the corresponding sequence to be crossed.

[0112] Specifically, for crossover, each sequence, on its own basis, cross-fuses the encoded excellent gene sequence fragments to achieve its own evolution. Starting from the crossover interception point of the time sequence and the direction sequence, when intercepting backward according to the crossover amplitude determined by the formula, if it exceeds the sequence length, it will be intercepted from the beginning. After deduplication of the task segment in the sequence to be crossed, the intercepted sequence is inserted into the sequence to be crossed, thus completing the crossover operation of the gene sequence.

[0113] Determine the variation range and perform variation in the time series by exchanging two task segments; the variation of the time series is as follows:

[0114]

[0115]

[0116] In the formula, and Indicates the position of the task segment where the timing sequence is interchanged, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned;

[0117] Determine the variation range and adopt the following variation methods in the direction sequence:

[0118]

[0119]

[0120] In the formula, Indicates the corresponding The value of the mutation point after mutation, Indicates the corresponding The value of the mutation point after mutation, Indicates the airport takeoff direction. Indicates the airport landing direction. express The value of the next digit, It means to randomly pick an integer in the closed interval from -2 to 2. express The value of the previous digit, express The value of the next digit, express The value of the previous digit, abs means taking the absolute value, and mod means taking the modulo operation.

[0121] To ensure the exploration of the solution space, the mutation rate and crossover rate of each gene should avoid being the same.

[0122] In a possible implementation manner, the crossover amplitude is expressed as:

[0123]

[0124] In the formula, represents the crossover amplitude of the ith code, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned;

[0125] The expression of the variation range is:

[0126]

[0127] In the formula, Indicates the variation range of the i-th code.

[0128] Intersection point location The expression is as follows:

[0129]

[0130] In the formula, Indicates the intersection intercept point location.

[0131] In the iterative optimization process of crossover and mutation, the method of recording multiple groups of excellent solution sequences generated during the algorithm iteration process is adopted to avoid premature algorithm and falling into local optimal solution. The number of groups of excellent solution sequences saved is as follows:

[0132]

[0133] In the formula, represents the number of groups of saved excellent solution sequences, and M represents the size of the initialized population.

[0134] In the subsequent iterations of the algorithm, the excellent solution sequence group is continuously maintained to keep the global optimal sequence. In the later stage of the algorithm, the overall population tends to converge. In order to ensure the exploratory nature of the algorithm, deduplication is performed when maintaining the sequence group.

[0135] In a possible implementation, it further includes:

[0136] When the number of iterations of the evolutionary algorithm is greater than a first threshold, the crossover amplitude and the mutation amplitude are reduced.

[0137] In order to balance the algorithm's exploration of the solution space and operating efficiency, the algorithm uses adaptive adjustment of the variation and crossover amplitude of each gene sequence for optimization. At the beginning of the algorithm, it is ensured that each gene sequence has sufficient variation and crossover amplitude. In the middle and late stages of the algorithm, most of the excellent sequences are close to the optimal solution. At this time, the variation and crossover amplitude of each gene sequence is reduced, in order to achieve the optimal solution by mutating in a small range near the optimal solution. Figure 5 The figure shows the mapping distance diagram of the solution sequence before and after the algorithm. The early and late stages of the algorithm are divided according to the first threshold, and the specific value of the first threshold is determined by the implementer.

[0138] Therefore, the iteration number threshold, that is, the first threshold, is set. When the iteration number of the evolutionary algorithm is greater than the first threshold, the crossover amplitude and mutation amplitude are changed as follows:

[0139]

[0140]

[0141] In the formula, Indicates the current iteration number. Indicates the maximum number of iterations.

[0142] In summary, firstly, the inverse Cantor expansion and binary coding are performed according to the number of task segments to generate the solution space, and then the initialization population is uniformly generated. The fitness of each gene sequence in the population is calculated, multiple sets of excellent solution sequences are saved and the parameters are adaptively changed, and the population is crossovered, mutated and iterated until convergence, reaching the maximum number of iterations or satisfying the end condition, and the optimal solution sequence is output. In the embodiment of the present invention, the inverse of the path length corresponding to the time sequence number and the direction number is calculated as the fitness function.

[0143] 108. Decode the dual sequence corresponding to the optimal solution to generate a flight track with longitude and latitude.

[0144] In a possible implementation manner, decoding the dual sequence corresponding to the optimal solution to generate a flight track with longitude and latitude includes:

[0145] Decoding the dual sequence corresponding to the optimal solution, generating the planned timing and planned direction of the mission segment, and obtaining the longitude and latitude of the mission segments that the flight plan passes through in sequence and the planned flight direction of each mission segment;

[0146] Convert the longitude and latitude of the task segments passed in sequence into rectangular coordinates;

[0147] The flight track of the UAV with longitude and latitude is determined by the Dubins curve, the planned flight direction of each mission segment, and the rectangular coordinates to obtain the track point.

[0148] Specifically, the longitude and latitude are converted into rectangular coordinates through the Mercator projection method to avoid track distortion caused by direct calculation of longitude and latitude. After obtaining the track points, several track points are converted into longitude and latitude coordinates and output to the user terminal.

[0149] like Figure 6 As shown, it is a schematic diagram of the mission segment and the starting position of the UAV. Figure 7 This is the flight planning result obtained by the embodiment of the present invention.

[0150] The UAV flight planning system based on the mission segment mode proposed in the embodiment of the present invention is composed of a database module, a back-end processing module and a front-end display module, wherein the database module stores the mission segment geographic information and UAV flight parameters based on the Geographic Information System in the SQL database format on a storage medium, and the storage medium has a matching processor that can execute instructions; the back-end processing module, the back-end is responsible for executing the entire mission planning method, and can be written in Python, C++ and other object-oriented languages; the front-end display module, the front-end is responsible for the visualization function of the system, including user input of mission segments, flight parameters and display of the overall mission track obtained by the back-end planning, can be written in JavaScript and other languages, displayed using web pages, and adopts the mainstream microservice design architecture to achieve low coupling between the front-end and back-end modules, which is convenient for subsequent maintenance, expansion and updating.

[0151] Reference Figure 8 By comparing the range of the UAV flight planning method based on the mission segment mode in the embodiment of the present invention with the range of the existing algorithm, it can be seen that the range planned by the method of this embodiment is significantly smaller than the range planned by the existing algorithm.

[0152] In the embodiment of the present invention, the flight planning based on the mission segment is adopted, so that only the flight performance is focused on in the planning stage, thereby improving the planning efficiency; the dual sequence coding of time and direction is adopted, so that the fit between the planning system and the planning problem is improved, and the planning result is more intuitive and concise; the improved evolutionary algorithm is adopted to improve the efficiency and accuracy of planning; the UAV track in the Dubins curve model fitting solution process is adopted, so that the system planning efficiency can be improved and the difficulty of problem solving can be reduced under the premise of ensuring that the UAV is under the motion flight constraints.

[0153] In another embodiment provided by the present invention, a UAV flight planning system based on a mission segment mode is also provided, comprising:

[0154] The dual sequence generation module is used to generate task segments according to the UAV task requirements, and to describe the timing and direction of multiple task segments in a dual sequence coding manner to obtain the timing sequence and direction sequence of the task segments.

[0155] The distance matrix generation module is used to calculate the shortest flight distance between task segments according to the Dubins curve; and obtain a distance matrix set based on the shortest flight distance between task segments.

[0156] The sequence encoding module is used to encode the time sequence by using the inverse Cantor expansion, and map the time sequence into decimal numbers; and to perform decimal encoding on the direction sequence, and map the direction sequence into decimal numbers.

[0157] The dual sequence optimization module is used to use an evolutionary algorithm to initialize algorithm parameters and evenly generate an initial population based on the rectangular solution space generated after dual sequence mapping; use the distance matrix set to calculate the path length of the initial population sequence and record multiple groups of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments; continuously replace the excellent solution sequence and cross and mutate the codes in the population based on the excellent solution sequence until convergence or the maximum number of iterations is reached, and the dual sequence corresponding to the shortest path length is taken as the optimal solution;

[0158] The flight track generation module is used to decode the dual sequence corresponding to the optimal solution and generate a flight track with longitude and latitude.

[0159] In another embodiment provided by the present invention, an electronic device is also provided, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the UAV flight planning method based on the task segment mode described in the embodiment of the present invention.

[0160] The principles and implementation methods of the present invention are described in this article using specific embodiments. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A UAV flight planning method based on a mission segment mode, characterized in that: include: Generate task segments according to the UAV task requirements, describe the timing and direction of multiple task segments by using a double sequence coding method, and obtain the timing sequence and direction sequence of the task segments; Calculate the shortest flight distance between task segments according to the Dubins curve; obtain a distance matrix set based on the shortest flight distance between task segments; Encoding the time series by using an inverse Cantor expansion to map the time series into decimal numbers; decimal encoding the direction sequence, mapping the direction sequence into decimal numbers; An evolutionary algorithm is used to initialize algorithm parameters and uniformly generate the initial population based on the rectangular solution space generated after dual sequence mapping; Calculating the path length of the initial population sequence using the distance matrix set, and recording multiple sets of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments; Continuously replace the excellent solution sequence and crossover and mutate the codes in the population based on the excellent solution sequence until convergence or reaching the maximum number of iterations, and take the double sequence corresponding to the shortest path length as the optimal solution; The dual sequence corresponding to the optimal solution is decoded to generate a flight track with longitude and latitude.

2. The UAV flight planning method based on the mission segment mode as claimed in claim 1, characterized in that: The step of obtaining the timing sequence of the task segment comprises: The mission segments are encoded according to the time sequence in which the drone passes through the mission segments to obtain the time sequence; the elements in the time sequence are positive integers.

3. The UAV flight planning method based on the mission segment mode as claimed in claim 1, characterized in that: The obtaining of the direction sequence of the task segment comprises: Selecting the side target when the UAV passes through the mission segment as the target point corresponding to the mission segment; Taking the target point as the center of the circle, determining the flying direction of the UAV passing through the mission segment; The flying direction is encoded by 0 and 1, thereby obtaining the direction sequence of the task segment.

4. The method for UAV flight planning based on mission segment mode as claimed in claim 3, characterized in that: The obtaining of a distance matrix set based on the shortest flight distance between the mission segments comprises: Obtaining a first distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 0 among the shortest flight distances between the task segments; Obtaining a second distance matrix based on the shortest flight distance between the task segments from the task segment with a flight direction of 0 to the task segment with a flight direction of 1 among the shortest flight distances between the task segments; Obtaining a third distance matrix based on the shortest flight distance between the task segments from the task segment with the flight direction 1 to the task segment with the flight direction 0 among the shortest flight distances between the task segments; Obtaining a fourth distance matrix based on the shortest flight distance between the task segment with the flight direction 1 and the task segment with the flight direction 1 among the shortest flight distances between the task segments; The distance matrix set is obtained according to the first distance matrix, the second distance matrix, the third distance matrix and the fourth distance matrix.

5. The method for UAV flight planning based on mission segment mode as claimed in claim 4, characterized in that: The calculating of the path length of the initial population sequence using the distance matrix set includes: Determine a corresponding first direction sequence by using the decimal number mapped by the direction sequence in the initial population, and determine a target distance matrix in the distance matrix set according to the first direction sequence; Determine a corresponding first time sequence by using the decimal number mapped by the time sequence in the initial population, determine an element in the target distance matrix according to the first time sequence, and obtain a subpath length; The sub-path lengths are accumulated to obtain the path length.

6. The UAV flight planning method based on the mission segment mode as claimed in claim 1, characterized in that: The crossover and mutation of the codes in the population includes: Determine the crossover amplitude and randomly generate the crossover interception point position, start from the crossover interception point position of the time sequence and the direction sequence, intercept backward according to the crossover amplitude, and insert the intercepted subsequence into the corresponding sequence to be crossed; Determine the variation range and perform variation in the time series by exchanging two task segments; the variation of the time series is as follows: In the formula, and Indicates the position of the task segment where the timing sequence is interchanged, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned; Determine the variation range and adopt the following variation methods in the direction sequence: In the formula, Indicates the corresponding The value of the mutation point after mutation, Indicates the corresponding The value of the mutation point after mutation, Indicates the airport takeoff direction. Indicates the airport landing direction. express The value of the next digit, It means to randomly pick an integer in the closed interval from -2 to 2. express The value of the previous digit, express The value of the next digit, express The value of the previous digit, abs means taking the absolute value, and mod means taking the modulo operation.

7. The UAV flight planning method based on the mission segment mode as claimed in claim 6, characterized in that: The expression of the crossover amplitude is: In the formula, represents the crossover amplitude of the ith code, is a function that returns the smallest integer greater than or equal to the specified expression. Indicates returning a uniformly distributed random real number greater than or equal to 0 and less than 1, and n represents the number of task segments to be planned; The expression of the variation range is: In the formula, Indicates the variation range of the i-th code.

8. The method for UAV flight planning based on mission segment mode as claimed in claim 7, characterized in that: Also includes: When the number of iterations of the evolutionary algorithm is greater than a first threshold, the crossover amplitude and the mutation amplitude are reduced.

9. The method for UAV flight planning based on mission segment mode as claimed in claim 1, characterized in that: The step of decoding the dual sequence corresponding to the optimal solution to generate a flight track with longitude and latitude includes: Decoding the dual sequence corresponding to the optimal solution, generating the planned timing and planned direction of the mission segment, and obtaining the longitude and latitude of the mission segments that the flight plan passes through in sequence and the planned flight direction of each mission segment; Convert the longitude and latitude of the task segments passed in sequence into rectangular coordinates; The flight track of the UAV with longitude and latitude is determined through the Dubins curve, the planned flight direction of each mission segment, and the rectangular coordinates to obtain the track point.

10. A UAV flight planning system based on mission segment mode, characterized in that: include: A dual sequence generation module is used to generate task segments according to the UAV task requirements, and to describe the timing and direction of multiple task segments in a dual sequence coding manner to obtain a timing sequence and a direction sequence of the task segments; A distance matrix generation module is used to calculate the shortest flight distance between task segments according to the Dubins curve; and obtain a distance matrix set based on the shortest flight distance between task segments; A sequence encoding module, used to encode the time sequence by using an inverse Cantor expansion, and map the time sequence into a decimal number; decimal encode the direction sequence, and map the direction sequence into a decimal number; The dual sequence optimization module is used to use an evolutionary algorithm to initialize algorithm parameters and evenly generate an initial population based on the rectangular solution space generated after dual sequence mapping; use the distance matrix set to calculate the path length of the initial population sequence and record multiple groups of excellent solution sequences; wherein the path length is the sum of the path lengths between task segments; continuously replace the excellent solution sequence and cross and mutate the codes in the population based on the excellent solution sequence until convergence or the maximum number of iterations is reached, and the dual sequence corresponding to the shortest path length is taken as the optimal solution; The flight track generation module is used to decode the dual sequence corresponding to the optimal solution and generate a flight track with longitude and latitude.

11. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the UAV flight planning method based on the mission segment mode as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Time sequence statistics-based rotary machinery frequency-domain feature signal extraction method

    CN107145843A

  • Method and device for joint optimization of task allocation and route planning of multiple unmanned aerial vehicles

    CN107238388A

  • Identification data management platform for electric power operation

    CN116055448A

  • Unmanned aerial vehicle anomaly detection method based on memory enhanced auto-encoder integrated structure

    CN117235549A

  • Radio altimeter and height measurement method

    CN117388802A