Next Article in Journal
Imitation Learning-Based Energy Management Algorithm: Lille Catholic University Smart Grid Demonstrator Case Study
Next Article in Special Issue
RoCS: Knowledge Graph Embedding Based on Joint Cosine Similarity
Previous Article in Journal
Rotating Object Detection for Cranes in Transmission Line Scenarios
Previous Article in Special Issue
A Study on the High Reliability Audio Target Frequency Generator for Electronics Industry
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improved A-Star Path Planning Algorithm in Obstacle Avoidance for the Fixed-Wing Aircraft

1
School of Mechanical Engineering, Northwestern Polytechnical University, Xi’an 710072, China
2
Aviation Industry Corporation of China Leihua Electronic Technology Research Institute, Wuxi 214000, China
3
AVIC Flight Automatic Control Research Institute, Xi’an 710076, China
4
Xi’an Microelectronic Technology Institute, Xi’an 710065, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(24), 5047; https://doi.org/10.3390/electronics12245047
Submission received: 10 October 2023 / Revised: 28 November 2023 / Accepted: 12 December 2023 / Published: 18 December 2023
(This article belongs to the Special Issue Advances in Intelligent Data Analysis and Its Applications, Volume II)

Abstract

:
The flight management system is a basic component of avionics for modern airliners. However, the airborne flight management system needs to be improved and relies on imports; path planning is the key to the flight management system. Based on the classical A* algorithm, this paper proposes an improved A* path planning algorithm, which solves the problem of low planning efficiency and following a non-smooth path. In order to solve the problem of the large amount of data calculation and long planning time of the classical A* algorithm, a new data structure called a “value table” is designed to replace the open table and close table of the classical A* algorithm to improve the retrieval efficiency, and the Heap sort algorithm is used to optimize the efficiency of node sorting. Aiming at the problem that the flight trajectory is hard to follow, the trajectory smoothing optimization algorithm combined with turning angle limit is proposed. The gray value in the digital map is added to the A* algorithm, and the calculation methods of gray cost, cumulative cost, and estimated cost are improved, which can better meet the constraints of obstacle avoidance. Through the comparative simulation verification of the algorithm, the improved A* algorithm can significantly reduce the path planning time to 1% compared to the classical A* algorithm; it can be seen that the proposed algorithm improves the efficiency of path planning and the smoother planned path, which has obvious advantages compared to the classical A* algorithm.

1. Introduction

The onboard flight management system (FMS) is a professional computer system that can automate various flight tasks and reduce manual workload. Modern civil aircraft crews no longer carry flight engineers or navigators. However, the FMS for general civil aviation aircraft is dependent on the introduction from abroad [1]. FMS is a basic component of airborne avionics, which can realize the automation of various flight tasks. Its main function is to position the aircraft, make flight plans, optimize routes, guide aircraft flight, and reduce the working pressure of crew.
The civil aviation aircraft is prone to environmental collisions and crashes in the case of low visibility in the air, and emergency landing in mountainous terrain. The China International Airlines Flight 129 crash was due to low visibility in the air; its scheduled route error caused the passenger plane to crash into the mountain, and 129 people were unfortunately killed. Different from the traffic warning and obstacle avoidance system (TACS), airborne obstacle avoidance system (ACSA), and near-Earth warning system (GPWS) [2], FMS performs path planning when facing obstacles that may appear in advance, reducing the accident rate of civil aircraft in complex environments such as mountain flight and multi-aircraft flight. An important performance index of FMS is its planning and obstacle avoidance ability when flying in complex terrain environments.
Path planning is one of the core functions of FMS. The autonomous auxiliary path planning for civil aircraft in emergency flight will significantly help the aircraft to guide the emergency landing in bad weather, complex terrain, and sudden accidents, and decrease the incidence of major air crashes.
The path planning algorithm includes two parts: a map preprocessing algorithm and pathfinding algorithm [3]. Digital map processing needs to select the corresponding processing method according to the different elevation data and task requirements. For maps with different accuracy, it is necessary to process the best digital map suitable for the pathfinding algorithm. At present, there are many pathfinding algorithms for path planning. The A* algorithm is one of the most representative heuristic algorithms [4]. Its success rate and superiority of algorithm results are incomparable to other algorithms. However, there are still many directions for optimization of the algorithm. The computational complexity of the algorithm is related to the accuracy of the map. The higher the accuracy of the map, the greater the amount of calculation of the planning algorithm caused by the surge in data volume. The large amount of calculation also causes excessive space memory occupation, and the large amount of data will lead to problems such as program collapse in engineering. The classical A* algorithm cannot add the aircraft performance limit to the track, the planned track helicopter is difficult to follow, and the degree of engineering is low; at present, the application of the A* algorithm only stays in the calculation of an unselectable single track, and cannot be reasonably adjusted according to the task situation.
Many scholars have conducted a lot of research on how to improve the efficiency of the map preprocessing algorithm and pathfinding algorithm. The key step of path planning for robots, including UAVs, is to accurately process map information [5] and reach the target without collision [6]. Jaishankar et al. [7] proposed a distance change method, through which the digital elevation can be represented by grayscale image, and the path planning can be carried out on this basis. Meng H [8] first smoothed and optimized the data in the digital map from four directions, then processed the digital map into the smallest threat surface, and then sought the optimal path on the smallest threat surface. The algorithms lack the interpolation calculation of the appropriate accuracy of the map first, which may result in the situation that the resolution of the elevation data is not enough to support the pathfinding algorithm, or the resolution is too high to cause the data to be too large and the efficiency of the algorithm to be reduced.
The path planning algorithm not only requires that the planned flight path is feasible, but also requires its optimality in some specific criteria, such as calculation time and trajectory length [9]. The calculation time mainly includes map processing time and path planning time, which will be mainly used as the evaluation criteria for different algorithms in this paper. The A* algorithm is a famous algorithm in the field of path planning, which is suitable for the static environment exploration of complex obstacle topographic map [10]. However, the classical A* algorithm is not satisfactory in terms of computational time [11], which seriously hinders the deployment of the A* algorithm and its application in the actual aircraft navigation system. On this basis, many studies have proposed methods to improve the computational performance. Sudhakara et al. [12] proposed an improved A* algorithm to increase the number of turns to plan the path of the robot in a position environment with obstacles. Pal et al. [13] proposed an improved A* algorithm based on capacity consumption to reduce the energy consumption caused by stopping and turning.
In addition to considering the calculation length and trajectory time, the performance requirements of fixed-wing aircraft should be met when planning the path. ElHalawany et al. [14] proposed an improved A* algorithm considering its own size to avoid sharp turns in the path planning of mobile robots, which is necessary in practical applications. Based on the traditional algorithm, this paper adds the constraints of fixed-wing aircraft performance, so that the planned trajectory is easy to follow. In order to improve the performance of fixed-wing aircraft, Durán-Delfín et al. [15] established a mathematical model of fixed-wing convertible vertical take-off and landing aircraft to achieve two flight states along the trajectory. The controller has good performance and can provide sufficient maneuverability. This research will greatly improve the performance of fixed-wing aircraft in the future.
At present, the application of the A* algorithm only stays on the calculation of an unselected single trajectory, considering the minimization of multi-objectives such as path length and altitude [16]. However, for fixed-wing aircraft, the requirements for different costs are different under different flight conditions. Ducho et al. [11] modified the A* algorithm and optimized the algorithm based on the complexity of the environment, so that the algorithm can be applied to various scenarios. Aiming at this problem, this paper optimizes the weights of different costs in the cost function.
The main innovations and contributions of this paper are as follows: (1) Aiming at the problems of large memory occupation and high map accuracy requirements in the path planning of fixed-wing passenger aircraft, the digital map is combined with the requirement of the step size of the demand point to adjust the map accuracy, and the elevation digital map is processed into a grayscale map in combination with the aircraft climbing angle limit, so as to reduce the memory occupation of the map, thereby reducing the amount of calculation and improving the efficiency of path planning; (2) Aiming at the problem that the planned global trajectory is hard to follow by fixed-wing aircraft, this paper considers the flight constraints of fixed-wing aircraft flying, and processes the track into a followable trajectory that satisfies the turning angle of the aircraft through trajectory smoothing optimization; (3) Aiming at the problem of single trajectory in the traditional A* global path planning algorithm, this paper normalizes the cost parameters in the A* algorithm and opens the setting port. At the same time, different cost weight parameters are set for planning. The mode and the proportion of each cost parameter can be dynamically adjusted according to the task situation to find the optimal path that meets the task requirements and aircraft performance constraints; (4) Aiming at the problem of low efficiency of the classical A* algorithm in array structure sorting, the Heap sorting method is adopted to improve the sorting efficiency, and a new data structure called a “value table” is designed to optimize the search efficiency compared to the open table and close table of the classical A* algorithm, which reduces the complexity of the sorting algorithm and satisfies the real-time requirements of the planning algorithm.

