Unmanned helicopter route planning method based on multi-granularity conversion

Through the method of multi-granularity static threat model and dual complex field, the problem of rapid safety of unmanned helicopter route planning in complex dynamic environment is solved. The 3-time B-Spline method is used to optimize the route and realize the unmanned helicopter route planning in multi-granularity threat environment. Solving the problem of limited human and machine power ensures the safety and flyability of the route.

CN118533177APending Publication Date: 2024-08-23SHANDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410594639.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In complex dynamic environments, it is difficult for existing technologies to quickly and safely plan the flight route of unmanned helicopters. In particular, the problem of how to meet the limited power of UAVs in a multi-granularity threat environment has not been effectively solved.

Method used

Using the method of multi-granularity static threat model and dual complex field, high-granularity and low-granularity threat models are constructed through mathematical description, the two-dimensional flyability probability matrix is ​​calculated, the optimal flight route is generated, and the 3-time B-Spline method is used for route optimization. , dynamically update the route to avoid the problem of insufficient battery.

Benefits of technology

It realizes fast and safe route planning for unmanned helicopters in complex dynamic threat environments, improves the safety and flyability of the route, meets the problem of limited power, and can complete the task in the shortest time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004838514260000041
    Figure BDA0004838514260000041
  • Figure BDA0004838514260000081
    Figure BDA0004838514260000081
  • Figure FDA0004838514250000041
    Figure FDA0004838514250000041
Patent Text Reader

Abstract

The invention relates to a multi-granularity conversion-based unmanned helicopter route planning method, which comprises the following steps of: constructing a multi-granularity static threat model, calculating a high-safety two-dimensional flying probability matrix in a high-granularity mode, generating a probability suitable-to-fly area, constructing a flight route set, executing route dynamic planning, and calculating an optimal flight route. The optimal flight route is improved by adopting a three-time B-Spline method, and flight route flyability optimization is achieved. According to the method, the route optimization problem of dynamic and static threat time-space relation characteristics, flight safety, aircraft performance and the like is considered. Example results show that the multi-granularity conversion algorithm can be used for realizing rapid route planning in a complex threat environment, and the method can be used for providing rapid and effective flight route service for the unmanned helicopter by using high granularity and improving the ability of avoiding sudden threats in the first granularity flight at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of unmanned helicopter route planning, and relates to a method for planning an optimal flight route using information such as unmanned helicopter performance and environmental threats, and is specifically a multi-granularity conversion unmanned helicopter route planning method. Background Art

[0002] So far, the research on fast and safe route planning in complex dynamic environments is still a hot topic at home and abroad, and there is no simple and practical method for dynamic flight route planning of unmanned helicopters. There is no obvious result in the research on fast and precise route planning of unmanned helicopters in complex fusion dynamic threat environments. How to apply the threat plane distribution characteristics of different granularities to plan fast and safe flight routes, meet the problem of limited power of unmanned aerial vehicles, and complete the task safely is an urgent problem to be solved. The solution to this problem has extremely important practical significance for both civil unmanned helicopters and unmanned aerial vehicles. Summary of the invention

[0003] (1) Construct a multi-granularity static threat model z, z1, which is mathematically described as follows:

[0004] [x, y] = meshgrid(1:n) (1)

[0005] z=100*exp(-(x-40).^2 / 3^2-(y-10).^2 / 4^2)+150*exp(-(x-5).^2 / 3^2-(y-10).^2 / 4^2)+180*exp(-(x-15).^2 / 3^2-(y-19).^2 / 4^2)+120*exp(-(x-35).^2 / 3^2-(y-45).^2 / 4^2)+160*exp(-(x-15).^2 / 3^2-(y-45).^2 / 4^2) (2)

[0006] [x1, y1]=meshgrid(1:5:n) (3)

[0007] z1=100*exp(-(x1-40).^2 / 3^2-(y1-10).^2 / 4^2)+150*exp(-(x1-5).^2 / 3^2-(y1-10).^2 / 4^2)+180*exp(-(x1-15).^ 2 / 3^2-(y1-19).^2 / 4^2)+120*exp(-(x1-35).^2 / 3^2-(y1-45).^2 / 4^2)+160*exp(-(x1-15).^2 / 3^2-(y1-45).^2 / 4^2) (4)

