Sliding Mode Control of Manipulator Based on Improved Reaching Law and Sliding Surface

: Aiming at the problem of convergence speed and chattering in sliding mode variable structure control of manipulator, an improved exponential reaching law and nonlinear sliding surface are proposed, and the Lyapunov function is used to analyze its stability. According to the dynamic model of the 6-DOF UR5 manipulator and the proposed reaching law and sliding surface, the corresponding control scheme is designed. The control performance of the proposed control scheme is veriﬁed by tracking the end trajectory of the manipulator on the MATLAB and CoppeliaSim robot simulation platform. The experimental results show that the proposed control scheme can not only signiﬁcantly improve the convergence speed and make the system converge quickly, but also can effectively reduce the chattering of the system. Even in the presence of disturbance signals, fast and stable tracking can be achieved while ensuring the robustness of the system, and the chattering of the robotic arm system can be weakened to a certain extent. Compared with the classical control method based on the computational torque method and the traditional sliding mode control scheme based on the exponential reaching law, the proposed scheme has certain advantages in terms of tracking accuracy, convergence speed, and reducing system chattering, and effectively improves the overall control performance of the system.


Introduction
The manipulator system is a complex multi-input multi-output, strongly coupled uncertain nonlinear system.Its uncertainty mainly includes two aspects: structural uncertainty and non-structural uncertainty.The former generally includes unmodeled dynamics, dynamic and static friction, system parameter perturbation, etc.The latter is generally caused by external operating environment interference, measurement error, sampling delay, actuator saturation, and other factors.In the industrial field, there are many studies on the traditional control methods of the manipulator, including PID control [1][2][3][4], discrete control [5], adaptive backstepping control [6], feedback linearization [7], robust control [8][9][10][11], neural network control and fuzzy control [12], iterative learning control [13], and variable structure control [14].PID control is mainly suitable for linear systems, it is only suitable for relatively simple applications, and cannot control objects with complex, large inertia, and large lag [15].Discrete control is controlled step by step by sampling, and it can effectively suppress noise and has good anti-interference ability [16].Adaptive backstepping control is introduced into virtual control, and the system is decomposed into simple and low order systems for effective control [17].Feedback linearization is to linearize the state equation and the output equation; it is a more common linearization method, which can overcome the problem that the error of ordinary linearization increases with the increase of the working area.However, feedback linearization cannot be applied to all nonlinear systems and the states must be all measurable.When there is parameter perturbation, the robustness of the system cannot be guaranteed.Robust control is insensitive to external disturbances and parameter perturbations and is suitable for systems where the range of uncertain factors varies greatly.Because the system using robust control generally does not work in the optimal state, it cannot guarantee that the system has high steady-state accuracy [18].Neural network and fuzzy control can solve complex nonlinear problems by simulating human intelligent behavior.By designing a reasonable network structure, the optimal parameters of the control system can be well approximated to ensure the control accuracy of the system [19].Iterative learning control is suitable for solving the problems of control objects with repetitive motion, especially for solving complex nonlinear, strong coupling, and difficult modeling problems.Like robust control, it can deal with uncertainties in the system and can make the system have high steady-state accuracy and achieves full tracking [20].By combining these control methods, many different control methods will be derived.It also brings many possibilities to effectively and accurately solve the trajectory tracking control problem of the manipulator.
Sliding mode variable structure control has been widely and deeply studied by scholars in the field of robot control because of its strong robustness, insensitivity to parameter changes and disturbances, simple physical structure, no need for accurate physical models, fast response, and other excellent control characteristics.Slotine et al. [21] used the sliding mode control method to conduct the simulation experiment for the two-link manipulator with parameter perturbation and external disturbance.The results show that the proposed method is effective in tracking the desired trajectory.A terminal sliding mode control method is proposed in [22], which realizes the finite-time convergence and stability of the system, but singular problems occur when the control law approaches the ideal sliding surface.Feng et al. [23] proposed a non-singular terminal sliding mode control method, which effectively solved the singularity problem in terminal sliding mode control by introducing appropriate fractional exponents into the control law.However, the chattering problem of sliding mode control is inevitable in these control methods, which leads to the decline of control performance and even makes the system lose stability.
In order to solve the problems of convergence speed and chattering in sliding mode controller, scholars in the control field have proposed various reaching laws.Gao et al. [24] introduced the concept of reaching law for the first time for nonlinear systems and verified the validity of the sliding mode control algorithm based on exponential reaching law.It guarantees the dynamic quality of the reaching process and reduces the chattering of the system.Hong et al. [25] proposed a power reaching law to weaken the chattering of the system.Although the chattering of the system is weakened, the robustness of the system near the sliding mode surface is reduced due to the existence of fractional powers.It increases the time for the system state to reach the sliding mode surface and reduces the convergence speed of the system.In [26], a new reaching law is designed, which includes the exponential term function of the sliding surface.The exponential term can smoothly adapt to the changes of the sliding surface and weaken the system chattering to a certain extent.The reaching law based on discrete-time sliding mode control proposed in [27] reduces the chattering of the system.However, it increases the time for the system state to slide along the sliding hyperplane to the equilibrium point and reduces the speed of the system reaching the sliding surface.Lam et al. [28] designed a sliding mode controller based on the power reaching law for the trajectory tracking control of the dual-arm manipulator, which verifies the effectiveness of the control algorithm.It reduces the tracking error and improves the tracking accuracy of the system, but the system still has chattering that cannot be ignored.Devika et al. [29] proposed an improved exponential reaching law for the slow approaching speed of the traditional reaching law, which improves the approaching speed of the control system, and the system state can quickly reach the sliding mode surface.It improves the speed of system convergence, but the system still has inevitable chattering and the tracking accuracy is not very high.
Based on the discussion of the above problems, this study proposes a new control scheme for the manipulator system.It not only ensures the robustness and control accuracy of the system but also improves the convergence speed of the manipulator system and greatly reduces the chattering of the system.Compared with previous studies, the main contributions of this study are presented below: (1) An improved exponential reaching law is proposed to weaken the system chattering by adjusting the appropriate boundary layer thickness and boundary layer thickness parameters.(2) A nonlinear sliding mode surface is proposed, which combines the advantages of a linear sliding mode surface and terminal sliding mode surface.It can ensure that the system state has a high convergence rate whether it is far from the equilibrium point or close to the equilibrium point.(3) Whether the trajectory is uniform or non-uniform, the control law of the manipulator system can ensure high tracking accuracy.Even in the case of disturbance signals, the proposed control law can still ensure the control accuracy and robustness of the system.
The proposed control scheme was simulated and verified on the Matlab and Cop-peliaSim robot experimental simulation platform.The proposed control scheme was compared and analyzed with the classical computational torque method and the traditional sliding mode control method based on the exponential reaching law.The results verified the control performance and advantages of the proposed control scheme.
The rest of this study is organized below: Section 2 briefly introduces the dynamic model of the UR5 manipulator.In Section 3, the sliding mode controller is designed, including the design of the sliding surface, the design of the reaching law, and the design of the control law.Section 4 gives the simulation results, which verify the effectiveness and superiority of the proposed control scheme SMC-IERL in all aspects of control performance.In Section 5, we summarize the whole research work and present prospects the future work.

Dynamic Model of Manipulator
In this paper, for a rigid n-joint manipulator, the establishment process of the Lagrangian dynamic equation is as follows: as in (1), L is the difference between the kinetic energy and the potential energy of the manipulator system, which is called the Lagrange operator of the system; K is the total kinetic energy of the manipulator; P is the total potential energy of the manipulator.As in (2), q i and qi are the angle and angular velocity of each joint of the manipulator; τ i is the driving torque of the i joint of the manipulator; and i is the number of joints of the manipulator.
Considering the effect of uncertainty or disturbance, the dynamic equations can be written as follows: where q ∈ R n×1 , q ∈ R n×1 , q ∈ R n×1 are the joint angle, joint velocity, and joint angular velocity of each joint of the manipulator.M(q) ∈ R n×n is a positive definite inertia matrix of the manipulator at run time, C(q, q) ∈ R n×1 is the centrifugal force and the Coriolis force matrix of the manipulator at runtime, and G(q) ∈ R n×1 is the gravity vector of the manipulator.τ ∈ R n×1 is the control torque vector of each joint, τ d ∈ R n×1 is the uncertainty or disturbance, and

Design of Sliding Mode Controller
Sliding mode motion can be divided into two stages, namely, the reaching stage and the sliding stage.The reaching stage refers to the stage when the system state tends to the sliding surface in finite time from any initial state under reaching conditions until reaching the sliding surface.The sliding stage refers to the stage when the system state keeps sliding mode along the sliding surface under the action of the control law.From the two stages of sliding mode motion, the primary problem of the design of the sliding mode controller is to ensure that the system state reaches the sliding mode surface infinite time and is always constrained to move on the sliding hyperplaned.It is also the problem of whether the sliding hyperplane exists and whether it meets the accessibility condition [31].Different sliding mode controllers can be designed by reaching law to meet the dynamic quality requirements of the control system and ensure the stability of the whole control system.
The schematic diagram of the sliding mode control system of manipulator is shown in Figure 1: In the whole control process, we use a low-pass filter to filter out the noise generated by the trajectory, then calculate the velocity and acceleration, and finally apply them to the sliding mode controller.This prevents the noise from being amplified and filters out the effects of high-frequency noise.

Design of Sliding Surface
The sliding surface can be roughly divided into two types: one is the linear sliding surface, and the other is the nonlinear sliding surface.The typical nonlinear sliding surface is the terminal sliding surface.When the system state is far from the equilibrium point, the approaching speed of the linear sliding surface is faster than that of the terminal sliding surface.When the system state is close to the equilibrium point, the approaching speed of the terminal sliding surface is faster than that of the linear sliding surface.The desired joint angle vector is defined as q d , and the joint angle tracking error is defined as e = q d − q, ė = qd − q, ë = qd − q.We propose a nonlinear sliding hyperplane defined as follows: In the formula (4), µ 1 > 0, µ 2 > 0, m > p > 0, where m, p are positive odd numbers.l > k > 0, where l and k are positive odd numbers.By adding µ 1 e m/p , the exponent of e in the original linear sliding surface is greater than 1, so that, when the system state is far from the equilibrium point, a greater approaching speed can be obtained.After combining the terminal sliding surface, it can also make the system state close to the equilibrium point and obtain a faster approaching speed than the linear sliding surface.

Stability Analysis
Lemma 1.Let D ∈ R n be a region containing the origin.f (x) is the Lipschitz function defined on D, and f (0) = 0. Let V (x) be a continuously differentiable function defined on D, such that: then the origin is the stable equilibrium point, if further: then the origin is asymptotically stable.
Letting the sliding hyperplane s = 0, we can obtain: (8) is further deformed into the following form: As shown in (9), ė represents the moving speed of the deviation.When the expression state of the moving speed of the system deviation is located on the sliding hyperplane, we take the Lyapunov function: For the derivation of V , we get: because m, p, k, l are positive odd numbers greater than zero, so m + p, l + k are positive even numbers greater than zero.We can get: also because µ 1 > 0, µ 2 > 0, we get: V = e ė = −(µ 1 e p+m/p + µ 2 e l+k/l ) ≤ 0. ( 14) When e = 0, V (e) < 0, so the system is asymptotically stable.

Finite Time Convergence
The moving speed of the system deviation, as shown in (9), depends mainly on the second term on the right.Assuming that the initial state e(0) > 1, the process from the initial state to the equilibrium point can be divided into two stages.
(1) The first stage: From the initial state of the system to e(t) = 1: In the process of the system from the initial state to e(t) = 1, the moving speed of system deviation mainly depends on the first term on the right of (9).Without considering the influence of the second term, we can get: By integrating both sides of (15), the time when the system reaches e(t) = 1 from the initial state can be obtained: (2) The second stage: from the system state e(t) = 1 to the equilibrium point.
In the process of the system state from e(t) = 1 to the equilibrium point, the deviation velocity of the system mainly depends on the second item on the right side of (9).Without considering the influence of the first item, we can get: By integrating both sides of ( 17), the time when the system reaches the equilibrium point from state can be obtained: In the first stage, the influence of the second term in ( 9) is not considered.In fact, the real deviation movement speed of the system is slightly larger, so the real-time used by the system in this stage is less than t r 1 .In the second stage, the influence of the first item in ( 9) is not considered.In fact, the real deviation movement speed of the system is slightly larger, so the real-time used by the system in this stage is less than t r 2 .Assuming that the time used for the system to reach the equilibrium point from the initial state is T, then: after sorting: It can be seen from ( 20) that the system state can converge in a finite time.

Design of Reaching Law
In order to improve the dynamic quality of sliding mode control in the reaching stage, Academician Gao Weibing proposed the concept of reaching law and designed some typical reaching laws.By properly adjusting the parameters in the reaching law, the dynamic quality of sliding mode control can be effectively improved.Constant reaching law, the power reaching law, exponential reaching law, and general reaching law are often used in sliding mode control.The constant reaching law cannot effectively weaken the chattering.Although the power reaching law can weaken the chattering, the speed of reaching the sliding surface is too slow and the convergence speed is slow, which can lead to the lack of tracking performance.Typical exponential reaching law is as follows: where is the parameter of the constant reaching term, k 2i > 0, i = 1, 2, ..., n. and ṡ = −K 1 s is the exponential reaching term.It can ensure that, when the system is very close to the sliding surface s, the state of the system can reach the sliding surface at a large speed.Of course, in the process of the system state reaching the sliding surface, the reaching speed of the system gradually decreases to zero.It not only shortens the time of the system reaching the sliding surface but also makes the speed of the system state reaching the sliding surface very low.The process of the system state reaching the sliding surface is a gradual process only by exponential reaching, which cannot ensure that the system state can reach the sliding surface in a finite time.Therefore, on the basis of the exponential reaching term, the constant reaching term −K 2 sign(s) is added.The advantage of this is that, when the system state is close to the sliding surface, the reaching speed of the system is K 2 , which ensures that the system reaches the sliding surface in a finite time [32].The control law shortens the reaching time of the system to the sliding surface on the basis of ensuring the arrival of the system infinite time, but it still causes large chattering.Given this, this paper designs an exponential reaching law based on an improved saturation function.By replacing the sign function with an improved saturation function, the chattering of the system is weakened, and the control accuracy of the system is improved.We propose an improved exponential reaching law as follows: where In (23), h = 1/∆ α/β is the boundary layer thickness.α/β > 1 is the parameter of boundary layer thickness.By selecting the appropriate boundary layer thickness and boundary layer thickness parameters, the system can be smoother approaching the sliding surface.At the same time, it can also weaken the chattering phenomenon of the system and improve the control performance of the system.

Design of Control Law
Taking the first derivative of (4), we get: Combined with (21), we can get: Thus, From ë = qd − q, we can get: Substitute Equation (27) into Equation (3) and get: Equation ( 28) is the control law of the manipulator established on the basis of the improved reaching law and sliding mode surface proposed in this paper.
Theorem 1.For the manipulator system shown in Formula (3), the manipulator system is asymptotically stable when the nonlinear sliding surface shown in Formula (4) is selected and the control law τ shown in Formula ( 28) is adopted.

Proof of Theorem 1. Take Lyapunov function
Substituting the control law shown in Equation ( 28) together with the deformed Equation (3) into Equation ( 29), we get: Combining Formulas ( 22) and ( 23), we can obtain: Therefore, when the control law shown in Formula ( 28) is adopted, the manipulator system shown in Formula ( 3) is asymptotically stable.
Considering the saturation constraint of joint actuators, we design a saturation function to limit the control vector, which is also a way to avoid singular problems in the controller.The saturation function is shown in Formula (29) as follows: Among them, τ top , τ down are the upper and lower limits of the saturated function, and they are known values.