2. Path Planning Problem and Modeling

2.1. Path Planning Problem for Fixed-Wing Aircraft

The path planning problem of fixed-wing aircraft refers to the specific path planning requirements M ( m , h , p ) , from the initial point B g , t to the target point E g , t ; the sets of optimal motion trajectory points   x g , t , T B , E can be calculated by the pathfinding algorithm ϕ B g , t   , E g , t , which can be described as follows:
T B , E = x g , t M m , h , p x g , t = ϕ B g , t , E g , t
Among them, the mission target requirements M m , fixed-wing aircraft performance requirements M h , algorithm performance requirements M p .
In the case of complex mountainous areas, the primary task of global trajectory planning is to ensure the safe flight of the aircraft, and the aircraft can successfully avoid all obstacles; secondly, the planned trajectory of the aircraft should ensure that the maximum pitch angle constraint, the maximum turning angle constraint, and aircraft’s followability are satisfied. At the same time, the planning algorithm should also ensure a certain timeliness.

2.2. Path Planning Optimization Model

2.2.1. Optimized Objective Goal

The path planning problem can be regarded as a kind of constrained optimization problem. Figure 1 is a top view of the track, where we use hollow dots to represent the track points, with the symbol p i . l i is the cost of flight distance between each track point. The large black dots represent obstacles in the map. For the altitude cost in the track, its expression is similar to flight distance cost.
Objective function commonly used in path planning [17,18] can be described as (2).
min χ J = t 0 t f ( ω 1 c t 2 + ω 2 h 2 + ω 3 f T ) d t
where c t , h , and f T represent the cost of track length, flight altitude, and threat, respectively. ω 1 , ω 2 , ω 3 are the cost factors, χ indicates the flight trajectory from t 0 to t f . The optimization goal of path planning studied in this article is to design an optimal path under obstacle avoidance conditions, so as to minimize the cumulative distance cost and altitude cost of the entire flight process. Without involving threat costs, Equation (2) is modified to obtain Formula (3) [19]:
min χ i = 1 n ( ω 1 l i 2 + ω 2 h i 2 )
In the formula, the flight distance l i from the track point p i to the point p i + 1 is expressed, which can be viewed in Figure 1. By reducing the flight distance, the fuel cost of the aircraft can be shortened; h i indicates the altitude cost between track points p i and p i + 1 . ω 1 , ω 2   represents the weight of each cost, which is generally valued according to task requirements.

2.2.2. Maximum Pitch Angle Constraint

In order to ensure the fastest flight to the target point, the trajectory must be able to meet the constraints of the maximum pitch angle in the longitudinal maneuver of the aircraft, which requires that there can be no trajectory beyond the maximum pitch angle limit between the two trajectory points in the planned trajectory, as shown in Figure 2.
Among them, α m a x presents the maximum pitch angle, and α A B represents the pitch angle from track point A to track point B. It can be obtained by the relative height difference Δ h A B , relative horizontal distance Δ l A B from track point A to track point B.
α A B = arctan Δ h A B Δ l A B ,   α A B α max

2.2.3. Maximum Bend Angle Constraint

Aiming at the problem of aircraft flight safety when flying in mountainous terrain, the maximum bend angle of lateral maneuver needs to be constrained. In order to change the course when the aircraft maintains a certain forward flight speed, according to the requirements of turning speed and turning radius, it is necessary to ensure that the turning angle of the track meets the constraint of the maximum turning angle when the distance between the track points is certain, as shown in Figure 3.
In Figure 3, the heading at track point A is represented by φ A B , the heading at track point B is represented by φ B C , and the heading angle that needs to be changed from track point A to track point B is represented by β t u r n ; that is the turning angle at track point B.
β t u r n = φ A B φ B C ,   β t u r n β max

2.2.4. Minimum Terrain Clearance Constraint

The distance between the aircraft and the ground should always be greater than the minimum flight height from the ground, so as not to affect the flight safety due to ground buildings, trees, and so on. Therefore, the height difference Δ h A between the planned track point height and the ground should meet the requirement as follows:
Δ h A Δ h min

3. Preprocessing of Map Information

Global path planning is the planning of the aircraft based on the starting point and terrain information before take-off, which requires the terrain data information between the take-off and the end point before take-off, and this information needs to be preprocessed in the three-dimensional space model. The preprocessing algorithm process is shown in Figure 4.
The digital elevation is extracted from the original digital map, and the accuracy information contained in the digital elevation is calculated by using the boundary information and the number of grids. The accuracy requirements of the required digital map are determined by the airborne information storage space and the time requirements for the trajectory planning calculation. The higher the accuracy of the digital map, the greater the storage space required, the longer the calculation time of the track planning, the denser the calculated track points, and the higher the accuracy. The original digital elevation is processed according to the selected map accuracy. If the original digital elevation resolution is too high or too low, it needs to be interpolated to change the resolution of the digital elevation map [18].
In this paper, by reading the high-resolution three-dimensional Digital Elevation Map, the accuracy of the map is adjusted by changing the resolution of the Digital Elevation Model (DEM) through a relatively smooth interpolation algorithm, and the slope value is calculated by the difference algorithm. Combined with the process of slope smoothing and graying, the flight safe surface satisfying the performance constraints such as the climbing rate and the shortest track length of the fixed-wing aircraft could be generated.

3.1. Generation of DEM

The commonly used digital terrain model (DEM) is a mathematical model that describes the parameters such as ground fluctuation and terrain height, and projects the height data of different positions to the data set of the corresponding position on the map in the form of regular gridding or other forms. The model formula is expressed as follows.
V i = g i , t i , h i , i = 1 , 2 , , n
In the above formula, g i represents the longitude corresponding to the point, t i represents the latitude corresponding to the point, and h i represents the height corresponding to the point. In order to construct a three-dimensional space with mountainous terrain, a mountain section was added to the DEM. Merge the original elevation model with mountain data to construct the final spatial 3D model, as shown in the following equation.
V i = g i , t i , max h i , h m t ( g i , t i ) , i = 1 , 2 , , n h m t ( g i , t i ) = z 0 + j = 1 n h j exp 1 a 2 t i t s C t + 1 2 t 0 t s C t + 1 2 2 1 b 2 g i g s C g + 1 2 g 0 g s C g + 1 2 2
Among them, the longitude, latitude, and height values g i , t i , h i , respectively, of every point in the topographic map are represented; the height of the highest point of the mountain is represented by z 0 , the slope setting value of the mountain in the x axial direction is represented by a , and the slope setting value of the mountain in the y axial direction is represented by b . g 0 , t 0 is the longitude and latitude of the highest point of the mountain, respectively; g s , t s indicates the minimum longitude of the map and the minimum latitude of the map, respectively; C g , C t represents the amount of data in the longitude direction and the amount of data in the latitude direction, respectively.

3.2. Adjust Map Resolution

