Abstract
The artificial potential field method is usually applied to the path planning problem of driverless cars or mobile robots. For example, it has been applied for the obstacle avoidance problem of intelligent cars and the autonomous navigation system of storage robots. However, there have been few studies on its application to intelligent bridge cranes. The artificial potential field method has the advantages of being a simple algorithm with short operation times. However, it is also prone to problems of unreachable targets and local minima. Based on the analysis of the operating characteristics of bridge cranes, a two-dimensional intelligent running environment model of a bridge crane was constructed in MATLAB. According to the basic theory of the artificial potential field method, the double-layer artificial potential field method was deduced, and the path and track fuzzy processing method was proposed. These two methods were implemented in MATLAB simulations. The results showed that the improved artificial potential field method could avoid static obstacles efficiently.
Introduction
Bridge cranes are the most commonly used lifting and transportation machinery in modern production. They are widely used in factories, warehouses, and material fields. However, determining how to achieve intelligent transportation in environments that are not comfortable to enter (such as unmanned storage, landfill disposal, and nuclear waste handling) is a problem that must urgently be solved by scientists [1–3]. To realize the intelligent operation of a bridge crane, path planning technology must be studied.
Path planning technology has two main research directions: sensor detection technology and obstacle avoidance algorithms [4]. Obstacle avoidance algorithms have two main research focuses: global static and local dynamic path planning [5]. In global static path planning, all the information about the environment is known, and in local path planning, some or no information about the working environment is known. The global path planning is based on all the environmental information entered in advance or detected by various sensors to form an environment map, after which path planning is carried out based on the environment map.
Artificial potential field theory
The classical artificial potential field theory [6] was proposed by the American scientist Khatib in a 1985 IEEE conference paper. His original intention was to use obstacle avoidance planning for robotic arms or mobile robots. The central idea of the classical artificial potential field method is to regard the movement of the robot in the working environment as a kind of motion in an artificially designed virtual force field. The robot will be subjected to a kind of “gravitational force” generated by the target position and a “repulsive force” generated by the obstacle. The movement direction of the robot can be controlled by the resultant force of the robot [7].
Establishing a two-dimensional intelligent bridge crane operating environment model
The running speeds of the gantry and trolley of the universal bridge crane typically are in the range of 80–135 and 40–60 m/min, respectively.
Since the setting of the environment in this study was based on a square grid, the running speeds and acceleration of the gantry and trolley were the same. To improve the efficiency, the running speeds of the gantry and trolley were 1 m/s, and the acceleration was 0.5 m/s2.
Setting V = v = 1m/s and a = 0.5m/s2 and using the following formulas:
Because 0.72 < S1 <4 and 0.72 < S2 <3, the set speed of the gantry and trolley was 60 m/min (1 m/s), and the acceleration was 0.5 m/s2, which met the braking requirements of the bridge crane. The lifted item was assumed to be a cube with a 1-m length, width, and height. To simplify the lifted item as a point mass in the grid, an appropriate side length of the grid was set, as follows:
The span of a bridge machine is usually 1.5-m smaller than the span of the plant in practice. Every 3-m increase is one class, with a range from 10.5 to 31.5 m. A non-standard span is used when the span exceeds 31.5 m. The span of the bridge crane was set to 31.5 m, the total width of the grid was 30 m, and the total length of the grid was 45 m.
The operating environment of the overhead crane is shown in Fig. 1. The circles indicate the obstacles. The difference in the radii of the circles indicates differences in the sizes of the obstacles. An obstacle of any shape can be surrounded by a circle on this plane, so a circular shape was selected for convenience. The positions, radii, and number of the circles were selected arbitrarily. The initial position of the weight was (0,0), and the target position was (10,15).

Operating environment of the bridge crane.
For the problem of an unreachable target, in the repulsion potential field function, an item was added approximately at a distance equal to that between the weight and target position to ensure that when the weight was close to the target position, the gravitational and repulsion forces decreased simultaneously, minimizing the value of the potential field when the weight reached the target position.
As for the local minima problem, many researchers have conducted in-depth studies on path planning with artificial potential field method and proposed many different solutions, such as simulated annealing [8, 9], introduction of an escape force [10,11, 10,11], use of angle deviations [12, 13], and walking along the wall [14–17].
To solve the problem of local minima, two methods are proposed: a double-layer artificial potential field method and a path and track fuzzy processing method.
Gravitational potential field function
The gravitational potential field function is defined as follows:
where U att is the gravitational potential field function, k is the gravitational potential field gain coefficient, which is a constant k > 0, and d wm is the Euclidean distance between the weight and the target position, the vector direction of which points from the weight toward the target position [18].
The mathematical expression of gravity is as follows:
The repulsion potential field function is expressed as follows:
The two parts of the repulsion function Frep1 and Frep2 are defined as follows:
Letting d0 = 2, r
n
= 0.5, λ = 2, η = 1, β = 2, and
For d wm = 2, d wm = 4, and d wm = 6, MATLAB was used to plot the two functions of F1.
Based on the six curves in Fig. 2, if 1 〈 |d wm | and d wn has the same value, the function value of F1 in the interval d wn ∈ (0.5, 1.5) is greater than that of F1 in interval d wn ∈ (1.5, 2.5) [19]. There is a large gap in the function values between the two regions.