[0008] In the above formula, [] is a matrix symbol, the symbol “:” represents an operator for generating equal-step vectors, n, meshgrid, x, and y represent the range of the airspace, the function for generating the horizontal and vertical coordinate matrices from the vector 1:n, and the low-granularity horizontal and vertical coordinate matrices generated therefrom, respectively; exp represents a function for calculating exponents, “^” and “.^” represent the point power of the constant power and the corresponding element power of the matrix, respectively; x1 and y1 represent the generated low-granularity horizontal and vertical coordinate matrices, respectively; z and z1 represent a low-granularity static threat model and a high-granularity static threat model, respectively;

[0009] (2) Calculate the two-dimensional flyable probability matrix caljz41 with high safety in high granularity mode:

[0010] First, use formulas (5) to (8) to obtain the binary image BW of the high-granularity static threat plane graph and the initial de-threatized image BW1:

[0011] im=imagesc(z1) (5)

[0012] BW=im2bw(im.CData) (6)

[0013] BW2 = bwareaopen(BW, 3) (7)

[0014] BW1=double(~BW2) (8)

[0015] In formulas (5) to (8), imagesc and im are functions that convert the element values ​​in the high-granularity matrix z1 into different colors according to their numerical values ​​and color the corresponding positions on the coordinate axis with these colors, and the images generated by them; im.CData, im2bw, and BW are the data matrix of image im, the function that converts the high-granularity static threat plane graph into a binary graph, and the images generated by them; bwareaopen and BW2 are functions that delete objects with an area less than 3 in the binary image BW, and the images processed by them; double, "~", and BW1 are functions that convert logical values ​​into numerical values, functions that take the opposite sign, and images converted into numerical values, respectively;

[0016] Then, using formulas (9) to (12), the flyable areas ultimateErosion, ultimateErosion1, ultimateErosion2, and ultimateErosion3 after optimizing the safety performance of different options are obtained:

[0017] ultimateErosion=bwulterode(BW1,′quasi-euclidean′,4) (9)

[0018] ultimateErosion1=bwulterode(BW1,'chessboard',4) (10)

[0019] ultimateErosion2=bwulterode(BW1,'cityblock',4) ​​(11)

[0020] ultimateErosion3=bwulterode(BW1,'euclidean',4) (12)

[0021] Finally, formula (13) is used to calculate the two-dimensional flyable probability matrix caljz41 for the optimal flyable area:

[0022] gljz41=ultimateErosion|ultimateErosion1|ultimateErosion2|ultimateErosion3 (13)

[0023] In formulas (9) to (12), bwulterode, quasi-euclidean, chessboard, cityblock, and euclidean respectively represent the ultimate erosion function based on the distance maximum transformation for generating the optimal flyable area and its different distance options: quasi-Euclidean distance, chessboard distance, taxi distance, and Euclidean distance. “4” indicates that four neighborhoods are selected to calculate the distance. In formula (13), “|” and caljz41 respectively represent the relational operator “or” and the two-dimensional flyable probability matrix.

[0024] (3) Generate probabilistic flight areas and construct a flight route set:

[0025] First, use formula (14) to extract the vertical and horizontal coordinates row1 and col1 of the safe flight track point:

[0026] [row1, col1, v1] = find (gljz41) (14)

[0027] In formula (14), find, row1, col1, and xv1s are the search function, the horizontal and vertical coordinates of the flight safety area and their probability values, respectively;

[0028] Then, using formulas (15) to (16), we use the shortest route pool boundary to select the area after removing the terrain threat and generate a suitable flying area that meets the distance and safety constraints:

[0029] c4=row1+1i*col1 (15)

[0030] ca1=randperm(length(c4)) (16)

[0031] In formulas (15) to (16), c4 and i represent the complex field and imaginary identifier composed of the plane coordinates of the track points in the safety area, respectively; length, randperm, and ca1 represent the function of calculating the longest dimension of the matrix, the function of randomly disrupting a digital sequence, and the random sequence generated by it, respectively;

[0032] Use formulas (17) to (21) to construct a flight route set and calculate the three-dimensional coordinates xv, yv, zv of its optimal route:

[0033] card=floor(rand(1,3)*length(c4))+1 (17)

[0034] [d, nd1]=min(mydist(row1(nd)′, col1(nd)′, z1(row1(nd), col1(nd))′)), nd=ca1(card) (18)

[0035] xv=[1,row1(nd1)′,ng] (19)

[0036] yv=[1,col1(nd1)′,ng] (20)

[0037] zv=z1(xv,yv) (21)

[0038] In formulas (17) to (21), rand, floor, and card represent the function of generating a random matrix, the function of rounding down, and the random matrix generated by it, respectively; nd, nd1, mydist, min, and d represent the randomly generated route components and the optimal track point sequence number, the function of calculating the flight distance, the function of calculating the minimum value, and the shortest flight distance, respectively; xv, yv, and zv represent the three-dimensional coordinates of the optimal route, respectively; ng represents the horizontal and vertical coordinates of the high-granularity flight distance, and "'" represents the transposed symbol;

[0039] (4) Perform dynamic route planning and calculate the optimal flight route fp:

[0040] First, use formulas (22) to (29) to optimize the optimal flight route:

[0041] cxy=xv+1i*yv (22)

[0042] cxy0=mean(xv)+1i*mean(yv) (23)

[0043] cxyj=cxy-cxy0 (24)

[0044] fj=angle(cxyj) (25)

[0045] [fjn,fji]=find(fj<0) (26)

[0046] xvc=xv(fji); yvc=yv(fji); zvc=zv(fji) (27)

[0047] [dczn,dczx]=sort(dcz(fjn)) (28)

[0048] xvl=xvc(dczx); yvl=yvc(dczx); zvl=zvc(dczx) (29)

[0049] In formulas (22) to (29), cxy, cxy0, mean are respectively the complex field of the optimal route plane coordinates and their average values, and the function for finding the average value; cxyj, angle, fj are respectively the difference between the complex fields cxy and cxy0, the function for calculating the argument, and the calculated argument; fjn, fji are respectively the angles found to have an argument less than 0 and their serial numbers; xvc, yvc, zvc are respectively the three-dimensional coordinates of the track points with an argument less than 0; sort, dczn, dczx are respectively the sorting functions and their sorted ranges and serial numbers; xvl, yvl, zvl are respectively the three-dimensional coordinates of the track points after sorting;

[0050] Secondly, formulas (30) to (35) are used to generate the complex field fs2d of the optimal route and the complex field fsth of the plane coordinates of the boundary of the sudden threat impact range:

[0051] xty1=xty=[1 5*xvl n]; yty1=yty=[1 5*yvl n]; zty1=zty=z(xty,yty)+hs (30)

[0052] fs2d=xty(i)+1j*yty(i) (31)

[0053] xth=th(1)+0.5*sin(0:2*pi / 20:2*pi) (32)

[0054] yth=th(2)+0.5*cos(0:2*pi / 20:2*pi) (33)

[0055] zth=z0+0.5*tan(0:2*pi / 20:2*pi) (34)

[0056] fsth=xth+1j*yth (35)

[0057] In formulas (30) to (35), xtv, ytv, and ztv represent the three-dimensional coordinates of low-granularity track points, xtv1, ytv1, and ztv1 represent the three-dimensional coordinates of track points affected by sudden threats, fs2d represents the complex field of the optimal route, j represents the sign of the imaginary number, th, xth, yth, and zth represent the plane coordinates of the position of the sudden threat and the three-dimensional coordinates of the boundary of the sudden threat impact range, pi represents pi, sin, cos, and tan represent the sine, cosine, and tangent functions, respectively;

[0058] Formulas (36) to (37) are used again to generate dynamically updated three-dimensional coordinates of the flight route:

[0059] sg_ag_fsth_2d=sign(angle(fsth-fs2d)) (36)

[0060]

[0061] In formula (24), ag_fsth_2d, sg_ag_fsth_2d, sign are the sudden threat and the route angle difference and their signs, and the function for finding the sign, respectively; xtyy1, yty1, zty1 respectively represent the updated plane coordinates affected by the sudden threat and their corresponding elevation values; max, vth, vthi respectively represent the maximum value calculation function and its calculated ag_fsth_2d maximum value and sequence number;

[0062] Finally, the dynamically updated flight route altitude is generated using formulas (38) to (42):

[0063] fs2dg=xty(i)+1j*zty(i) (38)

[0064] fsthg=xth+1j*zth (39)

[0065] sg_ag_fsth_2dg=sign(angle(fsthg-fs2dg)) (40) [vthg, vthgi]=max(ag_fsth_2dg) (41)

[0066] zty1(i+1)=vthg+hs,max(sg_ag_fsth_2dg)*min(sg_ag_fsth_2dg)<0(42)

[0067] In formula (24), fsth2dg, fsthg, sg_ag_fsth_2dg, sign are the signs of the complex set of track point elevation, the complex number of sudden threat elevation, and the difference between the sudden threat and track point elevation, respectively; vthg and vthgi represent the maximum value and sequence number of the calculated ag_fsth_2dg, respectively;