Due to the resolution difference caused by the data source of the elevation digital model, the resolution of the elevation data may be insufficient to support the pathfinding algorithm, or the high resolution may lead to excessive data volume and low algorithm efficiency. Therefore, it is necessary to perform linear interpolation on the elevation digital model containing the mountain model to improve or reduce the map accuracy and meet the requirements of different modal pathfinding task algorithms [20,21,22]. The commonly used DEM linear interpolation algorithms are the bilinear interpolation algorithm, bicubic Hermite interpolation algorithm, and two-dimensional cubic convolution interpolation algorithm [23,24].
The interpolation is performed by the above three algorithms, and the graphical comparison results by using the original elevation data are shown in Figure A1, Figure A2, and Table A1 in Appendix B. It can be seen that the mean and variance of the differences between the two-dimensional cubic convolution interpolation and the original elevation are the smallest, and the covariance and correlation coefficient between the two-dimensional cubic convolution interpolation and the original elevation are the largest, after the resolution is reduced, indicating that the two-dimensional cubic convolution interpolation [25] has the highest correlation with the original elevation and the best restoration effect. Therefore, the 2D cubic convolution interpolation algorithm is selected as the interpolation algorithm to adjust the DEM resolution [26].

3.3. Generation of Flight Safety Surface

In order to make the planned track match the performance of the fixed-wing aircraft and avoid collision between the aircraft and the mountain obstacles during the landing process, it is necessary to explore the DEM slope calculation method in combination with the pitch angle limit of the fixed-wing aircraft. The slope of DEM is a description of the steepness of the terrain in three-dimensional space. The mathematical model of the slope description is shown as follows:
S = arctan φ g 2 h + φ t 2 h
Among them, φ g h and φ t h are the difference algorithms in the direction of g and t . The commonly used numerical analysis methods for slope calculation on DEM mainly include simple difference, second-order difference, third-order inverse distance square weight difference, third-order inverse distance weight difference, third-order unweighted difference, and frame difference. The corresponding φ g h and φ t h in the different algorithms above are shown in Table A2 in the Appendix B. In order to obtain a better slope estimation effect, we use the third-order inverse distance square weight difference algorithm to describe φ g h and φ t h .
Since the slope calculation result is the slope value represented by the radian, in order to facilitate the cost calculation in the pathfinding algorithm and shorten the storage of the digital map, this paper uses the angle to represent the slope value combined with the pitch angle limit of the aircraft, and converts the angle value into an 8-bit unsigned integer in the range of 0 ,   2 8 1 , which is shown as follows.
G g , t = 2 8 1 π 180 S g , t α min α max α min
Among them, the maximum and minimum values of the pitch angle of the civil aircraft specified for the task requirements are represented by α max , α m i n , respectively, and the general minimum value defaults to 0. G g , t can be used as a gray value to store the digital map as gray map data related to the performance of civil aircraft, which supports the cost calculation of the improved A* path planning algorithm.

4. Improved A* Path Planning Algorithm

On the premise of flying close to the ground, if the fixed-wing aircraft can fly along the track with gentle terrain, it can maintain a high speed and the task execution time will be shorter. In order to obtain a smoother and more efficient flight trajectory, an improved A* algorithm based on terrain slope is designed.
The A* algorithm in the path planning algorithm can quickly find the optimal solution and obtain the shortest path. It is undoubtedly the best algorithm for global path planning in mountainous terrain, but it still has some shortcomings. Aiming at the defects of the classical A* algorithm and the target requirements of real-time global path planning, the optimization steps are shown in Figure 5.
In Figure 5, based on the classical A* algorithm, the data storage and extraction structure in open and close tables is optimized to improve the efficiency of the algorithm. The second part is about the optimization and adjustment of the cost function. The terrain slope parameters are fused into the cost function of the A* algorithm, and different cost functions are calculated according to different requirements to obtain the planned tracks under different task modes. Finally, considering the limitation of aircraft performance, the track is post-processed to generate a three-dimensional safe track after smoothing the height and turning angle, so that the track is easy to follow.

4.1. Cost Function Optimization

Compared with the classical A* algorithm, the cost function F n is adjusted by Equation (11).
F n ( G n , H n , I n ) = ω G G n + ω H H n + ω I I n
Among them,   G n is the sum of the cost from the starting point B g , t to the current point x n , the cost that needs to be spent from the current point to the end point is expressed as H n , the cost of the newly added gray value is expressed as I n , ω H   is the weight of the estimated distance cost, ω I is the weight of the slope cost, and ω G   is the weight of the distance cost that has been spent. The calculation method of G n   can be adjusted by the grid distance in different directions, and the distance calculation method of H n   can be adjusted according to the actual model of DEM. The calculation process of the optimized cost function is shown in Algorithm A1.

4.1.1. Cumulative Cost

The grid in the DEM is not a standard rectangle, and the grid length deformation after the Gaussian model projection is worse. Therefore, different weights need to be added to the distance in the latitude and longitude directions. However, due to the different weights of different longitudes and latitudes, there will be a large amount of calculation. Therefore, in order to take the calculation accuracy and calculation efficiency into account, the deformation within the same longitude and latitude is regarded as the same, so the distance calculation is adjusted to the following formula:
δ g = L t N cos t δ t = L t N
Among them, L t is the actual distance of a latitude range, N refers to the number of grids per unit latitude or unit longitude range, t is the latitude value rounded, and δ g and δ t are the actual distance of a single grid in the longitude and latitude directions.
According to the distance calculation formula and the extended node method of the eight neighborhoods in the A* algorithm, the calculation formula of the cumulative cost G n can be described as following formula:
G n = G n 1 + L t N cos t n j = 4 , 8 1       n j = 2 , 6 cos 2 t + 1       n j = 1 , 3 , 5 , 7
Among them, n j is the eight neighborhoods index of the parent node relative to the current node, and G n 1 is the cumulative cost of the previous node. The different positions of the previous node in the eight neighborhoods will change the cost from the previous node to the current node. Since L t , t , and N are constant values, the cumulative cost will also be a constant value in the same latitude map with the same resolution. The cumulative cost change generated by a single expansion will change due to the difference in the position j of the extended node relative to the current node.

4.1.2. Estimated Cost

The estimated cost H n is the cost of estimating the current point to the target point, which can be calculated by the Manhattan distance algorithm with modified latitude and longitude difference.
H n = Δ g n , E + Δ t n , E Δ g n , E = cos t N t N g g n g E Δ t n , E = t n t E
Among them, the distance length in the direction g and the error value in the direction t will also be calculated into the distance difference Δ g n , E in the g direction, so as to synchronize with G n to eliminate the influence of Gaussian projection on the grid distance deformation.

4.1.3. Gray Cost

The gray cost I n is the cost of the influence of the terrain slope on the flight of the aircraft. Because it is difficult for the aircraft to climb at a high speed when flying near the ground, it is necessary to limit the terrain slope to find a safe and fast trajectory that can satisfy the pitch angle limit of the aircraft at a certain speed. Taking the gray cost as a part of the cost function in the pathfinding algorithm, the calculation method is the same as the method of gray value as follows:
I n = 2 8 1 π 180 S g , t α min α max α min

4.2. Optimization of Open Table and Close Table

During the execution of the A* algorithm, it is necessary to continuously add selected nodes to the close table, and continuously insert new nodes, delete root nodes, and modify existing nodes in the open table. The classical A* algorithm uses an array structure, and all points that may be traversed are placed in an array of the same open table, and sorted according to different costs.
The purpose of sorting the open table is to always be able to locate the minimum cost point, and to facilitate the insertion of new nodes, modify existing nodes, and delete the minimum point for operation. Therefore, the data structure of the close table and the open table greatly affects the traversal and search efficiency of the nodes.
This paper explores the efficient array sorting method and proposes the following improvement schemes:
(1)
An improved data structure “value table” is designed, which combines the open table and the close table. It avoids the heuristic search operation on the array matrix before sorting the open table in the classical A* algorithm, which must have to judge whether the points in the eight fields have appeared in the open table or the close table.
(2)
Using “Small Top Heap” to efficiently sort the nodes in the value table when performing operations such as inserting new nodes, deleting root nodes, and modifying nodes, to ensure that the root node in each extracted sequence is the minimum value, and the cost function gradually increases from the root node to the child node. The time complexity is O n log n and the space complexity is O 1 , which is lower than other sorting algorithms.
The following will describe the details of the value table designed to improve the search efficiency and the operation details of inserting new nodes, deleting root nodes, and modifying nodes in the value table by using the Heap sort order to improve the sorting efficiency.

4.2.1. Value Table

The information of the points stored in the traditional open table is two-dimensional coordinates. The new value table is stacked by rows and then the minimum points are stacked by columns. This sorting method can be stored for different rows, and only the column coordinates of the corresponding rows need to be stored. In the final value table, only the column coordinate index, the proxy value, and the parent node index that the original open table should store are retained. At the same time, because the parent node of the current point must be a point in the eight-neighborhood, the index of the parent node can replace the original two-dimensional coordinate index by the serial number of the eight-neighborhood. The close table stores two-dimensional coordinates and parent nodes, which are repeated with the open table, so the open table and the close table are merged. Because the open table does not calculate the nodes in the close table into the array when sorting, the value in the close table is set to a null value.
The “value table” proposed in this article combines the open table and the close table, and its data structure is shown in Figure 6.
The value table contains N arrays of v i rows, and a row array of minimum cost v min . Row array v i contains cost value F j , cumulative cost G j , the column index c o l j of current point j , and the index n j of the eight neighborhoods parent node. The minimum cost array v min contains the cost value F min , i minimum value in v i , and its row index i , among which N is the row numbers of DEM, and M is the column number of DEM.
When it comes to the situation that the parameter ( F i , G i , n i ) of node ( g i , t i ) needs to be updated, the column index j in row array v i should be retrieved at first where index j can perfectly match t i . The row array v i will be automatically sorted in ascending order by the Heap sorting method. Specific details will be shown in Algorithm A2.
Table v min stores the cost values and row index of every root node v i [ 0 ] for all ( v 1 , v 2 , . . . v N ) . When the root node value v i [ 0 ] of v i is modified, the v min [ k ] matched to the index i ( v min k . i = i ) and v min k . F min , i will also be modified later. The row array v min will be automatically sorted by F min , i ascending order by the Heap sorting method. Specific details will be shown in Algorithm A3.
According to the continuously backtracking operation of index v min 0 . i in ( v 1 [ 0 ] . n , v 2 [ 0 ] . n , . . . v N [ 0 ] . n ) after getting the final v min , the row index g i of the target point will be reached. The column t i of the target point in ( v 1 [ 0 ] . c o l , v 2 [ 0 ] . c o l , . . . v N [ 0 ] . c o l ) will be reached by continuously backtracking operation at the same time. Specific details will be shown in Algorithm A4.
The parent node of the current node must belong to one of the eight neighbor nodes of the current node in the improved A* algorithm, based on which the information of the parent node can be gotten by the eight neighbors index relative to the current node, for which the backtracking operation is feasible.

4.2.2. Heap Sorting Method

(1)
Inserting new nodes
The diagram of inserting new nodes is shown in Figure 7. Firstly, the new node is placed at the end of the array (node 9 in the graph), and then the size of the new node and the parent node are compared (node 4 and node 9 in the graph). If the new node is smaller than the parent node, the new node is exchanged with the parent node. Repeat the comparison and exchange until the parent node is less than the new node. The process of inserting a new node is the process by which the node continues to rise from the end of the binary tree.
(2)
Deleting root nodes
The schematic diagram of deleting root nodes is shown in Figure 8. Firstly, the root node and the end node are exchanged (node 1 and node 9 in Figure 8). At this time, the original root node (node 9) can be deleted, and the new root node is the original end node. The new root node is compared with the child node and exchanged with the smaller node in the child node; that is, node 1 and node 2 are exchanged in the graph until the child node is larger than this node. The process of deleting new nodes is the process of continuous sinking down of nodes from the root nodes of the binary tree.
(3)
Modifying nodes
The schematic diagram of modifying the node is shown in Figure 9. The value of the node is modified to the changed value. Owing to the reason that the modification of the node in the value table reduces the node value, the process of modifying the node is the process of the node floating up, which is the same as the process of inserting new nodes.

4.3. Trajectory Smoothing Optimization

While the coordinates of the eight neighborhoods are used in the path planning process with constant angle of path, the turning radius of the aircraft in the actual flight is limited. For the convenience of calculation, the maximum turning angle between the three waypoints is limited on the basis of the step size of about 200 m, so that the route can meet the performance requirements of the aircraft. Aiming at the processing of the turning angle, this paper designs the vertical line method to adjust the trajectory, as shown in Figure 10.
For the continuous track points A , B , and C , the turning angle at the track point B is β B . When β B > β max , it is necessary to find a point O g , t so that β O can meet the constraint of β O β max . In order to make the step size between the two track points as consistent as possible, this paper is designed to find point O on the vertical line of A C , and its corresponding relationship is:
β O = 2 β A = 2 arctan O D 1 2 A C = β max
Through the above equation, the quantitative relationship between O D and the coordinates of A and C can be obtained as follows:
O D = A D tan β A = g C g A 2 + t C t A 2 2 tan β max 2
The coordinate O can be obtained according to the midpoint D between coordinate A and the midpoint of coordinate C , line segment O D , and the coordinate axis angle β A 1 as follows:
β A 1 = arctan g C g A t C t A g D = g C + g A 2 t D = t C + t A 2 g O = g D + O D g B g D g B g D sin β A 1 t O = t D + O D t B t D t B t D cos β A 1
The trajectory after optimization is smoother; it can better meet the constraint of the turning angle of the aircraft. The pseudo-code of the improved A* algorithm is described in Algorithm A5.

5. Results

5.1. Experimental Environment

The hardware environment of the laboratory uses an 8-core,16-thread Intel I3-10th-2.4 GHZ main frequency processor, 4G running memory, and GeForce GTX 750 graphics card.

5.2. Experimental Parameters

The test parameters designed for specific global path planning tasks are shown in Table 1. The default starting point and the target point are located in the DEM range of N36E109~N37E110, the DEM resolution is 90 m, the number of grids in the longitude direction and latitude direction is 1201, the projection is Gaussian projection, and the coordinate system is the WGS-84 coordinate system. The terrain top view rendering map and three-dimensional map are shown in Figure 11.

5.3. Experimental Results and Analysis

In this paper, the classical A* algorithm and the improved A* algorithm are run separately, the planning parameters of different algorithms are counted, and the classical algorithms and the improved algorithms are compared from the aspects of planning effect and efficiency as Table 2.
Through the comparison data of the simulation results in Table 2, it can be seen that the improved A* algorithm has increased the map processing time compared with the traditional algorithm, which is due to the increase in map resolution adjustment and slope calculation in the early stage. Such time consumption is necessary, because the processing of the map facilitates the subsequent pathfinding algorithm, and the length of trajectory becomes smaller. It can be seen that in the results, the pathfinding time of the improved algorithm is 1% of the traditional algorithm, and the time is greatly shortened. Finally, the length of the track planned by the improved algorithm is also shorter than that of the traditional algorithm. Although the shortened length is not much for the whole track, it also saves the time to reach the target point to a certain extent.
Combined with the planning path in the schematic diagram of the algorithm simulation performance results between the classical algorithm and the improved algorithm in Figure 12, the point line is the classical A* algorithm, and the solid line is the improved A* algorithm. It can be seen that the path planned by the improved A* algorithm has less steering. In a valley with complex terrain, the path can also be adjusted according to the change in valley terrain to satisfy the constraint of obstacle avoidance.
When the aircraft makes an emergency landing in a complex mountain flight, the flight trajectory after trajectory smoothing optimization shows a smoother landing route with shorter track distance and landing time, as shown in Figure 13. Therefore, the improved A* algorithm improves a good solution for the emergency handling of fixed-wing aircraft in the event of bad weather conditions.

5.4. Comparative Analysis

In the previous study, the interpolation algorithm was introduced and the 2D cubic convolution interpolation selected as the best interpolation algorithm by comparing the effect of interpolation maps. In order to verify the superiority of 2D cubic convolution interpolation, this section will simulate different interpolation algorithms. The DEM obtained by different algorithms is used to find the path, and the parameters such as the pathfinding time and the path length of the path planned by different algorithms are compared. For the task requirements of different minimum track segment lengths, this paper designs four digital maps with different resolutions to meet the requirements of interpolation algorithms under different task situations.
The minimum track length of the contrast experiment design of the interpolation algorithm is 30 m, 45 m, 200 m, and 500 m for the four groups of algorithm simulation. The simulation results are shown in Table 3.
Through the setting of different minimum track segment lengths, it can be seen that when the gray image obtained by the interpolation algorithm is used for pathfinding, the map processing time of the two-dimensional cubic convolution interpolation algorithm is the smallest, followed by the two-dimensional cubic convolution interpolation, and the map processing time required for the bicubic Hermite interpolation is the longest. The three interpolation algorithms have little difference in pathfinding time under different resolutions, and most of the pathfinding time of the bicubic Hermite interpolation is relatively small; the effect of bilinear interpolation will become relatively poor as the resolution decreases, while the bicubic Hermite interpolation and the two-dimensional cubic convolution interpolation are consistent with the track length data.
By longitudinally comparing the simulation parameters obtained by the same interpolation algorithm with different resolutions, it can be seen that the higher the resolution, the less time spent on the map processing and pathfinding algorithm of the response. When the pilot actually flies, the resolution can be adjusted as needed to improve the efficiency of the algorithm. The 2D cubic convolution method can also obtain a trajectory with higher accuracy.
In the previous section, by comparing the slope calculation effect and calculation complexity of different algorithms, the third-order inverse distance square weight difference method is selected as the slope calculation method of track planning. In order to further determine its superiority, this section will simulate and test the DEM obtained by different difference algorithms, and compare the pathfinding effect of different difference algorithms. The difference algorithm simulation data comparison is shown in Table 4.
It can be seen from the simulation data that the map processing times and pathfinding times of different differential algorithms are less different, so the selection of different difference algorithms has little effect on the final performance.
In the previous section, by comparing the computational efficiency and accuracy of different distance calculation methods, the Manhattan distance is selected as the distance calculation method in the path planning. Because the latitude and longitude distances in the grid are different, the latitude and longitude distance difference are combined with the Manhattan distance.
In this section, in order to compare the effects of different distance calculation methods for path planning, we randomly generate 1000 groups of starting points and target points in the same map. We define the minimum pathfinding time (MPFT) to measure the number of minimum pathfinding algorithms for an algorithm in 1000 path plans as shown in Equation (19).
M P F T i = k = 1 1000 1 [ i = = arg min 1 j 4 { t j ( k ) } ] , i = 1 , 2 , 3 , 4
where t 1 ( k ) , t 2 ( k ) , t 3 ( k ) , t 4 ( k ) represent the path planning time under the Euclidean distance, Manhattan distance, Diagonal distance, and Chebyshev distance, respectively, in k -th simulation. 1 ( x ) is an indicative function when x is true; its value is 1, otherwise it is 0. Comparison simulation data of different distance calculation methods in M P F T are shown in Table 5.
According to the statistical results, it can be seen that among the 1000 groups of random tracks, the Manhattan distance has the shortest pathfinding time of 613 times. Therefore, it is undoubtedly the best distance calculation method in the pathfinding algorithm.

6. Discussion

The path planning method based on the improved A* algorithm proposed in this paper has significant advantages compared with the classical A* algorithm. Take the original A* algorithm (including A* [4], LPA* [27], Weighted A* [28,29], etc.) and Hybrid A* algorithm [27] as an example; their characteristics are shown in Table 6.
Through the preprocessing operation of resolution adjustment and interpolation of DEM map information, a “value table” is used to store open table node data, and the Small Top Heap structure is used to delete, add, modify, and sort nodes, which greatly reduces the calculation time. The turning angle of the two-dimensional trajectory point calculated by the A* algorithm is smoothed to ensure the planned trajectory point meets the requirements of the aircraft turning angle.
The simulation examples show that the proposed improved A* algorithm can meet the requirements of short calculation time, good smoothness of calculation trajectory, and high security. However, the current trajectory planning algorithm does not consider the underlying dynamic model of the aircraft and the requirements of control performance. In future research, it is planned to incorporate the influence of aircraft speed into the algorithm; that is, the maximum and minimum flight speed effects of the aircraft are considered in the process of planning the trajectory, so that the planned trajectory can meet the flight speed constraints of the aircraft. In addition, the weight distribution of the generation value in the improved A* algorithm and the efficient real-time re-planning obstacle avoidance in the dynamic environment are also problems worthy of further study.

7. Conclusions

This article takes the FMS system of fixed-wing civil aircraft as the background for efficient emergency landing obstacle avoidance and optimal trajectory planning in complex mountainous terrain. It mainly focuses on model generation and preprocessing in global path planning, as well as global path planning algorithms.
This article uses methods such as adjusting map resolution, calculating terrain slope, and generating safe flight surface to preprocess map information, and generates a flyable DEM grayscale map. This solves the problem of excessive data volume in the three-dimensional spatial model of the trajectory planning algorithm, and based on this, generates the grayscale cost of the path planning algorithm. A global path planning algorithm based on the improved A* algorithm combined with grayscale cost is proposed, the effectiveness of the final experimental results of the algorithm is analyzed, and the key interpolation and heuristic operator calculation methods that affect the algorithm are compared and analyzed.
The overall work of the paper is as follows:
A safe flight surface generation algorithm combining pitch angle constraint is proposed to meet the requirements of pathfinding algorithms for digital maps. Select DEM as the data model for the three-dimensional spatial model, and perform two-dimensional cubic convolutional interpolation to address the resolution issue of the digital map, resulting in a digital map that can meet the storage requirements of the pathfinding algorithm and the safety of flight surface information. To address the issue of large amounts of elevation data that are difficult to calculate, a third-order inverse distance squared difference method is used to calculate the terrain slope and generate a grayscale image.
A global path planning algorithm based on the improved A* algorithm is proposed to solve the problems of low planning efficiency and difficulty in following the trajectory. To solve the problems of large data computation and long planning time in the classical A* algorithm, value table and Small Top Heap methods are used to improve and optimize the sorting algorithm and data structure; a trajectory smoothing optimization algorithm combined with turning angle constraints is proposed to address the problem of difficult track following. And comparative analysis of key methods is conducted on the optimized algorithm.
The experimental results show that, compared to the original classic A* algorithm, the improved A* algorithm can significantly reduce the pathfinding time of the flight path, and the planned flight path is smoother and easier to follow, which meets well the requirements of efficient obstacle avoidance and emergency landing in complex mountainous terrain.

Author Contributions

Conceptualization, J.L.; methodology, Z.S. and Z.Z.; software, Z.Z. and W.Z.; validation, W.Z., Y.X. and J.H.; formal analysis, Z.Y.; investigation, J.L. and X.W.; resources, X.W.; data curation, C.Y.; writing original draft preparation, Z.Z.; writing review and editing, Z.S.; supervision, J.L.; project administration, C.Y.; funding acquisition, C.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Key Research and Development Program of China, grant number 2021YFB1600603. The APC was funded by the National Key Research and Development Program of China.

Data Availability Statement

The data are not publicly available due to intellectual property rights of the code, privacy, and national geographic information security considerations. Some important algorithm effect comparison information can be downloaded at: https://postimg.cc/gallery/dLb25DK, accessed on 9 October 2023.

Acknowledgments

