Unmanned aerial vehicle obstacle avoidance planning method and device and medium

By obtaining information on high obstacles such as multiple layers and optimization of ant colony algorithm, the cumbersome problems of UAV obstacle avoidance path planning are solved, safe and efficient route planning in complex environments are achieved, and route optimization and safety are improved. .

CN118897559APending Publication Date: 2024-11-05CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410916917.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The existing drone obstacle avoidance path planning methods are too cumbersome and lack effective constraint optimization, making it difficult to achieve safe and efficient route planning in complex flight environments.

Method used

By obtaining the distribution information of multi-layer high obstacles, we determine the contour strait set of the drone's flight area, and use the ant colony algorithm to plan the optimal route under constraints, and optimize the route selection with the flight cost formula to realize the drone's from Optimal route planning from the start point to the end point.

Benefits of technology

It effectively simplifies the planning process of drone obstacle avoidance paths, improves the optimization and safety of routes, can find the shortest path in complex environments, and reduces artificial errors and calculation complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897559A_ABST
    Figure CN118897559A_ABST
Patent Text Reader

Abstract

The invention provides an unmanned aerial vehicle obstacle avoidance planning method and device and a medium, and relates to the technical field of unmanned aerial vehicle control, and the method comprises the steps: obtaining the distribution information of a plurality of layers of equal-height obstacles in a flight region of an unmanned aerial vehicle according to a plurality of contour lines; acquiring a plurality of layers of equal-height straits of the flight area of the unmanned aerial vehicle according to the distribution information of the plurality of layers of equal-height obstacles, wherein the straits refer to a flight area where the unmanned aerial vehicle bypasses the obstacles; and planning the optimal route of the unmanned aerial vehicle flying from the starting point to the ending point according to the plurality of layers of equal-height straits. According to the method, the obstacle distribution information of the multi-layer height is obtained by setting the contour line, then the flight area of the multi-layer height unmanned aerial vehicle is obtained, finally the optimal route of the unmanned aerial vehicle is planned through the flight area of the multi-layer height, and the optimal planning route of the flight of the unmanned aerial vehicle can be found through layered screening of the straits of the flight of the unmanned aerial vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure at least relates to the field of drone control technology, and in particular to a drone obstacle avoidance planning method, a drone obstacle avoidance planning device, and a computer-readable storage medium. Background Art

[0002] With the continuous development of drone technology, drones have been widely used in military, civilian and other fields. As the application scope of drones expands, the flight environment they face is becoming increasingly complex, which brings challenges to the safe flight of drones. During the flight, drones need to avoid various obstacles, such as mountains, buildings, etc., to prevent collisions and crashes. Therefore, the obstacle avoidance function of drones is particularly important.

[0003] Obstacle avoidance path planning, flight control and obstacle avoidance decision-making are one of the important means to achieve UAV obstacle avoidance. However, most of the existing obstacle avoidance technologies achieve obstacle avoidance path planning through overly cumbersome methods. Summary of the invention

[0004] The technical problem to be solved by the present disclosure is to provide a UAV obstacle avoidance planning method, a UAV obstacle avoidance planning device and a computer-readable storage medium in view of the above-mentioned shortcomings, so as to solve the problem of how to realize the obstacle avoidance path planning of UAV flight.

[0005] In a first aspect, the present disclosure provides a method for obstacle avoidance planning of a drone, the method

[0006] include:

[0007] Obtain the distribution information of several layers of equal-height obstacles in the UAV flight area according to several contour lines;

[0008] According to the distribution information of several layers of equal-height obstacles, several layers of equal-height strait sets of the UAV flight area are obtained, and the strait refers to the flight area where the UAV can bypass obstacles;

[0009] The optimal route for the UAV to fly from the starting point to the end point is planned based on several layers of equal-height channels.

[0010] Furthermore, the distribution information of several layers of obstacles at equal heights in the flight area of ​​the UAV is obtained according to several contour lines, including:

[0011] Get the starting and ending points of the drone flight mission;

[0012] Get the drone flight area that extends to both sides with a specified width along the straight line connecting the starting point and the end point;

[0013] Obtain the location and height of each obstacle in the drone's flight area based on geographic information;

[0014] According to a number of contour lines, the positions of all obstacles whose heights are greater than the height of each contour line are obtained in sequence.

[0015] Further, wherein:

[0016] Objects located in the same height range and with a distance less than r+d+e are considered to be the same obstacle;

[0017] The maximum height of several contour lines is Hd, and the interval is d;

[0018] Among them, r is the minimum turning radius of the drone, d is the minimum safe distance of the drone, e is the safety margin, and H is the maximum flight altitude of the drone.

[0019] Furthermore, several layers of contour channel sets in the UAV flight area are obtained according to the distribution information of several layers of contour obstacles, including:

[0020] According to the distribution information of several layers of equal-height obstacles, the number of the first equal-height obstacles of the highest layer through which the straight line connecting the starting point and the end point passes is obtained;

[0021] According to the number of first-level obstacles, the flight area of ​​the drone is divided into corresponding number of tracks;

[0022] The central straits on both sides of each second obstacle of equal height on each layer and each section of each track through which the straight line connecting the starting point and the ending point passes are obtained to form a set of central straits of equal height on this layer and this section.

