1 Introduction

As its name suggests, a power-line inspection (PLI) robot performs the inspection of outdoor, high-voltage equipment at substations, either autonomously or remotely. It is responsible for checking the internal thermal defects of the power equipment, external mechanical or electrical problems, such as foreign matter, damage, heat, and other issues, and then providing operators with relevant data to diagnose potential accidents in the operation of power equipment. One of the reasons that intelligent robot research is so popular is that intelligent robots offer numerous advantages, such as less manpower consumption and longer working hours. Another important reason is that they can replace human beings to perform a great deal of dangerous work, such as power inspection, as mentioned in this paper [1,2,3,4,5]. To reduce the cost and weight, and enhance the system flexibility, the PLI robot adopts an under-actuated structure, so there is no doubt that its controller design is more complicated than the full driving system [6, 7].

Several main approaches are available to control the under-actuated nonlinear system, such as backstepping control (BC) [7, 8], sliding mode control (SMC) [9], the energy method [10], and adaptive control [11,12,13,14]. These methods each exhibit their own applicability and limitations. For example, BC has achieved effective results in controlling the PLI robot, but the control method was developed based on the linear model of the PLI robot. In other words, it is difficult to control under-actuated nonlinear systems [7, 8]. SMC is superior in terms of the dynamic adjustment process, but it is complex to identify a suitable SMC law, and it has limited capacity for handling high-order uncertainty. As the PLI robot is an under-actuated nonlinear system and is faced with many uncertainties when working on high-voltage lines, improving the controller ability to deal with the uncertain under-actuated nonlinear PLI robot system remains a challenging task.

The traditional PID controller is still used extensively in modern industry, owing to its advantages of mature theory, simple operation, and appropriate price [15]. However, conventional PID controllers are unsatisfactory when the system to be controlled has a high level of complexity, such as nonlinearities, time delay, imprecise mathematical models, and structural uncertainties [16]. Moreover, PID controllers cannot easily deal with under-actuated nonlinear systems. Therefore, numerous researchers have attempted to combine a traditional PID controller with a fuzzy logic controller (FLC) to improve the controller ability to handle various types of uncertain under-actuated nonlinear systems. Several common structures exist for fuzzy PID controllers, including the fuzzy PI, fuzzy PD, and fuzzy PID controllers [17,18,19,20]. These controllers with different structures have been applied to various subjects and have obtained superior control performance over conventional PID controllers. However, whether the traditional fuzzy PID controller is still effective in the presence of many uncertainties remains to be solved.

Many uncertainties exist when a PLI robot is working on a high-voltage line, including continuous external disturbances caused by the weather, and model uncertainties caused by machine wear. However, the ability of the type-1 fuzzy logic system (T1-FLS) to deal with a high level of uncertainties is limited, because its membership degrees are totally crisp [21]. As an extension of the T1-FLS, the interval type-2 fuzzy logic system (IT2-FLS) introduces uncertainty into the fuzzy set, which improves the anti-noise and unknown data processing abilities of the system. With respect to applications in which the IT2-FLS outperforms the T1-FLS, a multitude of related research is available [22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]. As an extension of the IT2-FLS, the general type-2 fuzzy logic system (GT2-FLS) exhibits improvements over the IT2-FLS. In comparison with IT2-FLS, in which the uncertainty is represented as an area, the uncertainty is described by a volume in the GT2-FLS. Therefore, the GT2-FLS can better handle uncertainty [38, 39]. Similarly, a multitude of related researches and applications on the GT2-FLS are available [40]; for example, a new approach for reducing the computational cost of the GT2-FLS [41], a general type-2 fuzzy logic approach for dynamic parameter adaptation [42], controlling a mobile robot using the general type-2 fuzzy logic controller (GT2-FLC) [38], application of the adaptive GT2-FLC for nonlinear uncertain systems [43], a GT2-FLC with applications to aerospace [44], and type-2 fuzzy logic aggregation of multiple fuzzy controllers for airplane flight control [45]. With the advancement of the GT2-FLC, high-order uncertainty and uncertain noise can be handled better.

It can be observed from the above that the GT2-FLC has stronger anti-interference ability and can deal with various uncertainties compared with the T1-FLC and IT2-FLC. Therefore, it has advantages in practical application. The PLI robot system has been working under various high-order uncertainties for a long time, which requires the controller to be able to deal with high-order uncertainties. In addition, we need to pay attention to the fact that the parameters of the controller are calculated by PSO algorithm for offline optimization. Therefore, whether the optimized parameters can adapt to the application situation is still a challenge. However, the GT2-FLC can prevent this problem from two aspects as far as possible: first, the GT2-FLC does not rely on accurate mathematical models, so the controller can deal with the problem of parameter perturbation in the machine. Second, GT2-FLC can still maintain good control performance in the face of high-order uncertainty, which ensures that the controller can maintain the control performance consistent with the numerical simulation stage as far as possible in practical applications. Therefore, the GT2-FLC is considered in this paper.

First, the traditional PID controller has a limited ability to deal with uncertainty, while the GT2-FLC has superior capability of handling different types of uncertainties [46, 47]. The fuzzy rules of the GT2-FLC mostly originate from expert experience, which is difficult to obtain in the face of complex systems, while the PID control theory is mature, and rules can be designed through the regulation of parameters. Therefore, this study proposes the GT2FGS-PID controller and applies it to the PLI robot system.

The major contributions of this study are as follows: (1) The GT2FGS-PID controller is applied to the PLI robot to handle various types of uncertainties for the first time, including model uncertainties, external disturbances, and parameter perturbations supported by mechanical wear. As mentioned previously, the BC and SMC are generally used to control PLI robots with a linear model form, while the GT2-FLC is used to control PLI robots with a general nonlinear form. For example, in paper [8], adaptive gain-scheduled backstepping control is used, which is aimed at the linear model form and has weak anti-interference ability. (2) Information fusion technology is adopted to prevent the problem of rule explosion in the GT2-FLS, which combines the information of four-state variables into two input variables, thus the rules of the controller are more convenient to adjust, and the controller is easier to realize. (3) The control performance and anti-interference ability of the traditional PID, type-1 fuzzy control, interval type-2 fuzzy control, and general type-2 fuzzy control methods are compared, and the simulation results demonstrate that the GT2FGS-PID controller is superior in the uncertain PLI robot system.

The remainder of this paper is organized as follows. The preliminaries are introduced in Sect. 2. In Sect. 3, the description of the PLI robot system is presented. The design and analysis of the GT2FGS-PID controller for the PLI robot system are demonstrated in Sect. 4. In Sect. 5, the simulation results of several cases of the PLI robot system are provided. The conclusion and future work are presented in Sect. 6.

2 Preliminaries

In this section, T1-FLS, IT2-FLS, and GT2-FLS are described.

2.1 Type-1 Fuzzy Inference Systems