Thanks for Jing Li’s guidance and support from her laboratory students.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Appendix A

Algorithm A1: Cost Function
Input :   DEM   matrix   G g , t , ( g 0 , t 0 ) ,   start   point   ( g E , t E ) ,   target   point   ( g i , t i ) ,
weight   of   the   cost   ω G ,   ω H ,   ω I
Output :   Cost   value   F i
  • Calculation   of   gray   cost   I i = I i ( G g i , t i )
  • Calculation   of   estimated   cost   H i = H i ( ( g i , t i ) , ( g E , t E ) )
  • Calculation   of   cumulative   cost   G i = G i ( G g n i , t n i , ( g i , t i ) , ( g n i , t n i ) )
  • Calculation   of   cost   value   F i = ω G G i + ω H H i + ω I I i
Algorithm A2: Modify v
Input: node ( g i , t i ) ; cost value and cumulative cost of current node ( F i , G i ) ; column of current node C o l i ; parent node index n i in eight neighbors relative to current node; value table v : ( v 1 , v 2 , v N ) ; M
Output: v g i after being modified, value table v : ( v 1 , v 2 , v N )
  •   for  j = 1 : M  do
  •            if v g i [ j ] . C o l = = t i do
  •                     if v g i [ j ] . F > F i do
  •                              v g i [ j ] . F = F i
  •                              v g i [ j ] . G = G i
  •                              v g i [ j ] . n = n i
  •                     endif
  •                     continue
  •           endif
  •   endfor
  •    v g i is sorted v g i sort ( v g i , F ) in ascending order through F by Heap sorting method
Algorithm A3: Modify v min
Input: Value table ( v 1 , v 2 , v N ) ; before modified.
Output: v min after modified
  • num = 0
  • for  i = 1 : N  do
  • if   v i 0 0  do
  • k =  find  v m i n . i = i
  • if k does not exist
  • n u m = n u m + 1
  • v min n u m . F min , i = v i 0 . F
  • Using Small Top Heap sort to float v min k . F min , i   es.
  • elseif  k  exist do
  • if         v i 0 . F < v min k . F min , i
  • v min k . F min , i = v i 0 . F
  • Small Top Heap sort to float v min k . F min , i   es.
  • endif
  • endif
  • endif
  • endfor
Algorithm A4: Backtracking
Input: Value table ( v 1 , v 2 , v N , v min ) ; start point ( g 0 , t 0 ) ; target point ( g E , t E )
Output: Trajectory point sets P a t h from start point to target point
  • g p = v min [ 0 ] . i , t p = v g p [ 0 ] . c o l , P a t h = [ g p , t p ]
  • while  ( g p , t p ) ( g E , t E )  do
  •              n p v g p [ 0 ] . n
  •              g p = n ( n p )
  •              t p v g p [ 0 ] . c o l
  •              P a t h P a t h [ g p , t p ]
  • Endwhile
Algorithm A5: Improved A* algorithm
Input: DEM matrix G g , t ; number of rows N ; number of columns; value table
( v 1 , v 2 , v N , v min ) ; start point ( g 0 , t 0 ) ; target point ( g E , t E ) ; maximum turning angle
β max ; cost weight ω G , ω H , ω I ; final planning trajectory point sets P a t h = [ ]
Output: Trajectory point sets P a t h
  • Initialize the value table  ( v 1 , v 2 , v N , v min ) , current point p ( g 0 , t 0 ) , puts v i all the nodes of j into F j Inf , G j 0 , c o l j j , n j Null , Small Top Heap p _ a r r [ p ] (That means p _ a r r [ 0 ] = arg   min ( g p , t p ) p _ a r r [ ( g p , t p ) ] ).
  • while  v g E [ 0 ] . c o l t E  do
  •        for ( g p , t p ) p _ a r r [ 0 ] do
  •             Getting eight neighbor points { ( g 1 , t 1 ) , ( g 2 , t 2 ) , ( g 8 , t 8 ) } of ( g p , t p )
  •             Insert { ( g 1 , t 1 ) , ( g 2 , t 2 ) , ( g 8 , t 8 ) } into p _ a r r
  • Delete ( g p , t p ) from p _ a r r
  •             for i = 1 : 8 do
  •                   if v g i [ j ] . F = = Inf , v g i [ j ] . c o l = t i  do
  •   F i = CostFunction ( G g , t , ( g i , t i ) , ( g 0 , t 0 ) , ( g E , t E ) , ω G , ω H , ω I )
  •                           v g i ModifyV ( ( g i , t i ) , v g i , ( F i , G i , C o l i , n ( ( g p , t p ) ) ) )
  •                   endif
  •             endfor
  •      endfor
  •       v min ModifyVmin ( ( v 1 , v 2 , v N , v min ) )
  • endwhile
  • P a t h = Backtracking ( ( g 0 , t 0 ) , ( g E , t E ) , ( v 1 , v 2 , v N , v min ) )
  • Trajectory smoothing optimization for P a t h using maximum turning angle β max

Appendix B

For the three DEM interpolation algorithms: Bilinear interpolation, Bicubic Hermite interpolation, and 2D cubic convolution interpolation, this paper selects the original DEM data with a resolution of 90 M between 40.4583° N~40.6667° N and 113.3333° E~113.5417° E, and then performs different interpolation algorithms. The processing results are statistically calculated to better obtain the most suitable interpolation algorithm. The processing results are shown in Figure A1 and Figure A2.
Figure A1. The refinement effect comparison of interpolation algorithm. (a) The original digital elevation map; (b) Bilinear interpolation; (c) Bicubic Hermite interpolation; (d) 2D cubic convolution interpolation. (The z-axis represents the height in meters).
Figure A1. The refinement effect comparison of interpolation algorithm. (a) The original digital elevation map; (b) Bilinear interpolation; (c) Bicubic Hermite interpolation; (d) 2D cubic convolution interpolation. (The z-axis represents the height in meters).
Electronics 12 05047 g0a1
Figure A2. Interpolation effect diagram with more refined resolution compared to Figure A1. The refinement effect comparison of interpolation algorithm. (a) The original digital elevation map; (b) Bilinear interpolation; (c) Bicubic Hermite interpolation; (d) 2D cubic convolution interpolation. (The z-axis represents the height in meters).
Figure A2. Interpolation effect diagram with more refined resolution compared to Figure A1. The refinement effect comparison of interpolation algorithm. (a) The original digital elevation map; (b) Bilinear interpolation; (c) Bicubic Hermite interpolation; (d) 2D cubic convolution interpolation. (The z-axis represents the height in meters).
Electronics 12 05047 g0a2aElectronics 12 05047 g0a2b
In order to compare more quantitatively compared to graphical comparison results, the results of the three algorithms are statistically compared with the original elevation, and the effects of different interpolation algorithms are compared as shown in Table A1.
Table A1. Data comparison analysis table of interpolation algorithm.
Table A1. Data comparison analysis table of interpolation algorithm.
Interpolation
Algorithm
Mean
(Difference)
Variance (Difference)CovarianceCorrelation Coefficient
Bilinear −3.3265496.32426729.25430.9646
Bicubic Hermite −3.0499519.55766700.76780.9628
2D cubic convolution −3.0025434.33596746.22200.9693
The corresponding φ g h and φ t h in different difference algorithms such as simple difference, second-order difference, third-order inverse distance square weight difference, third-order inverse distance weight difference, third-order unweighted difference, and frame difference are shown in Table A2.
Table A2. Comparison table of φ g h and φ t h in simple difference, second-order difference, third-order inverse distance square weight difference, third-order inverse distance weight difference, third-order unweighted difference, and frame difference algorithms.
Table A2. Comparison table of φ g h and φ t h in simple difference, second-order difference, third-order inverse distance square weight difference, third-order inverse distance weight difference, third-order unweighted difference, and frame difference algorithms.
Algorithms φ g h φ t h
Simple difference h 0 h 4 δ g h 0 h 2 δ t
Second-order difference h 4 h 8 2 δ g h 2 h 6 2 δ t
Third-order inverse distance square weight difference h 1 h 3 + 2 h 8 h 4 + h 7 h 5 8 δ g h 5 h 3 + 2 h 6 h 2 + h 7 h 1 8 δ t
Third-order inverse distance weight difference h 1 h 3 + 2 h 8 h 4 + h 7 h 5 4 + 2 2 δ g h 5 h 3 + 2 h 6 h 2 + h 7 h 1 4 + 2 2 δ t
Third-order unweighted difference h 1 h 3 + h 8 h 4 + h 7 h 5 6 δ g h 5 h 3 + h 6 h 2 + h 7 h 1 6 δ t
Frame difference h 1 h 3 + h 7 h 5 4 δ g h 5 h 3 + h 7 h 1 4 δ t
The variable h i , i = 1,2 8 is the eight neighborhoods elevation of the current point elevation value h 0 , and δ g , δ t represents the unit minimum distance between the adjacent grid center points in different directions. The order, position, and symbol of the eight neighborhoods are shown in Figure A3.
Figure A3. Elevation eight neighborhood diagram.
Figure A3. Elevation eight neighborhood diagram.
Electronics 12 05047 g0a3
In order to compare different difference algorithms, this paper selects the original DEM with a resolution of 30 m between 27.776994° N~28.167096° N and 91.696574° E~92.149718° E, as shown in Figure A4. The original elevation model is processed by simple difference, second-order difference, third-order inverse distance square weight difference, third-order inverse distance weight difference, third-order unweighted difference, and frame difference. The processing effect of the difference algorithm is shown in Figure A5. It can be seen that the grayscale images obtained by the third-order inverse distance weight difference, the third-order unweighted difference, and the border difference are better, and the ridges and valleys can be well distinguished by the grayscale and form a continuous path.
Figure A4. Original digital elevation topographic map.
Figure A4. Original digital elevation topographic map.
Electronics 12 05047 g0a4
Figure A5. Different differential difference algorithms to deal with the effect diagram. (a) Simple difference; (b) Second-order difference; (c) Third-order inverse distance square weight difference; (d) Third-order inverse distance weight difference; (e) Third-order unweighted difference; (f) Frame difference.
Figure A5. Different differential difference algorithms to deal with the effect diagram. (a) Simple difference; (b) Second-order difference; (c) Third-order inverse distance square weight difference; (d) Third-order inverse distance weight difference; (e) Third-order unweighted difference; (f) Frame difference.
Electronics 12 05047 g0a5aElectronics 12 05047 g0a5b

