Abstract
The path planning of autonomous land vehicle has become a research hotspot in recent years. In this article, we present a novel path planning algorithm for an autonomous land vehicle. According to the characteristics of autonomous movement towards the autonomous land vehicle, an improved A-Star path planning algorithm is designed. The disadvantages of using the A-Star algorithm for path planning are that the path planned by the A-Star algorithm contains many unnecessary turning points and is not smooth enough. Autonomous land vehicle needs to adjust its posture at each turning point, which will greatly waste time and also will not be conducive to the motion control of autonomous land vehicle. In view of these shortcomings, this article proposes a new heuristic function combined with the artificial potential field method, which contains both distance information and obstacle information. Our proposed algorithm shows excellent performance in improving the execution efficiency and reducing the number of turning points. The simulation results show that the proposed algorithm, compared with the traditional A-Star algorithm, makes the path smoother and makes the autonomous land vehicle easier to control.
Keywords
Introduction
In recent years, autonomous land vehicle (ALV) has been widely used in emergency rescue, port freight, logistics distribution, and other fields. The development of ALVs is based on path planning, vehicle control, environment perception, and so on. 1 Path planning occupies a core position in the fields of ALV, the efficiency of path planning algorithms directly affects the efficiency of ALV’s path finding, and implementation of planning capabilities determines whether the ALV can accomplish the tasks efficiently and safely. 2,3 On the basis of path planning, there are many extended studies. For example, fully sharing the environmental information between different vehicles in autonomous driving is not only conductive to the realization of more adequate path planning but also can ensure higher security level. 4 In addition, the trajectory prediction of dynamic obstacles is also a hot topic of extended research. 5 All these studies have expanded the application and development direction of path planning. In the last decades, lots of path planning algorithms are proposed, such as Floyd algorithm, 6 Dijkstra algorithm, 7 A-Star algorithm, 8 colony algorithm, 9 particle swarm algorithm, 10 and artificial potential field., 11,12
Due to the characteristics of fast search speed, the A-Star algorithm has been widely applied in solving the shortest path problem of the static road network. 13 Derived from Dijkstra algorithm, A-Star introduced heuristic function to enable the fast node search speed. However, the heuristic function of the A-Star algorithm only considered distance information, which leads to redundant expansion nodes in the pathfinding process. In view of the shortcomings of the A-Star algorithm, a large number of scholars have proposed corresponding improved algorithms. Hongbin et al. 14 proposed a hybrid algorithm combining an improved A-Star algorithm and a dynamic window method, which has good performance in complex dynamic environment. Chen et al. 15 defined the valuation function as an exponential decay method to reduce redundant expansion. Wang et al. 16 proposed an efficient full area coverage path planning algorithm based on grid mapping. Zhang et al. 17 considered the actual application scenarios of unmanned boats and improved the evaluation function by adding the corner loss term, so that the final path has the smallest corner and reduces the loss on the path. Wu et al. 18 improved the evaluation function of the A-Star by establishing a taboo table to quickly and effectively implement path planning. Lin et al. 19 improved the real-time performance of the A-Star by introducing the influence of the parent node but did not consider the influence of the value of weight when weighting the evaluation function.
However, the above algorithms only consider the position of the obstacle in the global map but not consider the number of obstacles and distance around the ALV in the path planning process, which is not sufficient for the use of map information. Aiming at the problem of unsmooth path of the A-Star algorithm, we propose a new heuristic function, which is combined with the artificial potential field to optimize the path and improve search efficiency. When calculating heuristic items, our method considers not only the distance from the current position to the target position but also the obstacle information around the current position. The simulation experiment shows that our algorithm performances better than A-Star. Comparing the A-Star algorithm and proposed algorithm in the grid map environment, the result verifies that our method is more conducive to motion control and the planned path is smoother.
Establishment of environment model for ALV path planning
For path planning, environment modeling is a crucial step. According to establish environment model, the real environmental scene is converted into an abstract scene that can be processed by the robot, which is convenient for the robot to carry out path planning. Common map representation methods include topology modeling method, outline map method, and grid map method.
We use the grid map method to establish a grid map to record the obstacle grids and path information of ALV. We define the attributes of the grid, store information such as the parent node of the track and whether the grid is an obstacle and use a matrix to map the information of each node in the grid map. Then binarize the grid map, define 0 as the passable grids and 1 as the obstacle grids to obtain the binarized map. Figure 1 shows an example of the grid map. The black grid represents obstacles, whereas the white grid is the passable area. In the environment map of rasterization model, the map is divided into several closely connected small grids, and each grid represents a node of the map. Each node in the map only constitutes a path with eight adjacent nodes. Therefore, in the grid map, the movement direction of the ALV is generally only 8, which are the directions of the 8 neighboring nodes of the grid map. 20