[0023] Furthermore, the optimal route for the drone to fly from the starting point to the end point is planned according to several layers of equal-height strait sets, specifically including:

[0024] Obtain the constraints and flight cost formula of the UAV flight;

[0025] A central channel is selected in each section of each layer to obtain the candidate routes for the drone to fly from the starting point to the end point;

[0026] According to the flight cost formula, the flight cost of the UAV flying over the selected route under the constraints is obtained;

[0027] After traversing and selecting each central strait, the candidate route with the lowest flight cost is obtained as the optimal route.

[0028] Furthermore, the optimal route for the drone to fly from the starting point to the end point is planned according to several layers of equal-height strait sets, specifically including:

[0029] Obtain the constraints and flight cost formula of the UAV flight;

[0030] Based on the set of all equal-height center channels under constraints and flight cost formula, the ant colony algorithm is used to plan the optimal route for the UAV from the starting point to the end point.

[0031] Furthermore, the constraints of the UAV flight are obtained, including:

[0032] Get the minimum turning radius constraint for drone flight:

[0033]

[0034] In the formula, a i =(x(i)-x(i-1),y(i)-y(i-1)),a i+1 =(x(i+1)-x(i),y(i+1)-y(i)), (x(i-1),y(i-1)) is the latitude and longitude of the starting point of the UAV's turn, (x(i),y(i)) is the latitude and longitude of the midpoint of the UAV's turn, (x(i+1),y(i+1)) is the latitude and longitude of the end point of the UAV's turn, and r is the minimum turning radius of the UAV;

[0035] Get the maximum climb / dive angle constraint of the drone flight:

[0036]

[0037] Where, (x(j-1), y(j-1)) is the starting latitude and longitude of the UAV climb / dive, z(j-1) is the starting height of the UAV climb / dive, (x(j), y(j)) is the ending latitude and longitude of the UAV climb / dive, z(j) is the ending height of the UAV climb / dive, and β is the limiting angle of the UAV climb / dive;

[0038] Get the collision constraints for drone flight:

[0039]

[0040] Where (x(k), y(k)) is the real-time latitude and longitude of the drone, (x(k) ′ ,y(k) ′ ) is the latitude and longitude of the obstacle edge close to the UAV in real time, and d is the minimum safety distance of the UAV.

[0041] Furthermore, the flight cost formula of the UAV flight is obtained, which specifically includes:

[0042] Get the flight cost formula for the following drone flight:

[0043]

[0044] Where t∈[1,N], N is the number of track segments, b and c are preset parameters, lt is the path length cost of the UAV flight, f t The climb and dive costs for drone flight.

[0045] In a second aspect, the present disclosure provides a drone obstacle avoidance planning device, the device comprising:

[0046] The height-contour layering module is used to obtain the distribution information of several layers of height-contour obstacles in the UAV flight area according to several height-contour lines;

[0047] The channel acquisition module is connected to the height-contact layering module and is used to obtain a set of several layers of height-contact channel sets in the UAV flight area according to the distribution information of several layers of height-contact obstacles. The channel refers to the flyable area where the UAV can bypass obstacles.

[0048] The route planning module is connected with the channel acquisition module and is used to plan the optimal route for the UAV to fly from the starting point to the end point according to a set of channels with equal heights.

[0049] In a third aspect, the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the drone obstacle avoidance planning method as described above is implemented.

[0050] The present invention provides a UAV obstacle avoidance planning method, a UAV obstacle avoidance planning device and a computer-readable storage medium. The method obtains obstacle distribution information at multiple levels of altitude by setting contour lines, and then obtains UAV flyable areas at multiple levels of altitude. Finally, the optimal route of the UAV is planned through the flyable areas at multiple levels of altitude. By screening the "channel" for UAV flight in layers, it is helpful to find the optimal planned route for UAV flight. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a flow chart of a method for obstacle avoidance planning of a drone according to an embodiment of the present disclosure;

[0052] Figure 2 is an example diagram of one layer of equal-height obstacle distribution information according to an embodiment of the present disclosure;

[0053] Figure 3 is a flow chart of a method for finding an optimal path based on a traversal method according to an embodiment of the present disclosure;

[0054] Figure 4 is a flow chart of a method for finding an optimal path based on an ant colony algorithm according to an embodiment of the present disclosure;

[0055] Figure 5 It is a structural schematic diagram of a drone obstacle avoidance planning device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0056] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0057] It should be understood that the specific embodiments and drawings described herein are only used to explain the present disclosure rather than to limit the present disclosure.

[0058] It can be understood that, in the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments can be combined with each other.

[0059] It can be understood that, for the convenience of description, the drawings of the present disclosure only show parts related to the present disclosure, while parts irrelevant to the present disclosure are not shown in the drawings.

[0060] It can be understood that each unit and module involved in the embodiments of the present disclosure may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0061] It will be understood that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present disclosure may occur in an order different from that marked in the drawings.

[0062] It is understood that the flowcharts and block diagrams of the present disclosure illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present disclosure. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.

[0063] It can be understood that the units and modules involved in the embodiments of the present disclosure can be implemented by software or hardware, for example, the units and modules can be located in a processor.

[0064] In order to better understand the present disclosure, the main inventive concept of the present disclosure is first introduced.

