Unmanned aerial vehicle three-dimensional path planning method based on Beidou grid code and computing device

Through Beidou grid code technology, the three-dimensional channel of the drone is generated in computing devices, solving the accuracy of channel planning in complex low-altitude environments, ensuring the smoothness and safety of the drone's flight, and improving flight efficiency and quality .

CN118897565APending Publication Date: 2024-11-05BEIJING ZHIWANG YILIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing drone route planning methods are difficult to generate precise waterways in complex low-altitude environments, especially in special circumstances such as weather, birds, and high-altitude operations, and cannot effectively consider the performance and environmental constraints of drones.

Method used

Using a three-dimensional path planning method based on Beidou grid code, the path between the starting point and the target point is generated in the computing device, and combined with the drone size and environmental factors, the Beidou grid code is used to generate a channel and adjust the grid position. To meet environmental and performance constraints, ensure the accuracy and safety of the waterway.

Benefits of technology

It realizes the generation of precise waterways in complex low-altitude environments, ensures the smoothness and continuity of drone flight, improves flight efficiency and quality, and meets environmental and performance constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897565A_ABST
    Figure CN118897565A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and particularly discloses an unmanned aerial vehicle three-dimensional path planning method based on Beidou grid codes and computing equipment. The method comprises the following steps: on the basis of a starting point and a target point of an unmanned aerial vehicle, generating a path between the starting point and the target point as a first path under an environmental constraint condition; judging whether the first path meets a performance constraint condition of the unmanned aerial vehicle; if the performance constraint condition is not met, optimizing the first path to generate a second path; generating a channel corresponding to the second path by combining the second path, the size of the unmanned aerial vehicle and environmental factors and utilizing the Beidou grid code; judging whether each grid meets an environment constraint condition or not; and if not, adjusting the positions of the grids to enable the grids to meet the environment constraint condition and the performance constraint condition, and taking a channel formed by all the grids as a finally determined flight path. According to the invention, it can be ensured that the unmanned aerial vehicle is kept in a stable and continuous flight state in the flight process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a three-dimensional path planning method and computing equipment for unmanned aerial vehicles based on Beidou grid codes. Background Art

[0002] At present, there are relatively few feasible solutions for drone route planning. The mainstream is to solve the shortest path algorithm by using image search algorithm, depth-first or breadth-first algorithm, which can only be used under ideal circumstances. In reality, low-altitude conditions are complex and diverse, and special situations such as weather, flying birds, and high-altitude operations occur from time to time; at the same time, objective high-rise buildings and no-fly zones will also affect drone route planning.

[0003] Therefore, a new UAV route planning scheme is needed that can comprehensively analyze the low-altitude environment and generate a precise route. Summary of the invention

[0004] The present application provides a three-dimensional path planning method and computing device for an unmanned aerial vehicle based on Beidou grid code, in an effort to solve or at least alleviate at least one of the above problems.

[0005] According to one aspect of the present application, a three-dimensional path planning method for an unmanned aerial vehicle based on a Beidou grid code is provided, the method being suitable for execution in a computing device, the method comprising: based on a starting point and a target point of the unmanned aerial vehicle, under environmental constraints, generating a path between the starting point and the target point as a first path, wherein the environmental constraints include: a no-fly zone, a restricted-fly zone, and an ultra-high building zone; for all nodes on the first path, by calculating the height change and the rotation angle between two adjacent nodes, determining whether the first path satisfies the performance constraints of the unmanned aerial vehicle, wherein the performance constraints include: a first time required for the height change is greater than a second time required for the rotation angle; if the performance constraints are not satisfied, optimizing the first path to generate a second path; combining the second path, the size of the unmanned aerial vehicle, and environmental factors, using the Beidou grid code to generate a channel corresponding to the second path, the channel consisting of a plurality of grids; determining whether each of the grids satisfies the environmental constraints; if the grid does not satisfy the environmental constraints, adjusting the position of the grid to satisfy the environmental constraints and the performance constraints, and using the channel formed by all the grids as the final flight path.

[0006] Optionally, in the method according to the present application, the height change and rotation angle between two adjacent nodes are calculated to determine whether the first path meets the performance constraints of the drone, including: for each two adjacent nodes on the first path: respectively calculating the path segment between the two adjacent nodes, and determining the height change value of the path segment in the height direction and the horizontal change value in the horizontal direction; using the height change value and the predetermined speed of the drone, determining the first time required for the height change; using the horizontal change value and the path segment, determining the rotation angle corresponding to the path segment, and determining the second time required for the drone to turn the rotation angle at the predetermined speed; by comparing the first time and the second time, determining whether the path segment meets the performance constraints of the drone.

[0007] Optionally, in the method according to the present application, optimizing the first path includes: for the path segments corresponding to two adjacent nodes that do not meet the performance constraint conditions, taking the two adjacent nodes as the starting point and the target point, respectively, generating a path between the starting point and the target point as a third path; and using the third path to replace the corresponding path segment in the first path to obtain a second path.

[0008] Optionally, in the method according to the present application, generating a path between a starting point and a target point includes: constructing a tree with the starting point as the root node; randomly generating candidate waypoints under environmental constraints; connecting the candidate waypoints to the nearest nodes in the tree, and determining whether the connecting line segments satisfy the environmental constraints, and when the environmental constraints are satisfied, generating new nodes based on the candidate waypoints and the nearest nodes, and adding the connecting line segments to the path; iteratively repeating the steps of generating candidate waypoints and adding the connecting line segments to the path until the conditions are met, connecting the generated new nodes to the target point, and generating a path from the starting point to the target point.