Grid map.
Background
A-Star algorithm
A-Star algorithm was introduced by Hart et al. 21 and now is widely used in the fields of the shortest path problem. As a typical heuristic search algorithm, the A-Star algorithm evaluates nodes through heuristic search, which improves the efficiency of node search and has better performance and accuracy. 21 The heuristic search using the valuation function, and the valuation function is expressed as follows
where

The pathfinding process of the A-Star algorithm.
Artificial potential field
Khatib introduced the artificial potential field method in 1986. 11 The artificial potential field method constructs a gravitational potential field with the target position as the center. 23 The value of the attractive potential field increases with the increase of the distance between the ALV and the target, and the direction is from the autonomous vehicle to the target. The mathematical expression of the attractive potential field function is as follows
With the current position of the ALV as the center, a repulsive force field is constructed, which decreases as the distance between the obstacle and the ALV increases, and the direction is from the obstacle to the ALV. The mathematical expression of the repulsive force field function is as follows
where
These two potential fields together form an abstract artificial potential field. The calculation of the potential field force of the artificial potential field method is shown in Figure 3 In the artificial potential field, for a certain point in space, the ALV will be subjected to a force with a certain magnitude and direction. The artificial potential field method abstracts the motion of the ALV as the motion dragged by this virtual force.

Schematic diagram of artificial potential field method.
Method
In application scenarios, the ALV first plans a path in the environment map and then proceeds along with the path. However, when using the traditional A-Star algorithm in path planning, the planned path contains too many turning points and the path is not smooth enough. As a result, the ALV needs to make many unnecessary posture adjustments during the path tracking process to adjust the moving direction of the ALV. When the vehicle moves along the winding path, it will slow the speed of the ALV, and the excessive posture adjustment can easily disrupt the balance of the ALV. To solve those problems mentioned above, this article combines the idea of artificial potential field method to improve the A-Star algorithm and proposes a new heuristic function construction method. In our method, the influence of surrounding obstacles and target points on the ALV is also included in the estimated cost. The new valuation function is expressed as follows
where
Improved distance heuristics
The heuristic term
For the selection of heuristic term
In addition, there are two extreme cases: If If
If a heuristic function that is closer to the actual loss can be found, this will improve the search efficiency. The function to estimate the path cost of the A-Star algorithm generally takes the Manhattan distance; in addition, there are Euclidean distance and diagonal distance.
Suppose there are two points P and Q in rectangular coordinates, P point coordinates are
Euclidean distance can be expressed as follows
The diagonal distance can be expressed as follows
Considering that the square grid map has eight moving directions, there is a diagonal movement, and the diagonal distance is closer to the actual path cost. To simply verify the influence of these three distance selection methods on the A-Star algorithm, we compared the search speed and the number of search grid nodes of the A-Star algorithm under different distance selection methods through experimental simulations. A verification experiment was carried out on a grid map of size

Experimental results of the different distance selection methods. (a) Manhattan distance, (b) Euclidean distance, and (c) Diagonal distance.
Experimental results of the influence of distance selection method on algorithm performance.
As the experimental results shown, because the estimated cost calculated by using the Manhattan distance method is greater than the cost in the actual path, the search time is the fastest and the number of searched grids is the least. However, the search range is the smallest and failed to search to the shortest path, the length of the path planned in this way is the longest. The estimated cost that is calculated using the Euclidean distance method is smaller than the cost in the actual path, so the number of grid nodes is the largest among the three; the shortest path can be searched, but the search time is the largest. The diagonal distance is closer to the actual length. Therefore, as the experiment shown, the number of grid nodes that are searched using Diagonal distance is moderate, compared to Manhattan distance and Euclidean distance.
The diagonal distance can find the shortest path while the running time is moderate. Therefore, we use the diagonal distance as the distance heuristic
where xn denotes the abscissa of the current position n, yn denotes the ordinate of the current position n, xe denotes the abscissa of the target, and ye denotes the ordinate of the target.
Obstacle heuristics
According to the principle of artificial potential field method, obstacles will produce repulsive force, which is decreases as the distance between obstacles and nodes increases, and the target position generates attraction, which is proportional to the distance from the node to the target. In this article, the environment map is constructed as a grid map, and the position of each grid is represented by the coordinates. Therefore, the calculation method of the potential field force is different from the artificial potential field method.
In the rasterized map environment, the calculation formula of repulsion is as follows, and the direction is from the obstacle i to the node k
where k denotes the current position and the coordinates are
The formula for calculating the magnitude of attraction is shown in Eq. (11), and the direction is from the node k to the target point d
where k denotes the current position and the coordinates are
After the attraction and repulsion are obtained, the combined force of the attraction and repulsion can be calculated to obtain the potential field force experienced by the current grid node k. The calculation formula is as follows
here α and
The problem of local minima is inevitable in the artificial potential field method. When the calculated
Since the A-Star algorithm is based on rasterized map information, the eight-neighbor search method is used when searching for nodes, and only grids in eight directions are considered when searching for paths. The potential field force calculated in the above section is any direction. So, when calculating the
The calculation process is as follows: First calculate the unit vector from the point k to the adjacent node n, as shown in the following equation
Then calculate the angle between
The calculation formula of
Figure 5 shows the calculation diagram of the current position k when expanding its adjacent node n. First, calculate the repulsion

Schematic diagram of calculating potential field force and its projection.
The algorithm steps are as follows:
Path smoothing
To obtain a smooth path, commonly used methods include spline function and Bezier function. B-spline is an extension of Bezier curve. The polynomial degree of the B-spline can be independent of the number of control points, while the degree of the Bezier curve and the control points are closely related. Therefore, we use the quartic B-spline curves to smooth the planned path. Given
The mathematical expression of the basis function is as follows
Experiment
In this section, three sets of grid maps are designed for experimental verification, and each grid in the grid map represents the actual environment of
In the first map, the given start position coordinates are

Comparison results of experiment in
Comparison results of A-Star algorithm and our method in
As shown in Figure 6, the A-Star algorithm passes between a piece of obstacles close to the endpoint. The improved A-Star algorithm avoids crossing obstacles and chooses to detour from the side. There is almost no unnecessary turning point in the planned path. From Table 2, we can see that the path lengths are both 323.1 cm, but the path planned by the A-Star requires a total turn of 540°, while our proposed algorithm only needs a turn of 315°, which greatly reduces turning costs. After the path smoothing, the path of A-Star is shortened to 294.4 cm, and the turning angle is reduced to 219.09°. The path planed by our method is shortened to 303.3 cm, and the turning angle is reduced to 140.86°. Since our algorithm is more complex, the calculation time is longer than that of A-Star. The A-Star algorithm took 3.8 ms, while our algorithm took 5.2 ms.
In the second set of experiments, we selected a more complex environment. The ALV needs to bypass obstacles many times to reach the given target point. The given start position coordinates are (24,17) and the target position coordinates are (4,16).
The original planned path is shown in Figure 7(a). Figure 7(b) shows the smoothed path. The comparison between A-Star and our proposed algorithm planning path is presented in Table 3.