[0065] The development of drone obstacle avoidance technology has gone through several stages, from the initial simple perception of obstacles and avoidance, to the current ability to use a variety of sensors and algorithms for accurate environmental perception, obstacle detection and tracking, obstacle distance estimation, obstacle avoidance path planning, and flight control and obstacle avoidance decision-making.

[0066] With the continuous advancement of technology, the obstacle avoidance capabilities of drones are also constantly improving. Among the obstacle avoidance sensing technologies of drones, the most common are infrared sensors, ultrasonic sensors, laser sensors and visual sensors.

[0067] At the algorithm level, the algorithms available for reference include: for example, based on the binocular vision algorithm, a method for avoiding obstacles when using drones for line detection is proposed; there is also a carrier-based aircraft deck path planning method based on the ant colony algorithm, which integrates the path bounding box collision detection method into the ant colony algorithm, and uses the detection results to update the pheromone in the ant colony algorithm to achieve carrier-based aircraft path obstacle avoidance; from various methods, we can have a deeper understanding of drone intelligent obstacle avoidance technology and better adapt to various complex environments.

[0068] In general, with the wide application of drones and the increase in safety requirements, the development goal is to realize the intelligent and autonomous flight of drones to better serve various fields.

[0069] In the existing obstacle avoidance technology, most of them use overly cumbersome methods to achieve drone obstacle avoidance path planning, with fewer constraints or the proposed methods are not well optimized. In solving the problem of drone obstacle avoidance, the present disclosure draws on the advantages of some existing technologies, also considers more constraints, improves its shortcomings, and makes it more in line with practical problems.

[0070] The present invention puts the obstacle avoidance of drones in a more vivid way, just like a ship passing through a strait to reach its destination. Just like in the route planning of world navigation, straits connecting important sea areas such as the Strait of Malacca, the Strait of Gibraltar, the Panama Canal and the Taiwan Strait of China are the waypoints that must be considered in route planning, also known as "core straits". The present invention designs a new obstacle avoidance algorithm for drones, uses the strait algorithm to study the "strait", realizes obstacle avoidance of drones, and plans the optimal route at the same time.

[0071] The method provided by the present disclosure first determines the location of the obstacle channel, then avoids the location of the obstacle through the channel, and finally forms the optimal route. The channel algorithm is applied to the obstacle avoidance algorithm in the city, and the optimal planning route can be found.

[0072] It should be noted that the obstacles mentioned in the present disclosure mainly refer to large obstacles such as mountains and buildings. Avoidance of small obstacles such as high-voltage lines can be achieved through sensors.

[0073] Embodiment 1:

[0074] like Figure 1 As shown, the present disclosure provides a method for obstacle avoidance planning of a UAV, the method comprising:

[0075] S1. Obtain the distribution information of several layers of equal-height obstacles in the UAV flight area according to several contour lines;

[0076] S2, obtaining a set of several layers of equal-height straits in the flight area of ​​the UAV according to the distribution information of several layers of equal-height obstacles, where the strait refers to the flight area where the UAV can bypass obstacles;

[0077] S3. Plan the optimal route for the UAV from the starting point to the end point based on several layers of equal-height channels.

[0078] In this embodiment, the obstacle distribution information at multiple altitudes is obtained by setting contour lines, and then the UAV flyable areas at multiple altitudes are obtained. Finally, the optimal route for the UAV is planned through the flyable areas at multiple altitudes. By layered screening of the "straits" for UAV flight, it is helpful to find the optimal planned route for UAV flight.

[0079] More specifically, the optimal route refers to the route with the lowest flight cost. The flight cost is obtained by combining the flight path cost and the climb and dive cost. Through the equal-height strait sets of each layer, we can first obtain the first strait combination with the shortest path through each layer, and then combine the first straits of adjacent layers in turn to obtain the second strait combination, and then compare the flight costs of each first strait combination and each second strait combination, and finally obtain a group of strait combinations with the lowest flight cost. This process can be achieved by traversing each strait or by an intelligent optimization algorithm.

[0080] In order to intuitively demonstrate the selection method of the strait, Figure 2 As shown, an area full of obstacles is simulated. Taking the 280-meter contour line as the benchmark, some areas above 280 meters are displayed, among which the white part outside the black is the flyable area, and the rest are obstacles.

[0081] In one embodiment, S1, obtaining the distribution information of several layers of equal-height obstacles in the flight area of ​​the drone according to several contour lines, specifically includes:

[0082] Get the starting and ending points of the drone flight mission;

[0083] Get the drone flight area that extends to both sides with a specified width along the straight line connecting the starting point and the end point;

[0084] Obtain the location and height of each obstacle in the drone's flight area based on geographic information;

[0085] According to a number of contour lines, the positions of all obstacles whose heights are greater than the height of each contour line are obtained in sequence.

[0086] In this embodiment, in order to avoid obstacles well, the "Strait" algorithm refers to how to find a better motion path from a given starting point to an end point in a working environment with obstacles, so that the path taken is the shortest, such as Figure 3The figure shows a method for achieving optimal path planning by traversing various channels, such as Figure 4 The figure shows a method of using ant colony algorithm to achieve optimal path planning.