[0068] (5) The cubic B-Spline method is used to improve the optimal flight route and optimize the route flyability, which provides an effective method to avoid the problem of UAV being limited by insufficient power.

[0069] Compared with the prior art, the present invention has the following advantages:

[0070] a. Realize the rapid planning of safe flight routes for unmanned helicopters in complex dynamic threat environments. Combining the multi-granularity threat environment with the method of minimizing the route threat value provides an effective method to avoid the power limitation problem of unmanned helicopters.

[0071] b. Real-time route optimization in a complex dynamic threat environment using dual complex fields. The route planning algorithm using dual complex fields updates the track point positions by comparing the spatial relationship of the dual complex fields to improve route safety, which plays an important role in the rapid generation of routes in a complex dynamic threat environment. DETAILED DESCRIPTION

[0072] The technical solution of the present invention is further described below in conjunction with an embodiment. In the embodiment, there is a Mi-28 armed helicopter flying, and the coordinates of the lower left corner of the planned airspace are [0km, 0km, 15m], and the coordinates of the upper right corner are [50km, 50km, 15m]. There are 5 terrain threats at (40km, 10km), (5km, 10km), (15km, 19km), (35km, 45km), and (15km, 45km), and there is 1 sudden threat at (20km, 30km, 15m); the shortest range is 50km, the minimum cruising speed is 60 kilometers per hour, and the shortest flight time is 45 minutes. The coordinates of the starting point and the target point are (1km, 1km, 15m) and (50km, 50km, 15m), respectively;

[0073] (1) Construct a multi-granularity static threat model z, z1, which is mathematically described as follows:

[0074] [x, y]=meshgrid(1:50) (1)

[0075] z=100*exp(-(x-40).^2 / 3^2-(y-10).^2 / 4^2)+150*exp(-(x-5).^2 / 3^2-(y-10).^2 / 4^2)+180*exp(-(x-15).^2 / 3^2-(y-19).^2 / 4^2)+120*exp(-(x-35).^2 / 3^2-(y-45).^2 / 4^2)+160*exp(-(x-15).^2 / 3^2-(y-45).^2 / 4^2) (2)

[0076] [x1, y1]=meshgrid(1:5:50) (3)

[0077] z1=100*exp(-(x1-40).^2 / 3^2-(y1-10).^2 / 4^2)+150*exp(-(x1-5).^2 / 3^2-(y1-10).^2 / 4^2)+180*exp(-(x1-15).^ 2 / 3^2-(y1-19).^2 / 4^2)+120*exp(-(x1-35).^2 / 3^2-(y1-45).^2 / 4^2)+160*exp(-(x1-15).^2 / 3^2-(y1-45).^2 / 4^2) (4)

[0078] In the above formula, [] is a matrix symbol, the symbol “:” represents an operator for generating equal-step vectors, n, meshgrid, x, and y represent the range of the airspace, the function for generating the horizontal and vertical coordinate matrices from the vector 1:n, and the low-granularity horizontal and vertical coordinate matrices generated therefrom, respectively; exp represents a function for calculating exponents, “^” and “.^” represent the point power of the constant power and the corresponding element power of the matrix, respectively; x1 and y1 represent the generated low-granularity horizontal and vertical coordinate matrices, respectively; z and z1 represent a low-granularity static threat model and a high-granularity static threat model, respectively;

[0079] (2) Calculate the two-dimensional flyable probability matrix caljz41 with high safety in high granularity mode:

[0080] First, use formulas (5) to (8) to obtain the binary image BW of the high-granularity static threat plane graph and the initial de-threatized image BW1:

[0081] im=i.magesc(z1) (5)

[0082] BW=im2bw(im.CData) (6)

[0083] BW2 = bwareaopen(BW, 3) (7)

[0084] BW1=double(~BW2) (8)

[0085] In formulas (5) to (8), imagesc and im are functions that convert the element values ​​in the high-granularity matrix z1 into different colors according to their numerical values ​​and color the corresponding positions on the coordinate axis with these colors, and the images generated by them; im.CData, im2bw, and BW are the data matrix of image im, the function that converts the high-granularity static threat plane graph into a binary graph, and the images generated by them; bwareaopen and BW2 are functions that delete objects with an area less than 3 in the binary image BW, and the images processed by them; double, "~", and BW1 are functions that convert logical values ​​into numerical values, functions that take the opposite sign, and images converted into numerical values, respectively;

