#### Abstract

To achieve closed trajectory motion planning of redundant manipulators, each joint angle has to be returned to its initial position. Most of the repeatable motion schemes have been proposed to solve kinematic problems considering only the initial desired position of each joint at first. Actually, it is very difficult for various joint angles of the robot arms to be positioned in the expected trajectory before moving. To construct an effective kinematic model, a novel optimal programming index based on a recurrent neural network is designed and analyzed in this paper. The repetitiveness and timeliness are presented and analyzed. Combining the kinematic equation constraint of manipulators, a repeatable motion scheme is formulated. In addition, the Lagrange multiplier theorem is introduced to prove that such a repeatable motion scheme can be converted into a time-varying linear equation. A finite-time neural network solver is constructed for the solution of the motion scheme. Simulation results for two different trajectories illustrate the accuracy and timeliness of the proposed motion scheme. Finally, two different repetitive schemes are compared and verified the optimal time for the novelty of the proposed kinematic scheme.

#### 1. Introduction

Robot manipulators have been playing an important role in various kinds of engineering fields. They have been widely used to perform effective and high-intensive repetitive work, such as car assembling, logistics handling, and sculpturing [1–3]. Robot arms usually have two types in needs of special operators. One is the redundant manipulators which have more degrees of freedom (DOF) than the given tasks required while the other one is the ordinary nonredundant manipulators which can complete the objective directly. Correspondingly, nonredundant manipulators refer to the one that has no additional DOF when performing a given task. Redundant manipulators are more flexible and advantageous for its redundant DOF. That is the reason why it is increasingly important in practical engineering applications [4, 5].

One of the fundamental problems in redundant manipulators motion controlling is redundancy solutions, known as inverse kinematics, which attracts many researchers’ interests [6, 7]. Given the position and pose of the end-effector, calculating the homologous trajectories of joint angles with the redundant manipulators is named inverse kinematics. Liegeios-Chauvel et al. put forward a gradient projection method based on inverse kinematics solution to divide the particular motion controlling into zero space by solving the optimization goal to regulate the solutions for redundancy [8]. From then on, many researchers study pseudo inverse approaches for kinematic equation of redundant manipulators [9, 10]. However, these approaches do not only take a heavy burden of calculations, but also require the Jacobian of manipulators to be full rank, which is hard to realize.

With the development of neural networks, recurrent neural networks based on negative gradient directions are emerged. Due to the high efficient ability for computing, gradient neural networks (GNNs) are widely used in identifications and matrix equations [10]. GNN is set up by establishing non-negative direction function and to obtain a scheme for kinematic controlling. When applied to motion planning of redundant manipulators, the convergent errors generated by GNN are always lagged behind the ideal one. That is, every joint angle of manipulators cannot return to their initial position in the end, which may cause nonrepetition phenomenon in trajectory planning of the robot manipulators. With the deepening of research studies in repeatable controlling of redundant manipulators, various velocity schemes based on online quadratic optimization have been developed. Such optimal schemes incorporate the equality and inequality constraints and avoid the limitation of joint angles and joint velocities. For efficient repetitive tasks, Zhang et al. firstly introduced a repetitive motion index as the optimization criterion, using Zhang neural network (ZNN) to solve the redundancy problems [11–13]. Then, various motion schemes combining the physical joint constraints are formulated as an optimal programming index subjected to the kinematic equation of manipulators. In addition, theoretical analyses prove that the motion schemes can be converted into time-varying equations by using the Lagrange multiplier. When considering necessary conditions of Karush-Kuhn-Tucker (KKT) for nonlinear optimization problems, such an optimal programming index also can be converted into linear variational inequality (LVI) and a piecewise linear projection equation (PLPE) [14, 15]. Various neural networks have spung up to solve the LVI and PLPE. Simulations on different types of redundant manipulators are studied and different shapes of the trajectory tasks are given, which verified the effectiveness and superiority of the proposed optimal programming index for repeatable motion planning as well as the corresponding neural solvers [16, 17].

Although, most of the aforementioned approaches for repeatable motion planning of redundant manipulators are effective, the convergent time of the dynamical equations has not been ensured. That is the optimal programming index for motion controlling using neural solvers can make the joint angles of the manipulators back to initial desired position as long as time goes infinity. For the perspective of finite-time convergence, Li et al. first proposed a finite-time neural network (FTNN) model to solve the repetitive motion scheme based on ZNN in order to ensure that the convergent time is finite [18]. Then, around this FTNN, various revised FTNN models are constructed to accelerate the convergent rate of ZNN [19–21]. In the literature [22], a motion scheme of mobile robot arms based on finite-time convergence property has been set up to apply in the grasping work of the manipulators.

A redundant manipulator is a part of a robot. It is hard to locate every joint angle in the desired state at first. It is not efficient for adjusting the positions of joint angles through self-movement. However, most of the above repetitive motion plans and different neural solvers, which are mainly for ideal initial state, do not consider the deviations of manipulators. These models of repetitive motion planning based on pseudo inverse and asymptotic convergent dynamic recurrent neural networks have been studied by many researchers. Few studies are reported for finite-time repeatable motion controlling when the joint angles are deviated from the initial desired position at first [23]. In the literature [24], only a new type of terminal neural network is researched for solving motion scheme of ZNN, which has been designed from the perspective of controlling. In [25], initial deviations of joint angles are considered. The optimization performance indices is still based on infinite-time convergence, and only the neural solver for motion scheme is designed for finite-time convergence.

The remainder of this paper is organized as follows. The kinematic equations of redundant manipulators are established in Section 2. Section 3 gives out the optimal programming index, and a repeatable motion scheme of manipulators is formulated and analyzed. In Section 4, a terminal recurrent neural network algorithm is proposed to solve the mentioned motion scheme. In Section 5, simulation results on two different path trajectories with Katana6M180 manipulators verified the effectiveness and superiority of the repeatable motion scheme and the terminal neural solver. Finally, remarks and conclusions are presented in Section 6. The main contributions of this paper are summarized in the following aspects:(1)A new optimal programming index for repeatable motion planning of redundant manipulators is exploited. It is the first time to use this performance index, which can ensure the joint angles back to their initial desired positions in finite time no matter considering the initial state of each joint of the manipulators.(2)A special kind of neural model based on recurrent neural networks is presented to solve the repeatable motion scheme. The activation of the neural solvers has adopted limited-value function, which is applicable in practical application problems.(3)Two different tracking tasks with redundant manipulator Katana6M180 are introduced to illustrate the superiority and effectiveness of the proposed repeatable motion scheme. Comparison results of various repetitive motion schemes are visualized in the end.

#### 2. Kinematic Structure of Katana6M180 Robot Arm

In this section, a redundant manipulator Katana6M180 model has been set up for illustrating the effectiveness of the proposed repeatable motion scheme. The mechanical structure of the Katana6M180 robot arm is shown in Figure 1. The Katana6M180 robot arm is composed of five degrees of freedom (DOF) with three-DOF elbow for revolute joints, two-DOF wrist for revolute joints, and a gripper connected to the end-effector. The range of angular motion of Katana6M180 is displayed in Table 1. From the Table 1, joint is the angle between horizontal line and link 1 , joint is the angle between link 2 and link 3, joint is the angle between link 3 and link 4, and joint is the angle between link 4 and link 5. Joint is between motor 5 and motor 6. In Table 1, it is shown that the rotation and extension of the joint angles are limited by the mechanical arm itself.

##### 2.1. Kinematic Foundation of Katana6M180 Robot Arm

In this section, a kinematic frame for Katana6M180 is formulated with the DH parameters, homogeneous matrix, transformation matrix, and Jacobian matrix. The kinematic redundant arm of Katana6M180 is shown in Figure 2. From Figure 2, and are parallel to each other and are vertical to . is orthogonal to and . The motion point in the frame of is chosen to work in coordination with , which is the original point of . The length of is zero. From the end of the end gripper, the turning point of the frame is fixed at the end of link 5. is supposed to be the center of the right-handed frames. The D-H parameters are shown in Table 2.

The homogeneous transformation matrix for K6M180 iswhere , , , , , , , , . Moreover, is the simplified notation for . is the simplified notation for . Considering the position of the end-effector, the compose the three dimensions of the following position vector of the K6M180 frame:

The solutions for inverse kinematic problems are not suitable for using forward kinematic formations. For the existence of singularity with the robotic arms, it is necessary to find out an appropriate kinematic solution to solve the inverse kinematics.

