Among the existing path planning algorithms, the artificial potential field (APF) method for path planning was first proposed by Khatib [
3] in 1986. The idea is to use virtual force to make the robot navigate obstacles. The disadvantages of this algorithm are as follows: The algorithm easily falls into local minima or oscillates, and it is difficult to reach the target point when there are obstacles nearby. The rapid expansion random tree (RRT) algorithm was first proposed by the American professor LaValle [
4] in 1998. The RRT method is a path planning algorithm based on sampling and an efficient multi-dimensional space with complete probability but is not optimal. However, the randomness of the RRT method causes it to be blind and exhibit a low efficiency; in addition, the resulting path is tortuous and not smooth enough, and the search speed is slow in a narrow area. A large number of scholars have made different improvements to these two algorithms. Zheng et al. [
5] proposed a new minimum criterion and designed an improved virtual obstacle local path planning method to overcome the tendency of the APF algorithm to easily fall into local minima and other shortcomings. Sun et al. [
6] proposed the use of dynamic windows to improve the APF method to solve the problem of being trapped in local minima. Zhang et al. [
7] proposed a curved path planning algorithm for overtaking cars based on an improved APF method, and an optimal guaranteed performance control strategy for tracking the curved paths for overtaking cars based on linear robust control theory was proposed. Han et al. [
8] proposed an improved APF method to solve the problems of large swinging trajectories and easily falling into local minima that are encountered by the classic APF method in unmanned aerial vehicle (UAV) trajectory planning. Zhang et al. [
9] proposed a path planning method for multiple underwater unmanned vehicles (UUVs) in a three-dimensional environment based on the “domain”, which solves the disadvantages of unreachable targets near obstacles, local minima, and oscillations encountered in the classic APF method. Tian et al. [
10] proposed an overall configuration planning method of continuum hyper-redundant manipulators (CHRMs) based on an improved APF method that avoids complicated inverse kinematics and vastly reduces the computational complexity. Li et al. [
11] proposed a path planning method for mobile mechanical arms based on the sparse node RRT algorithm that solves the problem of excessively searching in the local space and reduces the number of invalid nodes. Ge et al. [
12] proposed a free-floating space robot (FFSR) trajectory planning method based on the dynamic RRT* algorithm, which can rapidly generate a feasible robot movement trajectory. Gan et al. [
13] proposed a 1–0 goal-bias RRT algorithm to reduce the computational time and complexity, even in complex environments. Qureshi et al. [
14] proposed the potential function-based RRT* (P-RRT*) method by incorporating the APF algorithm into the RRT* method. The proposed algorithm allows a considerable decrease in the number of iterations and thus leads to more efficient memory utilization and an accelerated convergence rate. Jeong et al. [
15] proposed Quick-RRT* (Q-RRT*), a modified RRT* algorithm that generates a better initial solution and converges to the optimal solution faster than RRT*. Q-RRT* enlarges the set of possible parent vertices by considering not only a set of vertices contained in a hypersphere, as in RRT*, but also their ancestry up to a user-defined parameter, thus resulting in paths with less cost than those of RRT*. Wang et al. [
16] proposed a novel learning-based multi-RRT (LM-RRT) approach for robot path planning in narrow passages. The LM-RRT approach models the tree selection process as a multi-armed bandit problem and uses a reinforcement learning algorithm that learns action values and selects actions with an improved epsilon-greedy (epsilon (t)-greedy) strategy. Lee et al. [
17] proposed a motion planning algorithm by exploiting RRT stars (RRT stars) and dynamic movement primitives (DMPs). Hao et al. [
18] proposed a Dubins-RRT* algorithm to involve the construction of a recovery path for an agricultural mobile robot (AMR) under kinematic constraints. The planned path avoids obstacles and incurs the minimum cost from a rendezvous point to the recovery platform. However, in general, the problems in the above research are as follows. (1) The improved APF algorithms cannot readily solve the problem of local minima in the search process, and the local minima cannot be adjusted in a timely manner. In addition, when there are obstacles at both the target point and the starting point, the obstacles cannot be effectively avoided to reach the target point quickly, and the generated path is relatively tortuous. (2) The improved RRT algorithms cannot quickly find a reliable path in a complex, multi-obstacle environment. Moreover, the algorithm cannot be adjusted well for different environmental conditions, which is not conducive to improving the algorithm efficiency, and the generated path is not sufficiently smooth, causing the mechanical arm to undergo impacts and become damaged in actual operation and severely shortening the service life of the mechanical arm.
In response to the above problems, the present paper proposes an improved hybrid three-dimensional path planning algorithm for mechanical arms that combines the APF method and the RRT algorithm. The proposed algorithm is used to solve the path planning problem of the manipulator in an environment with complex obstacles. Compared with the existing path planning algorithms, the main contributions of this article are as follows: