Route optimization method for low-altitude efficient flight in valley terrain
By improving the A* search algorithm and combining flight safety constraints and dynamics models, a safer and more stable UAV flight path is generated, which solves the problems of low path planning efficiency and poor stability in valley terrain, and achieves efficient flight.
Patent Information
- Application Number
- CN202411080337.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing UAV path planning methods have low efficiency and poor stability in valley terrain. Traditional methods cannot accurately predict and respond to potential risks caused by terrain, and are insufficient in considering flight dynamics constraints and stability optimization.
Improved A* search algorithm, by setting flight safety constraints, weighted Euclidean distance function, terrain adaptation cost function, risk avoidance cost function and corner cost function, combined with dynamic model and path smoothing processing, to generate a safer and more stable flight path.
It improves the efficiency and accuracy of path calculation, ensures the safety and stability of the flight path, reduces vibration and energy consumption, and significantly improves flight efficiency and safety.
Smart Images

Figure CN118603104A
Abstract
Description
Technical Field
[0001] The invention relates to the field of path planning, and in particular to a route optimization method for low-altitude efficient flight in valley terrain. Background Art
[0002] When UAVs perform missions in valley terrain environments, they often face multiple challenges due to the complexity of the terrain and unstable meteorological conditions. The unique geographical features of valley terrain, such as varying heights, steep cliffs, and irregular ridges, place higher demands on flight path planning, making path planning a very challenging task.
[0003] Traditional flight path planning techniques mainly rely on obstacle avoidance algorithms and simple point-to-point navigation strategies. Although these methods can provide effective navigation in open or relatively flat terrain, they often fail to accurately predict and respond to potential risks caused by terrain in complex valley environments. In addition, these traditional methods also show obvious deficiencies in considering flight dynamics constraints and stability optimization, especially in scenarios that require long-term flight and environmental complexity.
[0004] In recent years, although advanced path planning algorithms based on heuristic search, such as the A* algorithm, have been proposed to optimize path selection, taking into account factors such as flight cost and flight time, these algorithms still have limitations in dealing with the three-dimensional spatial complexity unique to valley terrain environments. In addition, existing A* algorithm implementations usually adopt simplified heuristic functions and fail to effectively consider the dynamic constraints of terrain obstacles and flight safety.
[0005] Therefore, existing UAV path planning methods have problems of low efficiency and poor stability during route planning in valley terrain. Summary of the invention
[0006] The purpose of the present invention is to solve the problems of low efficiency and poor stability in the process of route planning in valley terrain in the existing UAV path planning method.
[0007] To achieve the above-mentioned purpose, the present invention provides a route optimization method for low-altitude efficient flight in valley terrain, the method comprising: Step 1: Obtain valley terrain data, and process the valley terrain data to obtain a three-dimensional network space model of the valley terrain; Step 2: Improve the A* search algorithm to obtain an improved A* search algorithm; Step 3: Obtain the coordinates of the starting point and the end point, and use the improved A* search algorithm to perform path planning based on the coordinates of the starting point and the end point and the three-dimensional network space model of the valley terrain to generate the flight path of the drone; Among them, the improvements to the A* search algorithm include: Set the constraint function corresponding to the flight safety constraint based on the valley terrain data; Based on the weighted Euclidean distance function D, terrain adaptation cost function T, risk aversion cost function R and turn cost turn_penalty, the cost function of the A* search algorithm is improved; Based on the Euclidean distance function distance, terrain change cost terrain_cost and turn cost turn_cost, the heuristic function of the A* search algorithm is improved.
[0008] Among them, this method is based on the improved A* algorithm, uses the height compression factor and downsampling factor to process the terrain data, and constructs a three-dimensional Boolean array to represent the accessible space. The flight cost and environmental constraints can be accurately reflected by combining the improved cost function and heuristic function with the safety assessment and dynamic model. This method evaluates the safety and stability of the path node selection and improves the continuity of the path through path smoothing.
[0009] The improved A* algorithm improves the efficiency and accuracy of path calculation by optimizing terrain data processing and path planning. The improved cost function and heuristic function can more accurately reflect the actual flight environment and cost, making path selection more scientific and reasonable. Combined with the dynamic model and safety assessment, the safety and stability of the path can be ensured. Through path smoothing, the vibration and energy consumption in flight can be reduced, thereby improving flight efficiency and stability. Together, these improvements have achieved the optimization of low-altitude and efficient flight paths in complex valley terrain, significantly improving flight efficiency and enhancing flight safety and stability.
[0010] Preferably, the step 1 specifically includes: The valley terrain data is obtained, and the altitude data in the valley terrain data is scaled based on the digital elevation model, and the latitude and longitude data in the valley terrain data are downsampled to obtain a three-dimensional network space model of the valley terrain, thereby reducing the amount of data while maintaining the terrain characteristics.
[0011] Preferably, the constraint functions corresponding to the flight safety constraints include: ; ; ; ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x d y and dz Respectively represent the distance difference between the current node and the neighboring node in the horizontal coordinate, vertical coordinate and height, H abs is the maximum absolute height limit, z ground is the terrain altitude of the neighbor node’s coordinates, H max_rel is the maximum relative height limit, H min_rel is the minimum relative height limit, x hor With y hor Respectively represent the horizontal and vertical coordinates of the terrain closest to the neighboring node, D hor is the minimum horizontal distance limit, yaw_max and pitch_max represent the maximum change values of pitch angle and yaw angle respectively.
[0012] Preferably, the cost function of the improved A* search algorithm is: ; Among them, g score is the cost function of the improved A* search algorithm, D is the weighted Euclidean distance function, T is the terrain adaptation cost function, R is the risk aversion cost function, turn_penalty is the corner cost, g score[current] Represents the actual path cost accumulated from the starting point to the current node.
[0013] Preferably, the weighted Euclidean distance function is: ; The terrain adaptation cost function is: ; The risk aversion cost function is: ; Among them, d x d y and d z Respectively represent the distance difference between the current node and the neighboring node in the horizontal axis, vertical axis and height, w x 、w y and w z Respectively represent the distance difference weight values from the current node to the neighboring node in the horizontal axis, vertical axis and height, C t represents the weight value of the terrain adaptation cost, distance_to_obstacle represents the distance between the neighbor node and the nearest terrain obstacle, threshold represents the distance threshold, C r The weight value representing the risk aversion cost; The corner cost function is: ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively. v ,y v and z v Indicates the coordinate values of the horizontal coordinate, vertical coordinate, and height of the previous node, x c ,y c and z c Indicates the coordinate values of the horizontal coordinate, vertical coordinate and height of the current node. Indicates the direction from the previous node to the current node. Indicates the direction from the current node to the neighboring node, and smoothness is the smoothness parameter.
[0014] Preferably, the heuristic function of the improved A* search algorithm is: ; Among them, h score is the heuristic function, distance is the Euclidean distance function, terrain_cost is the terrain change cost, and turn_cost is the turning cost.
[0015] Preferably, the Euclidean distance function is: ; The turning cost is: ; The terrain change cost is: ; in, ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x and d y Respectively represent the distance difference between the current node and the neighboring node in the horizontal and vertical coordinates, goal x 、goal y and goal z They represent the horizontal coordinate, vertical coordinate and height coordinate values of the target node respectively, e is the natural base, yawrate and pitchrate represent the normalization factors of the yaw angle and pitch angle respectively, Q t represents the terrain change cost coefficient, t yaw is the normalized yaw angle, t pitch is the normalized pitch angle.
[0016] Preferably, the method further comprises step 4: smoothing the generated UAV flight path.
[0017] Preferably, the process of the improved A* search algorithm is: Step a: Start; Step b: Add the starting point to the storage candidate node list; Step c: Determine whether the storage candidate node list is empty. If the storage candidate node list is empty, return that no path is found and end the process; if the storage candidate node list is not empty, execute step d; Step d: Search for the node with the smallest evaluation function value in the candidate node list; if the node with the smallest evaluation function value is found, backtrack along the parent node of the target node to generate a path, and then end the process; if the node with the smallest evaluation function value is not found, add the current node to the list of nodes that have been passed, and then execute step e; Step e: Select one of the neighbor nodes of the current node; Step f: Determine whether the selected neighbor node is reachable. If the neighbor node is not reachable, determine whether all neighbor nodes of the current node have been traversed. If all neighbor nodes of the current node have not been traversed, return to step e. If all neighbor nodes of the current node have been traversed, return to step c. If the neighbor node is reachable, execute step g. Step g: Determine whether the neighbor node is within the absolute height; if the neighbor node is not within the absolute height, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is within the absolute height, execute step h; Step h: Determine whether the horizontal distance between the neighbor node and the nearest obstacle is within the specified horizontal distance; if the horizontal distance between the neighbor node and the nearest obstacle is not within the specified horizontal distance, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the horizontal distance between the neighbor node and the nearest obstacle is within the specified horizontal distance, execute step i; Step i: Determine whether the neighbor node satisfies the dynamic constraint; if the neighbor node does not satisfy the dynamic constraint, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node satisfies the dynamic constraint, execute step j; Step j: Determine whether the neighbor node is a node in the list of nodes that have been traversed; if the neighbor node is a node in the list of nodes that have been traversed, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the list of nodes that have been traversed, execute step k; Step k: Determine whether the neighbor node is a node in the stored candidate node list; if the neighbor node is a node in the stored candidate node list, determine whether the current evaluation function value of the node is smaller than the evaluation function value previously saved by the node; if the evaluation function value of the node has not been reduced, determine whether all neighbor nodes of the current node have been traversed; if the evaluation function value of the node is reduced, update the evaluation function value of the node and set the parent node as the current node, and then determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the stored candidate node list, execute step l; Step 1: Take the neighbor node that the current node can directly reach and has not been considered before as a new node, check the new node, process the evaluation function, cost function and distance evaluation function of the new node, set the parent node to the new node, and add the parent node to the list of stored candidate nodes.
[0018] One or more technical solutions provided by the present invention have at least the following technical effects or advantages: This method can enhance the path planning stability, safety and energy efficiency of UAVs.
[0019] The method improves the safety and stability of flight in a valley terrain environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of the present invention, and do not constitute a limitation on the embodiments of the present invention; Figure 1 The figure is a flow chart of a route optimization method for low-altitude and efficient flight in valley terrain; Figure 2 is a schematic diagram of an oblique view of a path generated when the smoothness of the route optimization method of the present invention is 0; Figure 3 is a schematic diagram of a top view of a path generated when the smoothness of the route optimization method of the present invention is 0; Figure 4 is a schematic diagram of an oblique view of a path generated by the route optimization method of the present invention when the stability is 10; Figure 5 This is a schematic diagram of a top view of a path generated when the smoothness of the route optimization method of the present invention is 10. DETAILED DESCRIPTION
[0021] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those within the scope of this description. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0023] Embodiment 1;
[0024] Embodiment 1 of the present invention provides a route optimization method for low-altitude efficient flight in mountainous terrain, the method comprising: Step 1: Obtain valley terrain data, and process the valley terrain data to obtain a three-dimensional network space model of the valley terrain; Step 2: Improve the A* search algorithm to obtain an improved A* search algorithm; Step 3: Obtain the coordinates of the starting point and the end point, and use the improved A* search algorithm to perform path planning based on the coordinates of the starting point and the end point and the three-dimensional network space model of the valley terrain to generate the flight path of the drone; Among them, the improvements to the A* search algorithm include: Set the constraint function corresponding to the flight safety constraint based on the valley terrain data; Based on the weighted Euclidean distance function D, terrain adaptation cost function T, risk aversion cost function R and turn cost turn_penalty, the cost function of the A* search algorithm is improved; Based on the Euclidean distance function distance, terrain change cost terrain_cost and turn cost turn_cost, the heuristic function of the A* search algorithm is improved.
[0025] An embodiment of the present invention provides a route optimization method for efficient low-altitude flight in valley terrain. This method redesigns the cost function, heuristic function and constraint function so that it can comprehensively consider the three-dimensional characteristics of the terrain and the dynamic constraints of the aircraft. The method can effectively integrate complex terrain data and dynamic flight requirements to enhance the path planning stability, safety and energy efficiency of the UAV. During the path planning process, the present invention also gives priority to safe corridor paths through canyon channels to improve the safety and stability of flight in valley terrain environments. By introducing dynamic models and improved algorithm strategies, the present invention aims to overcome the shortcomings of the prior art and provide a solution that can achieve efficient and safe navigation in valley terrain environments.
[0026] The embodiment of the present invention provides a route optimization method for low-altitude efficient flight in valley terrain, aiming to solve the problem that path planning in the prior art does not take into account the dynamic constraints sufficiently and has poor adaptability to complex three-dimensional terrain. The present invention integrates the flight dynamics model and three-dimensional terrain information, comprehensively improves the traditional A* algorithm, including the cost function and the heuristic function, and introduces specific constraints for flight safety, so as to more accurately handle the flight path planning in valley terrain and improve the safety and stability of the flight.
[0027] The present invention provides a route optimization method for low-altitude and efficient flight in valley terrain, which is used to solve the problems of low efficiency and poor stability in the route planning process of existing UAVs in valley terrain.
[0028] The route optimization method for low-altitude and efficient flight in valley terrain proposed in this invention mainly includes several parts: environment processing, algorithm improvement and path, such as Figure 1 As shown in the figure, the environment processing mainly processes the terrain data and constructs a three-dimensional Boolean array to represent the accessible space and terrain, providing a basic framework for path planning; the algorithm improvement includes improving the cost function and heuristic function in the A* algorithm and reflecting the actual flight situation by setting flight constraints; the path construction mainly generates the optimal flight path by integrating the improved cost function and heuristic function, and combining the flight safety constraints and smoothing the generated path.
[0029] This method specifically includes: Environmental treatment: The present invention uses a high compression factor to reduce the elevation data to a scale more suitable for processing, and applies a downsampling factor to the plane size of the terrain, thereby reducing the amount of data while maintaining the terrain characteristics.
[0030] Algorithm improvements: The algorithm improvement of the present invention mainly includes reflecting the actual flight situation by setting a constraint function adapted to the valley terrain and improving the cost function and heuristic function in the A* algorithm.
[0031] Constraint function settings: The present invention analyzes the valley terrain environment where the UAV is located and sets reasonable flight safety constraints. Further, these flight safety constraints include absolute altitude restrictions, relative altitude restrictions, minimum horizontal distance, and flight change restrictions, which are defined by the following formula: ; ; ; ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x ,d y and d z Respectively represent the distance difference between the current node and the neighboring node in the horizontal coordinate, vertical coordinate and height, H abs is the maximum absolute height limit, z ground is the terrain altitude of the neighbor node’s coordinates, H max_rel is the maximum relative height limit, H min_rel is the minimum relative height limit, x hor With y hor Respectively represent the horizontal and vertical coordinates of the terrain closest to the neighboring node, D hor is the minimum horizontal distance limit, yaw_max and pitch_max represent the maximum change values of pitch angle and yaw angle respectively.
[0032] A* algorithm cost function improvement: The improvement of the cost function of the A* algorithm in the present invention is mainly achieved by setting a weighted Euclidean distance function D, a terrain adaptation cost function T, a risk aversion cost function R, and a turning cost turn_penalty, wherein the weighted Euclidean distance function, the terrain adaptation cost function, and the risk aversion cost function are defined by the following formulas: ; ; ; Among them, d x ,d y and d z Respectively represent the distance difference between the current node and the neighboring node in the horizontal axis, vertical axis and height, w x 、w y and w zRespectively represent the distance difference weight values from the current node to the neighboring node in the horizontal axis, vertical axis and height, C t represents the weight value of the terrain adaptation cost, distance_to_obstacle represents the distance between the neighbor node and the nearest terrain obstacle, threshold represents the distance threshold, C r The weight value representing the risk aversion cost; The smoothness parameter smoothness is set in the corner cost to optimize the path. The smoothness of the drone route can be adjusted by setting different smoothness parameters, which are defined by the following formula: ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively. v ,y v and z v Indicates the coordinate values of the horizontal coordinate, vertical coordinate, and height of the previous node, x c ,y c and z c Indicates the coordinate values of the horizontal coordinate, vertical coordinate and height of the current node. Indicates the direction from the previous node to the current node. Indicates the direction from the current node to the neighboring node, and smoothness is the smoothness parameter.
[0033] The actual cost function is defined by the following formula: ; Among them, g score[current] Represents the actual path cost accumulated from the starting point to the current node.
[0034] A* algorithm heuristic function improvement: The present invention improves the heuristic function of the A* algorithm mainly by setting the Euclidean distance function distance, the terrain change cost terrain_cost and the dynamic model to improve the turning cost turn_cost, which is defined by the following formula: ; ; ; ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x and dy Respectively represent the distance difference between the current node and the neighboring node in the horizontal and vertical coordinates, goal x 、goal y and goal z They represent the horizontal coordinate, vertical coordinate and height coordinate values of the target node respectively, e is the natural base, yawrate and pitchrate represent the normalization factors of the yaw angle and pitch angle respectively, Q t represents the terrain change cost coefficient, t yaw is the normalized yaw angle, t pitch is the normalized pitch angle.
[0035] The actual heuristic function is defined by the following formula: ; Path composition: The path planning of the present invention mainly improves the A* algorithm by integrating the improved cost function and heuristic function and combining the flight safety constraints. The improved A* algorithm is used to continuously search for a path in three-dimensional space by expanding between nodes until the end point is found. After the flight path is generated, the path is smoothed by the cubic spline interpolation method to further optimize the continuity of the path and the stability of the flight.
[0036] Among them, in the embodiment of the present invention, the process of the improved A* search algorithm is: Step a: Start; Step b: Add the starting point to the storage candidate node list; Step c: Determine whether the storage candidate node list is empty. If the storage candidate node list is empty, return that no path is found and end the process; if the storage candidate node list is not empty, execute step d; Step d: Search for the node with the smallest evaluation function value in the candidate node list; if the node with the smallest evaluation function value is found, backtrack along the parent node of the target node to generate a path, and then end the process; if the node with the smallest evaluation function value is not found, add the current node to the list of nodes that have been passed, and then execute step e; Step e: Select one of the neighbor nodes of the current node; Step f: Determine whether the selected neighbor node is reachable. If the neighbor node is not reachable, determine whether all neighbor nodes of the current node have been traversed. If all neighbor nodes of the current node have not been traversed, return to step e. If all neighbor nodes of the current node have been traversed, return to step c. If the neighbor node is reachable, execute step g. Step g: Determine whether the neighbor node is within the absolute height; if the neighbor node is not within the absolute height, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is within the absolute height, execute step h; Step h: Determine whether the horizontal distance between the neighbor node and the nearest obstacle is within the specified horizontal distance; if the horizontal distance between the neighbor node and the nearest obstacle is not within the specified horizontal distance, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the horizontal distance between the neighbor node and the nearest obstacle is within the specified horizontal distance, execute step i; Step i: Determine whether the neighbor node satisfies the dynamic constraint; if the neighbor node does not satisfy the dynamic constraint, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node satisfies the dynamic constraint, execute step j; Step j: Determine whether the neighbor node is a node in the list of nodes that have been traversed; if the neighbor node is a node in the list of nodes that have been traversed, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the list of nodes that have been traversed, execute step k; Step k: Determine whether the neighbor node is a node in the stored candidate node list; if the neighbor node is a node in the stored candidate node list, determine whether the current evaluation function value of the node is smaller than the evaluation function value previously saved by the node; if the evaluation function value of the node has not been reduced, determine whether all neighbor nodes of the current node have been traversed; if the evaluation function value of the node is reduced, update the evaluation function value of the node and set the parent node as the current node, and then determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the stored candidate node list, execute step l; Step 1: Take the neighbor node that the current node can directly reach and has not been considered before as a new node, check the new node, process the evaluation function, cost function and distance evaluation function of the new node, set the parent node to the new node, and add the parent node to the list of stored candidate nodes.
[0037] Embodiment 2: Based on the first embodiment, the second embodiment of the present invention introduces the method with specific examples and data: Environmental treatment: The specific embodiment of the present invention uses a digital elevation model to extract and compress terrain data to generate a three-dimensional network space model, specifically by applying a height compression factor of 167 to scale the altitude data, and using a downsampling factor of 100 for the latitude and longitude of the terrain. The coordinates of the starting point and the end point are set to (300, 2500, 2900) meters and (3500, 1500, 3000) meters before compression, and are converted to (3, 25, 29) meters and (35, 15, 30) meters after compression.
[0038] Algorithm improvements: Constraint function settings: By setting the absolute altitude limit to 5000 meters, the maximum relative altitude limit to 450 meters, the minimum relative altitude to 50 meters, the minimum horizontal distance to 50 meters, and the maximum change value of the pitch angle and yaw angle to 60. These flight safety constraints are defined by the following formula: ; ; ; ; ; A* algorithm cost function improvement: In valley terrain, due to the importance of height change, the weight of height is adjusted to 2, which enhances the sensitivity to vertical changes. The weights of other directions are set to 1, the weight of terrain adaptation cost is 2, the weight of risk aversion cost function is 1, and the distance threshold is 150 meters, which is expressed by the following formula: ; ; ; The present invention sets different smoothness for comparison, and sets the smoothness parameter of the corner cost to achieve the purpose of adjusting the corner cost function turn_penalty. The actual cost function is obtained by combining the above parameter settings, which is expressed by the following formula: ; A* algorithm heuristic function improvement: Substituting the end point coordinates into the Euclidean distance formula, setting the normalization factors of the yaw angle and pitch angle to 90, and the terrain change cost coefficient to 1.5, we get the following definition: ; ; ; ; ; The actual heuristic function is defined by the following formula: ; Path composition: The present invention uses the improved A* algorithm to perform path planning in three-dimensional space and generate a flight path. If the path is not found, the result is that the path is not found. If the path is successfully generated, the generated path is smoothed using the cubic spline interpolation method, and the resolution of the spline interpolation is set to 100 times the number of original points in the path, that is, the smoothing factor is set to 100. By setting the smoothness parameter to 0 and 10 respectively, the results are compared, as shown in FIG. Figure 2 and Figure 3 shows the result when the path smoothness is 0, and Figure 4 and Figure 5 The result of path smoothness of 10 is shown. Figures 2 to 5 The figure is a three-dimensional space diagram, with the three coordinate axes being the x-axis, y-axis, and z-axis. Figure 2-Figure 5 The points in are the target point and the starting point, and the line between the target point and the starting point is the path.
[0039] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0040] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A route optimization method for low-altitude efficient flight in valley terrain, characterized in that: The method comprises: Step 1: Obtain valley terrain data, and process the valley terrain data to obtain a three-dimensional network space model of the valley terrain; Step 2: Improve the A* search algorithm to obtain an improved A* search algorithm; Step 3: Obtain the coordinates of the starting point and the end point, and use the improved A* search algorithm to perform path planning based on the coordinates of the starting point and the end point and the three-dimensional network space model of the valley terrain to generate the flight path of the drone; Among them, the improvements to the A* search algorithm include: Set the constraint function corresponding to the flight safety constraint based on the valley terrain data; Based on the weighted Euclidean distance function D, terrain adaptation cost function T, risk aversion cost function R and turn cost turn_penalty, the cost function of the A* search algorithm is improved; Based on the Euclidean distance function distance, terrain change cost terrain_cost and turn cost turn_cost, the heuristic function of the A* search algorithm is improved.
2. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The step 1 specifically includes: The valley terrain data is obtained, and the altitude data in the valley terrain data is scaled and the longitude and latitude data in the valley terrain data are downsampled based on the digital elevation model to obtain a three-dimensional network space model of the valley terrain.
3. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The constraint functions corresponding to the flight safety constraints include: ; ; ; ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x d y and d z Respectively represent the distance difference between the current node and the neighboring node in the horizontal coordinate, vertical coordinate and height, H abs is the maximum absolute height limit, z ground is the terrain altitude of the neighbor node’s coordinates, H max_rel is the maximum relative height limit, H min_rel is the minimum relative height limit, x hor With y hor Respectively represent the horizontal and vertical coordinates of the terrain closest to the neighboring node, D hor is the minimum horizontal distance limit, yaw_max and pitch_max represent the maximum change values of pitch angle and yaw angle respectively.
4. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The cost function of the improved A* search algorithm is: ; Among them, g score is the cost function of the improved A* search algorithm, D is the weighted Euclidean distance function, T is the terrain adaptation cost function, R is the risk aversion cost function, turn_penalty is the corner cost, g score[current] Represents the actual path cost accumulated from the starting point to the current node.
5. The route optimization method for low-altitude efficient flight in valley terrain according to claim 4 is characterized in that: The weighted Euclidean distance function is: ; The terrain adaptation cost function is: ; The risk aversion cost function is: ; Among them, d x ,d y and d z Respectively represent the distance difference between the current node and the neighboring node in the horizontal axis, vertical axis and height, w x 、w y and w z Respectively represent the distance difference weight values from the current node to the neighboring node in the horizontal axis, vertical axis and height, C t represents the weight value of the terrain adaptation cost, distance_to_obstacle represents the distance between the neighbor node and the nearest terrain obstacle, threshold represents the distance threshold, C r The weight value representing the risk aversion cost; The corner cost function is: ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively. v ,y v and z v Indicates the coordinate values of the horizontal coordinate, vertical coordinate, and height of the previous node, x c ,y c and z c Indicates the coordinate values of the horizontal coordinate, vertical coordinate and height of the current node. Indicates the direction from the previous node to the current node. Indicates the direction from the current node to the neighboring node, and smoothness is the smoothness parameter.
6. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The heuristic function of the improved A* search algorithm is: ; Among them, h score is the heuristic function, distance is the Euclidean distance function, terrain_cost is the terrain change cost, and turn_cost is the turning cost.
7. The route optimization method for low-altitude efficient flight in valley terrain according to claim 6 is characterized in that: The Euclidean distance function is: ; The turning cost is: ; The terrain change cost is: ; in, ; ; Among them, x, y and z represent the coordinate values of the horizontal coordinate, vertical coordinate and height of the neighbor node respectively, d x and d y Respectively represent the distance difference between the current node and the neighboring node in the horizontal and vertical coordinates, goal x 、goal y and goal z They represent the horizontal coordinate, vertical coordinate and height coordinate values of the target node respectively, e is the natural base, yawrate and pitchrate represent the normalization factors of the yaw angle and pitch angle respectively, Q t represents the terrain change cost coefficient, t yaw is the normalized yaw angle, t pitch is the normalized pitch angle.
8. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The method also includes step 4: smoothing the generated UAV flight path.
9. The route optimization method for low-altitude efficient flight in valley terrain according to claim 1 is characterized in that: The process of the improved A* search algorithm is: Step a: Start; Step b: Add the starting point to the storage candidate node list; Step c: Determine whether the list of candidate nodes for storage is empty. If the list of candidate nodes for storage is empty, return that no path is found and end the process. If the storage candidate node list is not empty, execute step d; Step d: Find the node with the smallest evaluation function value in the stored candidate node list; If the node with the smallest evaluation function value is found, the path is generated by backtracking along the parent node of the target node, and then the process ends; If the node with the smallest evaluation function value is not found, the current node is added to the list of nodes that have been walked through, and then step e is executed; Step e: Select one of the neighbor nodes of the current node; Step f: Determine whether the selected neighbor node is reachable. If the neighbor node is not reachable, determine whether all neighbor nodes of the current node have been traversed. If all neighbor nodes of the current node have not been traversed, return to step e. If all neighbor nodes of the current node have been traversed, return to step c. If the neighbor node is reachable, execute step g. Step g: Determine whether the neighbor node is within the absolute height; If the neighbor node is not within the absolute height, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is within the absolute height, execute step h; Step h: Determine whether the horizontal distance between the neighbor node and the nearest obstacle is within a specified horizontal distance; If the horizontal distance between the neighbor node and the nearest obstacle is not within the specified horizontal distance, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the horizontal distance between the neighbor node and the nearest obstacle is within the specified horizontal distance, execute step i; Step i: Determine whether the neighbor node satisfies the dynamic constraint; If the neighbor node does not satisfy the dynamic constraint, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node satisfies the dynamic constraint, execute step j; Step j: Determine whether the neighbor node is a node in the list of nodes that have been traversed; if the neighbor node is a node in the list of nodes that have been traversed, determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the list of nodes that have been traversed, execute step k; Step k: Determine whether the neighbor node is a node in the stored candidate node list; if the neighbor node is a node in the stored candidate node list, determine whether the current evaluation function value of the node is smaller than the evaluation function value previously saved by the node; if the evaluation function value of the node has not been reduced, determine whether all neighbor nodes of the current node have been traversed; if the evaluation function value of the node is reduced, update the evaluation function value of the node and set the parent node as the current node, and then determine whether all neighbor nodes of the current node have been traversed; if all neighbor nodes of the current node have not been traversed, return to step e; if all neighbor nodes of the current node have been traversed, return to step c; if the neighbor node is not a node in the stored candidate node list, execute step l; Step 1: Take the neighbor node that the current node can directly reach and has not been considered before as a new node, check the new node, process the evaluation function, cost function and distance evaluation function of the new node, set the parent node to the new node, and add the parent node to the list of stored candidate nodes.
Citation Information
Patent Citations
Low-altitude rescue aircraft route planning method based on three dimensional airspace grids
CN104991895A
Real-time obstacle avoidance path planning method, system, equipment and medium
CN114764249A
Flight path planning method considering low-altitude wind and unmanned aerial vehicle energy consumption
CN115060263A
Aircraft trajectory planning method considering environment adaptive maneuvering
CN115451971A
Unmanned aerial vehicle automatic obstacle avoidance route planning method and system
CN116893689A