[0087] Figure 3 The obstacle avoidance algorithm for drones shown in the figure has the following steps: marking the coordinates of obstacles and finding the locations of all obstacles; calculating the starting point and end point data to determine whether there are obstacles; finding the location of the strait; and finding the optimal path.

[0088] Figure 4 The drone obstacle avoidance algorithm shown has the following steps: confirm the location of the obstacle and find the "strait"; establish a target optimization model; add constraints; solve the ant colony algorithm optimization model; and apply the model to the drone obstacle avoidance algorithm in cities with high-rise buildings.

[0089] Both algorithms need to find obstacles and channels first. This embodiment is mainly to avoid obstacles such as mountains and buildings. Obstacle information can be obtained through geographic information, that is, the three-dimensional coordinates of the obstacle are obtained, and the position (including edges) and height of the obstacle are obtained through the three-dimensional coordinates. The position of the channel is found to avoid the corresponding obstacle position.

[0090] In one embodiment, wherein:

[0091] Objects located in the same height range and with a distance less than r+d+e are considered to be the same obstacle;

[0092] The maximum height of several contour lines is Hd, and the interval is d;

[0093] Among them, r is the minimum turning radius of the drone, d is the minimum safe distance of the drone, e is the safety margin, and H is the maximum flight altitude of the drone.

[0094] In this embodiment, in order to demonstrate common obstacle avoidance scenarios, necessary assumptions are made on relevant parameters.

[0095] Assume that the drone's constant flight altitude is 300 meters. In the process of flying to the target, it needs to bypass a series of obstacles that are higher than the safe distance. The safe flight distance between the drone and other obstacles (including the ground) is not less than 20 meters. Therefore, the safe altitude is 300-20=280 meters. That is, the drone can only fly in areas with an altitude of 20 to 300 meters. The height of the obstacles that can be flown is lower than 280 meters. Therefore, the contour lines can be divided into 20-meter height intervals.

[0096] Assuming that the turning radius of an aircraft flying at high speed is 100 meters, an area is marked as a "safety grid" with the aircraft as the center and a radius of 120 meters. If an obstacle appears at the edge of the area, the aircraft can complete the turn relatively easily to avoid the obstacle, and even be able to complete a 180° turn. Considering the safety margin, objects with a distance of less than 150 meters are all considered the same obstacle.

[0097] It should be noted that adjusting relevant assumptions does not affect the scientific nature of the patent steps and algorithms, that is, the above data are exemplary data.

[0098] In one embodiment, obtaining a plurality of layers of equal-height strait sets in the flight area of ​​the drone according to the plurality of layers of equal-height obstacle distribution information specifically includes:

[0099] According to the distribution information of several layers of equal-height obstacles, the number of the first equal-height obstacles of the highest layer through which the straight line connecting the starting point and the end point passes is obtained;

[0100] According to the number of first-level obstacles, the flight area of ​​the drone is divided into corresponding number of tracks;

[0101] The central straits on both sides of each second obstacle of equal height on each layer and each section of each track through which the straight line connecting the starting point and the ending point passes are obtained to form a set of central straits of equal height on this layer and this section.

[0102] In this embodiment, in order to shorten the time spent on the road, the drone needs to fly in a straight line as much as possible during the mission, and faces the problem of avoiding obstacles. The drone needs to pass through valleys and mountains, just like a ship needs to pass through a strait to reach its destination. A strait refers to a safe channel that can pass through obstacles and is a location that must be passed for optimal navigation.

[0103] Assume that there are N obstacles on the path from the starting point to the end point. In order to avoid the obstacles well, the "Strait" algorithm is used to find a better path from the starting point to the end point to make the path shortest. Calculate the distance between each obstacle and all the obstacles around it. If the gap between obstacles is greater than 150 meters, it can be called a strait. For each obstacle, find all the straits adjacent to it and greater than 150 meters away. Sort these straits by distance, and select the strait with the shortest distance as the nearest strait. Then select the strait with the second shortest distance as the second closest strait (select from the center to both sides to ensure that it is different from the nearest strait). If an obstacle does not have two such straits, only the nearest strait is considered. The strait position set of each obstacle is obtained, so the strait set is expressed as:

[0104] u={(x(1),y(1)),(x(2),y(2)),(x(3),y(3))...(x(t),y(t))}t∈{1,2,3...T}.

[0105] In one embodiment, planning the optimal route for a drone to fly from a starting point to an end point based on a plurality of equal-height strait sets specifically includes:

[0106] Obtain the constraints and flight cost formula of the UAV flight;

[0107] A central channel is selected in each section of each layer to obtain the candidate routes for the drone to fly from the starting point to the end point;

[0108] According to the flight cost formula, the flight cost of the UAV flying over the selected route under the constraints is obtained;

[0109] After traversing and selecting each central strait, the candidate route with the lowest flight cost is obtained as the optimal route.

[0110] In this embodiment, if Figure 3 The method shown can first calculate the starting point and end point data to determine whether there are obstacles. Assuming that the coordinates of the drone's end point are expressed as (x(t), y(t)), and the coordinates of the starting point are expressed as (x(t-1), y(t-1)), calculate the straight-line distance from the starting point to the end point, and check whether there are obstacles on this path. If there are no obstacles, the drone can fly directly to the end point in a straight line. The distance the drone flies is If there are obstacles, you need to find the optimal path.

[0111] Assume that the coordinates of the drone at time t are expressed as (x(t), y(t)), where the path cost function G between every two nodes from the starting point to the end point is expressed as:

[0112] t∈{1,2,3...T}.

[0113] First, initialize and create an OPEN table: create an OPEN table to store the straits to be explored, put the starting point into the OPEN table, and calculate the heuristic value (h value) from the starting point to the end point.

[0114] CLOSED table: Create a CLOSED table to store the explored straits.

[0115] G value: represents the actual cost from the starting point to the node. The G value of the starting point is 0, and the G values ​​of other nodes are initialized to infinity.

[0116] The specific steps of the A* (A-star) algorithm to find the optimal path are as follows:

[0117] 1. Select a node: Select the F value (F=G+H') from the OPEN table. The nearest channel n of the first obstacle. The F value represents the distance from the starting point through the channel n to the end point (distance + height).

[0118] 2. Check the target: If channel n is the last channel to reach the destination, the algorithm ends and the optimal path from the starting point to the destination is obtained.

[0119] 3. Expand node: Otherwise, mark channel n as explored (put into the CLOSED table) and expand all its adjacent channels. For each adjacent channel m:

[0120] If m is already in the CLOSED table, the str is skipped.

[0121] If m is not in the OPEN table or the new G value (the actual cost from the starting point to m) is less than the G value of m in the OPEN table, update the G value and F value of m and put m into the OPEN table (or reorder the OPEN table).

[0122] Repeat: Repeat steps 1-3 until the target node is found or the OPEN table is empty (indicating that there is no path to reach the target node).

[0123] In one embodiment, planning the optimal route for a drone to fly from a starting point to an end point based on a plurality of equal-height strait sets specifically includes:

[0124] Obtain the constraints and flight cost formula of the UAV flight;

[0125] Based on the set of all equal-height center channels under constraints and flight cost formula, the ant colony algorithm is used to plan the optimal route for the UAV from the starting point to the end point.

[0126] In this embodiment, the grid method is first used to divide the channel, and the center coordinates of the channel grid are used as path points that the ants may traverse. The path planning problem is to find a subset of ordered grids in the feasible grid set so that the sum of distances between adjacent grid center points is the shortest.

[0127] The contour map at a specific height is used as the basis for describing terrain obstacles. Mathematical morphology image processing technology is used to perform black and white binary processing. The black part is surrounded by closed contour lines, indicating obstacles, and the remaining white part indicates a safe area for drones to fly and draw a raster map. The purpose of binary processing is to highlight obstacles, make them clear at a glance, and obtain feasible routes to reach the inspection area, paving the way for subsequent inspection route planning.

[0128] Since the above optimization problem is relatively complex, after the above data and image processing, the ant colony algorithm is designed to optimize the flight path solution. The designed problem-solving steps are as follows:

[0129] (1) Initialization: The grid environment of the drone is represented by a matrix of 0 and 1, where 0 represents a passable grid and 1 represents an obstacle-occupied grid. The initial optional path node D{0,1,...,n-1}; set the number of ants m, information heuristic factor ɑ, expected heuristic factor β, pheromone volatility coefficient ρ; the number of iterations N c Taboo Table B k Initialize (the grid point currently passed by ant k) to ф, where k = 1, 2, ..., m. Select the grid numbers of the starting point S and the target point E, and place the ant colony at the starting point S.

[0130] (2) The probability of an ant individual transferring from grid i to adjacent grid j according to its state is:

[0131]

[0132] in, C=DB k

[0133] In the formula

[0134] d ij : The distance between grid i and grid j where the drone is located

[0135] η ij The degree of inspiration for the drone to transfer from i to j

[0136] τ ij The pheromone that the drone transfers from i to j, i.e., the trajectory strength

[0137] (3) Modify B k : Every time ant k rotates, it adds node j to taboo list B k

[0138] (4) Repeat steps (2) to (3) until all ants that have not exited the loop reach the end point. Calculate the path length of each ant that reaches the end point and save it.

[0139] (5) Update the information matrix τ ij for

[0140] τ ij (t+1)=ρτ ij (t)+Δτ ij (t,t+1)

[0141] in,

[0142]

[0143] (6) Select the optimal path in this cycle and save it, then output the optimal path. Otherwise, repeat (4) to (5).

[0144] Through the above algorithm, the optimal flight path for the UAV to the target area is obtained.

[0145] In one embodiment, obtaining the flight constraints of the drone specifically includes:

[0146] Get the minimum turning radius constraint for drone flight:

[0147]

[0148] In the formula, a i =(x(i)-x(i-1),y(i)-y(i-1)),a i+1 =(x(i+1)-x(i),y(i+1)-y(i)), (x(i-1),y(i-1)) is the latitude and longitude of the starting point of the UAV's turn, (x(i),y(i)) is the latitude and longitude of the midpoint of the UAV's turn, (x(i+1),y(i+1)) is the latitude and longitude of the end point of the UAV's turn, and r is the minimum turning radius of the UAV;

[0149] Get the maximum climb / dive angle constraint of the drone flight:

[0150]

[0151] Where, (x(j-1), y(j-1)) is the starting latitude and longitude of the UAV climb / dive, z(j-1) is the starting height of the UAV climb / dive, (x(j), y(j)) is the ending latitude and longitude of the UAV climb / dive, z(j) is the ending height of the UAV climb / dive, and β is the limiting angle of the UAV climb / dive;

[0152] Get the collision constraints for drone flight:

[0153]

[0154] Where (x(k), y(k)) is the real-time latitude and longitude of the drone, (x(k) ′ ,y(k) ′ ) is the latitude and longitude of the obstacle edge close to the UAV in real time, and d is the minimum safety distance of the UAV.

[0155] In this embodiment, the constraints added to the track t include:

[0156] Minimum path length constraint: During the flight of the drone, in order to avoid the drone from constantly making detours and turns and reduce errors, the drone should fly as straight as possible during the flight. Assuming the minimum path is l, the constraint can be expressed as:

[0157] l t ≥lt=1,2,3....

[0158] Minimum radius constraint: Under the given conditions, the turning radius of the drone is limited, so that the generated track can only turn within a range less than or equal to the predetermined maximum turning angle. Let the minimum turning radius of the drone be r, and let a be t =(x(t)-x(t-1),y(t)-y(t-1)) T , then the minimum radius constraint is:

[0159]

[0160] Maximum climb (dive) angle limit: Under the given conditions, the angles of the drone's ascent and descent are limited. If the maximum limit angle is β, the maximum climb (dive) angle constraint can be expressed as:

[0161]

[0162] Path trajectory length constraint: The obtained trajectory length is limited to a known maximum length. Assuming that the maximum trajectory length is L according to the maximum driving time and fuel consumption of the drone, the path length limit is:

[0163]

[0164] No-collision constraint for drones: Assuming that the shortest safe distance allowed for drones is d, the constraint can be expressed as:

[0165]

[0166] When multiple drones are dispatched to perform inspection tasks in a certain area, assume that the coordinates of the two drones when performing the task are (x(t), y(t)), (x(t) ′ ,y(t) ′ ), and also needs to satisfy the above constraints.

[0167] In one embodiment, the flight cost formula for the drone flight is obtained, specifically including:

[0168] Get the flight cost formula for the following drone flight:

[0169]

[0170] Where t∈[1,N], N is the number of track segments, b and c are preset parameters, l t is the path length cost of the UAV flight, f t The climb and dive costs for drone flight.

[0171] In this embodiment, the UAV flight path cost consists of two parts: path length cost and obstacle index cost. The objective function is expressed as:

[0172]

[0173] k reflects the target tendency of the decision maker. In order to reflect the dynamics of the model and facilitate the solution, it is transformed into the following target equation:

[0174]

[0175] Among them, l i is the length of the i-th track segment. The purpose of this item is mainly to control the degree to which the track segment deviates from the line between the starting point and the target point. TAi is the obstacle index of the i-th track segment. The obstacle index can mainly consider the energy loss of climb and dive.

[0176] Assuming there are N drones in total, we can also establish an optimization formula for the total cost as follows:

[0177]

[0178] Where p is the set of feasible flight paths for all UAVs; p1 is the flight path of the first UAV.

[0179] This embodiment uses the "Strait" algorithm to implement the obstacle avoidance algorithm for drones in cities with tall buildings. First, the position of the strait is determined, then the position of the strait is avoided, and finally the optimal route is formed. The Strait algorithm is applied to the obstacle avoidance algorithm in cities with tall buildings to find the optimal planned route.

[0180] This embodiment proposes a drone obstacle avoidance algorithm for a scene with tall buildings in a city, which obtains a drone flight route with the minimum path length and height cost by traversing each layer of the channel.

[0181] This embodiment optimizes the Straits algorithm, introduces the ant colony optimization algorithm, and implements global search in the search space, thereby effectively finding the global optimal solution of the Straits algorithm. Through the global search characteristics of the ant colony optimization algorithm, the optimization result is more robust and reliable.

[0182] This embodiment can be applied to the smart monitoring and early warning platform for urban safety risks, used for handling safety incidents, helping drones to autonomously avoid obstacles in an environment full of high-rise buildings during mission execution, and reach the target area at the fastest speed. In major emergencies such as fires and earthquakes, it can monitor dynamics in real time, prevent and promptly handle abnormal situations, monitor rescue progress in real time, and provide auxiliary support for rescue personnel. This technology has achieved great optimization in terms of intelligence, safety, and convenience, improving the work efficiency of the smart monitoring and early warning platform and reducing the risk of human error.

[0183] Embodiment 2:

[0184] like Figure 5 As shown, the present disclosure provides a drone obstacle avoidance planning device, the device comprising:

[0185] The height-contour layering module 1 is used to obtain the distribution information of several layers of height-contour obstacles in the UAV flight area according to several height-contour lines;

[0186] The channel acquisition module 2 is connected to the height-contact layering module 1 and is used to obtain a plurality of layers of height-contact channel sets in the UAV flight area according to the plurality of layers of height-contact obstacle distribution information. The channel refers to the flight area where the UAV can bypass obstacles.

[0187] The route planning module 3 is connected to the channel acquisition module 2 and is used to plan the optimal route for the UAV to fly from the starting point to the end point according to a set of channels with equal heights.

[0188] In one embodiment, the equal height stratification module 1 specifically includes:

[0189] A start and end point acquisition unit is used to obtain the start and end points of the UAV flight mission;

[0190] The flight area acquisition unit is connected to the start and end point acquisition unit and is used to acquire the UAV flight area extending to both sides of a specified width along a straight line connecting the start point and the end point;

[0191] The obstacle acquisition unit is connected to the flight area acquisition unit and is used to acquire the position and height of each obstacle in the flight area of ​​the UAV according to the geographic information;

[0192] The height stratification unit is connected to the obstacle acquisition unit and is used to sequentially acquire the positions of all obstacles whose heights are greater than the height of each layer of contour lines according to a plurality of contour lines.

[0193] In one embodiment, wherein:

[0194] Objects located in the same height range and with a distance less than r+d+e are considered to be the same obstacle;

[0195] The maximum height of several contour lines is Hd, and the interval is d;

[0196] Among them, r is the minimum turning radius of the drone, d is the minimum safe distance of the drone, e is the safety margin, and H is the maximum flight altitude of the drone.

[0197] In one embodiment, the channel acquisition module 2 specifically includes:

[0198] The highest obstacle acquisition unit is used to acquire the number of the first equal-height obstacles of the highest layer through which the straight line connecting the starting point and the end point passes according to the equal-height obstacle distribution information of several layers;

[0199] The segmentation unit is connected to the highest obstacle acquisition unit and is used to divide the UAV flight area into tracks of corresponding numbers according to the number of first-level obstacles distributed;

[0200] The channel set acquisition unit is connected to the segmentation unit and is used to obtain the central channels on both sides of each second equal-height obstacle of each layer and each section of the track passed by the straight line connecting the starting point and the ending point, so as to form the equal-height central channel set of this layer and this section.

[0201] In one embodiment, the route planning module 3 specifically includes:

[0202] A formula acquisition unit, used to obtain the flight constraints and flight cost formula of the UAV;

[0203] The route acquisition unit is used to select a central channel in each section of each layer to obtain a candidate route for the UAV to fly from the starting point to the end point;

[0204] A calculation unit, connected to the formula acquisition unit and the track acquisition unit, for acquiring the flight cost of the UAV flying over the selected route under the constraint conditions according to the flight cost formula;

[0205] The optimal screening unit is connected to the calculation unit and is used to traverse and select each central strait to obtain the candidate route with the minimum flight cost as the optimal route.

[0206] In one embodiment, the route planning module 3 specifically includes:

[0207] A formula acquisition unit, used to obtain the flight constraints and flight cost formula of the UAV;

[0208] The ant colony algorithm unit is connected to the formula acquisition unit and is used to plan the optimal route for the UAV to fly from the starting point to the ending point based on all the equal-height center channels set under the constraint conditions and the flight cost formula by using the ant colony algorithm.

[0209] In one embodiment, the formula acquisition unit specifically includes a constraint formula unit, which is used to:

[0210] Get the minimum turning radius constraint for drone flight:

[0211]

[0212] In the formula, a i =(x(i)-x(i-1),y(i)-y(i-1)),a i+1 =(x(i+1)-x(i),y(i+1)-y(i)), (x(i-1),y(i-1)) is the latitude and longitude of the starting point of the UAV's turn, (x(i),y(i)) is the latitude and longitude of the midpoint of the UAV's turn, (x(i+1),y(i+1)) is the latitude and longitude of the end point of the UAV's turn, and r is the minimum turning radius of the UAV;

[0213] Get the maximum climb / dive angle constraint of the drone flight:

[0214]

[0215] Where, (x(j-1), y(j-1)) is the starting latitude and longitude of the UAV climb / dive, z(j-1) is the starting height of the UAV climb / dive, (x(j), y(j)) is the ending latitude and longitude of the UAV climb / dive, z(j) is the ending height of the UAV climb / dive, and β is the limiting angle of the UAV climb / dive;

[0216] Get the collision constraints for drone flight:

[0217]

[0218] Where (x(k), y(k)) is the real-time latitude and longitude of the drone, (x(k) ′ ,y(k) ′ ) is the latitude and longitude of the obstacle edge close to the UAV in real time, and d is the minimum safety distance of the UAV.

[0219] In one embodiment, the formula acquisition unit specifically includes a cost formula unit, which is used to:

[0220] Get the flight cost formula for the following drone flight:

[0221]

[0222] Where t∈[1,N], N is the number of track segments, b and c are preset parameters, l t is the path length cost of the UAV flight, f t The climb and dive costs for drone flight.

[0223] Embodiment 3:

[0224] Embodiment 3 of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the drone obstacle avoidance planning method as described in Embodiment 1 is implemented, or the drone obstacle avoidance planning device as described in Embodiment 2 is implemented.

[0225] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0226] In addition, the present disclosure may also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the drone obstacle avoidance planning method as described in Example 1. The computer device may be the drone obstacle avoidance planning device as described in Example 2.