##### 2.2. Traditional Solution for Inverse Kinematic of Katana6M180 Robot Arm

Given a special trajectory with the end-effector of the Katana6M180 manipulator, the inverse problem is to solve each joint angle corresponding to the moving trail of the end-effector in the dimensional space. For the solving method for redundant manipulators, algebraic algorithms, iterative algorithms, and geometric algorithms are the primary solutions for trajectory planning problems. Algebraic algorithms do not propose a systematic method for choosing a special solution of the possible ways for motion planning of redundant arms. Iterative algorithms take a burden of the computational time, and in the singularity situations, experimental error may not reach to zero in a long time.

#### 3. Repeatable Motion Scheme for Redundant Manipulators

As mentioned above, given a desired trajectory for redundant manipulators, each joint angle of the robot arm has to be returned to its desired initial position in the end. Traditional algorithms for inverse motion designing are not applicable for repetitive control especially in the situation that the initial position of the manipulators may not be in their desired places at first. Furthermore, the joint constraints of redundant manipulators should be taken into account. Motivated by these practical ideas, a repeatable inverse motion scheme for redundant manipulators is formulated as follows:where . , is the desired initial position of the joint variable vector. The design parameter is used to form the joint displacement of the manipulators. represents the magnitude parameter to control the convergent speed of the end-effector. is the desired motion trajectory of the end-effector. is the speed vector of the end-effector. Considering that the initial position of the end-effector may not be at the desired initial point, the position error between the actual trajectory and the desired motion trajectory are needed to be reduced for changing the motion direction.

##### 3.1. Convergent Analysis

According to the ZNN theories, the following equation has been formulated:where , . It follows the fact that the convergent error reduces to zero as time goes by. By applying the ZNN theory, we get the scheme , then, . Therefore, we obtain the ZNN repetitive index:

Motivated by the ZNN theory, a finite-time convergent neural network model has been proposed, which greatly reduced the convergent time. The error dynamics of the finite-time convergence neural model is described as follows:

Setting the following Lyapunov function,

The derivation of equation (7) with respect to time is as follows:

For , the finite-time convergent model (6) is asymptotically stable in the end. In addition, the above equation can be rewritten as

Integrating both sides produces

When has been converged to zero, , , equation (8) is rewritten as follows:

For repetitive motion planning of redundant manipulators, we set , and the dynamical equation (6) can be changed into (11).

That is,

According to the solution of norm problem (11), we set the repeatable motion index in equation (3).

##### 3.2. Scheme Formulation

For the repeatable motion scheme (3), the performance kinematic index is reformulated as . Since the motion scheme is only considered the velocity level and is the variable vector, the term is visualized as a positive constant. Although the limits of joint velocity and joint angle are not emerged into the scheme index, the range of rotated joints is still reflected in the program. Due to the deviations among initial positions of joint angles, a feedback control is added into the motion equation of redundant manipulators to guarantee that the end-effector will back to the desired initial trajectory at last.

By analyzing and verifying the above deductions, the repeatable motion scheme (3) can be simplified as the following index:where represents a feedback gain parameter. . Besides, , is the initial position of joint angle vectors. The motion scheme (12) visualizes the basic kinematics of the redundant manipulators. From the optimization equation (12), joint velocity level limitations for joint angle and joint velocity are difficult to be combined with the motion scheme. The situation of exceeding the joint limits has been considered in the simulation programs.

#### 4. Neural Network Solving

Considering the scheme of repeatable motion planning, we change equation (12) by using the method of Lagrange multipliers.where denotes the Lagrangian-multiplier vector.

The following time-varying equation (14) can be obtained:

Withwhere vector represents the identity matrix. We may calculate the convergent error by setting

According to the neural solver (10), we get the following dynamic system equation form for trajectory planning:

#### 5. Applications to Redundant Manipulators

In this section, two experimental examples are displayed and analyzed to illustrate the repetitiveness and finite-time convergence of the proposed motion scheme (12) for neural model solving. Comparisons on different repetitive motion schemes based on Katana6M180 manipulator are introduced to substantiate the superiority and timeliness of the proposed index for task controlling.

##### 5.1. Triangle-Path Tracking Task

For this experimental simulation, the end-effector of the Katana6M180 manipulator is required to track a triangle path. During the simulation, , the desired trajectory of the manipulator is defined as follows:

The side length is assumed to be 0.18 m. The task completing time is set . The desired initial position of each joint angle is set to . Considering the deviation of joint angles before tracking, the initial position of each joint angle is set to be . Furthermore, design parameter . The simulation profiles are shown in Figures 3–5. In Figure 3(b), the end-effector of K6M180 is tracking a triangle path. The end-effector comes back to its desired initial position though the initial positions are not correctly settled. In Figure 3(a), the error position of *XYZ* has converged to zero around 6 s and the convergent precision is less than at the end of the tasks. From Figure 4 the end-effector rapidly moves to the desired motion trajectory under the repeatable motion scheme (12). That is the joint-drifting phenomenon can be remedied under the neural network solving control. With the Figure 5, the corresponding trajectory profiles of joint angles and joint velocities demonstrated the final statement of the manipulator. It is shown that all the joint angles have been returned to the desired position, and the motion velocity of each joint angle has been reduced to zero in the end. For obvious illustration, Table 3 shows the convergent errors of six joints. From Table 3, the maximum error in joint position is .

**(a)**

**(b)**

**(a)**

**(b)**

##### 5.2. Circular-Path Tracking Task

In this part, the end-effector of the manipulator what we provide has been planned to rack a circular path. The radius of the tracking circle is set to be 0.05 m. The corresponding profiles synthesized with the motion scheme (12) under the neural solver are shown in Figures 6–8. Figure 6 shows the trajectory of each joint angle along the motion procedure. From Figure 6, we can find each joint has performed a closed path at last. The end-effector of the manipulators has been returned to the desired initial position although the deviations existed at first. End-effector path and position error *XYZ* are shown in Figure 7. From Figure 7(a), we can obviously discover the end-effector has chased the desired task in several time and has performed a precise circular path with time. In Figure 7(b) the convergent precision in three direction *XYZ* is about , which demonstrates that the task is completed well.

**(a)**

**(b)**

##### 5.3. Comparisons

As we discuss the repeatable motion scheme, the ZNN method formulated with the repetitive motion plan has been provided in many literatures [24, 25]. It can be generalized in velocity level as follows:where is the magnifying parameter to scale the convergent speed. In the motion index (17), the end-effector of the redundant manipulator can return to the initial position after executing the triangle trajectory as long as time is infinite. That means the convergent time is supposed to be infinity, which is not applicable in real-time processing. In addition, the initial position of the joint angles is assumed to be in the desired position at first, which may lead to the inaccurate convergence by manipulators. In order to illustrate the advantages of our finite-time model in repetitive motion, the comparison experiments are simulated on the same Katana6M180 manipulators. For simplifying the simulation results, we use the error norm to compare the convergent speed and the improved convergent precision. The corresponding results are shown in Figures 8 and 9. As seen in Figure 8, synthesized with motion scheme based on ZNN, the convergent rate is gradually catch up the red line, which is obviously slower than the finite-time solving scheme. For clear comparisons, we use in Figure 9 and the convergent rate of finite-time solving scheme reaches to zero in 1 s. The convergent precision is about . For comparisons, Table 3 lists the error of the joint angles by different repeatable motion schemes. The finite-time solving scheme remedies the initial position deviation, that is . The deviations of the joint angle based on ZNN is around , which shows larger convergent precision in joint-drifting phenomenon.

#### 6. Conclusion

In this paper, a method of solving redundant robot repetitive motion based on neural network has been proposed. The solution for manipulator motion planning not only improves the convergent precision but also accelerates the convergent rate. The motion scheme makes the end-effector of the manipulators return to the desired initial position in finite time, which is more applicable in the practical engineering fields. In addition, theoretical analysis and simulations verify the superiority and timeliness of the proposed method in solving time-varying problems, especially in motion planning of manipulators. However, robustness for the new repeatable motion scheme is not considered in the theoretical analysis, even if instable phenomena may affect the convergent rate. The effect of interference phenomenon for repetitive planning of the redundant manipulators will be considered in the future.

#### Data Availability

The source code and source data can be provided by contacting with the corresponding author.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This study was partly supported by the National Natural Science Foundation of China (No. 61803338) and Public Projects of Zhejiang Province (LGG18F020011).