References

  1. Lv, K.N. Trajectory Optimization and Control Technology of Civil Aviation Vehicle; Nanjing University of Aeronautics and Astronautics: Nanjing, China, 2017; Volume 1, pp. 15–96. [Google Scholar]
  2. Zhou, Q.H. Development of airborne traffic collision avoidance and terrain collision avoidance systems. Avion. Technol. 1997, 3, 45–49. [Google Scholar]
  3. Hu, Z.; Shen, C.L. Flight path planning based on digital map preprocessing. J. Nanjing Univ. Aeronaut. Astronaut. 2002, 4, 382–385. [Google Scholar]
  4. Hart, P.E.; Nilsson, N.J.; Raphael, B. A Formal Basis for the Heuristic Determination of Minimum Cost Paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar] [CrossRef]
  5. Luo, R.C.; Lai, C.C. Enriched indoor map construction based on multisensor fusion approach for intelligent service robot. IEEE Trans. Ind. Electron. 2012, 59, 3135–3145. [Google Scholar] [CrossRef]
  6. Raja, P.; Pugazhenthi, S. Optimal path planning of mobile robots: A review. Int. J. Phys. Sci. 2012, 7, 1314–1320. [Google Scholar] [CrossRef]
  7. Jaishankar, S.; Pralhad, R.N. 3D off-line path planning for aerial vehicle using distance transform technique. Procedia Comput. Sci. 2011, 4, 1306–1315. [Google Scholar] [CrossRef]
  8. Meng, H.; Xin, G. UAV route planning based on the genetic simulated annealing algorithm. In Proceedings of the 2010 IEEE International Conference on Mechatronics and Automation, Xi’an, China, 4–7 August 2010; pp. 788–793. [Google Scholar]
  9. LaValle, S.M. Planning Algorithms; Cambridge University Press: New York, NY, USA, 2006. [Google Scholar]
  10. Cui, S.G.; Wang, H.; Yang, L. A Simulation Study of A-star Algorithm for Robot Path Planning. In Proceedings of the 16th International Conference on Mechatronics Technology, Tianjin, China, 16 October 2012; pp. 506–510. [Google Scholar]
  11. Duchoň, F.; Babinec, A.; Kajan, M.; Beňo, P.; Florek, M.; Fico, T.; Jurišica, L. Path planning with modified a star algorithm for a mobile robot. Procedia Eng. 2014, 96, 59–69. [Google Scholar] [CrossRef]
  12. Sudhakara, P.; Ganapathy, V. Trajectory planning of a mobile robot using enhanced A-star algorithm. Indian J. Sci. Technol. 2016, 9, 1–10. [Google Scholar] [CrossRef]
  13. Pal, A.; Tiwari, R.; Shukla, A. Modified A* algorithm for mobile robot path planning. Soft Comput. Tech. Vis. Sci. 2012, 395, 183–193. [Google Scholar]
  14. ElHalawany, B.M.; Abdel-Kader, H.M.; TagEldeen, A.; Elsayed, A.E.; Nossair, Z.B. Modified A* algorithm for safer mobile robot navigation. In Proceedings of the 2013 5th International Conference on Modelling, Identification and Control (ICMIC), Cairo, Egypt, 31 August 2013–2 September 2013; pp. 74–78. [Google Scholar]
  15. Durán-Delfín, J.E.; García-Beltrán, C.D.; Guerrero-Sánchez, M.E.; Valencia-Palomo, G.; Hernández-González, O. Modeling and Passivity-Based Control for a convertible fixed-wing VTOL. Appl. Math. Comput. 2024, 461, 128298. [Google Scholar] [CrossRef]
  16. Jeddisaravi, K.; Alitappeh, R.J.; Guimarães, F.G. Multi-objective mobile robot path planning based on a search. In Proceedings of the 2016 6th International Conference on Computer and Knowledge Engineering (ICCKE), Mashhad, Iran, 13–14 October 2016; pp. 7–12. [Google Scholar]
  17. Asseo, S.J. Terrain following/terrain avoidance path optimization using the method of steepest descent. In Proceedings of the IEEE 1988 National Aerospace and Electronics Conference, Dayton, OH, USA, 23–27 May 1988; pp. 1128–1136. [Google Scholar]
  18. Zhang, X.; Hu, X.; Xie, G. Research of the Digital Map Disposing Technology in Route Planning. Fire Control Command Control 2012, 37, 4. (In Chinese) [Google Scholar] [CrossRef]
  19. Li, X. Studying on the Integrative Algorithm of the TF/TA Optimal Trajectory Planning; Northwestern Polytechnical University: Xi’an, China, 2003; Volume 3, pp. 45–100. [Google Scholar]
  20. Kienzle, S. The effect of DEM raster resolution on first order, second order and compound terrain derivatives. Trans. Gis 2010, 8, 83–111. [Google Scholar] [CrossRef]
  21. Koenderink, J.J. The structure of images. Biol. Cybern. 1984, 50, 363–370. [Google Scholar] [CrossRef] [PubMed]
  22. Li, X.; Orchard, M.T. New edge-directed interpolation. IEEE Trans. Image Process. 2001, 3, 36–50. [Google Scholar]
  23. Skidmore, A.K. A comparison of techniques for calculating gradient and aspect from a gridded digital elevation model. Int. J. Geogr. Inf. Sci. 1989, 3, 32–45. [Google Scholar] [CrossRef]
  24. Shi, W.Z.; Li, Q.Q.; Zhu, C.Q. Estimating the propagation error of DEM from higher-order interpolation algorithms. Int. J. Remote Sens. 2005, 26, 3069–3084. [Google Scholar] [CrossRef]
  25. Zhang, Z.; Shen, D.; Tang, X.L. Review of route planning for combat aircraft penetration. Aero Weapon. 2022, 29, 11–19. [Google Scholar]
  26. Zhao, M.Q.; Kang, T.T.; Wang, Q. Research on slope algorithm applicability based on 1:50000 digital elevation model. In Proceedings of the 2011 International Conference on Ecological Protection of Lakes-Wetlands-Watershed and Application of 3S Technology (EPLWW3S 2011 V2), Nanchang, China, 25 June 2011. [Google Scholar]
  27. Kurzer, K. Path Planning in Unstructured Environments: A Real-time Hybrid A* Implementation for Fast and Deterministic Path Generation for the KTH Research Concept Vehicle. Master’s Thesis, KTH Royal Institute of Technology, Stockholm, Sweden, 2016. [Google Scholar] [CrossRef]
  28. Koenig, S.; Likhachev, M.; Furcy, D. Lifelong Planning A. Artif. Intell. 2004, 155, 93–146. [Google Scholar] [CrossRef]
  29. Rüdiger, E.; Drechsler, R. Weighted A* search—Unifying view and application. Artif. Intell. 2009, 173, 1310–1342. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of flight distance cost.