[0227] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.

[0228] Embodiments 1-3 of the present disclosure provide a drone obstacle avoidance planning method, a drone obstacle avoidance planning device, and a computer-readable storage medium, which obtain obstacle distribution information at multiple levels of altitude by setting contour lines, and then obtain drone flyable areas at multiple levels of altitude. Finally, the drone's optimal route is planned through the flyable areas at multiple levels of altitude. By layered screening of the drone's flight "straits", it is helpful to find the optimal planned route for the drone's flight.

[0229] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A UAV obstacle avoidance planning method, It is characterized in that The method comprises: Obtain the distribution information of several layers of equal-height obstacles in the UAV flight area according to several contour lines; According to the distribution information of several layers of equal-height obstacles, several layers of equal-height strait sets of the UAV flight area are obtained, and the strait refers to the flight area where the UAV can bypass obstacles; The optimal route for the UAV to fly from the starting point to the end point is planned based on several layers of equal-height channels.

2. The method according to claim 1, It is characterized in that Obtain the distribution information of several layers of equal-height obstacles in the UAV flight area based on several contour lines, including: Get the starting and ending points of the drone flight mission; Get the drone flight area that extends to both sides with a specified width along the straight line connecting the starting point and the end point; Obtain the location and height of each obstacle in the drone's flight area based on geographic information; According to a number of contour lines, the positions of all obstacles whose heights are greater than the height of each contour line are obtained in sequence.