[0086] Then, using formulas (9) to (12), the flyable areas ultimateErosion, ultimateErosion1, ultimateErosion2, and ultimateErosion3 after optimizing the safety performance of different options are obtained:

[0087] ultimateErosion=bwulterode(BW1,′quasi-euclidean′,4) (9)

[0088] ultimateErosion1=bwulterode(BW1,'chessboard',4) (10)

[0089] ultimateErosion2=bwulterode(BW1,'cityblock',4) ​​(11)

[0090] ultimateErosion3=bwulterode(BW1,'euclidean',4) (12)

[0091] Finally, formula (13) is used to calculate the two-dimensional flyable probability matrix caljz41 for the optimal flyable area:

[0092] gljz41=ultimateErosion|ultimateErosion1|ultimateErosion2|ultimateErosion3 (13)

[0093] In formulas (9) to (12), bwulterode, quasi-euclidean, chessboard, cityblock, and euclidean respectively represent the ultimate erosion function based on the distance maximum transformation for generating the optimal flyable area and its different distance options: quasi-Euclidean distance, chessboard distance, taxi distance, and Euclidean distance. “4” indicates that four neighborhoods are selected to calculate the distance. In formula (13), “|” and caljz41 respectively represent the relational operator “or” and the two-dimensional flyable probability matrix.

[0094] (3) Generate probabilistic flight areas and construct a flight route set:

[0095] First, use formula (14) to extract the vertical and horizontal coordinates row1 and col1 of the safe flight track point:

[0096] [row1, col1, v1] = find (gljz41) (14)

[0097] In formula (14), find, row1, col1, and xv1s are the search function, the horizontal and vertical coordinates of the flight safety area and their probability values, respectively;

[0098] Then, using formulas (15) to (16), we use the shortest route pool boundary to select the area after removing the terrain threat and generate a suitable flying area that meets the distance and safety constraints:

[0099] c4=row1+1i*col1 (15)

[0100] ca1=randperm(length(c4)) (16)

[0101] In formulas (15) to (16), c4 and i represent the complex field and imaginary identifier composed of the plane coordinates of the track points in the safety area, respectively; length, randperm, and ca1 represent the function of calculating the longest dimension of the matrix, the function of randomly disrupting a digital sequence, and the random sequence generated by it, respectively;

[0102] Use formulas (17) to (21) to construct a flight route set and calculate the three-dimensional coordinates xv, yv, zv of its optimal route:

[0103] card=floor(rand(1,3)*length(c4))+1 (17)

[0104] [d, nd1]=min(mydist(row1(nd)′, col1(nd)′, z1(row1(nd), col1(nd))′)), nd=ca1(card) (18)

[0105] xv=[1,row1(nd1)′,10] (19)

[0106] yv=[1,col1(nd1)′,10] (20)

[0107] zv=z1(xv,yv) (21)

[0108] In formulas (17) to (21), rand, floor, and card represent the function of generating a random matrix, the function of rounding down, and the random matrix generated by it, respectively; nd, nd1, mydist, min, and d represent the randomly generated route components and the optimal track point sequence number, the function of calculating the flight distance, the function of calculating the minimum value, and the shortest flight distance, respectively; xv, yv, and zv represent the three-dimensional coordinates of the optimal route, respectively; ng represents the horizontal and vertical coordinates of the high-granularity flight distance, and "'" represents the transposed symbol;

[0109] (4) Perform dynamic route planning and calculate the optimal flight route fp:

[0110] First, use formulas (22) to (29) to optimize the optimal flight route:

[0111] cxy=xv+1i*yv (22)

[0112] cxy0=mean(xv)+1i*mean(yv) (23)

[0113] cxyj=cxy-cxy0 (24)

[0114] fj=angle(cxyj) (25)

[0115] [fjn,fji]=find(fj<0) (26)

[0116] xvc=xv(fji); yvc=yv(fji); zvc=zv(fji) (27)

[0117] [dczn,dczx]=sort(dcz(fjn)) (28)

[0118] xvl=xvc(dczx); yvl=yvc(dczx); zvl=zvc(dczx) (29)

[0119] In formulas (22) to (29), cxy, cxy0, mean are respectively the complex field of the optimal route plane coordinates and their average values, and the function for finding the average value; cxyj, angle, fj are respectively the difference between the complex fields cxy and cxy0, the function for calculating the argument, and the calculated argument; fjn, fji are respectively the angles found to have an argument less than 0 and their serial numbers; xvc, yvc, zvc are respectively the three-dimensional coordinates of the track points with an argument less than 0; sort, dczn, dczx are respectively the sorting functions and their sorted ranges and serial numbers; xvl, yvl, zvl are respectively the three-dimensional coordinates of the track points after sorting;