[0009] Optionally, in the method according to the present application, generating the waterway corresponding to the second path includes: determining an initial grid level according to the size of the UAV, the grid level corresponding to the Beidou grid code level; adjusting the initial grid level according to the environmental factors and flight altitude corresponding to the second path to obtain the corresponding grid level; generating multiple grids corresponding to the second path according to the determined grid level as the waterway, wherein the waterway completely wraps the second path.

[0010] Optionally, in the method according to the present application, the initial grid level is adjusted according to the environmental factors and flight altitude corresponding to the second path, including: adjusting the initial grid level according to real-time weather changes to obtain the current grid level; adjusting the current grid level according to changes in flight altitude to obtain the final grid level.

[0011] Optionally, the method according to the present application also includes: if the real-time weather is the preset weather, the initial grid level is increased by one level; if the flight altitude is in the first interval, the current grid level is increased by one level every time the first sub-interval is increased; if the flight altitude is in the second interval, the current grid level is increased by one level every time the second sub-interval is increased.

[0012] Optionally, in the method according to the present application, the initial grid level is 22 or 23.

[0013] Optionally, in the method according to the present application, the initial grid level is determined according to the size of the drone, including: if the drone is a small drone, the initial grid level is 23; if the drone is a large industrial and agricultural drone, the initial grid level is 22.

[0014] Optionally, in the method according to the present application, the first interval is 300 to 1000 meters, the second interval is above 1000 meters, the first sub-interval is 300 meters, and the second sub-interval is 100 meters.

[0015] Optionally, in the method according to the present application, determining whether each of the grids satisfies the environmental constraint conditions includes: determining whether the spatial area of ​​each grid intersects with the area included in the environmental constraint; if so, the grid does not satisfy the environmental constraint conditions; if not, the grid satisfies the environmental constraint conditions.

[0016] Optionally, in the method according to the present application, if the grid does not satisfy the environmental constraints, the position of the grid is adjusted so that it satisfies the environmental constraints and the performance constraints, including: for the grid that does not satisfy the environmental constraints, moving the grid horizontally and / or vertically so that it satisfies the environmental constraints; determining whether the path segment corresponding to the grid at this time satisfies the performance constraints; if the performance constraints are not satisfied, optimizing the path segment until the performance constraints are satisfied.

[0017] Optionally, in the method according to the present application, moving the grid in the horizontal direction and / or the vertical direction further includes: moving the grid in the horizontal direction and / or the vertical direction in a manner with minimal movement overhead.

[0018] Optionally, in the method according to the present application, connecting the candidate waypoint to the nearest node in the tree comprises: determining the nearest node by: nearest =argmin v∈V dist(v,q ranad ), where v nearest is the nearest node, dist(v,qrand ) represents the node v and the candidate waypoint q rand The distance between them, argmin means finding the parameter that makes the function reach the minimum value, and V is the set of nodes in the tree.

[0019] Optionally, in the method according to the present application, a new node is generated in the following manner: new =v nearest +α*(q rand -v nearest ), where v new is the new node, v nearest is the nearest neighbor node, q rand is a candidate waypoint, and α is a parameter between 0 and 1, which is used to control the position of the new node on the connecting line segment.

[0020] According to another aspect of the present application, a computing device is provided, comprising: one or more processor memories; one or more programs, wherein the one or more programs are stored in the memories and configured to be executed by one or more processors, and the one or more programs include instructions for executing any of the above methods.

[0021] According to another aspect of the present application, a computer-readable storage medium storing one or more programs is provided. The one or more programs include instructions. When the instructions are executed by a computing device, the computing device executes any of the methods described above.

[0022] According to another aspect of the present application, a computer program product is provided, comprising a computer program / instruction, wherein the computer program / instruction implements the steps of the above-mentioned method when executed by a processor.

[0023] In summary, according to the scheme of the present application, the RRT algorithm is first used to generate the first path between the starting point and the target point of the UAV under environmental constraints; and the first path is optimized in combination with the performance constraints of the UAV to obtain the second path. Afterwards, the Beidou grid code is used to generate a channel composed of grids of different sizes in combination with the second path, the size of the UAV and environmental factors (weather). Afterwards, the environmental constraints and performance constraints are considered again, and the grids in the channel are adjusted until the channel meets the environmental constraints and performance constraints, and the channel formed by all grids is used as the final flight path. The flight path determined based on this scheme takes into account the environmental constraints formed by no-fly zones, restricted-fly zones, super-high building zones, etc. in the airspace, as well as the performance constraints pointed to by the UAV's movement capabilities.

[0024] In addition, considering that the drone is not a straight line in the real flight environment, it is necessary to consider the size of the drone and its uncontrollable shaking and slight deviation during flight, so a grid is used to generate the channel as the flight path of the drone. At the same time, combined with the size of the drone, real-time weather, flight altitude and other factors, the grid level corresponding to the grid is determined, and grids of different sizes are used to form the channel. On the one hand, it makes it more in line with the real flight environment. On the other hand, based on this, all three-dimensional calculations can be converted into grid and grid calculations, and the Beidou grid code is used to implement the calculation, which is faster and more efficient.