Comparison results of experiment in
Comparison results of A-Star algorithm and our method in
As shown in Figure 7, the path planned by the improved A-Star is very straight, and there are few of unnecessary inflection points. Table 4 presents that the path lengths planned by both are 906.7 cm, but the path planned by the A-Star requires a total turn of 1080°, while our proposed algorithm only needs a turn of 540°. After the path smoothing, the path of A-Star is shortened to 851.6 cm, and the turning angle is reduced to 450.64°. The path planned by our method is shortened to 863.8 cm, and the turning angle is reduced to 270.16°. From the experimental results, we can see that our algorithm has better performance than A-Star. Since our algorithm is more complex, the calculation time is longer than that of A-Star. The A-Star algorithm took 99.6 ms, while our algorithm took 110.1 ms.
Comparison results of A-Star algorithm and our method in ROS environment.
ROS: reactive oxygen species.
We also experimented our algorithm on reactive oxygen species. Use the Gmapping method to create a grid map as shown in Figure 8, and the map resolution is

Comparison results of experiment in ROS environment. (a) Comparison of ours (red) and A-Star (blue) and (b) comparison of ours (red) and A-Star (blue) after smoothing. ROS: reactive oxygen species.
The original planned path is shown in Figure 8(a), where the red are the path planned by our algorithm and the blue are the path planned by the A-Star algorithm. Figure 8(b) shows the smoothed path. The comparison between A-Star and our proposed algorithm planning path is presented in Table 4.
As shown in Figure 8, the path planned by the improved A-Star is very straight and there are few of the unnecessary inflection points. Table 4 presents that the path length planned by ours is 1558.9 cm but the path planned by the A-Star requires a total turn of 1755°, while our proposed algorithm only needs a turn of 495°. After the path smoothing, the path of A-Star is shortened to 1516.5 cm, and the turning angle is reduced to 687.46°. The path planed by our method is shortened to 1534.9 cm, and the turning angle is reduced to 237.84°. From the experimental results, we can see that our algorithm has better performance than A-Star. Since our algorithm is more complex, the calculation time is longer than that of A-Star. The A-Star algorithm took 3332.7 ms, while our algorithm took 6657.4 ms. As the complexity of the map increases, the calculation time consumed also increases. As shown in Figure 8, the path planned by A-Star has many jagged turning points. This makes the path not smooth enough, which is not conducive to the motion control of ALV. Because the ALV has to adjust the angle at each inflection point, this will inevitably reduce the speed and affect the operating efficiency.
As the experimental simulation results shown that, compared with the traditional A-Star algorithm, our improved algorithm has lower turning loss, straighter path. The path length planned by our algorithm is similar to the A-Star algorithm. But, the total turning angle was reduced by 4060% compared with A-Star. However, our algorithm is more complex, and the calculation time will be longer than A-Star. Especially in the environment with many obstacles, the calculation time will increase more obviously, and the efficiency of the algorithm still needs to be further improved. Our algorithm reduces the inflection points, allowing the ALV to easier adjust its posture and realize the autonomous movement of the ALV. When the ALV encounters a turn during the operation, it will reduce the speed and adjust the angle to ensure safe operation. In this process, the efficiency of ALV will be reduced, the control difficulty will increase, and a large part of the time will be consumed. Although our method increases the cost of time spent in planning, it improves the efficiency of operation and reduces the running time and control difficulty of ALV.
Conclusion
In this article, a new heuristic function design method is proposed to improve the widely used A-Star algorithm. The influence of surrounding obstacles on the operation of the trolley is considered. The artificial potential field force is added to the heuristic function to strengthen the search direction information of the algorithm, which can improve the performance of the A-Star algorithm. Compared with the traditional heuristic function that only considers distance, our method takes into account the surrounding obstacle information and is more suitable for environments with many obstacles; the improved algorithm plans a path that is straighter, effectively reducing unnecessary inflection points, and making vehicle can adjust the angle as little as possible, which reduces path loss and is more conducive to the motion control of ALV.
Supplemental Material
Supplemental Material, sj-pdf-1-arx-10.1177_17298814211042730 - Autonomous land vehicle path planning algorithm based on improved heuristic function of A-Star
Supplemental Material, sj-pdf-1-arx-10.1177_17298814211042730 for Autonomous land vehicle path planning algorithm based on improved heuristic function of A-Star by Jing Zhang, Jun Wu, Xiao Shen and Yunsong Li in International Journal of Advanced Robotic Systems
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported by the Natural Science Foundation of China under Grant 61801359 and Grant 61571345.
Supplemental Material
Supplemental material for this article is available online.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