Figure 1 presents a block diagram of the T1-FLS, which describes the main sections of the T1-FLS. It can be observed that five components exist: a fuzzifier, an inference engine, a rule base, and a defuzzifier [22].

Fig. 1
figure 1

Block diagram describing T1-FLS

A type-1 fuzzy set (T1-FS) A can be denoted by Eq. (1), where X is the universe for x, \(x\in X\), and \(\mu _A(x)\) is the degree of membership corresponding to x, which takes on a value in the interval [0,1]. It is worth noting that the membership function of T1-FS is often a convex function. Triangular, trapezoidal, and Gaussian membership functions are commonly used. Figure 2 illustrates the membership function of a triangle.

$$\begin{aligned} A=\{(x,\mu _A(x))|x\in X\}. \end{aligned}$$
(1)

The structure of the fuzzy rule for a T1-FLS is defined as Eq. (2), where \(R^l\) is a specific rule, \(x_p\) is the input p, \(F_p^l\) is a type-1 membership function of the input p on rule l, and y is the output on the membership function \(G^l\).

$$\begin{aligned} \begin{aligned} R^l:\mathrm{IF}\ x_1\ is\ F_1^l\ \mathrm{and}\ \ldots \ \mathrm{and}\ x_p\ is\ F_p^l,\\ \mathrm{THEN}\ y\ is\ G^l,\ \mathrm{where}\ l=1,\ldots \ M. \end{aligned} \end{aligned}$$
(2)

The inference engine takes the form of Eq. (3) when the t-norm connectors (\(\star\)) are used. Here, \(\mu _{B^l}\) is the resulting membership function in the consequents per each rule inference, and Y is the output space belonging to the consequents.

$$\begin{aligned} \begin{aligned} \mu _{{B^l}}(y)&=\mu _{{G^l}}(y)\star \{[\mathop {\sup }\limits _{{x_1} \in {X _1}} \mu _{x_1}(x_1)\star \mu _{F_1^l}(x_1)]\\&\quad \star \ldots \star [\mathop {\sup }\limits _{{x_p} \in {X _p}}\mu _{x_p}(x_p)\star \mu _{F_p^l}(x_p)]\},\ y\in Y.\ \ \ \ \ \ \ \end{aligned} \end{aligned}$$
(3)

Finally, the defuzzification process can be achieved in multiple manners: the centroid, center-of-sums, or heights defuzzifier methods are commonly used, and described by Eqs. (4) to (6), respectively. Here, \(y_i\) is the discrete position and \(y_i \in Y\), \(\mu _{B}(y_i)\) is the corresponding membership degree, \(c_{B^l}\) is the centroid on the lth output, \(a_{B^l}\) is the area of the set, and \(\bar{y}^l\) is the point with the largest membership value in the lth output set, while \(\mu _{B^l}({\bar{y}}^l)\) is the corresponding membership degree.

$$\begin{aligned} y_c(x)= & {} \frac{\sum _{i=1}^Ny_i\mu _B(y_i)}{\sum _{i=1}^N\mu _B(y_i)} \end{aligned}$$
(4)
$$\begin{aligned} y_a(x)= & {} \frac{\sum _{l=1}^Mc_{B^l}a_{B^l}}{\sum _{l=1}^Ma_{B^l}} \end{aligned}$$
(5)
$$\begin{aligned} y_h(x)= & {} \frac{\sum _{l=1}^M{\bar{y}}^l\mu _{B^l}({\bar{y}}^l)}{\sum _{l=1}^M\mu _{B^l}({\bar{y}}^l)}. \end{aligned}$$
(6)

The centroid defuzzifier is generally difficult and time consuming to compute, and therefore, it is not as widely used as it once was. However, the center-of-sums is much easier to compute than the centroid defuzzifier. Although the height defuzzifer is much easier to compute than the centroid defuzzfier, a problem may occur when a consequent set has its maximum value as \(y=0\) (this may occur for a left shoulder membership function that is a negatively sloping line with its maximum value at \(y=0\)), in which case \({\bar{y}}^l=0\). This means that such a rule has never contributed anything to \(y_h(x)\), which appears unreasonable [48].

Fig. 2
figure 2

T1-FS

2.2 Interval Type-2 Fuzzy Inference Systems

As an extension of the T1-FLS, the IT2-FLS can handle higher uncertainty directly. Figure 3 illustrates the structure of the IT2-FLS. It is clear that the main difference from the T1-FLS is the defuzzification process, in which an IT2-FLS must first be simplified into a T1-FLS by a type-reducer, following which a crisp output can be obtained by the defuzzifier.

Fig. 3
figure 3

Block Diagram Describing IT2-FLS

An interval type-2 fuzzy set (IT2-FS) \(\tilde{A}\), which is a special case of the general type-2 fuzzy set (GT2-FS), can be denoted by Eq. (7), where x is the primary variable and has the domain X; u is the secondary variable, and has the domain \(J_x\) at each \(x\in X\); \(J_x\) is known as the primary membership of x and is defined by Eq. (11); and the secondary membership grades of \(\tilde{A}\) are all equal to 1 [49]. In this case, Fig. 4 illustrates a sample of IT2-FS. As indicated in Fig. 4, the uncertainty about \(\tilde{A}\) is conveyed by the union of all primary memberships and represented by the blue area, suggesting that it has the ability to deal with uncertainty directly. This area is known as the footprint of uncertainty (FOU) of \(\tilde{A}\), which is defined by Eq. (8).

$$\begin{aligned} \tilde{A} = \int_{{x \in X}} {\int_{{u \in J_{x} \subseteq [0,1]}} 1 } /(x,u) = \int_{{x \in X}} {{{\left[ {\int_{{u \in J_{x} \subseteq [0,1]}} 1 /u} \right]} \mathord{\left/ {\vphantom {{\left[ {\int_{{u \in J_{x} \subseteq [0,1]}} 1 /u} \right]} x}} \right. \kern-\nulldelimiterspace} x}} . \end{aligned}$$
(7)
$$\begin{aligned}&\mathrm{FOU}(\tilde{A})=\bigcup \limits _{\forall x\in X}J_x=\{(x,u):u\in J_x\subseteq [0,1]\}. \end{aligned}$$
(8)

The upper membership function (UMF) is associated with the upper bound of FOU(\(\tilde{A}\)), and is denoted by \({\bar{\mu }}_{\tilde{A}}(x)\), \(\forall x \in X\), while the lower membership function (LMF) is associated with the lower bound of FOU(\(\tilde{A}\)), and is denoted by \({\underline{\mu }}_{\tilde{A}}(x)\), \(\forall x \in X\); that is [50],

$$\begin{aligned} \overline{\mu }_{\tilde{A}(x)}= & {} \overline{\mathrm{FOU}(\tilde{A})}\ \ \ \forall x\in X. \end{aligned}$$
(9)
$$\begin{aligned} \underline{\mu }_{\tilde{A}}(x)= & {} \underline{\mathrm{FOU}(\tilde{A})}\ \ \ \forall x\in X. \end{aligned}$$
(10)

Note that \(J_x\) is an interval set, namely

$$\begin{aligned} J_x=\{(x,u):u\in [\underline{\mu }_{\tilde{A}},\bar{\mu }_{\tilde{A}}]\}. \end{aligned}$$
(11)

The structure of the fuzzy rule for the IT2-FLS is similar to that of the TI-FLS, and is expressed as Eq. (12).

$$\begin{aligned} \begin{aligned} R^l:\mathrm{IF}\ x_1\ is\ \tilde{F_1^l}\ \mathrm{and}\ \ldots \ \mathrm{and}\ x_p\ \mathrm{is}\ \tilde{F_p^l},\\ \mathrm{THEN}\ y\ \mathrm{is}\ \tilde{G^l},\ \mathrm{where}\ l=1,\ldots \ M. \end{aligned} \end{aligned}$$
(12)

The inference of the IT2-FLS can be represented by Eq. (14), where \(\underline{f}^l\) and \(\overline{f}^l\) are the firing sets, and are defined as Eqs. (14) and (15), respectively.

$$\begin{aligned} \begin{aligned} \mu _{\tilde{B}}\!(y)= \int \limits _{b\in \![(\underline{f}^1\!\star \underline{\mu }_{\tilde{G}^1}(y))\vee \!.\!.\!.\!\vee (\underline{f}^N\!\star \underline{\mu }_{\tilde{G}^N}\!(y)),(\overline{f}^1\!\star \overline{\mu }_{\tilde{G}^1}(y))\vee \!.\!.\!.\!\vee (\overline{f}^N\!\star \overline{\mu }_{\tilde{G}^N}\!(y))]}\!1/b,y\in Y \end{aligned} \end{aligned}$$
(13)

and