[0025] In addition, although the path line does not conflict with the environmental constraints, the edges and corners of the grid may conflict with the environmental constraints. Therefore, it is necessary to determine again whether the grid meets the environmental constraints and adjust the position of the grid if it does not meet the environmental constraints. At the same time, adjusting the position of the grid may cause the path segment corresponding to the grid to not meet the performance constraints of the drone. Therefore, for the adjusted grid, it is necessary to determine again whether the performance constraints are met. Repeat the above steps until all grids meet the environmental constraints and performance constraints. At this time, the channel formed by all grids is the final flight path.

[0026] In summary, the solution of the present application can ensure that the UAV maintains a stable and continuous flight state during the flight, thereby improving flight efficiency and flight quality.

[0027] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles applied herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. By reading the following detailed description in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. Throughout the application, the same reference numerals generally refer to the same parts or elements.

[0029] Figure 1 A schematic diagram of an airspace environment for three-dimensional path planning according to some embodiments of the present application is shown;

[0030] Figure 2 A schematic diagram of a computing device 200 according to some embodiments of the present application is shown;

[0031] Figure 3A schematic diagram of a process of a method 300 for three-dimensional path planning of a UAV based on Beidou grid code according to some embodiments of the present application is shown;

[0032] Figure 4 A flowchart of a method for three-dimensional path planning of a UAV based on Beidou grid code according to other embodiments of the present application is shown. DETAILED DESCRIPTION

[0033] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0034] According to the solution of the present application, considering that all objects in the airspace can be carried in the space-time grid, all objects can be visualized under unified rules, and then calculated and analyzed. Therefore, the three-dimensional path planning of the UAV is realized based on Beidou grid code technology. Specifically, the Beidou grid code technology is used to divide the entire low-altitude area into grids. After all grids have unique identifiers (grid codes), they can be visualized and analyzed to generate the required channels (that is, channels that meet various constraints) to realize the three-dimensional path planning of the UAV. At the same time, after the channel is visualized, the UAV can also identify grid-based channels. Such as Figure 1 , showing a schematic diagram of the airspace environment for three-dimensional path planning according to some embodiments of the present application.

[0035] Figure 1 In the figure, the yellow area represents the three-dimensional path (also called the channel) of the drone, and the red dots in the yellow area are nodes in the channel. In addition, the red area represents the no-fly zone, and the blue area represents the super-high building area (such as mountaintop signal towers, super-high buildings, etc.). The no-fly zone and super-high building area are collectively referred to as environmental constraints or map constraints. In addition, environmental constraints also include: Figure 1 The restricted flight areas not shown in the figure (shown in purple) are areas where drones need to apply for registration before they can pass through. These are obstacles in the airspace environment. In other words, environmental constraints indicate areas in the airspace environment where obstacles exist.

[0036] According to the implementation mode of the present application, the airspace range is encoded based on the Beidou grid code, so each area in the environmental constraint can be represented by a corresponding grid code.

[0037] Beidou grid coding is a new global spatial position framework and coding method, named because it is listed as a new spatial position output standard by the Beidou system. Its theoretical basis is the new earth space partition theory and big data grid organization reference framework (GeoSOT model) developed by Peking University. This model partitions the entire earth space from 520,000 kilometers above the surface to the near center of the earth into 32 levels of grid elements with a maximum size of the entire earth and a minimum size of 1.5 centimeters. Each grid has a unique binary integer code. Using Beidou grid as a spatial unit can easily index various types of data uniformly and perform data comprehensive analysis and application based on the grid. Simply put, the grid is regarded as a container arranged by position, and various types of data are placed in it according to the position, and displayed, analyzed and served according to the container number.

[0038] To facilitate the following description, the terms involved in the Beidou grid code are explained below.

[0039] Grid: A spatial region contained by two or more sets of curves (surfaces).

[0040] Grid cell: The name of a unit at a certain level in the grid system.

[0041] Grid code: A unique code identifier assigned to a grid unit according to certain rules.

[0042] BeiDou grid location code: BeiDou grid code for short, is a grid code identifier for the location of the earth's space area based on the earth's space partition model and suitable for BeiDou terminal output.

[0043] BeiDou grid: The basic grid unit for earth space division corresponding to BeiDou grid code technology.

[0044] This application is based on Beidou grid code technology, and the space-time grid coding of the airspace suitable for drone flight is performed. First, the path planning algorithm is used to preliminarily determine the path between the starting point and the target point of the drone. The generated path is a line, which does not occupy a position in the real space. However, drones are of different sizes. At the same time, uncontrollable shaking and slight deviation (such as inertial motion caused by sudden strong winds and poor signals) may occur during the flight of drones. Therefore, the Beidou grid code is used to generate the channel corresponding to the path in combination with the path, the size of the drone and environmental factors. The generated channel is composed of multiple grids of different sizes. The space occupied by these grids can wrap the above-mentioned various influences in the grid space. Afterwards, check again whether the grid meets the environmental constraints of the drone flight and the performance constraints of the drone itself. When all grids meet the above constraints, the channel formed by all grids is used as the final flight path.

[0045] The Beidou grid code-based unmanned aerial vehicle three-dimensional path planning method 300 of the present application can be implemented by one or more computing devices. The computing device can be any device with storage and computing capabilities, for example, it can be implemented as a server, workstation, etc., or it can be implemented as a personal computer such as a desktop computer, a notebook computer, or it can be implemented as a terminal device such as a mobile phone, a tablet computer, a smart wearable device, an Internet of Things device, but is not limited to this. In some embodiments, the computing device is communicatively connected to multiple unmanned aerial vehicles, and the planned three-dimensional path is sent to each unmanned aerial vehicle respectively. The computing device can also display the path planning results through a visual screen (such as Figure 1 ). In some other embodiments, the computing device may also be used as a module and arranged in the drone to plan a three-dimensional path for the drone. This application does not impose too many restrictions on this.

[0046] Figure 2 FIG. 2 shows a schematic diagram of a computing device 200 according to some embodiments of the present application. It should be noted that: Figure 2 The computing device 200 shown is only an example. In practice, the computing device used to implement the method of the present application can be any type of device, and its hardware configuration can be different from the above. Figure 2 The computing device 200 shown is the same as Figure 2 The computing device 200 shown is different. In practice, the computing device used to implement the embodiment of the present application can be Figure 2 The hardware components of the computing device 200 shown are increased or deleted, and the present application does not limit the specific hardware configuration of the computing device.

[0047] like Figure 2In a basic configuration, computing device 200 includes at least one processing unit 202 and system memory 204. According to one aspect, depending on the configuration and type of computing device, processing unit 202 can be implemented as a processor. System memory 204 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, system memory 204 includes operating system 205 and program modules 206.

[0048] According to one aspect, operating system 205 is suitable for controlling the operation of computing device 200, for example. Furthermore, examples are practiced in conjunction with graphics libraries, other operating systems, or any other application programs, and are not limited to any particular application or system. Figure 2 This basic configuration is illustrated in FIG. 2 by those components within dashed line 208. According to one aspect, computing device 200 has additional features or functionality. For example, according to one aspect, computing device 200 includes additional data storage devices (removable and / or non-removable), such as magnetic disks, optical disks, or tapes. Such additional storage Figure 2 2 is illustrated by removable storage 209 and non-removable storage 210.

[0049] As stated above, according to one aspect, program modules are stored in the system memory 204. According to one aspect, the program modules may include one or more application programs, and the present application does not limit the types of application programs, for example, the application programs may include: email and contact applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, etc.

[0050] According to one aspect, the examples may be practiced on a circuit comprising discrete electronic components, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or a single chip containing electronic components or a microprocessor. Figure 2Each or many components shown in can be integrated in a system on chip (SOC) on a single integrated circuit to practice examples. According to one aspect, such a SOC device may include one or more processing units, a graphics unit, a communication unit, a system virtualization unit, and various application functions, all of which are integrated (or "burned") into a chip substrate as a single integrated circuit. When operated via SOC, the functions described in the present application can be operated via a dedicated logic integrated with other components of a computing device 200 on a single integrated circuit (chip). Other technologies that can perform logical operations (such as AND, OR, and NOT) can also be used to practice embodiments of the present application, including but not limited to mechanical, optical, fluid, and quantum technologies. In addition, embodiments of the present application can be practiced in a general-purpose computer or in any other circuit or system.

[0051] According to one aspect, the computing device 200 may also have one or more input devices 212, such as a keyboard, a mouse, a pen, a voice input device, a touch input device, a VR motion capture input device, etc. Output devices 214 may also be included, such as a display, a speaker, a printer, etc. The aforementioned devices are examples and other devices may also be used. The computing device 200 may include one or more communication connections 216 that allow communication with other computing devices 218. Examples of suitable communication connections 216 include, but are not limited to: RF transmitters, receivers and / or transceiver circuits; Universal Serial Bus (USB), parallel and / or serial ports.

[0052] The term computer-readable media as used in this application includes computer storage media. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer-readable instructions, data structures, or program modules). System memory 204, removable storage 209, and non-removable storage 210 are all examples of computer storage media (i.e., memory storage). Computer storage media may include random access memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other products that can be used to store information and can be accessed by computing device 200. According to one aspect, any such computer storage media may be part of computing device 200. Computer storage media do not include carrier waves or other propagated data signals.

[0053] According to one aspect, communication media is implemented by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism), and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more characteristics set or changed in a manner that encodes information in the signal. By way of example and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.

[0054] In an embodiment according to the present application, the computing device 200 is configured to execute the method 300 for three-dimensional path planning of a UAV based on Beidou grid code according to the present application. Among them, the program module 206 includes a plurality of program instructions for executing the method 300 for three-dimensional path planning of a UAV based on Beidou grid code, and these program instructions can instruct the processing unit 202 to execute the method 300 of the present application.

[0055] Figure 3 A flowchart of a method 300 for three-dimensional path planning of a UAV based on Beidou grid code according to some embodiments of the present application is shown.

[0056] like Figure 3 As shown, the method 300 starts at step S310 .

[0057] In S310, based on the starting point and the target point of the UAV, under the environmental constraint condition, a path between the starting point and the target point is generated as the first path. As mentioned above, the environmental constraint includes various obstacle areas in the airspace, such as: no-fly zones, restricted-fly zones, and super-high building areas. The environmental constraint condition is that the planned path cannot intersect with the area included in the environmental constraint. In other words, any section of the planned path does not belong to the area included in the environmental constraint.

[0058] In some embodiments, RRT (Rapidly-exploring Random Tree) is used to determine the path between the starting point and the target point. The process of generating the path between the starting point and the target point is described in detail below. The first path between the starting point and the target point is generated by performing the following four steps.

[0059] The first step is to build a tree with the starting point as the root node.

[0060] The second step is to randomly generate candidate waypoints under environmental constraints. In other words, randomly generate candidate waypoints that meet environmental constraints (i.e., the candidate waypoints do not belong to the area covered by the environmental constraints). These random waypoints can be generated in the entire airspace or in an area closer to the target based on a specific heuristic method.

[0061] The third step is to connect the candidate waypoint to the nearest node in the tree, and determine whether the connecting line segment satisfies the environmental constraint condition. If the environmental constraint condition is met, a new node is generated based on the candidate waypoint and the nearest node, and the connecting line segment is added to the path.

[0062] In some embodiments, the nearest neighbor node is determined as follows:

[0063] v nearest =argmin v∈V list(v,q rand ),

[0064] Among them, v nearest is the nearest node, dist(v,q rand ) represents the node v and the candidate waypoint q rand The distance between them, argmin means finding the parameter that makes the function reach the minimum value, and V is the set of nodes in the tree.

[0065] The distance dist between two nodes can be obtained by the Euclidean distance function: point p 1 =(x 1 ,y 1 ,z 1 ) and p 2 =(x 2 ,y 2 ,z 2 ) 1 ,p 2 ) can be obtained by the following formula:

[0066]

[0067] In some embodiments, a new node is generated by:

[0068] v new =v nearest +α*(q rand -v nearest ),

[0069] Among them, v new is the new node, v nearest is the nearest neighbor node, q randis a candidate waypoint, and α is a parameter between 0 and 1, which is used to control the position of the new node on the connecting line segment.

[0070] The fourth step is to repeat the steps of iteratively generating candidate waypoints (i.e., the second step) and adding connecting line segments to the path (i.e., the third step) until a condition is met (for example, the number of nodes reaches a threshold or the number of iterations is reached or the newly generated node is close to the target point, but is not limited thereto), and connect the generated new nodes to the target point, and each connecting line segment generates a path from the starting point to the target point.

[0071] According to the implementation mode of the present application, the first path generated by step S310 is the shortest path that satisfies the environmental constraints, but does not necessarily satisfy the performance constraints of the UAV (the performance of the UAV is, for example, the maximum speed of the UAV, acceleration, and the rotation angle corresponding to its speed, etc.): for example, if the altitude changes drastically, the maximum speed of the UAV may not be able to keep up; for example, if the corner is too large, the rotation angle of the UAV may not be able to keep up.

[0072] Therefore, in the subsequent step S320, for all nodes on the first path, the height change and the rotation angle between two adjacent nodes are calculated to determine whether the first path meets the performance constraint of the drone. According to some embodiments of the present application, the performance constraint includes: a first time required for the height change is greater than a second time required for the rotation angle.

[0073] Specifically, for every two adjacent nodes on the first path, the following process is performed to determine whether the path segment formed by the two adjacent nodes meets the performance constraint condition.

[0074] First, the path segments between two adjacent nodes are calculated respectively, and the height change value of the path segment in the height direction and the level change value in the horizontal direction are determined.

[0075] For two adjacent nodes V i (x i ,y i ,z i ) and V i+1 (x i+1 ,y i+1 ,z i+1 ) between the path segments ΔV i It can be expressed as: ΔV i =|V i+1 -V i |,

[0076] The height change value of this path segment is: Δz=|z i+1 -z i |,

[0077] The horizontal change value of this path segment is: Δy=|y i+1 -y i |.

[0078] Then, using the altitude change value and the predetermined speed of the drone, determine the first time required for the altitude change, recorded as t1: Where v is the planned speed of the drone.

[0079] At the same time, the horizontal change value and the path segment are used to determine the rotation angle corresponding to the path segment. The rotation angle θ is calculated using the following formula:

[0080]

[0081] By using the rotation angle θ, the second time required for the UAV to turn the rotation angle at a predetermined speed v can be determined, which is recorded as t2.

[0082] Afterwards, by comparing the first time t1 and the second time t2, it is determined whether the path segment meets the performance constraint of the drone. Combined with the above, if t1>t2, it means that the path segment meets the performance constraint; otherwise, it means that the path segment does not meet the performance constraint.

[0083] If the performance constraint condition is not met, S330 is executed to optimize the first path to generate a second path. If the performance constraint condition is met, the first path is used as the second path and S340 is directly executed.

[0084] In an embodiment of the present application, if the path segment formed by two adjacent nodes does not meet the performance constraint conditions, this path segment is optimized until all path segments that do not meet the performance constraint conditions are optimized, and the optimized path segment is used to replace the corresponding path segment in the first path to obtain the second path.

[0085] Specifically, for the path segments corresponding to two adjacent nodes that do not meet the performance constraint conditions, the two adjacent nodes are respectively used as the starting point and the target point, and the path between the starting point and the target point is generated as the third path; the third path is used to replace the corresponding path segment in the first path to obtain the second path.

[0086] In this embodiment, the third path also uses RRT to determine the path between the starting point and the target point. Therefore, the process of generating the third path can refer to the steps of generating the first path in S310 (ie, the first to fourth steps), which will not be repeated here.

[0087] Afterwards, in S340, the second path, the size of the UAV and environmental factors are combined and the Beidou grid code is used to generate a navigation channel corresponding to the second path.