Plot of F1.
For d wm = 2, d wm = 4, and d wm = 6, MATLAB was used to plot the two functions of F2.
Based on Fig. 3, when Frep2 is 1 〈 |d wm | and d wn has the same value, its function values in interval d wn ∈ (r n , r n + λd0) must be larger those in interval d wn ∈ (r n + λd0, r n + d0), and there was a large gap between the function values in these regions. This behavior is similar to that of Frep1.

Plot of F2.
For the double-layer artificial potential field method constructed in this paper, the repulsive force function is no longer a continuous function. The function is discontinuous, and gravity is located exactly at the discontinuity [20,21, 20,21]. In this case, the attraction and repulsion forces can never equal, and only two scenarios can occur: either the gravitational force is greater than the repulsion force (the weight reaches the outer layer of the repulsive potential field), or the repulsion force is greater than the gravitational force (the weight reaches the inner layer of the repulsion potential field).
When in the outer layer of the repulsive potential field, d wn ∈ (r n + λd0, r n + d0). The force required to move the weight to the target position is greater than the force that causes the weight to move in the opposite direction, and thus, Frep1 < F att + Frep2. When in the inner layer of the repulsive potential field, d wn ∈ (r n , r n + λd0). The force required to cause the weight to move to the target position is less than the force that causes the weight to perform the reverse motion, and thus, Frep1 > F att + Frep2. Through the above analysis, the following formulas can be obtained:
Letting the two-dimensional space coordinate of the weight in the operating environment of the bridge crane be (x, y) and the coordinate of the target position be (x m , y m ), the line between the weight and the target position passes through the range of the repulsive potential field of an obstacle. The central coordinate of the obstacle is (x z , y z ), the circle radius of the obstacle is r z , and the maximum distance of the obstacle’s repulsive potential field is d0. The slope of the line between the weight and the target position is k m , where
The connection equation between the weight and the target position is as follows:
The distance d from the obstacle to the connecting line between the heavy object and the target position is as follows:
As shown in Fig. 4, when d ∈ (1.1r z , r z + d0), the weight can move forward along the line between the weight and the target position without being affected by the obstacle’s repulsive potential field. The reason the size range of d was set as d ∈ (1.1r z , r z + d0) was not only to leave a gap between the heavy object and the obstacle to prevent their collision but also to make the heavy object move along the line without being affected by the repulsive force generated by the obstacle.

Schematic of the path trajectory fuzzy processing method.
Simulation of classical artificial potential field method
The first environmental examined was as follows: the starting point was (0, 0), the target point was (10, 15), the number of obstacles was 6, and the central coordinates were (3, 2; 4, 6; 6, 2; 6, 8.5; 8, 8; 8, 12), the radii of the obstacle circles were 0.5, 0.4, 1, 0.5, 0.5, and 0.8, and the number of iterations was 200. The other parameter values were as follows: k = 5, η = 10, d0 = 3, and l = 1.
The second environment examined in this study was as follows: the starting point was (0, 0), the target point was (10, 15), the number of obstacles was 6, the central coordinates were (3, 2; 4, 6; 6, 2; 6.5, 7; 8, 9; 8, 12), the radii of the obstacle circles were 0.5, 0.4, 1, 0.5, 0.5, and 0.8, and the number of iterations was 200. The other parameter values were as follows: k = 5, η = 10, d0 = 3, and l = 1.
As shown in Figs. 5 and 6, when the shape and size of the obstacle were not considered, the classical artificial potential field method could be used to plan a rough path, and the path trajectory did not pass through the points that represent the obstacles. However, if the outline of the obstacle is considered, as it was in this study, the path collides with the obstacle. There is no guarantee of the safety of the obstacles, and the path planning is a failure.

Path planning of the classical artificial potential field method in the first environment.

Path planning of the classical artificial potential field method in the second environment.
In Figs. 7 and 8, the double-layer artificial potential field method was used for the path planning. Under normal circumstances, the path could avoid obstacles. However, if the repulsive forces of the potential field are superimposed, the path trajectory will be affected, and the path will collide with the edges of the obstacles.

Path planning of two-layer artificial potential field method in the first environment.

Path planning of the two-layer artificial potential field method in the second environment.
Based on the double-layer artificial potential field method plus the path trajectory fuzzy processing method, the effect of the path planning is shown in Figs. 9 and 10. The simulation results were very good, and the path perfectly avoided all obstacles. Furthermore, the path lengths were shortened, and the lifting times were reduced.

Path planning of the fuzzy-double-layer artificial potential field method in the first environment.

Path planning of the fuzzy-double-layer artificial potential field method in the second environment.
In the case of ignoring the shape and size of the obstacle, the path planning simulation based on the classical artificial potential field method is a tortuous and rough broken line that does not pass the obstacle point, and requires many steps. When considering the contour of the obstacle, the path planning using the classical artificial potential field method cannot guarantee the safety of the obstacle, which is a kind of failed path planning.
In the simulation of path planning based on the double-layer potential field artificial potential field method, the phenomenon of hitting obstacles still appears, and this path planning requires more steps.
In this study, the classical artificial potential field method, double-layer artificial potential field method, and fuzzy-double-layer artificial potential field methods were simulated in two environments. Through comparison and analysis, it was concluded that the path planning based on the fuzzy-double-layer artificial potential field method could eliminate the problems of an unreachable target and local minima.
Footnotes
Acknowledgments
This achievement was funded by the graduate joint training base in Shanxi Province talent cultivation project funding (2018JD31).