[0120] Secondly, formulas (30) to (35) are used to generate the complex field fs2d of the optimal route and the complex field fsth of the plane coordinates of the boundary of the sudden threat impact range:

[0121] xty1=xty=[1 5*xvl 50]; yty1=yty=[1 5*yvl 50]; zty1=zty=z(xty,yty)+15 (30)

[0122] fs2d=xty(i)+1j*yty(i) (31)

[0123] xth=20+0.5*sin(0:2*pi / 20:2*pi) (32)

[0124] yth=30+0.5*cos(0:2*pi / 20:2*pi) (33)

[0125] zth=15+0.5*tan(0:2*pi / 20:2*pi) (34)

[0126] fsth=xth+1j*yth (35)

[0127] In formulas (30) to (35), xtv, ytv, and ztv represent the three-dimensional coordinates of low-granularity track points, xtv1, ytv1, and ztv1 represent the three-dimensional coordinates of track points affected by sudden threats, fs2d represents the complex field of the optimal route, j represents the sign of the imaginary number, th, xth, yth, and zth represent the plane coordinates of the position of the sudden threat and the three-dimensional coordinates of the boundary of the sudden threat impact range, pi represents pi, sin, cos, and tan represent the sine, cosine, and tangent functions, respectively;

[0128] Formulas (36) to (37) are used again to generate dynamically updated three-dimensional coordinates of the flight route:

[0129] sg_ag_fsth_2d=sign(angle(fsth-fs2d)) (36)

[0130]

[0131] In formula (24), ag_fsth_2d, sg_ag_ffsth_2d, sign are the sudden threat and the route angle difference and their signs, and the function for finding the sign, respectively; xtyy1, yty1, zty1 respectively represent the updated plane coordinates affected by the sudden threat and their corresponding elevation values; max, vth, vthi respectively represent the maximum value calculation function and its calculated ag_fsth_2d maximum value and sequence number;

[0132] Finally, the dynamically updated flight route altitude is generated using formulas (38) to (42):

[0133] fs2dg=xty(i)+1j*zty(i) (38)

[0134] fsthg=xth+1j*zth (39)

[0135] sg_ag_fsth_2dg=sign(angle(fsthg-fs2dg)) (40)

[0136] [vthg, vthgi]=max(ag_fsth_2dg) (41)

[0137] zty1(i+1)=vthg+15,max(sg_dg_fsth_2dg)*min(sg_ag_fsth_2dg)<0 (42)

[0138] In formula (24), fsth2dg, fsthg, sg_ag_fsth_2dg, sign are the signs of the complex set of track point elevation, the complex number of sudden threat elevation, and the difference between the sudden threat and track point elevation, respectively; vthg and vthgi represent the maximum value and sequence number of the calculated ag_fsth_2dg, respectively;

[0139] (5) The cubic B-Spline method is used to improve the optimal flight route and optimize the flyability of the route.

[0140] The experimental results are as follows: the planned range is 43.82 kilometers, and the planning time is 0.45 seconds. The route planned by this method can meet the requirements of online planning (5 seconds). When flying at the minimum cruising speed, the flight time is 43.8 minutes, which meets the requirement of 45 minutes of flight time. The range is also less than the limit of 50 kilometers. At the same time, the route chooses a safe area with lower terrain for flight, which can realize online flight route planning and provide safety protection for emergency accident monitoring.

Claims