[0088] According to the implementation mode of the present application, the channel is composed of multiple grids. The grids of the spatial area passed by the second path are used to represent the corresponding route, and the grids on the entire second path are used to form the channel. It should be noted that the route representing the path can be extended from any direction, but the grid has only six faces: up, down, left, right, front and back, so the connection between the grids is not as smooth as the route. According to the implementation mode of the present application, when generating the flight path of the drone, the performance constraints of the drone are taken into account (the drone cannot rotate too much from the origin when moving at high speed), and the first path is optimized so that the generated second path meets the performance constraints of the drone. At this time, the generated grid will also be smoother, avoiding the route from jumping out of the range of the grid, and ensuring that the drone maintains a stable and continuous flight state during the flight, so as to improve flight efficiency and flight quality.

[0089] According to an embodiment of the present application, a waterway is generated in the following manner.

[0090] First, the initial grid level is determined according to the size of the drone. The grid level corresponds to the Beidou grid code level. The higher the level, the finer the grid and the smaller the grid; conversely, the larger the grid. In this embodiment, the initial grid level is 22 or 23. Specifically, if the drone is a small drone, the initial grid level is 23; if the drone is a large industrial and agricultural drone, the initial grid level is 22.

[0091] Afterwards, the initial grid level is adjusted according to the environmental factors and the flight altitude corresponding to the second path to obtain the corresponding grid level. In this embodiment, the environmental factors (such as weather) are considered first, and then the flight altitude is considered.

[0092] Specifically, first, according to the real-time weather changes, the initial grid level is adjusted to obtain the current grid level. If the real-time weather is the preset weather, the initial grid level is increased by one level. Among them, the preset weather is the weather that weakens the signal strength, such as rainy days or strong winds. When the signal weakens, the drone offset must be considered. At this time, add 1 level to the initial grid level as the current grid level. If the weather is sunny and windless at the time, it means that the signal is strong and the drone offset is small. At this time, the grid level is not allowed to change, and the current grid level is the initial grid level.

[0093] Afterwards, the current grid level is adjusted according to the change in flight altitude to obtain the final grid level. During the route planning process, if the flight altitude changes, for example, a certain section of the route needs to fly in a higher airspace, the signal and wind will be affected, then the grid level of this section of the route also needs to be increased. In some embodiments, if the flight altitude is in the first interval, the current grid level is increased by one level for each increase in the first sub-interval; if the flight altitude is in the second interval, the current grid level is increased by one level for each increase in the second sub-interval. Optionally, the first interval is 300 to 1000 meters, the second interval is above 1000 meters, the first sub-interval is 300 meters, and the second sub-interval is 100 meters.

[0094] Finally, multiple grids corresponding to the second path are generated according to the determined grid level as the channel. The principle is that grids will be generated wherever the route (i.e., the second path) touches, ensuring that the grids cover the entire route. In other words, the channel completely covers the second path.

[0095] The final route grid will not be of uniform size, because the grid is unique and occupies space, which means that the grid corresponding to the route is an untouchable zone for other drones.

[0096] According to the implementation of the present application, although the generated second path meets the environmental constraints, the second path is a line and does not occupy a position in the real space, while the drone has a size, and the drone is uncontrollable during flight and may shake and deviate slightly (such as inertial motion caused by sudden strong winds and poor signals). Therefore, in this embodiment, a grid is used to wrap the route. The space occupied by these grids includes wrapping the above-mentioned influences in the grid space, so that the second path meets the environmental constraints, but the corners of the grids will collide with the environmental constraints. According to the present application, this situation is also considered to be risky, so the grid is needed to judge the conflict. That is, in S350, it is judged whether each grid meets the environmental constraints.

[0097] Specifically, it is determined whether the spatial area of ​​each grid intersects with the area included in the environmental constraint; if they intersect, the grid does not meet the environmental constraint; if they do not intersect, the grid meets the environmental constraint. In this embodiment, the spatial area of ​​the grid can be quickly determined based on the Beidou grid code of the grid, and the grid code is used to replace the traditional longitude and latitude calculation, which is fast and real-time.

[0098] If it is determined that the grid does not satisfy the environmental constraint condition, S360 is executed to adjust the position of the grid so that the grid satisfies the environmental constraint condition and the performance constraint condition, and the flight path formed by all the grids is used as the final flight path.

[0099] In some embodiments, for a grid that does not meet the environmental constraint condition, the grid is first moved horizontally and / or vertically to meet the environmental constraint condition. Specifically, the grid is moved horizontally and / or vertically in a manner with the lowest movement cost. When a grid is moved once, the movement cost is recorded as 1.

[0100] Afterwards, determine whether the path segment corresponding to the grid at this time meets the performance constraint conditions. To determine whether the path segment meets the performance constraint conditions, refer to step S320, which is implemented by calculating the height change and rotation angle of two adjacent nodes. In some embodiments, the corresponding path segment is determined according to the moved grid, and then the corresponding node i in the second path or the first path is determined, and the node i and its previous node i-1 are used to calculate the height change and rotation angle, and then determine the first time and the second time. Alternatively, if the moved grid has no corresponding node in the second path or the first path, a node j is inserted into the two nodes (node ​​i and node i+1) determined by its corresponding path segment, and the height change and rotation angle are calculated using node j and node i, and then the first time and the second time are determined. This embodiment does not impose too many restrictions on this.