3. The method according to claim 2, It is characterized in that in: Objects located in the same height range and with a distance less than r+d+e are considered to be the same obstacle; The maximum height of several contour lines is Hd, and the interval is d; Among them, r is the minimum turning radius of the drone, d is the minimum safe distance of the drone, e is the safety margin, and H is the maximum flight altitude of the drone.

4. The method according to any one of claims 1 to 3, It is characterized in that According to the distribution information of several layers of equal-height obstacles, several layers of equal-height strait sets in the UAV flight area are obtained, including: According to the distribution information of several layers of equal-height obstacles, the number of the first equal-height obstacles of the highest layer through which the straight line connecting the starting point and the end point passes is obtained; According to the number of first-level obstacles, the flight area of ​​the drone is divided into corresponding number of tracks; The central straits on both sides of each second obstacle of equal height on each layer and each section of each track through which the straight line connecting the starting point and the ending point passes are obtained to form a set of central straits of equal height on this layer and this section.

5. The method according to claim 4, It is characterized in that The optimal route for the drone to fly from the starting point to the end point is planned based on several layers of equal-height channels, including: Obtain the constraints and flight cost formula of the UAV flight; A central channel is selected in each section of each layer to obtain the candidate routes for the drone to fly from the starting point to the end point; According to the flight cost formula, the flight cost of the UAV flying over the selected route under the constraints is obtained; After traversing and selecting each central strait, the candidate route with the lowest flight cost is obtained as the optimal route.

6. The method according to claim 4, It is characterized in that The optimal route for the drone to fly from the starting point to the end point is planned based on several layers of equal-height channels, including: Obtain the constraints and flight cost formula of the UAV flight; Based on the set of all equal-height center channels under constraints and flight cost formula, the ant colony algorithm is used to plan the optimal route for the UAV from the starting point to the end point.

7. The method according to claim 5 or 6, It is characterized in that Get the constraints of the drone flight, including: Get the minimum turning radius constraint for drone flight: In the formula, a i =(x(i)-x(i-1),y(i)-y(i-1)), a i+1 =(x(i+1)-x(i),y(i+1)-y(i)), (x(i-1),y(i-1)) is the starting point longitude and latitude of the drone's turn, (x(i),y(i)) is the midpoint longitude and latitude of the drone's turn, (x(i+1),y(i+1)) is the end point longitude and latitude of the drone's turn, r is the drone's minimum turning radius, and T is the transpose; Get the maximum climb / dive angle constraint of the drone flight: Where, (x(j-1), y(j-1)) is the starting latitude and longitude of the UAV climb / dive, z(j-1) is the starting height of the UAV climb / dive, (x(j), y(j)) is the ending latitude and longitude of the UAV climb / dive, z(j) is the ending height of the UAV climb / dive, and β is the limiting angle of the UAV climb / dive; Get the collision constraints for drone flight: Where (x(k), y(k)) is the real-time latitude and longitude of the drone, (x(k) ′ ,y(k) ′ ) is the latitude and longitude of the obstacle edge close to the UAV in real time, and d is the minimum safety distance of the UAV.

8. The method according to claim 5 or 6, It is characterized in that Get the flight cost formula for drone flight, including: Get the flight cost formula for the following drone flight: Where t∈[1,N], N is the number of track segments, b and c are preset parameters, l t is the path length cost of the UAV flight, f t The climb and dive costs for drone flight.

9. An obstacle avoidance planning device for drones, It is characterized in that The device comprises: The height-contour layering module is used to obtain the distribution information of several layers of height-contour obstacles in the UAV flight area according to several height-contour lines; The channel acquisition module is connected to the height-contact layering module and is used to obtain a set of several layers of height-contact channel sets in the UAV flight area according to the distribution information of several layers of height-contact obstacles. The channel refers to the flyable area where the UAV can bypass obstacles. The route planning module is connected with the channel acquisition module and is used to plan the optimal route for the UAV to fly from the starting point to the end point according to a set of channels with equal heights.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the unmanned aerial vehicle obstacle avoidance planning method according to any one of claims 1 to 8 is implemented.