Simulation Experiment
In order to verify the control performance of the proposed manipulator sliding mode controller, the control algorithm was simulated and verified on the MATLAB simulation platform and the virtual robot experimental platform CoppeliaSim.CoppeliaSim is a cross-platform robot dynamics simulation platform, which integrates several different physical engines and contains many different robot virtual physical models.The platform can simulate the robot very realistically, including the gravity, collision, and external force of the robot, and can highly restore the real application scenario of the robotic arm.On this platform, various physical simulation experiments can be done for different robots to verify the effectiveness of the control algorithm, which is convenient and practical and saves costs (https://www.coppeliarobotics.com/helpFiles/index.html) (accessed on 1 May 2022).In this paper, the 6-DOF UR5 manipulator in CoppeliaSim was used as the simulation object, and the remote API interface in CoppeliaSim was used to communicate with MATLAB to implement joint simulation.The physical simulation model of the UR5 manipulator is shown in Figure 2: DH parameters of the UR5 manipulator are shown in Table 1 as follows: The dynamic parameters of the UR5 manipulator are shown in Table 2 as follows: The motion range of each joint of the UR5 manipulator was set as (−π, π), and the initial joint angle was (π/2, −8π/9, 5π/6, 0, π/2, 0).The expected trajectory of the end of the UR5 manipulator was set in four groups: the first group was a uniform circular trajectory without considering the disturbance signal, the second group was a uniform circular trajectory considering the disturbance signal, the third group was a non-disturbing signal without considering the disturbance signal, and the fourth group was uniform square trajectory that do not consider disturbance signals.The four groups of trajectories were located on the x and z planes, and the coordinates in the y direction were fixed so that the manipulator only moved on the two-dimensional plane in the x and z directions.Through the inverse kinematics algorithm, the expected angles of each joint of the manipulator can be obtained.
To verify the performance of the manipulator sliding mode control algorithm (SMC-IERL) based on the improved exponential reaching law and nonlinear sliding mode surface for the trajectory tracking control of the end of the manipulator.We compare and analyze SMC-IERL with SMC-ERL and CTC, respectively.
(1) Manipulator Control Algorithm Based on Computational Torque Method (CTC): in (33), Using this relationship between K p and K i , a decoupled closed-loop system can be realized; each joint response equaled the response of a critical damped linear second-order system [33].The selection of the above parameters referred to the optimal parameters selected after many tests.
The first group of experiments used CTC, SMC-ERL, and SMC-IERL to track the desired uniform circular trajectory at the end of the UR5 manipulator without considering the disturbance signal, respectively.Figure 3a shows the trajectory tracking diagrams of the desired uniform circular trajectory and the three control algorithms of CTC, SMC-ERL, and SMC-IRL.Figure 3b is the square root error comparison of CTC, SMC-ERL, and SMC-IERL.Figure 3c is the comparison of mean error and variance among CTC, SMC-ERL, and SMC-IERL.Figure 4 shows the expected position of each joint and the position of each joint obtained by tracking the uniform circular trajectory according to the three control algorithms, and the error comparison between the position of each joint and the expected position of each joint.Figure 5 shows the comparison of the output torques of each joint obtained by the three control algorithms tracking the uniform circular trajectory.
The second group of experiments used CTC, SMC-ERL, and SMC-IERL to track the desired uniform circular trajectory at the end of the UR5 manipulator under the condition of considering the disturbance signal.Among them, the disturbance signal was set as τ d = 0.5rand(6, 1), rand(6, 1) means to generate random values in the range of [0∼1] with 6 rows and 1 column, which satisfy the normal distribution.The purpose of adding a disturbance signal was to verify the robustness and feasibility of the proposed control scheme SMC-IERL, which can simulate the actual manipulator system more realistically.Figure 6a is the trajectory tracking diagram of the expected uniform circular trajectory and the three control algorithms of CTC, SMC-ERL, and SMC-IERL.Figure 6b is the square root error comparison of CTC, SMC-ERL, and SMC-IERL.Figure 6c is the comparison of mean error and variance among CTC, SMC-ERL, and SMC-IERL.Figure 7 shows the expected position of each joint and the position of each joint obtained by tracking the uniform circular trajectory according to the three control algorithms , and the error comparison between the position of each joint and the expected position of each joint with considering the disturbance signal.Figure 8 shows the comparison of the output torques of each joint obtained by the three control algorithms tracking the uniform circular trajectory.
In the third group, CTC, SMC-ERL, and SMC-IERL were used to track the desired non-uniform circular trajectory at the end of the UR5 manipulator without considering the disturbance signal, respectively.The non-uniform circular trajectory was set to introduce random signals [0∼0.02] on the radius of the uniform circular trajectory.Figure 9a is the trajectory tracking diagram of expected non-uniform circular trajectory and CTC, SMC-ERL, and SMC-IERL three control algorithms; Figure 9b is the square root error comparison of CTC, SMC-ERL, and SMC-IERL.Figure 9c is the comparison of mean error and variance among CTC, SMC-ERL, and SMC-IERL.Figure 10 shows the expected position of each joint and the position of each joint obtained by tracking the non-uniform circular trajectory according to the three control algorithms, and the error comparison between the position of each joint and the expected position of each joint without considering the disturbance signal.Figure 11 is the comparison of the output torque of each joint obtained by tracking the non-uniform circular trajectory of the three control algorithms.
The fourth group of experiments used CTC, SMC-ERL, and SMC-IERL to track the desired non-uniform square trajectory at the end of the UR5 manipulator without considering the disturbance signal, respectively.The non-uniform square trajectory was set to introduce random signals [0∼0.02] on the uniform square trajectory.Figure 12a shows the trajectory tracking diagrams of the desired non-uniform square trajectory and the three control algorithms of CTC, SMC-ERL, and SMC-IRL.Figure 12b is the square root error comparison of CTC, SMC-ERL, and SMC-IERL.Figure 12c is the comparison of mean error and variance among CTC, SMC-ERL, and SMC-IERL.Figure 13 shows the expected position of each joint and the position of each joint obtained by tracking the non-uniform square trajectory according to the three control algorithms, and the error comparison between the position of each joint and the expected position of each joint without considering the disturbance signal.Figure 14 shows the comparison of the output torques of each joint obtained by the three control algorithms tracking the non-uniform square trajectory.Without considering the disturbance signal, from Figure 3a, it can be seen intuitively that the three control algorithms can track the expected uniform circular trajectory.However, compared with CTC and SMC-ERL, SMC-IERL has the best tracking effect, which is most consistent with the expected uniform circular trajectory.From Figure 3b,c, it can be seen that SMC-IERL has the smallest square root error, mean error, and variance compared with CTC and SMC-ERL.In the early stage of tracking, it can quickly reduce the tracking error of the system, and the tracking performance is the best and the accuracy is the highest.It can be seen from Figure 4 that, when tracking the desired joints of each joint, the three control algorithms can effectively track the desired joints, but there are more or less tracking errors.Considering the position error of each joint and the convergence speed, CTC has the worst tracking accuracy and the slowest convergence speed.SMC-ERL has higher tracking accuracy than CTC, but the convergence speed has little difference from CTC.Compared with CTC and SMC-ERL, SMC-IERL can keep the error between the expected trajectory and the real trajectory in a relatively small range.The tracking accuracy of each joint is the highest, the convergence speed is the fastest, and the tracking performance is the best.It can be seen from Figure 5 that the SMC-ERL control scheme has a high-frequency chattering phenomenon on the output torque of joints 4 and 5, which seriously affects the control of the real manipulator system, and even makes the manipulators.There is loss of control and damage to the manipulators.Compared with SMC-ERL, CTC and SMC-IERL can weaken the chattering of the system to a certain extent.Considering the impact of the entire manipulator's system control, SMC-IERL can better weaken the chattering of the output torque of each joint and has better robustness that is extremely important for the stability of the entire manipulator control system.In the case of considering the disturbance signal, from Figure 5a, it can be seen intuitively that, when considering the disturbance signal, all three control algorithms can track the desired uniform circular trajectory, but compared with CTC, SMC-ERL, and SMC-IERL.The tracking works best and best matches the desired uniform circular trajectory.From Figure 6b,c, it can be seen that SMC-IERL has the smallest square root error, mean error, and variance than CTC and SMC-ERL.The system tracking error can be reduced in a very short period in the early stage of tracking, and the tracking performance is optimal and the accuracy is the highest.It can be seen from Figure 7 that, when tracking the desired joints of each joint, the three control algorithms can effectively track each desired joint, but there will be some tracking errors more or less.Considering the position error and convergence speed of each joint, CTC has the worst tracking accuracy and the slowest convergence speed.Compared with CTC, SMC-ERL has a certain degree of improvement in tracking accuracy, but the convergence speed is not much different from CTC.Compared with CTC and SMC-ERL, SMC-IERL can keep the error between the expected trajectory and the real trajectory in a relatively small range.The tracking accuracy of each joint is the highest, the convergence speed is the fastest, and the tracking performance is the best.It can be seen from Figure 8 that, in the control of joints 4, 5, and 6, both CTC and SMC-ERL have a high-frequency chattering phenomenon, and the proposed SMC-IERL control scheme is compared with CTC.SMC-ERL can effectively weaken the chattering phenomenon of joints 4, 5, and 6.Considering the control of the entire manipulator system, SMC-IERL shows better control performance and better robustness.Without considering the disturbance signal, from Figure 9a, all three control algorithms can track the expected non-uniform circular trajectory, but, compared with CTC and SMC-ERL, SMC-IERL has the best tracking effect, which is similar to the expected non-uniform circular trajectory.It can be seen from Figure 9b,c that, among the three control algorithms, SMC-IERL has the smallest square root error, mean error, and variance.In the early stage of tracking, SMC-IERL can quickly reduce the system tracking error, with strong rapidity, the highest tracking accuracy, and the best tracking performance.It can be seen from Figure 10 that CTC has a large error fluctuation range when tracking the desired joint positions, especially for the tracking of the desired joint positions of joint 1, joint 4, and joint 5. Next to SMC-ERL, SMC-IERL has the smallest error fluctuation and can keep the error range at a relatively small level.Considering the position error and convergence speed of each joint, CTC has the worst tracking accuracy and the slowest convergence speed.Compared with CTC, SMC-ERL has a certain degree of improvement in tracking accuracy, but the convergence speed is not very different from CTC.Compared with CTC and SMC-ERL, SMC-IERL has the highest tracking accuracy for each joint and has the fastest convergence speed and the best tracking performance.It can be seen from the output torque of each joint in Figure 11 that, when the given expected trajectory is an uneven circular trajectory with random signals, both CTC and SMC-ERL have a high-frequency chattering phenomenon, which is extremely difficult to control the real manipulator system.Compared with CTC, SMC-ERL and SMC-IERL weaken the chattering of the control system to a large extent and shows better robustness.For artificially given non-uniform circular trajectories with random signals, SMC-IERL can still track quickly and stably and has good robustness, which also shows from the side that SMC-IERL has a certain universality.Without considering the disturbance signal, it can be seen intuitively from Figure 12a that the three control algorithms can track the desired non-uniform square trajectory.Compared with CTC and SMC-ERL, SMC-IERL has the best tracking effect and the most overlap with the expected uniform square trajectory.It can be seen from Figure 12b,c that SMC-IERL has the smallest square root error, mean error, and variance, and the highest tracking accuracy compared with CTC and SMC-ERL.It can be seen from Figure 13 that, when tracking the desired joints of each joint, the three control algorithms can effectively track the desired joints, but there are more or less tracking errors.Considering the position error and convergence speed of each joint, SMC-ERL has the worst tracking accuracy and the slowest convergence speed.SMC-IERL and CTC can quickly converge the tracking error to a relatively small range until zero.From Figure 14, it can be seen that the SMC-ERL control scheme has a high-frequency chattering phenomenon on the output torque of joints 2, 4, and 5, which seriously affects the control of the real manipulator system.Compared with SMC-ERL and CTC, SMC-IERL reduces the chattering of the system to some extent under the condition of ensuring the robustness, stability, and control accuracy of the system.

Conclusions
In this paper, an improved exponential reaching law and nonlinear sliding mode surface are proposed for the convergence speed and chattering problem in the sliding mode variable structure control of the manipulator, and the Lyapunov function is used to analyze its stability.The trajectory tracking simulation experiment of the manipulator end is carried out on the simulation experiment platform to verify the tracking performance of the proposed control scheme.The simulation results show that the proposed control scheme (SMC-IERL) can guarantee the fast convergence of the system and weaken the chattering ability of the system under the premise of ensuring the robustness of the system when tracking different expected trajectories.Even in the presence of a disturbance signal, it can still ensure the robustness and control accuracy of the system.By comparing SMC-IERL with CTC and SMC-ERL, the control performance and advantages of SMC-IERL on the basis of ensuring system stability and robustness are verified.Based on the research in this paper, our follow-up research work considers continuing to study different reaching laws and sliding surfaces to design controllers.At the same time, we consider using various optimization algorithms to optimize the parameters of our proposed controller, including but not limited to genetic algorithms and neural network algorithms.

Figure 1 .
Figure 1.Schematic diagram of the sliding mode control system of the manipulator.

Figure 2 .
Figure 2. Physical simulation model of the UR5 manipulator.

Figure 3 .
Figure 3. Uniform circular trajectory tracking experiment without considering disturbance signal.(a) comparison of trajectory tracking for desired uniform circular trajectory with three control algorithms; (b) comparison of square root error of three control algorithms; (c) comparison of mean error and variance of three control algorithms.

Figure 4 .
Figure 4.In the uniform circular trajectory experiment without considering disturbance signal, the expected position of each joint is compared with the position and error of each joint obtained by the three control algorithms.

Figure 5 .
Figure 5.In the uniform circular trajectory experiment without considering disturbance signal, the output torque of each joint obtained by the three control algorithms is compared.

Figure 6 .
Figure 6.Uniform circular trajectory tracking experiment with disturbance signal.(a) comparison of trajectory tracking for desired uniform circular trajectory with three control algorithms; (b) comparison of square root error of three control algorithms; (c) comparison of mean error and variance of three control algorithms.

Figure 7 .
Figure 7.In the uniform circular trajectory experiment with disturbance signal, the expected position of each joint is compared with the position and error of each joint obtained by the three control algorithms.

Figure 8 .
Figure 8.In the uniform circular trajectory experiment with disturbance signal, the output torque of each joint obtained by the three control algorithms is compared.

Figure 9 .
Figure 9. Non-uniform circular trajectory tracking experiment without considering disturbance signal.(a) comparison of trajectory tracking for desired non-uniform circular trajectory with three control algorithms; (b) comparison of square root error of three control algorithms; (c) comparison of mean error and variance of three control algorithms.

Figure 10 .
Figure 10.In the non-uniform circular trajectory experiment without considering disturbance signal, the expected position of each joint is compared with the position and error of each joint obtained by the three control algorithms.

Figure 11 .
Figure 11.In the non-uniform circular trajectory experiment without considering disturbance signal, the output torque of each joint obtained by the three control algorithms is compared.

Figure 12 .
Figure 12.Non-uniform square trajectory tracking experiment without considering disturbance signal.(a) comparison of trajectory tracking for desired non-uniform square trajectory with three control algorithms; (b) comparison of square root error of three control algorithms; (c) comparison of mean error and variance of three control algorithms.

Figure 13 .
Figure 13.In the non-uniform square trajectory experiment without considering disturbance signal, the expected position of each joint is compared with the position and error of each joint obtained by the three control algorithms.

Figure 14 .
Figure 14.In the non-uniform square trajectory experiment without considering disturbance signal, the output torque of each joint obtained by the three control algorithms is compared.

Table 1 .
DH parameters of the UR5 manipulator.

Table 2 .
Dynamic parameters of the UR5 manipulator.