[0101] When the path segment corresponding to the moved grid does not meet the performance constraint condition, the path segment is optimized until the performance constraint condition is met. The method for optimizing the path segment can refer to the method for optimizing the first path in step S330, which will not be repeated here.

[0102] The above process is repeated until all grids in the channel meet the environmental constraints and performance constraints, and the channel formed by all grids is taken as the final flight path.

[0103] According to method 300 of the present application, the RRT algorithm is first used to generate a first path between the starting point and the target point of the drone under environmental constraints; and the first path is optimized in combination with the performance constraints of the drone to obtain a second path. Afterwards, the Beidou grid code is used to generate a channel composed of grids of different sizes in combination with the second path, the size of the drone and environmental factors (weather). Afterwards, the environmental constraints and performance constraints are considered again, and the grids in the channel are adjusted until the channel meets the environmental constraints and performance constraints, and the channel formed by all grids is used as the final flight path. The flight path determined based on this solution takes into account the environmental constraints formed by no-fly zones, restricted-fly zones, super-high building zones, etc. in the airspace, as well as the performance constraints pointed to by the drone's movement capabilities.

[0104] In addition, considering that the drone is not a straight line in the real flight environment, it is necessary to consider the size of the drone and its uncontrollable shaking and slight deviation during flight, so a grid is used to generate the channel as the flight path of the drone. At the same time, combined with the size of the drone, real-time weather, flight altitude and other factors, the grid level corresponding to the grid is determined, and grids of different sizes are used to form the channel. On the one hand, it makes it more in line with the real flight environment. On the other hand, based on this, all three-dimensional calculations can be converted into grid and grid calculations, and the Beidou grid code is used to implement the calculation, which is faster and more efficient.

[0105] In addition, although the path line does not conflict with the environmental constraints, the edges and corners of the grid may conflict with the environmental constraints. Therefore, it is necessary to determine again whether the grid meets the environmental constraints and adjust the position of the grid if it does not meet the environmental constraints. At the same time, adjusting the position of the grid may cause the path segment corresponding to the grid to not meet the performance constraints of the drone. Therefore, for the adjusted grid, it is necessary to determine again whether the performance constraints are met. Repeat the above steps until all grids meet the environmental constraints and performance constraints. At this time, the channel formed by all grids is the final flight path.

[0106] In summary, the solution of the present application can ensure that the UAV maintains a stable and continuous flight state during the flight, thereby improving flight efficiency and flight quality.

[0107] Figure 4 A flowchart of a method for three-dimensional path planning of a UAV based on Beidou grid code according to other embodiments of the present application is shown. Figure 4 The process shown is similar to Figure 3 The method flows shown are complementary to each other, and the relevant parts will not be repeated here.

[0108] like Figure 4 As shown, first, according to the starting point and target point of the UAV, under the constraints (i.e., environmental constraints and performance constraints), the RRT algorithm is used to generate the initial route (i.e., the second path mentioned above). Afterwards, a grid is generated according to the UAV, the environment, and the flight altitude, i.e., corresponding to S340 above. Afterwards, it is determined whether the grid conflicts (i.e., whether the grid satisfies the environmental constraints and the performance constraints: if so, there is no conflict; if not, there is a conflict). If there is no conflict, the channel corresponding to the grid is the final channel. If there is a conflict, the position of the grid is adjusted, and it is determined again whether there is a conflict until there is no conflict, and the final channel is generated.

[0109] Optionally, in the method of the present application, if the grid does not satisfy the environmental constraint, the position of the grid is adjusted so that it satisfies the environmental constraint and the performance constraint, including: for the grid that does not satisfy the environmental constraint, moving the grid horizontally and / or vertically so that it satisfies the environmental constraint; determining whether the path segment corresponding to the grid at this time satisfies the performance constraint; if the performance constraint is not satisfied, optimizing the path segment until the performance constraint is satisfied.

[0110] Optionally, in the method of the present application, moving the grid in the horizontal direction and / or the vertical direction further includes: moving the grid in the horizontal direction and / or the vertical direction based on a method with minimal movement overhead.

[0111] Optionally, in the method of the present application, connecting the candidate waypoint to the nearest node in the tree includes: determining the nearest node by: nearest =argmin v∈V dist(v,q rand ), where v nearest is the nearest node, dist(v,q rand ) represents the node v and the candidate waypoint q rand The distance between them, argmin means finding the parameter that makes the function reach the minimum value, and V is the set of nodes in the tree.

[0112] Optionally, in the method of the present application, a new node is generated in the following manner: new =v nearest +α*(q rand -v nearest ), where v new is the new node, v nearest is the nearest neighbor node, q rand is a candidate waypoint, and α is a parameter between 0 and 1, which is used to control the position of the new node on the connecting line segment.

[0113] Optionally, the present application also includes a computing device, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing the method as described above.

[0114] Optionally, the present application also includes a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device performs the method as described above.

[0115] Optionally, the present application also includes a computer program product, including a computer program / instruction, wherein the computer program / instruction implements the above method when executed by a processor.

[0116] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present application, or certain aspects or portions of the method and apparatus of the present application may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present application.

[0117] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method of the present application according to the instructions in the program code stored in the memory.

[0118] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.

[0119] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present application. According to the above description, it is obvious to construct the structure required for such systems. In addition, the present application is not directed to any specific programming language either. It should be understood that the content of the present application described herein can be realized by various programming languages, and the description of the specific language above is to disclose the preferred implementation of the present application.