1. A multi-granularity conversion unmanned helicopter route planning method, which adopts The following steps are implemented: (1) Construct a multi-granularity static threat model z, z1, which is mathematically described as follows: [x, y] = meshgrid(1:n) (1) z=100* exp(-(x-40).^2 / 3^2-(y-10).^2 / 4^2)+150* exp(-(x-5).^2 / 3^2-(y-10).^2 / 4^2)+180*exp(-(x-15).^2 / 3^2-(y-19).^2 / 4^2)+12 0*exp(-(x-35).^2 / 3^2-(y-45).^2 / 4^2)+160*exp(-(x-15).^2 / 3^2-(y-45).^2 / 4^2) (2) [x1, y1]=meshgrid(1:5:n) (3) z1=100*exp(-(x1-40).^2 / 3^2-(y1-10).^2 / 4^2)+150*exp(-(x1-5).^2 / 3^2-(y1-10).^2 / 4^2)+180*exp(-(x1-15).^ 2 / 3^2-(y1-19).^2 / 4^2)+120*exp(-(x1-35).^2 / 3^2-(y1-45).^2 / 4^2)+160*exp(-(x1-15).^2 / 3^2-(y1-45).^2 / 4^2) (4) In the above formula, [] is a matrix symbol, the symbol ":" represents an operator for generating equal-step vectors, n, meshgrid, x, and y represent the range of the airspace, the function for generating the horizontal and vertical coordinate matrices from the vector 1:n, and the low-granularity horizontal and vertical coordinate matrices generated therefrom, respectively; exp represents a function for calculating exponents, "^" and ".^" represent the point power of the constant power and the corresponding element power of the matrix, respectively, x1 and y1 represent the generated low-granularity horizontal and vertical coordinate matrices, respectively, and z and z1 represent the low-granularity static threat model and the high-granularity static threat model, respectively; (2) Calculate the two-dimensional flyable probability matrix caljz41 with high safety in high granularity mode: First, use formulas (5) to (8) to obtain the binary image BW of the high-granularity static threat plane graph and the initial de-threatized image BW1: im=imagesc(z1) (5) BW=im2bw(im.CData) (6) BW2 = bwareaopen(BW, 3) (7) BW1=double(~BW2) (8) In formulas (5) to (8), imagesc and im are functions that convert the element values ​​in the high-granularity matrix z1 into different colors according to their numerical values ​​and color the corresponding positions on the coordinate axis with these colors, and the images generated by them; im.CData, im2bw, and BW are the data matrix of image im, the function that converts the high-granularity static threat plane graph into a binary graph, and the images generated by them; bwareaopen and BW2 are functions that delete objects with an area less than 3 in the binary image BW, and the images processed by them; double, "~", and BW1 are functions that convert logical values ​​into numerical values, functions that take the opposite sign, and images converted into numerical values, respectively; Then, using formulas (9) to (12), the flyable areas ultimateErosion, ultimateErosion1, ultimateErosion2, and ultimateErosion3 after optimizing the safety performance of different options are obtained: ultimateErosion=bwulterode(BW1,'quasi-euclidean',4) (9) ultimateErosion1=bwulterode(BW1,'chessboard',4) (10) ultimateErosion2=bwulterode(BW1,'cityblock',4) ​​(11) ultimateErosion3=bwulterode(BW1,'euclidean',4) (12) Finally, formula (13) is used to calculate the two-dimensional flyable probability matrix caljz41 for the optimal flyable area: gljz41=ultimateErosion|ultimateErosion1|ultimateErosion2|ultimateErosion3 (13) In formulas (9) to (12), bwulterode, quasi-euclidean, chessboard, cityblock, and euclidean respectively represent the ultimate erosion function based on the distance maximum transformation for generating the optimal flyable area and its different distance options: quasi-Euclidean distance, chessboard distance, taxi distance, and Euclidean distance. "4" indicates that the four-neighborhood distance is selected for distance calculation. In formula (13), "|" and caljz41 respectively represent the relational operator "or" and the two-dimensional flyable probability matrix. (3) Generate probabilistic flight areas and construct a flight route set: First, use formula (14) to extract the vertical and horizontal coordinates row1 and col1 of the safe flight track point: [row1, col1, v1] = find (gljz41) (14) In formula (14), find, row1, col1, and xv1s are the search function, the horizontal and vertical coordinates of the flight safety area and their probability values, respectively; Then, using formulas (15) to (16), we use the shortest route pool boundary to select the area after removing the terrain threat and generate a suitable flying area that meets the distance and safety constraints: c4=row1+1i*col1 (15) ca1=randperm(length(c4)) (16) In formulas (15) to (16), c4 and i represent the complex field and imaginary identifier composed of the plane coordinates of the track points in the safety area, respectively; length, randperm, and cal represent the function of calculating the longest dimension of the matrix, the function of randomly disrupting a digital sequence, and the random sequence generated by it, respectively; Use formulas (17) to (21) to construct a flight route set and calculate the three-dimensional coordinates xv, yv, zv of its optimal route: card=floor(rand(1,3)*length(c4))+1 (17) [d, nd1]=min(mydist(row1(nd)′, col1(nd)′, z1(row1(nd), col1(nd))′)), nd=ca1(card) (18) xv=[1,row1(nd1)′,ng] (19) yv=[1,col1(nd1)′,ng] (20) zv=z1(xv,yv) (21) In formulas (17) to (21), rand, floor, and card represent the function of generating a random matrix, the function of rounding down, and the random matrix generated by it, respectively; nd, nd1, mydist, min, and d represent the randomly generated route and the optimal track point number, the function of calculating the flight distance, the function of calculating the minimum value, and the shortest flight distance, respectively; xv, yv, and zv represent the three-dimensional coordinates of the optimal route, respectively; ng represents the horizontal and vertical coordinates of the high-granularity flight distance; and "'" represents the transposed symbol; (4) Perform dynamic route planning and calculate the optimal flight route fp: First, use formulas (22) to (29) to optimize the optimal flight route: cxy=xv+1i*yv (22) cxy0=mean(xv)+1i*mean(yv) (23) cxyj=cxy-cxy0 (24) fj=angle(cxyj) (25) [fjn,fji]=find(fj<0) (26) xvc=xv(fji); yvc=yv(fji); zvc=zv(fji) (27) [dczn,dczx]=sort(dcz(fjn)) (28) xvl=xvc(dczx); yvl=yvc(dczx); zvl=zvc(dczx) (29) In formulas (22) to (29), cxy, cxy0, mean are respectively the complex field of the optimal route plane coordinates and their average values, and the function for finding the average value; cxyj, angle, fj are respectively the difference between the complex fields cxy and cxy0, the function for calculating the argument, and the calculated argument; fjn, fji are respectively the angles found to have an argument less than 0 and their serial numbers; xvc, yvc, zvc are respectively the three-dimensional coordinates of the track points with an argument less than 0; sort, dczn, dczx are respectively the sorting functions and their sorted ranges and serial numbers; xvl, yvl, zvl are respectively the three-dimensional coordinates of the track points after sorting; Secondly, formulas (30) to (35) are used to generate the complex field fs2d of the optimal route and the complex field fsth of the plane coordinates of the boundary of the sudden threat impact range: xty1=xty=[15*xvl n]; yty1=yty=[15*yvl n]; zty1=zty=z(xty,yty)+hs(30) fs2d=xty(i)+1j*yty(i) (31) xth=th(1)+0.5*sin(0:2*pi / 20:2*pi) (32) yth=th(2)+0.5*cos(0:2*pi / 20:2*pi) (33) zth=z0+0.5*tan(0:2*pi / 20:2*pi) (34) fsth=xth+1j*yth (35) In formulas (30) to (35), xtv, ytv, and ztv represent the three-dimensional coordinates of low-granularity track points, xtv1, ytv1, and ztv1 represent the three-dimensional coordinates of track points affected by sudden threats, fs2d represents the complex field of the optimal route, j represents the sign of the imaginary number, th, xth, yth, and zth represent the plane coordinates of the position of the sudden threat and the three-dimensional coordinates of the boundary of the sudden threat impact range, pi represents pi, sin, cos, and tan represent the sine, cosine, and tangent functions, respectively; Formulas (36) to (37) are used again to generate dynamically updated three-dimensional coordinates of the flight route: sg_ag_fsth_2d=sign(angle(fsth-fs2d)) (36) In formula (24), ag_fsth_2d, sg_ag_fsth_2d, sign are the sudden threat and the route angle difference and their signs, and the function for finding the sign, respectively; xtyy1, yty1, zty1 respectively represent the updated plane coordinates affected by the sudden threat and their corresponding elevation values; max, vth, vthi respectively represent the maximum value calculation function and its calculated ag_fsth_2d maximum value and sequence number; Finally, the dynamically updated flight route altitude is generated using formulas (38) to (42): fs2dg=xty(i)+1j*zty(i) (38) fsthg=xth+1j*zth (39) sg_ag_fsth_2dg=sign(angle(fsthg-fs2dg)) (40) [vthg, vthgi]=max(ag_fsth_2dg) (41) zty1(i+1)=vthg+hs,max(sg_ag_fsth_2dg)*min(sg_ag_fsth_2dg)<0 (42) In formula (24), fsth2dg, fsthg, sg_ag_fsth_2dg, sign are the signs of the complex set of track point elevation, the complex number of sudden threat elevation, and the difference between the sudden threat and track point elevation, respectively; vthg and vthgi represent the maximum value and sequence number of the calculated ag_fsth_2dg, respectively; (5) The cubic B-Spline method is used to improve the optimal flight route and optimize the flyability of the route.