$$\begin{aligned} \underline{f}^l(\mathbf x ')= & {} \underline{\mu }_{\tilde{F_1^l}}({x_1}')\star \ldots \star \underline{\mu }_{\tilde{F_p^l}}({x_p}'). \end{aligned}$$
(14)
$$\begin{aligned} \overline{f}^l(\mathbf x ')= & {} \overline{\mu }_{\tilde{F_1^l}}({x_1}')\star \ldots \star \overline{\mu }_{\tilde{F_p^l}}({x_p}'). \end{aligned}$$
(15)

Type reduction, which is an extension of type-1 defuzzification, represents a mapping from T2-FS to T1-FS [31], and can be achieved by multiple means, one of these methods being that of the center-of-sets (COS), as indicated in Eq. (16). This reduction can save on computation time. It should be noted that \(Y_{\mathrm{cos}} (x')\) is also an interval fuzzy set [51].

$$\begin{aligned} \left\{ \begin{array}{lll} Y_\mathrm{cos}(x') & = 1/ [y_l(x'),y_r(x')] \\ y_l(x')& = \min \limits _{\forall w_s\in [{\underline{f}}^s({x}'),\overline{f}^s({x}')]} \sum \limits _{s=1}^{M}l_{{\tilde{G}^s}}w_s /\sum \limits _{s=1}^{M}w_s \\ y_r(x')& = \max \limits _{\forall w_s\in [{\underline{f}}^s({x}'),\overline{f}^s({x}')]} \sum \limits _{s=1}^{M}r_{{\tilde{G}^s}}w_s / \sum \limits _{s=1}^{M}w_s. \end{array} \right. \end{aligned}$$
(16)

Finally, a crisp output value can be obtained by the defuzzification process, as denoted by Eq. (17).

$$\begin{aligned} y(x)=\frac{y_l+y_r}{2}. \end{aligned}$$
(17)
Fig. 4
figure 4

IT2-FS

2.3 General Type-2 Fuzzy Inference Systems

The logic structure of the GT2-FLS is the same as that of the IT2-FLS, with a minor difference in the calculation. The structure of the GT2-FLS can be represented by Fig. 3.

A GT2-FS \(\tilde{\tilde{A}}\) can be described by Eq. (18), where \(J_x^u\in [0,1]\), x is the primary variable and u is the secondary variable. In this case, Fig. 5 illustrates the various elements of a GT2-FS, the secondary membership function of which is the triangle function.

$$\begin{aligned} \tilde{\tilde{A}}=\int _x\mu _{\tilde{\tilde{A}}}(x)/x=\int _x\left[ \int _{J_x^u}f_x(u)/u\right] /x. \end{aligned}$$
(18)

The rules for the GT2-FLS are the same as those for the IT2-FLS, with a difference in the notation, as indicated in Eq. (19).

$$\begin{aligned} \begin{aligned} R^l:\mathrm{IF}\ x_1\ \mathrm{is}\ \tilde{\tilde{F_1^l}}\ \mathrm{and}\ \ldots \ \mathrm{and}\ x_p\ \mathrm{is}\ \tilde{\tilde{F_p^l}},\\ \mathrm{THEN}\ y\ \mathrm{is}\ \tilde{\tilde{G^l}},\ \mathrm{where}\ l=1,\ldots \ M. \end{aligned} \end{aligned}$$
(19)

The inference of a GT2-FLS can be simplified into two main operations, namely meet and join, as indicated in Eqs. (20) and (21) [38, 49].

$$\begin{aligned} \mu _{\tilde{\tilde{A}}}\sqcup \mu _{\tilde{\tilde{B}}}= & {} \left\{ \left[ \int _{u\in {J_x^u}}\int _{u\in {J_x^w}}f_x(u)\star g_x(w)/(u\vee w) \right] \right\} \end{aligned}$$
(20)
$$\begin{aligned} \mu _{\tilde{\tilde{A}}}\sqcap \mu _{\tilde{\tilde{B}}}= & {} \left\{ \left[ \int _{u\in {J_x^u}}\int _{u\in {J_x^w}}f_x(u)\star g_x(w)/(u\wedge w) \right] \right\} . \end{aligned}$$
(21)

The GT2-FS is substantially more complex than the IT2-FS and T1-FS. To make the GT2-FS calculation easier, several simplified representations have been proposed to avoid various computational problems [52, 53].

In this paper, the GT2-FS is denoted by the \(\alpha\)-plane method [54]. The \(\alpha\)-plane can be defined as follows:

$$\begin{aligned} \tilde{A_\alpha }=\int _{\forall {x}\in {X}}\int _{\forall {u}\in {[0, 1]}}\{{(x, u)|f_x(u)\geqslant {\alpha }}\}. \end{aligned}$$
(22)

When an \(\alpha\)-plane is calculated, we can use the inference of an IT2-FS to reduce the complexity of the GT2-FS. The formulae for the \(\alpha\)-cuts of the triangle secondary membership functions can be computed as follows [55]:

$$\begin{aligned} \left\{ \begin{array}{lll} \tilde{A_\alpha }(x) &{}= [a_\alpha (x),b_\alpha (x)] \\ a_\alpha (x) &{}= {\underline{\mu }}_{\tilde{A}}(x)+w[{\overline{\mu }}_{\tilde{A}}(x)-{\underline{\mu }}_{\tilde{A}}(x)]\alpha \\ b_\alpha (x) &{}= {\overline{\mu }}_{\tilde{A}}(x)-(1-w)[{\overline{\mu }}_{\tilde{A}}(x)-{\underline{\mu }}_{\tilde{A}}(x)]\alpha \end{array} \right. , \end{aligned}$$
(23)

where w is the weight that determines the shape of the triangle secondary membership functions. Because the more \(\alpha\)-planes are selected, the more accurate the representation of GT2-FLC membership function can be, the more accurate the control output can be calculated, and the better the controller performance can be realized. However, the increase in the number of \(\alpha\)-planes also means the increase in the amount of computation, so we chose five representative \(\alpha\)-planes to represent the GT2-FLC membership function to achieve a balance between computational complexity and controller performance.

Fig. 5
figure 5

Various Elements of GT2-FS

3 PLI Robot System

The mathematical model of the PLI robot system in this section is mainly referenced from [7, 8]. The structure of the PLI robot is presented in Fig. 6. Moreover, Fig. 7 illustrates the balance adjustment parameters of the PLI robot. The Euler–Lagrange equation is considered to derive the dynamic model of the PLI robot system, and this equation can be defined by Eq. (24) [56].

Fig. 6
figure 6

Overall structure and operation mode of PLI robot

Fig. 7
figure 7

Overall framework and corresponding parameters of PLI robot

$$\begin{aligned} U_i= & {} \frac{\mathrm{d}}{\mathrm{d}t}\left[ \frac{\partial L}{\partial \dot{\theta _i}}\right] -\frac{\partial L}{\partial \theta _i} \quad i=1, \ldots , m \end{aligned}$$
(24)
$$\begin{aligned} L= K-P, \end{aligned}$$
(25)

where \(U_i\) is the torque acting on the ith generalized coordinate, \(\theta _1\) is the angle between the cable and PLI robot body, and \(\theta _2\) is the angle of rotation of the active joint. Furthermore, K is the kinetic energy of the PLI robot, while P is the potential energy of the PLI robot, and K and P can be denoted by Eqs. (26) and (27), respectively.

$$\begin{aligned} K= & {} \frac{m_1 h_1^2 \dot{\theta _1^2} }{2} + \frac{m_2 l^2 \dot{\theta _2^2}}{2}+\frac{m_2[d^2 +(-h_{20}+l \sin \theta _2)]\dot{\theta _1^2}}{2} \end{aligned}$$
(26)
$$\begin{aligned} P= & {} -m_1 g h_1 \sin \theta _1 + m_2 g[-h \cos \theta _1(h_{20}+l \sin \theta _2) \sin \theta _1], \end{aligned}$$
(27)

where g represents the acceleration of gravity. From Table 1, we can obtain

$$\begin{aligned} m_1h_1=m_2h_{20}. \end{aligned}$$
(28)

From Eqs. (27) and (28), P can be expressed as Eq. (29):

$$\begin{aligned} P=m_2g(-d\cos {\theta _1}+l\sin {\theta _2}\sin {\theta _1}). \end{aligned}$$
(29)

The motion equation of the PLI robot can be obtained by Eq. (30). As the PLI robot system is an under-actuated system, \(\tau _1\) is equal to 0 in the absence of external disturbance. It can be observed from Figs. 6 and 7 that the PLI robot adjusts the center of gravity of the counter-weight by the self-balancing mechanism, and the balance is achieved by matching the center of gravity of the body and center of gravity of the counter-weight.

$$\begin{aligned} \tau _1&=[m_1{h_1}^2+m_2(d^2+(-h_{20}+l\sin {\theta _2})^2)\ddot{\theta _1}] \nonumber \\&\quad +2m_2l(-h_{20}+l\sin {\theta _2})(\cos {\theta _2})\dot{\theta _1}\dot{\vartheta _2} \nonumber \\&\quad +m_2gd\sin {\theta _1}+m_2gl\sin {\theta _2}\cos {\theta _1} \nonumber \\ u_2&=m_2 l^2 \ddot{\theta _2}- m_2 l (-h_{20}+l \sin \theta _2)(\cos \theta _2)\dot{\theta _1^2}\nonumber \\&\quad +m_2 g l \cos \theta _2 \sin \theta _1 \end{aligned}$$
(30)

To provide an improved description of the motion process, the state variable vector is defined as follows:

$$\begin{aligned} x=[x_1\ x_2\ x_3\ x_4]^\mathrm{T}=[\theta _1\ \dot{\theta _2}\ \theta _2\ \dot{\theta _2}]^\mathrm{T}. \end{aligned}$$
(31)

The parameters of the PLI robot are displayed in Table 1. The state space model of the PLI robot can be expressed as follows:

$$\begin{aligned} \dot{x_1}&=x_2\nonumber \\ \dot{x_2}&=\frac{\tau _1-2m_2l(-h_{20}+l\sin {x_3})(\cos {x_3})x_2x_4)}{[m_1{h_1}^2+m_2(d^2+(-h_{20}+l\sin {x_3})^2)]}\nonumber \\&\quad -\frac{m_2gd\sin {x_1}+m_2gl\sin {x_3}\cos {x_1}}{[m_1{h_1}^2+m_2(d^2+(-h_{20}+l\sin {x_3})^2)]}\nonumber \\ \dot{x_3}&=x_4\nonumber \\ \dot{x_4}&=\frac{u_2+m_2l(-h_{20}+l\sin {x_3})(\cos {x_3}{x_2}^2))}{m_2l^2}\nonumber \\& \quad -\frac{m_2gl\cos {x_3}\sin {x_1}}{m_2l^2}. \end{aligned}$$
(32)
Table 1 Structural parameters of PLI robot

Remark 1

The nonlinear dynamic mathematical model is established for the PLI robot system. However, owing to the complexity of the PLI robot system, there remain many uncertainties that are ignored. The controller design based on the above model may not be applicable to the actual system. On this basis, in the following section, the GT2FGS-PID controller that does not depend entirely on the precise mathematical model is proposed, which has the potential to improve the ability of the controller to deal with uncertainties.

4 Design and Analysis of GT2FGS-PID Controller for PLI Robot System

4.1 Structure of the GT2FGS-PID Controller

The structure of the GT2FGS-PID controller is presented in Fig. 8. As illustrated in Fig. 8, the upper-lever controller of the system is the GT2-FLC, while the lower-lever controller is the traditional PID controller. The upper-lever controller selects parameters online by means of decision-making, and transmits the parameters to the PID controller, while the lower-level controller acts directly on the plant model.

The PID controller can be represented by Eq. (33).

$$\begin{aligned} \begin{aligned} u(t)&=k_pe(t)+k_i\int _0^t{e(t')\mathrm{d}t'}+k_d\frac{de(t)}{\mathrm{d}t}\\ e(t)&=y_r(t)-y_m(t), \end{aligned} \end{aligned}$$
(33)

where the proportion gain, integral gain, and derivative gain of the controller are denoted by \(k_p\), \(k_i\), and \(k_d\), respectively. Furthermore, u(t), \(y_r(t)\), and \(y_m(t)\) are the controller output, reference input, and system output, respectively. Usually, the values of \(k_p\), \(k_i\), and \(k_d\) are adjusted according to the system error e(t) and error change rate ec(t) (\({de(t)}/{\mathrm{d}t}\)). These PID parameters can be adjusted online by developing the rule-based GT2-FLC structure [22].

As the PID controller is well known, later parts mainly introduce the knowledge of the fuzzy logic system. There are two types of fuzzy logic systems, namely the T-S fuzzy logic system [57] and Mamdani fuzzy logic system, and the Mamdani fuzzy logic system is adopted in this study.

Fig. 8
figure 8

Block diagram of GT2FGS-PID controller structure

4.2 Design and Implementation of the GT2FGS-PID Controller

First, for the two- level system, if the traditional Mamdani fuzzy controller is used to design the four input variables, it will inevitably encounter the problem of rule explosion. Different from the fuzzy inference method of single input rule module connection in the literature [58] to avoid the problem of rule explosion, we use information fusion to avoid this problem.

The four internal variables of the system discussed in this paper exhibit strong coupling and internal correlation, and the output information of the system has direct coupling, so the linear fusion function can be constructed to achieve dimensional reduction and simplify the fuzzy controller design. The information fusion technology in [59] is extended to the design of the GT2FGS-PID controller to prevent the problem of rule explosion. The specific process is as follows [59]:

  1. 1.

    Construct the state feedback gain matrix The quadratic optimal control theory is used to minimize the quadratic performance index J of the model by selecting the appropriate weighted matrices Q and R. The quadratic performance index J and state feedback gain matrix \(K_1\) are as follows:

    $$\begin{aligned} J= & {} \int _0^\infty [x^\mathrm{T}(t)Qx(t)+u_2^\mathrm{T}(t)Ru_2(t)]\mathrm{d}t \end{aligned}$$
    (34)
    $$\begin{aligned} K_1 = [K_{x_1}\ K_{x_3}\ K_{{x_2}}\ K_{{x_4}}], \end{aligned}$$
    (35)

    where \(K_{x_1}\), \(K_{x_2}\), \(K_{x_3}\), and \(K_{x_4}\) are the feedback coefficients of \(x_1\), \(x_2\), \(x_3\), and \(x_4\), respectively, while T represents the matrix transposition. The selection of matrices Q and R is based on the principle of improving the control performance and reducing the control energy. A higher value of the non-zero element in the Q matrix results in a greater influence of its corresponding state variables on the system.

  2. 2.

    Construct fusion functions To reduce the input dimension, \(x_1\) and \(x_2\) are selected as control principal terms, so

    $$\begin{aligned} u_2 & = K_1\cdot x \nonumber \\ & = K_{x_1}\cdot {x_1}+ K_{x_2}\cdot x_2+ K_{x_3}\cdot {x_3}+ K_{x_4}\cdot x_4 \nonumber \\ &= K_{x_1}[x_1+\frac{K_{x_3}}{K_{x_1}}\cdot x_3]+K_{x_2}[{x_2}+\frac{K_{x_4}}{K_{x_2}}\cdot x_4]\nonumber \\ & = K_{x_1}\cdot \tilde{x}_1+K_{x_2}\cdot \tilde{x}_2 . \end{aligned}$$
    (36)

    The input and output equations of the fusion function are:

    $$\begin{aligned} \left[ \begin{array}{c c c} \tilde{x_1}\\ \tilde{x_2} \end{array} \right] =\left[ \begin{array}{c c c c} 1&{}0&{}{\frac{K_{x_3}}{K{x_1}}}&{}0\\ 0&{}1&{}0&{}{\frac{K{x_4}}{K{x_2}}} \end{array} \right] \times { \left[ \begin{array}{c c c c} x_1\\ x_2\\ x_3\\ x_4 \end{array} \right] }. \end{aligned}$$
    (37)

Secondly, \(\tilde{x_1}\) (denoted by e in Fig. 1) and \(\tilde{x_2}\) (denoted by ec in Fig. 1) are selected for the input variables of the proposed GT2FGS-PID controller, and the PID parameters (\(K_p\), \(K_i\), and \(K_d\)) are selected as the output variables of the GT2FGS-PID controller.

Third, once the input and output variables have been determined, we empirically determine their domain, shape, and the number of membership functions. Each input and output is divided into three groups of linguistic variables, namely small (S), middle (M), and big (B). To achieve improved control performance and make the proposed controller achievable, the PSO algorithm is used to optimize the antecedents of the type-1 fuzzy gain scheduling PID (T1FGS-PID), interval type-2 fuzzy gain scheduling PID (IT2FGS-PID), and GT2FGS-PID controllers.

The FOU(\(\tilde{\tilde{A}}\)) of \(\tilde{x}_1\) and \(\tilde{x}_2\) can be denoted by Eqs. (38) and (39) and Eqs. (40) and (41), respectively.

$$\begin{aligned} \mathrm{LMF}= & {} \left\{ \begin{array}{lll} \underline{\mu }_{\tilde{S}}({\tilde{x}_1}')&{}=&{}\frac{1}{3}{\tilde{x}_1}'+\frac{5}{3},\ {\tilde{x}_1}'\in [-5,-2]\\ \underline{\mu }_{\tilde{S}}({\tilde{x}_1}')&{}=&{}-{\tilde{x}_1}'-1,\ {\tilde{x}_1}'\in (-2,-1]\\ \underline{\mu }_{\tilde{M}}({\tilde{x}_1}')&{}=&{}\frac{2}{3}{\tilde{x}_1}'+1,\ {\tilde{x}_1}'\in [-1.5,0]\\ \underline{\mu }_{\tilde{M}}({\tilde{x}_1}')&{}=&{}-\frac{2}{3}{\tilde{x}_1}'+1,\ {\tilde{x}_1}'\in [0,1.5]\\ \underline{\mu }_{\tilde{B}}({\tilde{x}_1}')&{}=&{}{\tilde{x}_1}'-2,\ {\tilde{x}_1}'\in [2,3]\\ \underline{\mu }_{\tilde{B}}({\tilde{x}_1}')&{}=&{}{\tilde{x}_1}'+4,\ {\tilde{x}_1}'\in [3,4]\\ &{}=&{}0,\ {\tilde{x}_1}'\in (-\infty ,-4)\ \cup \ {\tilde{x}_1}'\in (4,+\infty ) \end{array} \right. \end{aligned}$$
(38)
$$\begin{aligned} \mathrm{UMF}= & {} \left\{ \begin{array}{lll} \overline{\mu }_{\tilde{S}}({\tilde{x}_1}')&{}=&{}\frac{1}{3}{\tilde{x}_1}'+2,\ {\tilde{x}_1}'\in [-6,-3]\\ \overline{\mu }_{\tilde{S}}({\tilde{x}_1}')&{}=&{}-\frac{1}{2}{\tilde{x}_1}'-\frac{1}{2},\ {\tilde{x}_1}'\in (-3,-1]\\ \overline{\mu }_{\tilde{M}}({\tilde{x}_1}')&{}=&{}\frac{1}{3}{\tilde{x}_1}'+1,\ {\tilde{x}_1}'\in [-3,0]\\ \overline{\mu }_{\tilde{M}}({\tilde{x}_1}')&{}=&{}-\frac{1}{3}{\tilde{x}_1}'+1,\ {\tilde{x}_1}'\in [0,3]\\ \overline{\mu }_{\tilde{B}}({\tilde{x}_1}')&{}=&{}\frac{1}{2}{\tilde{x}_1}'-2,\ {\tilde{x}_1}'\in [1,3]\\ \overline{\mu }_{\tilde{B}}({\tilde{x}_1}')&{}=&{}-\frac{1}{3}{\tilde{x}_1}'+2,\ {\tilde{x}_1}'\in [3,6]\\ &{}=&{}0,\ {\tilde{x}_1}'\in (-\infty ,-6)\ \cup \ {\tilde{x}_1}'\in (6,+\infty ) \end{array} \right. \end{aligned}$$
(39)
$$\begin{aligned} \mathrm{LMF}= & {} \left\{ \begin{array}{lll} \underline{\mu }_{\tilde{S}}({\tilde{x}_2}')&{}=&{}{\tilde{x}_2}'+3,\ {\tilde{x}_2}'\in [-3,-2]\\ \underline{\mu }_{\tilde{S}}({\tilde{x}_2}')&{}=&{}-{\tilde{x}_2}'-1,\ {\tilde{x}_2}'\in (-2,-1]\\ \underline{\mu }_{\tilde{M}}({\tilde{x}_2}')&{}=&{}{\tilde{x}_2}'+1,\ {\tilde{x}_2}'\in [-1,0]\\ \underline{\mu }_{\tilde{M}}({\tilde{x}_2}')&{}=&{}-{\tilde{x}_2}'+1,\ {\tilde{x}_2}'\in [0,1]\\ \underline{\mu }_{\tilde{B}}({\tilde{x}_2}')&{}=&{}{\tilde{x}_2}'-1,\ {\tilde{x}_2}'\in [1,2]\\ \underline{\mu }_{\tilde{B}}({\tilde{x}_2}')&{}=&{}{\tilde{x}_2}'+3,\ {\tilde{x}_2}'\in [2,3]\\ &{}=&{}0,\ {\tilde{x}_2}'\in (-\infty ,-3)\ \cup \ {\tilde{x}_2}'\in (3,+\infty ) \end{array} \right. \end{aligned}$$
(40)
$$\begin{aligned} \mathrm{UMF}= & {} \left\{ \begin{array}{lll} \overline{\mu }_{\tilde{S}}({\tilde{x}_2}')&{}=&{}\frac{1}{3}{\tilde{x}_2}'+\frac{5}{3},\ {\tilde{x}_2}'\in [-6,-3]\\ \overline{\mu }_{\tilde{S}}({\tilde{x}_2}')&{}=&{}-\frac{1}{2}{\tilde{x}_2}',\ {\tilde{x}_2}'\in (-2,0]\\ \overline{\mu }_{\tilde{M}}({\tilde{x}_2}')&{}=&{}\frac{1}{2}{\tilde{x}_2}'+1,\ {\tilde{x}_2}'\in [-2,0]\\ \overline{\mu }_{\tilde{M}}({\tilde{x}_2}')&{}=&{}-\frac{1}{2}{\tilde{x}_2}'+1,\ {\tilde{x}_2}'\in [0,2]\\ \overline{\mu }_{\tilde{B}}({\tilde{x}_2}')&{}=&{}\frac{1}{2}{\tilde{x}_2}',\ {\tilde{x}_2}'\in [0,2]\\ \overline{\mu }_{\tilde{B}}({\tilde{x}_2}')&{}=&{}-\frac{1}{3}{\tilde{x}_2}'+\frac{5}{3},\ {\tilde{x}_2}'\in [2,5]\\ &{}=&{}0,\ {\tilde{x}_2}'\in (-\infty ,-5)\ \cup \ {\tilde{x}_2}'\in (5,+\infty ). \end{array} \right. \end{aligned}$$
(41)

To make the GT2FGS-PID controller computation easier, five \(\alpha\) planes are selected to represent the GT2-FS, where \(\alpha _k=0,0.25,0.5,0.75,1\). The membership functions used in the inputs are illustrated in Figs. 9 and 10. The upper and lower membership functions of the outputs are illustrated in Figs. 11, 12, and 13. Because the PID control theory is mature, we can design its rule directly according to the parameter regulation law of the PID control theory. For example, at the beginning of the control, a large control signal is needed to start the time rapidly. To generate a large control signal, a large proportional gain \(K_p\), large integral gain \(K_i\), and small differential gain \(K_d\) are required. Thus, the fuzzy rule is as follows:

$$\begin{aligned} \begin{aligned} \mathrm{IF}\ \tilde{x_1}\ \mathrm{is}\ B\ \mathrm{and}\ \tilde{x_2}\ \mathrm{is}\ M,\mathrm{THEN}\\ \ K_p\ \mathrm{is}\ B,\ K_i\ \mathrm{is}\ B,\ K_d\ \mathrm{is}\ S. \end{aligned} \end{aligned}$$
(42)

When it is near the equilibrium point, to avoid deviation from the equilibrium state, a small proportional gain \(K_p\), small integral gain \(K_i\), and large differential gain \(K_d\) are required to construct a small control signal. Therefore, the fuzzy rule is as follows:

$$\begin{aligned} \begin{aligned} \mathrm{IF}\ \tilde{x_1}\ \mathrm{is}\ M\ \mathrm{and}\ \tilde{x_2}\ \mathrm{is}\ B,\mathrm{THEN}\\ \ K_p\ \mathrm{is}\ S,\ K_i\ \mathrm{is}\ S,\ K_d\ \mathrm{is}\ B. \end{aligned} \end{aligned}$$
(43)

Therefore, the specific rule base for \(K_p\), \(K_i\), and \(K_d\) of the PLI robot system is presented in Table 2.

Fig. 9
figure 9

Membership functions for \(\tilde{x}_1\) with GT2-FS

Fig. 10
figure 10

Membership functions for \(\tilde{x}_2\) with GT2-FS

Fig. 11
figure 11

Upper and lower membership functions for \(K_p\)

Fig. 12
figure 12

Upper and lower membership functions for \(K_i\)

Fig. 13
figure 13

Upper and lower membership functions for \(K_d\)

Table 2 Rule base

Finally, the designed controller is applied to the PLI robot system. The corresponding simulation results will be presented in the following section.

4.3 Analysis of the GT2FGS-PID Controller

The controller proposed in this paper uses COS type-reduction as well as the average of end-points defuzzification. The rule base is as indicated as Table 2. Because the input primary and secondary membership functions are all triangles, the membership degree of the inputs share the structural pattern as illustrated in Fig. 14.

$$\begin{aligned} \begin{aligned} \underline{\mu }(x_j')=\frac{(x_j'+P_L^l-L_L^l)}{P_L^l}\\ \overline{\mu }(x_j')=\frac{(x_j'+P_U^l-L_U^l)}{P_U^l} \end{aligned} \end{aligned}$$
(44)

Moreover, the firing interval can be expressed as follows:

$$\begin{aligned} \underline{f}_{\alpha _k}^l(x')= & {} \prod _{j=1}^p a_{j,\alpha _k}^l(x_j') \end{aligned}$$
(45)
$$\begin{aligned} \overline{f}_{\alpha _k}^l(x')= & {} \prod _{j=1}^p b_{j,\alpha _k}^l(x_j'), \end{aligned}$$
(46)

where \(\prod\) represents the continuous multiplication, and \(a_{i,\alpha _k}^l(x_i')\) and \(b_{i,\alpha _k}^l(x_i')\) can be computed by Eq. (24). The \(c_l({\tilde{G}_{\alpha _k}^l})\) and \(c_r({\tilde{G}_{\alpha _k}^l})\) are the centroids of consequents for level-\(\alpha\), and can be computed by Eqs. (47) and (48). Select \(m^l\) arbitrarily for each of the consequent GT2-FSs, and fix \(m_1^l\) and \(m_2^l\) at their \(\alpha _k=0\) values.

$$\begin{aligned} c_l({\tilde{G}_{\alpha _k}^l})= m_1^l+(m^l-m_1^l)\alpha _k \end{aligned}$$
(47)
$$\begin{aligned} c_r({\tilde{G}_{\alpha _k}^l}) = m_2^l-(m_2^l-m^l)\alpha _k \end{aligned}$$
(48)

Thus, the outputs of the GT2-FLC, \(k_p\), \(k_i\), and \(k_d\) share the same structural pattern:

$$\begin{aligned} Y^{\cos }(x')=\frac{\sum _{k=1}^{k_{\max }}\alpha _k[(y_{l,\alpha _k}^{\cos }(x')+y_{r,\alpha _k}^{\cos }(x'))/2]}{\sum _{k=1}^{k_{\max }}\alpha _k}, \end{aligned}$$
(49)

where

$$\begin{aligned} \begin{aligned} y_{l,\alpha _k}^{\cos }(x')=\frac{\sum _{i=1}^Lc_l({\tilde{G}_{\alpha _k}^l})\overline{f}_{\alpha _k}^i(x')+\sum _{i=L+1}^Mc_l({\tilde{G}_{\alpha _k}^l})\underline{f}_{\alpha _k}^i(x')}{\sum _{i=1}^L\overline{f}_{\alpha _k}^i(x')+\sum _{i=L+1}^M\underline{f}_{\alpha _k}^i(x')}\\ y_{r,\alpha _k}^{\cos }(x')=\frac{\sum _{i=1}^Rc_r({\tilde{G}_{\alpha _k}^l})\underline{f}_{\alpha _k}^i(x')+\sum _{i=R+1}^Mc_r({\tilde{G}_{\alpha _k}^l})\overline{f}_{\alpha _k}^i(x')}{\sum _{i=1}^R\underline{f}_{\alpha _k}^i(x')+\sum _{i=R+1}^M\overline{f}_{\alpha _k}^i(x')}. \end{aligned} \end{aligned}$$
(50)

In summary, the output of the GT2FGS-PID controller is

$$\begin{aligned} u(t)=k_p(e,ec)e(t)+k_i(e,ec)\int _0^t{e(t')\mathrm{d}t'}+k_d(e,ec)ec(t). \end{aligned}$$
(51)

Therefore, the control surface of the proposed controller can be illustrated by Figs. 15 and 16. From the control surface, it can be observed that the proposed GT2FGS-PID is very smooth near the equilibrium point, which indicates that the proposed controller has the potential to obtain superior control performance.

Remark 2

The outputs of the GT2-FLC (\(K_p\), \(K_i\), and \(K_d\)) are nonlinear functions with respect to the inputs. That is, the GT2FGS-PID controller is equivalent to a nonlinear PID controller with variable gains.

Fig. 14
figure 14

Triangular membership function for inputs

Fig. 15
figure 15

Control surface of GT2FGS-PID controller

Fig. 16
figure 16

Partial view of control surface of GT2FGS-PID controller

5 Simulation

In this section, the PLI robot system is simulated based on MATLAB by four controllers: the conventional PID, T1FGS-PID controller, IT2FGS-PID controller, and GT2FGS-PID controller. The original position is \(x=[0.3\ 0-0.3145\ 0]^\mathrm{T}\) and the control task involves returning the PIL robot to its balance position \(x=[0\ 0\ 0\ 0]^\mathrm{T}\) through the self-balancing mechanism. For a more comprehensive understanding of the proposed GT2FGS-PID controller performance and robustness, four simulation tasks are performed by the PLI robot system. Consider the matrices Q, R, and \(K_1\), as follows:

$$\begin{aligned} Q = \mathrm{diag} [250,150,150,50], R=10 \end{aligned}$$
(52)
$$\begin{aligned} K_1= [- 9.4663\ -6.773928\ 28.2025\ 7.8361]. \end{aligned}$$
(53)

Moreover, three types of evaluation functions (ISE, IAE, and ITAE) are used to evaluate the control performance of the three control methods quantitatively, and these are defined by Eqs. (54) to (56).

$$\begin{aligned} \mathrm{ISE}= & {} \sum _{n=1}^ke(nT)^2T \end{aligned}$$
(54)
$$\begin{aligned} \mathrm{IAE}= & {} \sum _{n=1}^k|e(nT)|T \end{aligned}$$
(55)
$$\begin{aligned} \mathrm{ITAE}= & {} \sum _{n=1}^k|e(nT)|nT^2, \end{aligned}$$
(56)

where T is the sampling time.

Furthermore, the PSO algorithm is considered to optimize the antecedents of the T1FGS-PID, IT2FGS-PID, and GT2FGS-PID controllers, and it should be noted that the shape of the secondary function of the GT2-FS is also optimized. The selection of the objective function is

$$\begin{aligned} \mathrm{Obj}\_f=\omega _1\sum _{n=1}^k|e(nT)|T+\omega _2\sum _{n=1}^k|e(nT)|nT^2, \end{aligned}$$
(57)

where both \(w_1\) and \(w_2\) are equal to 0.5 in this study.

Remark 3

It should be noted that the optimal parameters are obtained by offline optimization of PSO algorithm. To better apply it to the real system, we refer to references [60,61,62]. In the future research, we will use self-organizing fuzzy controller to improve the online application ability of the controller.

5.1 Normal Case

Figures 17 and 18 illustrate the responses of the PLI robot for the normal case. The original position is \(x=[0.3\ 0\ -0.3145\ 0]^\mathrm{T}\) and the desired balance position is \(x=[0\ 0\ 0\ 0]^\mathrm{T}\). In this case, we assume that the external interference is equal to 0 (\(\tau _1=0\) N). It can be observed that the GT2FGS-PID controller has a smaller overshoot and superior performance compared to other controllers from Figs. 17 and 18 as well as Table 3.

Fig. 17
figure 17

Response of PLI robot for normal case

Fig. 18
figure 18

Response of PLI robot for normal case

Table 3 Performance index results for normal case

5.2 External Disturbance

Figures 19 and 20 illustrate the responses of the PLI robot system for the external disturbance \(\tau _1=100\) N. It can be observed that, although the external interference is sufficiently large, the system can remain stable quickly, and exhibits strong robustness. In particular, according to Table 4, the GT2FGS-PID controller obtains the best results. Moreover, when the external disturbance \(\tau _1\) is increased to 500 N, it can be observed from Figs. 21 and 22 as well as Table 5 that the GT2FGS-PID controller can still exhibit the best control performance.

Fig. 19
figure 19

Response of PLI robot when disturbance value is \(\tau _1=100\) N

Fig. 20
figure 20

Response of PLI robot when disturbance value is \(\tau _1=100\) N

Fig. 21
figure 21

Response of PLI robot when disturbance value is \(\tau _1=500\) N

Fig. 22
figure 22

Response of PLI robot when disturbance value is \(\tau _1=500\) N

Table 4 Performance index results with external disturbance (\(\tau _1=100\) N)
Table 5 Performance index results with external disturbance (\(\tau _1=500\) N)

5.3 Uncertainty in Mass

For a more comprehensive understanding of the robust performance of the GT2FGS-PID controller, we change the quality within a certain range (\(\Delta {m_1}=20\) kg, \(\Delta {m_2}=10\) kg). Figures 23 and 24 as well as Table 6 demonstrate that the proposed controller can completely overcome the change in parameters in the system.

Fig. 23
figure 23

Response of PLI robot with uncertainty in mass

Fig. 24
figure 24

Response of PLI robot with uncertainty in mass

Table 6 Performance Index results with uncertainty in mass

5.4 With White Noise

Figure 25 illustrates the white noise added to the input \(\tilde{x_1}\). Figures 26, 27 and Table 7 illustrate the responses of the robot with white noise. It can be observed that the advantages of the GT2FGS-PID controller are reflected in the face of noise, small amplitude, and short stabilization time, among others.

Fig. 25
figure 25

White noise added to input \(\tilde{x_1}\)

Fig. 26
figure 26

Response of PLI robot with white noise

Fig. 27
figure 27

Response of PLI robot with white noise

Table 7 Performance index results with white noise

Remark 4

In each simulation diagram, it can be observed that the control trends of the four controllers are consistent. This is because the fuzzy controller is responsible for online adjustment of the three parameters \(K_p\), \(K_i\), and \(K_d\), following which the PID controller performs parameter integration and produces the control output. The significance of using FLC controllers lies in two points. First, based on this uncertain and inaccurate nonlinear model, the fuzzy controller can use human experience to set and adjust the parameters of the PID controller online for improved control. Second, in the face of high uncertainty, the FLC controller can exploit its own advantages and reduce the impact of disturbance.

Remark 5

The GT2-FLC is superior to the IT2-FLC and T1-FLC in terms of two aspects. First, the GT2-FLC itself has greater degrees of freedom, which makes it possible to improve the control performance. Second, as an extension of the IT2-FLC, the GT2-FLC control performance is no worse than that of the IT2-FLC, even if no improved parameters are determined to distinguish the difference between the two FLCs.

Remark 6

Since the controlled object of this paper is the same as the literature [8], we compare the results in this paper with that in the literature [8]. Compared with the literature [8], there are two main differences: (1) [8] uses a linear mathematical model, and this paper uses a nonlinear mathematical model in simulation. In fact, the control method based on linear model can hardly be used in PLI robot system; (2) Literature [8] uses adaptive gain-scheduled backstepping control method to PLI robot system. However, the premise of the effectiveness of the adaptive gain-scheduled backstepping control method is that the mathematical model of the PLI robot system with linear form is accurate. However, the mathematical model of PLI robot system with linear form ignores many factors, so it is difficult to apply to practical system. The control method in this paper does not depend entirely on the precise mathematical model, and to improve the realizability of the controller, the PSO algorithm is used to solve the optimal parameters. Therefore, the proposed method has the potential to be applied to practical systems.

6 Conclusions and Future Work

6.1 Conclusions

In this paper, a GT2FGS-PID controller that does not depend entirely on a mathematical model has been proposed to adjust the PLI robot system, because it is difficult to construct a precise mathematical model of the PLI robot system in actual situations. Using information fusion technology, the four-state variables are converted into error and error change rate, so that the controller can be designed conveniently and the rule explosion problem can be avoided. The PSO algorithm is used to solve the problem where by the GT2-FLS parameters are difficult to adjust effectively. The GT2FGS-PID controller is compared to the PID, T1FGS-PID and IT2FGS-PID controllers in the absence of disturbance and various disturbances. The comparison results demonstrate that the proposed GT2FGS-PID provides the best control effect and a strong anti-interference ability.

6.2 Future Work

With the completion of this work, we have several ideas for future work:

  1. 1.

    Constant exploration of the stability conditions of the GT2FGS-PID controller will be undertaken to make the theory more complete.

  2. 2.

    Combining a GT2-FLC with a fractional PID could be an effective concept. The fractional-order PID is a generalization of the integer-order PID, and the fractional-order PID has two more degrees of freedom than the integer-order PID, so its flexibility is superior. This also means that it can be combined with the GT2-FLC and applied to the robot for improved control performance.

  3. 3.

    To reduce the computational complexity of the GT2-FLS, the \(\alpha\)-plane method is used in this study. A higher number of \(\alpha\)-planes selected will yield more accurate results. However, as the number of \(\alpha\)-planes increases, the computational complexity increases significantly, so determining a balance between the two is also a challenging task.