Fei Yan1,2, Shubo Wang1,2. 1. School of Automation, Qingdao University, Qingdao 266071, China. 2. Shandong Key Laboratory of Industrial Control Technology, Qingdao 266071, China.
Abstract
This paper proposes an adaptive control scheme based on terminal sliding mode (TSM) for robotic manipulators with output constraints and unknown disturbances. The fuzzy logic system (FLS) is developed to approximate unknown dynamics of robotic manipulators. An error transformation technique is used in the process of controller design to ensure that the output constraints are not violated. The advantage of the error transformation compared to traditional barrier Lyapunov functions (BLFs) is that there is no need to design a virtual controller. Thus, the design complexity of the controller is reduced. Through Lyapunov stability analysis, the system state can be proved to converge to the neighborhood near the balanced point in finite time. Extensive simulation results illustrated the validity of the proposed controller.
This paper proposes an adaptive control scheme based on terminal sliding mode (TSM) for robotic manipulators with output constraints and unknown disturbances. The fuzzy logic system (FLS) is developed to approximate unknown dynamics of robotic manipulators. An error transformation technique is used in the process of controller design to ensure that the output constraints are not violated. The advantage of the error transformation compared to traditional barrier Lyapunov functions (BLFs) is that there is no need to design a virtual controller. Thus, the design complexity of the controller is reduced. Through Lyapunov stability analysis, the system state can be proved to converge to the neighborhood near the balanced point in finite time. Extensive simulation results illustrated the validity of the proposed controller.
In recent decades, robotic manipulators have been widely used in industrial and aerospace fields due to the rapid development of artificial intelligence [1-6]. As the model uncertainty, input, and measurement disturbance always exist, some linear control schemes cannot obtain satisfactory performance. Therefore, many researchers utilize adaptive control [7-11], robust control [12, 13], output-feedback control [14, 15], and learning control strategies [16, 17] to overcome above difficulties. The security issues caused by output constraints cannot be ignored because humans interact with robotic manipulators.To handle the problem of output constraints, many techniques have been developed [18-21]. In [22], a robust adaptive neural network (NN) control is utilized to guarantee the prescribed performance of the multiple-input multiple-output (MIMO) systems. In [23], a barrier Lyapunov function is used to guarantee the output constraints, which provides more flexibility and reduces the requirements for prerequisites. For nonlinear system, an optimal control strategy which transforms the constrained system into a novel one without output constraints is proposed in [24]. In [25], an adaptive neural network tracking control is proposed for robotic manipulators subjected to output constraints. The output constraints of some systems are not immutable; thus, to handle this problem, an asymmetric barrier Lyapunov function is used in the design process of the controller in [26]. Recently, a new robust control is developed in [27]. This control method first converts the output constraints into the error constraints. Then, an error transformation technique is employed, which changes the constrained error system into an unconstrained system.Intelligent controls have been widely used to cope with model uncertainty due to their approximation ability. According to combine fuzzy system or neural network with adaptive control, online parameters estimation can be realized, which improves the feasibility of the control scheme [28-34]. A novel adaptive fuzzy controller is presented to guarantee the stability of closed-loop system in [35]. For a class of uncertain MIMO nonlinear systems in the discrete-time form, a control strategy that uses higher order neural networks to approximate the desired controllers is proposed in [36]. An adaptive neural network scheme considering unknown output hysteresis is studied in [37], which used only two learning parameters so that the computational burden is greatly reduced. In [25], two neural networks are utilized in the controller: one is used to approximate the unknown dynamic model, and the other is used to approximate the error of the input dead zone.Sliding mode control (SMC) is widely used in motion control, because of its simple algorithm and good robustness [38]. With the development of sliding mode control technology, there are many new sliding mode control schemes. In [39], a radial basis function (RBF) neural network sliding mode control scheme is used to realize the asymptotic stability of rigid robotic manipulators, in which RBF neural network is used to estimate unknown dynamics. An integral sliding mode adaptive control scheme is proposed to realize system signals uniformly ultimately bounded in [40]. A second-order sliding mode control algorithm is presented in [41]. Fast terminal sliding mode control schemes are used to control the single input single output system (SISO) and the robotic manipulators, respectively, in [42, 43]. Both have achieved fast and high-precision tracking performance. For dual-inertia driving systems, an adaptive control scheme combining sliding mode with prescribed performance function is proposed in [44]. There are many papers that use terminal sliding mode to control the manipulators, but few researches on the manipulators with output constrains and model uncertainty are carried out. And most of the existing methods to solve the problem of output constrains are using barrier Lyapunov function. These methods need to design additional virtual controllers, which will increase the complexity of the controller.To better solve the trajectory tracking problem of a class of manipulators with output constrains and model uncertainty, a novel adaptive fuzzy control scheme that combines error transformation with finite time sliding surface is designed. Using the fuzzy logic system to approximate model uncertainty can improve tracking performance. The problem of output constraints is solved by introducing an error transformation function. This error transformation function changes the output constraints into the error constrains. Therefore, not only can it be ensured that the output constraints are not violated, but also the transient response can be improved. The error after conversion is used in the sliding mode surface, and the convergence of the system is proved by the Lyapunov stability theorem. The main contributions are summarized as follows:To prevent the contravention of output constraints, the error transformation is used in the controller design. The introduction of virtual controller is avoided which reduces the cost of calculation. At the same time, the effect of transient response is improved.Modify the sliding mode surface. The transformed error is applied to the sliding surface, which guarantees that system output constraints not only are not violated but also achieve the steady-state error converge to near the balanced point in finite time.In what follows, first, the dynamic model, fuzzy logic system, and error transformation are presented, followed by the derivation of the controller. Then, the stability analysis and mathematical proof are given. The paper ends with some comparative simulations and conclusions.
2. Problem Formulation and Preliminaries
2.1. Dynamic Model of the Robotic Manipulator
An n-degree-of-freedom robotic manipulator with unknown disturbance can be described aswhere M(q) denotes the symmetric positive definite inertia matrix, represents the Coriolis/centripetal torque, G(q) is the gravity torque, τ denotes the unknown external disturbances, τ is the control input torque, and q is the angular position.
Property 1 (see [25]).
The matrix M(q) is positive definite symmetric matrix.
Property 2 (see [25]).
The matrix is skew-symmetric.In practice, due to modeling error, physical parameter perturbation, and other factors, the system model always has uncertainty; thus, the following formula holds:where M0, C0, and G0 denote the nominal part of the model and M, C, and G denote the mode uncertainty.The control problem is to design a control law to ensure the system output state q can track the desired q and to guarantee the constraints are not violated simultaneously. In order to verify the feasibility of proposed control scheme, the following assumptions are given.
Assumption 1 (see [27]).
For every desired trajectory q, the inequality is held, where positive constants denote the lower and upper bound, respectively. There exists positive constant k satisfying for any k > 0.
Assumption 2 (see [45]).
The disturbance τ is bounded such that holds for positive constants .
Assumption 3 (see [46]).
The reference trajectory q and its first two time derivatives are bounded. Moreover, the angular position q and speed are measurable.
2.2. Fuzzy Logic Systems
The fuzzy system can be used to approximate unknown nonlinear function due to their universal approximation ability. The advantage of fuzzy system is that it can use linguistic information effectively [47]. The structure of fuzzy system is shown in Figure 1. The design steps of fuzzy system are as follows [16]:with μ(x)=exp[−((x − c)2/2b2)], where μ(x) denotes the Gaussian membership function. c and b denote the center and the width of the Gaussian function, respectively.
Figure 1
Structure of the fuzzy system.
Define N fuzzy sets for each variable x.Set ∂=∏N fuzzy IF-THEN rules: if x1 is A1 and … and x is A1; then y is W, where k=1,2,…, N, i=1,…, n.Using the fuzzy inference engine and the defuzzifier, the fuzzy system can be obtained asFor clarity, we now arrange (3) into the following form:where is the free parameters and Φ(x) is given asTherefore, a nonlinear function can be expressed aswhere ε is the approximation error which satisfies ; is a positive constant.
2.3. Error Transformation
To realize the control goal, we first define the tracking error aswhere q=[q1,…, q,…, q], i=1,…, n, denotes the position vector of each joint, q=[q,…, q,…, q] denotes the target trajectory, and e1 can be expressed as [e11, e12,…, e1].
Lemma 1 (see [27]).
Consider an Euler-Lagrange system. If the initial error satisfies e(0) < k, ∀i=1,…, n and the transformed error variables are bounded, then the closed-loop error is bounded and the output of system x1 remains bounded by the imposed output constraints, e.g., |x1| < k, ∀i=1,…, n.To ensure the constraints are not violated, we use an error transformation as [27]. This method changes the output constraints into error constraints and it can be expressed aswhere k is defined in assumption 1, k are the output constraints of the output q, and k are the error constraints. They are shown in Figure 2.
Figure 2
Error transformation.
For the next stability analysis, the error transformation variable z1 is defined aswhere P1(e1) is a symmetric diagonal matrix, defined aswhere p are positive constants that we need to design. e1 are the tracking errors on ith robot joint and defined in (7).The time derivative of z1 in (9) can be calculated aswhere P2(e1) is a symmetric diagonal matrix, which is obtained by extracting common factors from the two rightmost items in (11) and can be expressed as
3. Controller Design
According to the above conversion of errors, the original system with output constraints is transformed into an unconstrained system. By Lemma 1, we just need to design a controller to ensure the variable z1 is bounded so that the system can track the desired trajectory and the output constraints are not violated. The control structure is shown in Figure 3.
Figure 3
Diagram of the proposed control structure.
A terminal sliding mode variable is defined aswhere k1 is a positive constant. a2=(p/q) is satisfied p < q and p and q are coprime positive odd numbers. sig(·)=|·|sgn(·), and sgn(·) denotes the signum function.Differentiating (13), we can getMultiplying (14) by M0(q), one haswhere is the unknown dynamics. The nonlinear dynamics function is continuous and thus it can be approximated by a FLS aswhere Θ is the optimal constant parameter vector. Φ(·) is the fuzzy basis function. is the input vector. ε is the approximation error of the FLS, which satisfies .Then, substituting (16) into (15), the open-loop error system can be obtained asThe optimal parameter vector Θ cannot be obtained in practice. Thus, the estimation replaces Θ in the process of designing the controller. Thus, the estimation of the nonlinear function can be expressed asThe fuzzy system parameter can be updated by the following adaptive law:where Γ is a positive gain matrix and σ denotes the forgetting factor.
Remark 1 .
The adjustment of learning gain Γ needs to balance rapidity and stability. A large Γ will improve the adaptation speed, but will lead to high-frequency oscillations in the control response. Conversely, a small Γ will suppress high-frequency oscillations, but will reduce the adaptation speed. The forgetting factor is a positive constant, which is usually chosen as a small value. The role of forgetting factor is to improve the robustness to bounded disturbance and to accelerate the adaption speed.A TSM-based controller is designed to obtain the convergence of system state. Based on (17) and subsequent stability analysis, the control law τ is designed aswhere k and β are positive constants that designed by designer. r2=(m/n) is satisfied m < n and m and n are coprime positive odd numbers.Substituting (20) into (17), the closed-loop tracking error system can be obtained aswhere is the error between ideal value and estimated value.
Remark 2 .
Contrary to conventional TSM control scheme, e.g., [46], the error transformation is used in the controller to prevent the contravention of output constraints. This error transformation technique changes the output constraints into error constraints. Consequently, the transient response is improved. Compared with barrier Lyapunov function, the advantage of error transformation is that the virtual variables are not designed.
3.1. Stability Analysis
Lemma 2 (see [48]).
If a Lyapunov function V(x) is bounded and its derivative , where λ and C are positive constants, then the solution x is bounded.
Lemma 3 (see [43]).
For a second-order system like (1), if there is a positive definite function V(x) and parameters λ1, λ2 > 0, 0 < γ < 1, v ≥ 0 satisfies the following inequality:then the system state can converge to the compact set Ω, defined byand the upper bound of convergence time T satisfiesThe main conclusions of this paper can be summarized as follows.
Theorem 1 .
Consider robotic dynamic system (1), with bounded assumptions and initial conditions; TSM-based adaptive fuzzy controller is given as (20), as well as adaptive law (19):The closed-loop system is ultimately uniformly bounded and the output constraints are not violatedThe tracking error e1 converges to neighborhood near the zero point in finite time
Proof
A positive definite Lyapunov function is chosen asThe time derivative of (25) iswhere (19) and (21) are used.According to average value inequality, we can getSince and , it simply impliesSubstituting (27) and (28) into (26), we can obtainwhere ρ and C are positive constants defined asTo ensure that ρ > 0, gains k are selected to satisfyAccording to Lemma 2, it can be concluded that r and are bounded. From expression (13), we can infer thatz1 is bounded. Further, based on Lemma 1, it can be concluded that the error of the system is bounded and the output constrains are not violated.(2) A positive definite Lyapunov function is chosen asDifferentiating (32), we can getwhere ρ1, ρ2, and c are positive constants defined asBased on Lemma 3, auxiliary variable r can converge to the region Ω defined aswhere Y is defined asAnd the upper bound of convergence time is as follows:Once sliding mode variable reaches the sliding surface r=0, (12) can be expressed asAnother positive Lyapunov function is designed asAfter derivative (39), one hasSubstituting (38) into (40), we can obtainwhere κ1=λminP1(e1) is a positive constant.According to Lemma 3, the upper bound of convergence time of error variable e1 is as follows:Based on (37) and (42), position tracking error converges to neighborhood near the zero point in finite time and convergence time T satisfiesAll the proof has been completed.
3.2. Simulation
In this section, to verify the practicability of the presented controller, a 2-DOF robotic manipulator is used for the simulation. The mode matrices are defined aswhere M11=(m1+m2)r12+m2r22+2m2r1r2cos(q2), M22=m2r22, M12=M21=m2r22+m2r1r2cos(q2), , , C21=m2r1sin(q2)q1, G1=(m1+m2)r1cos(q2)+m2r2cos(q1+q2), G2=m2r2cos(q1+q2), τ=0.5+0.3sin(t), and τ=0.3+0.5cos(2t). Parameters appearing above are shown in Table 1.
Table 1
Model parameters of the manipulator.
Parameters
Description
Unit
Value
m1
Mass of link 1
kg
1
m2
Mass of link 2
kg
1.5
r1
Length of link 1
m
1
r2
Length of link 2
m
0.8
Mode uncertainties M, C, G are set as M=0.01M0, C=0.02C0, G=0.01G0. The initial states are set as q1=q2=0.005 and . The control goal is to make the output q track the target trajectory q1=q2=0.3sin(t). The output constraints are set as k=k=0.305.To verify the validity of the proposed control scheme, there are two controllers that are used as comparison in the following:AFTSM: this is the controller proposed in this paper. The parameters of TSM controller are given as k=[20; 20], k1=[5; 5], β=[5; 5], α2=(5/7), r2=(7/11). The parameters of error transformation are imposed as p1=p2=1. For fuzzy approximator, the initial values of free parameter are all set as 3. The fuzzy learning gain parameters Γ=[10,10], and the adaptive parameter σ should be set as a small value [0.01, 0.01], because a large value will suppress the adaptive speed.TSM: this is a general fast terminal sliding mode controller without error transformation and fuzzy approximation. The parameters of TSM controller are given as k=[20; 20], k1=[5; 5], k2=[6; 6], β=[5; 5]α2=(5/7), r2=(7/11).
Remark 3 .
Sliding mode parameter 0 < a2 < 1 in (13) will lead to singular problem. So, in the simulation process, use subsection function φ(e) instead of original sige. The subsection function φ(e) is designed aswhere χ is a sufficiently small and bounded positive constant. a2=(p/q) is satisfied p < q and p and q are coprime positive odd numbers. l1=(2 − a2)χ and l2=(a2 − 1)χ.The simulation results are shown in Figures 4–12. Figure 4 indicates that the above two control schemes all can track desired trajectory q. But it can be clearly seen that the AFTSM with error transformation gives smaller error and better tracking performance. Figure 5 indicates that the tracking errors of proposed controller and TSM all can converge to the neighborhood near the balanced point in finite time. Compared with AFTSM, the convergence rate of TSM is slower than AFTSM, and the transient performances are inferior to AFTSM. Moreover, the output constraints are not limited. The FLS approximation error is shown in Figure 6. It can be seen from the picture that the nonlinear function is well approximated by fuzzy logic system. The norms of fuzzy adaptive weights are shown in Figure 7, from which we can get that the fuzzy weights are bounded. Figure 8 gives the tracking errors under different initial conditions. From the figure, it can be seen that the convergence time is different for different initial state q. The absolute value of the initial state q is smaller; the convergence speed is faster.
Figure 4
Position tracking performance of joint 1 and joint 2.
Figure 5
Position tracking errors of joint 1 and joint 2.
Figure 6
Fuzzy logic system approximate errors.
Figure 7
Norms of fuzzy logic weights.
Figure 8
Tracking errors under different initial conditions.
Figure 9
The inputs in the case of using signum function.
Figure 10
The inputs in the case of using hyperbolic tangent function.
Figure 11
Position tracking performance under different disturbances.
Figure 12
Position tracking performance of step signal.
The discontinuity of sign function sgn(·) can cause system chattering. In order to reduce the chattering of the system, the hyperbolic tangent function ϖ(s, ρ)=((e − 1)/(e+1)) is used instead of the sign function. By choosing appropriate parameter ρ, the chattering phenomenon and the tracking performance of the system can be balanced. Here, choose ρ as 2. Comparing Figure 9 with Figure 10, it can be seen that the hyperbolic tangent function can reduce chattering. To verify the robustness of the system to different disturbances, we added three disturbance comparison groups in the simulation. The three groups are set as d1=[tan(t)+0.7; tan(t)+0.7], d2=[0.4+2sin(t)cos(t); 0.2+3sin(t)cos(t)], . The results are shown in Figure 11; from the picture, one can find that the system still maintains good tracking performance in response to different disturbances. Figure 12 is the position tracking of step function. The selection of the initial state of the system should ensure that the initial error is satisfied |e1| < k. It can be seen from the figure that AFTSM still has a good tracking effect for the step response.
4. Conclusions
In this paper, we developed a TSM-based fuzzy adaptive control scheme for robotic manipulators with output constraints and unknown disturbances. An error transformation is used to solve the problems of output constraints. The transient response of the system is improved simultaneously. Fast terminal sliding mode can improve convergence speed and reduce chattering. Therefore, the errors converge to the neighborhood near the balanced point in a very short time. To verify the effectiveness of the proposed scheme, two control schemes are used as a contrast in simulation. The simulation results show that the proposed control method possessed enhanced robustness and better tracking performance.