[0120] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0121] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.

[0122] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subassemblies. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise clearly stated, each feature disclosed in this specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0123] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present application and to form different embodiments.

[0124] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices that are used to implement the functions performed by the elements for the purpose of implementing the disclosure.

[0125] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely refers to different instances of similar objects and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner. In addition, the quantifier "plurality" means "two" and / or "more than two."

[0126] Although the present application is described according to a limited number of embodiments, it will be appreciated by those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the present application thus described. In addition, it should be noted that the language used in this specification is selected primarily for the purpose of readability and teaching, rather than for the purpose of explaining or limiting the subject matter of the present application. Therefore, many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. For the scope of the present application, the disclosure made to the present application is illustrative, not restrictive, and the scope of the present application is defined by the appended claims.

Claims

1. A three-dimensional path planning method for an unmanned aerial vehicle based on Beidou grid code, the method being suitable for execution in a computing device, the method include: Based on the starting point and the target point of the UAV, under the environmental constraint condition, a path between the starting point and the target point is generated as a first path, wherein the environmental constraint includes: a no-fly zone, a restricted-fly zone, and an ultra-high building zone; For all nodes on the first path, by calculating the height change and the rotation angle between two adjacent nodes, it is determined whether the first path meets the performance constraint of the drone, wherein the performance constraint includes: a first time required for the height change is greater than a second time required for the rotation angle; If the performance constraint condition is not met, optimizing the first path to generate a second path; In combination with the second path, the size of the UAV and environmental factors, a channel corresponding to the second path is generated using a Beidou grid code, where the channel consists of a plurality of grids; Determining whether each of the grids meets the environmental constraint condition; If the grid does not satisfy the environmental constraint condition, the position of the grid is adjusted to satisfy the environmental constraint condition and the performance constraint condition, and the flight path formed by all the grids is used as the final flight path.

2. The method according to claim 1, in, The step of determining whether the first path satisfies the performance constraint condition of the drone by calculating the height change and the rotation angle between two adjacent nodes includes: For every two adjacent nodes on the first path: Calculate the path segments between two adjacent nodes respectively, and determine the height change value of the path segment in the height direction and the level change value in the horizontal direction; Determine a first time required for the altitude change by using the altitude change value and a predetermined speed of the drone; Determine a rotation angle corresponding to the path segment by using the level change value and the path segment, and determine a second time required for the drone to turn through the rotation angle at a predetermined speed; By comparing the first time and the second time, it is determined whether the path segment meets the performance constraint of the UAV.

3. The method according to claim 1 or 2, in, Optimizing the first path includes: For the path segments corresponding to the two adjacent nodes that do not meet the performance constraint condition, the two adjacent nodes are respectively used as the starting point and the target point, and a path between the starting point and the target point is generated as a third path; The third path is used to replace the corresponding path segment in the first path to obtain a second path.

4. The method according to any one of claims 1 to 3, in, Generating a path between a start point and a destination point involves: Taking the starting point as the root node, construct a tree; Under environmental constraints, candidate waypoints are randomly generated; Connecting the candidate waypoint to the nearest node in the tree, and determining whether the connecting line segment satisfies the environmental constraint condition, and if the environmental constraint condition is satisfied, generating a new node based on the candidate waypoint and the nearest node, and adding the connecting line segment to the path; The steps of generating candidate waypoints and adding the connecting line segments to the path are repeated and iterated until the conditions are met, and the generated new nodes are connected to the target point to generate a path from the starting point to the target point.

5. The method according to any one of claims 1 to 5, in, Generating a waterway corresponding to the second path includes: Determine an initial grid level according to the size of the drone, the grid level corresponding to the Beidou grid code level; According to the environmental factors and the flight altitude corresponding to the second path, the initial grid level is adjusted to obtain a corresponding grid level; A plurality of grids corresponding to the second path are generated according to the determined grid level as the waterway, wherein the waterway completely wraps the second path.

6. The method according to claim 5, in, According to the environmental factors and the flight altitude corresponding to the second path, the initial grid level is adjusted, including: According to the real-time weather changes, the initial grid level is adjusted to obtain the current grid level; According to the change of flight altitude, the current grid level is adjusted to obtain the final grid level.

7. The method according to claim 6, further comprising: include: If the real-time weather is the preset weather, the initial grid level will be increased by one level; If the flight altitude is in the first interval, the current grid level is increased by one level each time the first sub-interval is increased; If the flight altitude is in the second interval, the current grid level is increased by one level each time the second sub-interval is increased.

8. The method according to any one of claims 5 to 8, in, The initial grid level is level 22 or level 23; The initial grid level is determined according to the size of the drone, including: If the drone is a small drone, the initial grid level is 23; If the UAV is a large industrial or agricultural UAV, the initial grid level is 22.

9. The method according to claim 7, in, The first interval is 300 to 1000 meters, the second interval is more than 1000 meters, the first sub-interval is 300 meters, and the second sub-interval is 100 meters.

10. The method according to any one of claims 1 to 9, in, The determining whether each of the grids satisfies the environmental constraint condition comprises: Determine whether the spatial area of ​​each grid intersects with the area included in the environmental constraints; If they intersect, the grid does not satisfy the environmental constraint condition; If they do not intersect, the grids satisfy the environmental constraints.