Figure 1. Schematic diagram of flight distance cost.
Electronics 12 05047 g001
Figure 2. Maximum pitch angle constraint.
Figure 2. Maximum pitch angle constraint.
Electronics 12 05047 g002
Figure 3. Maximum turning angle constraint.
Figure 3. Maximum turning angle constraint.
Electronics 12 05047 g003
Figure 4. Flow chart of digital map preprocessing algorithm.
Figure 4. Flow chart of digital map preprocessing algorithm.
Electronics 12 05047 g004
Figure 5. Optimization steps of global path planning algorithm.
Figure 5. Optimization steps of global path planning algorithm.
Electronics 12 05047 g005
Figure 6. Value table structure.
Figure 6. Value table structure.
Electronics 12 05047 g006
Figure 7. Inserting a new node.
Figure 7. Inserting a new node.
Electronics 12 05047 g007
Figure 8. Deleting root nodes.
Figure 8. Deleting root nodes.
Electronics 12 05047 g008
Figure 9. Modifying nodes.
Figure 9. Modifying nodes.
Electronics 12 05047 g009
Figure 10. The schematic diagram of the vertical line method.
Figure 10. The schematic diagram of the vertical line method.
Electronics 12 05047 g010
Figure 11. Comparison maps obtained before and after preprocessing of map information. (a) Top view rendering of original terrain; (b) DEM after map information preprocessing.
Figure 11. Comparison maps obtained before and after preprocessing of map information. (a) Top view rendering of original terrain; (b) DEM after map information preprocessing.
Electronics 12 05047 g011
Figure 12. The comparison of the simulation results between the classical A* algorithm and the improved A* algorithm.
Figure 12. The comparison of the simulation results between the classical A* algorithm and the improved A* algorithm.
Electronics 12 05047 g012
Figure 13. Comparison of aircraft landing trajectory after trajectory smoothing optimization. The blue point line in the figure is the curve before the trajectory optimization, and the red line is the curve after the trajectory optimization.
Figure 13. Comparison of aircraft landing trajectory after trajectory smoothing optimization. The blue point line in the figure is the curve before the trajectory optimization, and the red line is the curve after the trajectory optimization.
Electronics 12 05047 g013
Table 1. Algorithm simulation default parameter table.
Table 1. Algorithm simulation default parameter table.
ParameterValueParameterValue
Longitude of starting point109.790833°Longitude of target point109.371667°
Latitude of starting point36.718333°Latitude of target point36.091667°
Gray image minimum slopeMinimum path segment length200 m
Gray image maximum slope30°Interpolation algorithm2D cubic convolution
Minimum terrain clearance altitude800 mDifference algorithmThird-order inverse distance Squared weight difference
Maximum terrain clearance altitude12,600 mDistance typeManhattan distance
Minimum pitch angleCost weight of G0.6
Maximum pitch angle10°Cost weight of H0.2
Maximum turning angle10°Cost weight of I0.2
Table 2. Comparison simulation data of algorithm before and after improvement.
Table 2. Comparison simulation data of algorithm before and after improvement.
Simulation DataClassical A* AlgorithmImproved A* Algorithm
Map processing time/s0.06690.4220
Path planning time/s412.62514.4212
Length of trajectory/m93,62093,225
Table 3. Comparison simulation data of different minimum track length and interpolation algorithm.
Table 3. Comparison simulation data of different minimum track length and interpolation algorithm.
Minimum Track LengthSimulation DataBilinearBicubic Hermite2D Cubic
Convolution
30 mMap processing time/s51.1584.8338.04
Path planning time/s1614.141618.771859.43
Length of trajectory/m97,50998,48698,486
45 mMap processing time/s29.5453.1217.51
Path planning time/s831.19784.20742.94
Length of trajectory/m97,02997,09597,095
200 mMap processing time/s1.472.520.61
Path planning time/s7.067.807.91
Length of trajectory/m93,87993,24193,241
500 mMap processing time/s0.200.310.08
Path planning time/s0.640.610.60
Length of trajectory/m83,15684,03984,039
Table 4. Comparison simulation data of different difference algorithms.
Table 4. Comparison simulation data of different difference algorithms.
Difference AlgorithmMap Processing Time/sPath Planning Time/sLength of
Trajectory/m
Simple difference0.404.1893,314
Second-order difference0.394.9293,319
Third-order inverse distance square weight difference0.414.8493,241
Third-order inverse distance weight difference0.404.6794,238
Third-order unweighted difference0.394.8694,183
Frame difference0.404.5494,352
Table 5. Comparison simulation data of different distance calculation methods in MPFT.
Table 5. Comparison simulation data of different distance calculation methods in MPFT.
Euclidean DistanceManhattan DistanceDiagonal DistanceChebyshev Distance
12861319240
Table 6. Comparison of different A* algorithms.
Table 6. Comparison of different A* algorithms.
AlgorithmProcessed Map
Format
Sorting Algorithm of Node DataStorage Structure of Node DataSmooth Optimization Method of Trajectory
Original A*Digital raster Graphics (DRG)Insertion sorting or other sorting methodsOpen table and close tableNo optimization
Hybrid A*Consider kinematic corner constraints, using Dubbins curves, or Reeds Shepp curves for trajectory smoothing
Improved A*DEM after preprocessing of mapSmall Top Heap sortingValue tableConsider turning angle constraint real-time midline optimization
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, J.; Yu, C.; Zhang, Z.; Sheng, Z.; Yan, Z.; Wu, X.; Zhou, W.; Xie, Y.; Huang, J. Improved A-Star Path Planning Algorithm in Obstacle Avoidance for the Fixed-Wing Aircraft. Electronics 2023, 12, 5047. https://doi.org/10.3390/electronics12245047

AMA Style

Li J, Yu C, Zhang Z, Sheng Z, Yan Z, Wu X, Zhou W, Xie Y, Huang J. Improved A-Star Path Planning Algorithm in Obstacle Avoidance for the Fixed-Wing Aircraft. Electronics. 2023; 12(24):5047. https://doi.org/10.3390/electronics12245047

Chicago/Turabian Style

Li, Jing, Chaopeng Yu, Ze Zhang, Zimao Sheng, Zhongping Yan, Xiaodong Wu, Wei Zhou, Yang Xie, and Jun Huang. 2023. "Improved A-Star Path Planning Algorithm in Obstacle Avoidance for the Fixed-Wing Aircraft" Electronics 12, no. 24: 5047. https://doi.org/10.3390/electronics12245047

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop