Introduction

The balancing control problem of two wheeled mobile robot is not new in the field of robotics. This type of robot is in great demand nowadays because of their simple structure, simpler dynamics and applications in different fields such as transportation, security, search and rescue, entertainment and reducing the man power. As we know that two wheeled mobile robots are always unstable and also affected by external disturbances, therefore, robust control techniques are also in demand for proper and smooth balancing control and movement of such robots.

The basic control scheme for balancing control of two wheeled mobile robot using pole placement technique is developed by Grasser et al. (2002) in which a gain matrix has to be designed such that the desired poles should be in a linear plant. For designing the controller, various researches have used linear, quadratic regulation (LQR) design technique in which a cost function is considered for minimization (Ha and Yuta 1994; Kim et al. 2005; Akesson et al. 2006). The concept of mobile robots which are based on inverted-pendulum are suggested by Kim et al. (2006) and Takei et al. (2009) whereas the issues related to self-balancing control of two-wheeled robots are discussed by Butler and Bright (2008), Coelho et al. (2008) and Alarfaj and Kantor (2010). The modelling of manually controlled bicycle is suggested by Hess et al. (2012). Whereas, a navigation system for two wheeled mobile robot, to avoid obstacles in an amorphous environment, is presented by Kocaturk (2015). Recently, the Lyapunov function based control and stability region of two wheeled mobile robot is discussed by Kausar et al. (2012a, b, 2013). Another most widely used controllers in the different area of industries are proportional-integral (PI) (Liao and Ming 2010; Takahashi et al. 2001), proportional-derivative (PD) (Hatakeyama and Shimada 2008) and proportional-integral-derivative (PID) (Nasir et al. 2011). The simplicity of PID controller is that three parameters have to be tuned only. The PID controllers are suitable for two wheeled mobile robots because of their degree of freedom- one for tilt and one for speed and depending upon the applicability one for the yaw. Furthermore, numerous technique are available in the literature for balancing control of two wheeled mobile robot like flywheel balancing (Beznos et al. 1998; Gallaspy 1999; Suprapto 2006; Keo et al. 2011), mass balancing (Lee and Ham 2002) and steering balancing (Tanaka and Murakami 2004). The flywheel balancing is most widely used technique because of its short response time. Simultaneously, number of balancing control algorithm for two wheeled mobile robots have been developed by many researchers like nonlinear control algorithm is developed by Beznos et al. (1998). Gallaspy (1999) suggested compensator design using root locus technique whereas PD control algorithm was given by Suprapto (2006). In Martínez et al. (2009), unicycle mobile robot model has been considered for interval type-2 fuzzy logic controller design whereas in Das and Kar (2006), nonholonomic mobile robot has been considered for adaptive fuzzy logic-based controller design. Both of these papers consider mobile robots with two driving wheels mounted on the same axis and a front free wheel.

Further, the number of linear controllers came into the picture like \({H_2}\) and \({H_\infty }\) controllers because of their robustness. They are more robust as compared to other controllers available in the literature because they are less sensitive to external disturbances and errors. The first technique to design robust controller for the system with various uncertainties is developed by Bernstein and Haddad (1989) which is based on a Riccati equation. Khargonekar and Rotea (1991) suggested a robust technique in which mixed \({H_2}/{H_\infty }\) control is used for such type of systems. Rotea and Khargonekar (1991) suggested \({H_2}\) optimal control with a \({H_\infty }\) constraint based on state feedback. Whereas multi objective \({H_2}/{H_\infty }\) control technique is proposed by Scherer (1995). Recently, number of researches used nature inspired search algorithm for designing of robust controllers. Bui and Parnichkun (2008) suggested balancing control using particle swarm optimization whereas genetic algorithm based mixed \({H_2}/{H_\infty }\) control scheme is used by Chen et al. (1995), Krohling (1998), Chang (2005), Ho et al. (2004, 2005). The complex design procedure and achieve higher order controller is the major drawback of such type of controllers. Furthermore, a large number of order reduction techniques have been suggested, recently, by several authors in the literature (Yamada and Ikeda 2014; Vishwakarma and Prasad 2014; Sikander and Prasad 2015a, b, c; Hummer and Szabo 2015; Sambariya and Gyanendra 2016). Therefore, an algorithm is required which generates a lower order controller which preserve all necessary properties of the higher order controller. The lower order controller may lead to less computation effort, reduce cost and simulation time.

So this paper contributes a novel technique to design pre-specified structure controller for balancing of two wheeled mobile robot using reduced order modelling which is based on nature inspired search algorithm called cuckoo search. In this technique, cuckoo search algorithm is employed to achieve the coefficients of numerator and denominator polynomials of the reduced order controller by minimizing the integral square error between original and reduced order controller. The first, second and third order controllers designed by the proposed method are compared with higher order controller and other reduced order controllers available in the literature in terms of different performance criteria. The performance of the two wheeled mobile robot is analysed with higher and reduced order controllers in the presence of uncertainties also. It is found that the proposed third order controller exhibits excellent performance as compared to other controllers.

Fig. 1
figure 1

Graphical representation of parameters of TWMR. a Side view, b front view

Mathematical model of two wheeled mobile robot

The model of two wheel mobile robot (TWMR) considered in this paper is a typical example of bicycle mobile robot as shown in Fig. 1, it consists of two driving wheels mounted on the different axis (Bui and Parnichkun 2008). The aim of this robot is to move, without falling down, forward, backward, left and right with or without load. The major issue with bicycle mobile robot is, balancing of this type of robot is not an easy task due to unstable nature of the robot and various uncertainties. Therefore, many authors suggested various control algorithms to tackle this issue (Bui and Parnichkun 2008; Chen et al. 1995; Krohling 1998; Chang 2005; Ho et al. 2004, 2005). Among all the techniques, the balancing using flywheel is used mostly in which a flywheel is put on the robot to balance the torque generated by the robot due to gravity. The dynamics model of the two wheeled mobile robot is derived using Lagrange equation as follows-

$$\begin{aligned} \frac{{d}}{{{d}t}}\left\{ {\frac{{\partial K}}{{\partial \mathop {{f_i}}\limits ^. }}} \right\} - \frac{{\partial K}}{{\partial {f_i}}} + \frac{{\partial P}}{{\partial {f_i}}} = {F_i} \end{aligned}$$
(1)

where K is the system total kinetic energy, P is system total potential energy, \(F_i\) is external forces and \(f_i\) is generalised coordinate. K and P are calculated as follows-

$$\begin{aligned} P= & {} {m_{r}}g{h_{r}}\cos \alpha + {m_{f}}g{h_{f}}\cos \alpha \end{aligned}$$
(2)
$$\begin{aligned} K= & {} \frac{1}{2}{m_{r}}({{{{\dot{\alpha }}} }^2}h_{r}^2) + \frac{1}{2}{m_{f}}({{{{\dot{\alpha }}} }^2}h_{f}^2) + \frac{1}{2}{I_{r}}{{{{\dot{\alpha }}} }^2}\nonumber \\&+\,\frac{1}{2}\left[ {I_{m}}{{{{\dot{\beta }}} }^2} + {I_{f}}{({{\dot{\alpha }}} \sin \beta )^2} + {I_{m}}{({{\dot{\alpha }}} \cos \beta )^2}\right] \end{aligned}$$
(3)

where \({m_r}\) is mass of robot and \({m_{f}}\) is mass of flywheel, \(\alpha \) is lean angle of robot around Z axis, \(\beta \) is the angel of the flywheel along \(Z_1\) axis, \({{\dot{\alpha }}}\) is angular velocity of the robot around Z axis, \({{\dot{\beta }}}\) is angular velocity of the flywheel along \(X_1\) axis, \({h_r}\) is the height of centre of gravity of robot whereas \({h_{f}}\) is the height of flywheel centre of gravity, \({I_{r}},{I_{m}},{I_{f}}\) are robot moment of inertia, flywheel radial moment of inertia and flywheel polar moment of inertia respectively.

For \({f_i} = \alpha \), using Eqs. 13, the following equation is obtained-

$$\begin{aligned}&{{\ddot{\alpha }}} \left[ {m_{r}}h_{r}^2 + {m_{f}}h_{f}^2 + {I_{r}} + {I_{f}}{\sin ^2}\beta + {I_{m}}{\cos ^2}\beta \right] \nonumber \\&\quad +\, 2\sin \beta \cos \beta ({I_{f}} - {I_{m}}){{\dot{\alpha }}} {{\dot{\beta }}} \nonumber \\&\quad - g({m_{r}}{h_{r}} + {m_{f}}{h_{f}})\sin \alpha = {I_{f}}\omega {{\dot{\beta }}} \cos \beta \end{aligned}$$
(4)

Similarly, for \({f_i} = \beta \) the following equation is obtained-

$$\begin{aligned} {{\ddot{\beta }}} {I_{m}} - {{{{\dot{\alpha }}} }^2}({I_{f}} - {I_{m}})\sin \beta \cos \beta= & {} {T_{m}} - {I_{f}}\omega {{\dot{\alpha }}} \cos \beta \nonumber \\&- {V_{m}}{{\dot{\beta }}} \end{aligned}$$
(5)

\({T_{m}}\) is torque developed by the motor and motor viscosity coefficient is \({V_{m}}\).

The dynamics of DC motor with 5 : 1 ratio is assumed for chain transmission system of the motor and the following relations are obtain-

$$\begin{aligned} {T_m}= & {} 5{K_m}i \end{aligned}$$
(6)
$$\begin{aligned} U= & {} L\frac{{di}}{{dt}} + Ri + {K_e}{{\dot{\beta }}} \end{aligned}$$
(7)

\({K_{m,}}{K_e}\) are the torque and back emf constants of the motor respectively. R and L are armature resistant and inductance of the motor respectively.

By substituting Eq. (6) into (5) and linearising Eqs. (4) and (5) around the equilibrium point, the relations are achieved as follows-

$$\begin{aligned}&{{\ddot{\alpha }}} [{m_{r}}h_{r}^2 + {m_{f}}h_f^2 + {I_{r}} + {I_{m}}] \nonumber \\&\quad -\, g({m_{r}}{h_{r}} + {m_{f}}{h_{f}})\alpha - {I_{f}}\omega {{\dot{\beta }}} = 0 \end{aligned}$$
(8)
$$\begin{aligned}&{{\ddot{\beta }}} {I_{m}} + {I_{f}}\omega {{\dot{\alpha }}} + {V_{m}}{{\dot{\beta }}} - 5{K_{m}}i = 0 \end{aligned}$$
(9)

Let us consider that \(x = [\alpha \;\;{{\dot{\alpha }}} \;\;{{\dot{\beta }}} \;\;i]', y = \alpha \) and \(u = U\). On combining Eqs. (7)–(9), the state space model of the system is represented as follows-

$$\begin{aligned} \left\{ \begin{array}{l} \dot{x} = Ax + Bu\\ y = Cx + Du \end{array} \right. \end{aligned}$$
(10)

where

$$\begin{aligned} A= & {} \left[ \begin{array}{cccc} 0 &{} 1 &{} 0 &{} 0\\ \frac{{g({m_{r}}{h_{r}} + {m_{f}}{h_{f}})}}{{{m_{r}}h_{r}^2 + {m_{f}}h_{f}^2 + {I_{r}} + {I_{m}}}} &{} 0 &{}\frac{{{I_{f}}\omega }}{{{m_{r}}h_r^2 + {m_{f}}h_{f}^2 + {I_{r}} + {I_{m}}}} &{} 0\\ 0 &{} - \frac{{{I_{f}}\omega }}{{{I_{m}}}} &{}- \frac{{{V_{m}}}}{{{I_{m}}}} &{} \frac{{5{K_{m}}}}{{{I_{m}}}}\\ 0 &{} 0 &{}- \frac{{{K_{e}}}}{L} &{} - \frac{R}{L} \end{array} \right] \nonumber \\ \end{aligned}$$
(11)
$$\begin{aligned} B= & {} [0\quad 0\quad 0\quad 1/L]',\;\;C = [1\quad 0\quad 0\quad 0],\;\;D = [0] \end{aligned}$$
(12)

The graphical representation of the parameters of two wheeled mobile robot and flywheel are depicted in Figs. 1 and 2 respectively where F and R denote flywheel and robot centre of gravity. The robot has one degree of freedom with rotation around Z-axis only whereas flywheel has three degree of freedom including rotation around \(X_1\), \(Y_1\) and Z axes as shown in Fig. 2.

Fig. 2
figure 2

Graphical representation of parameters of flywheel. a Side view, b front view

Cuckoo search algorithm

Cuckoo search (CS) is an optimization technique/algorithm which is inspired by Nature (Yang and Deb 2008). This technique is based on the common behaviour of the cuckoo bird. All the cuckoo birds lay down their eggs into to the other bird’s nest for fertilization. It is possible that the other birds may recognize that it is not their eggs then either they throw the eggs or form a new nest at new place which results in the evolution of cuckoo eggs (Yang and Deb 2009).

A set of host nest show the cuckoo breading analogy. Each nest carries an egg which is considered as a solution. A new nest is formed using Lévy flight i.e. random walk (Brown et al. 2007; Viswanathan 2010). Success of resources random searches can be optimize using the Lévy flight movements (Humphries et al. 2012).

Yang and Deb (2008) gives the following three rules to combine the apply cuckoo species with the Lévy flight:

  • For laying down the egg, the nest should be selected at random and dump by every cuckoo.

  • The nest must be transferred to the next generation if good quality eggs are found in it.

  • The probability of an alien egg which can be observed by the fixed number of host nest is \({p_a} \in [0,1]\). In such cases the host nest either throw the alien egg or form a new nest at any other place.

For easiness, the fraction of \({p_a}\) of n nests, which are interchanged new nests, is considered the approximation of previous assumption.

The Lévy flight can be represented b the following relation for the generation of new solution \(Y(t + 1)\) of cuckoo i (Yang and Deb 2009)

$$\begin{aligned} {Y_i}^{(t + 1)} = {Y_i}^{(t)} + a \otimes \text {L}\acute{{e}}\text {vy}(\lambda ) \end{aligned}$$
(13)

where \(a\,(a > 0)\) is a step size which is related to the level of the problem optimized by the technique. The random step size of the Lévy flights are calculated as follows-

$$\begin{aligned} \text {L}\acute{{e}}\text {vy}~\tilde{{u}} = {t}^{-\lambda };\quad \;(1 < \lambda \le 3) \end{aligned}$$
(14)
Table 1 Values of the parameters of two wheeled mobile robot

Proposed methodology for controller design via reduced order modelling

The pre-specified structure controller is a controller whose order can be selected depending upon the requirement such as robust stability against plant perturbation, external disturbances and tracking error etc. In general the structure specified controller is represented as follows-

$$\begin{aligned} {G_{cr}}(s) = \frac{{{a_m}{s^m} + {a_{m - 1}}{s^{m - 1}} + \ldots + {a_0}}}{{{s^n} + {b_{n - 1}}{s^{n - 1}} + \ldots + {b_0}}} \end{aligned}$$
(15)

where \({a_0}, {a_1} \ldots {a_m}, {b_0}, {b_1} \ldots {b_{n-1}}\) are unknown constants and the desired structure specified controller can be achieve by selecting the suitable values of m and n such as first order controller, second order controller and third order controller etc. The following steps are used to calculate the unknown constants of the structure specified controller by minimizing the integral square error using cuckoo search algorithm.

  • Step 1 Specify the fitness function and the number of chosen variables (say q) along with their range. Set the probability of the worst nests and step size also. Initialization of a population of p host nests then problem is summarised as-

    Minimize fitness function \({F_\alpha }\) , subject to \({a_{iL}}< {a_i} < {a_{iU}}\) and \({b_{iL}}< {b_i} < {b_{iU}}\)

    Where, \({a_{iL}},{b_{iL}}\) and \({a_{iU}},{b_{iU}}\) are the lowest and highest values of the chosen variables respectively and \(i = 0,1 \ldots q.\)

  • Step 2 Obtain the value of \({F_\alpha }\) for a randomly selected cuckoo \((\alpha )\) and select a nest \((\beta )\) randomly among p.

  • Step 3 if \(({F_\alpha } > {F_\beta })\) then interchange \(\beta \) by the current obtained solution.

  • Step 4 Check whether the predefined stopping criterion is arrived or the maximum generation occurred or not if yes, then the solution obtained in the current generation would be the best solution otherwise go to next step.

  • Step 5 Abandon a fraction of worse nests with optimal value of probability \({p_a}\) and step size a.

  • Step 6 Using Eq. (13) the obtained solution must be updated by calculating \(Y_i^{(t + 1)}\) and repeat this algorithm, until the predefined condition is arrived or the maximum generation occurred.

Furthermore, the efficacy of the controller obtained by the proposed method is evaluated by using the following performance indices-

$$\begin{aligned} {\textit{ISE}}= & {} \int _0^\infty {{{[{g_{c}}(t) - {g_{cr}}(t)]}^2}} {d}t \end{aligned}$$
(16)
$$\begin{aligned} {\textit{IAE}}= & {} \int _0^\infty {\left| {{g_{c}}(t) - {g_{cr}}(t)} \right| \;} {d}t \end{aligned}$$
(17)
$$\begin{aligned} {\textit{ITAE}}= & {} \int _0^\infty {t.\left| {{g_{c}}(t) - {g_{cr}}(t)} \right| \;} {d}t \end{aligned}$$
(18)

where ISE, IAE and ITAE are integral square error, integral of absolute error and integral of time multiplied by absolute error respectively. \({g_{c}}(t)\) and \({g_{cr}}(t)\) are step responses of high and reduced order controller respectively.

Computational experiments

The values of the parameters of two wheeled mobile robot are depicted in Table 1. By substituting these values into Eq. 10 the transfer function of the two wheeled mobile robot is given as-

$$\begin{aligned} G(s) = \frac{{\alpha (s)}}{{U(s)}} = \frac{{4887}}{{{s^4} + 683.3{s^3} + 1208{s^2} + 109700s - 6949}} \end{aligned}$$

where \(\alpha (s)\) is the output lean angle of robot and U(s) is the input voltage to the DC motor that controls flywheel control axis. Let, following cases are there for perturbed two wheeled mobile robot.

Case1::

Let us assume that the additional 10 kg load is added and the speed of flywheel is decreased to 147 rad/s then the perturbed mobile robot governs by the following transfer function.

$$\begin{aligned} G'(s) = \frac{{3784}}{{{s^4} + 683.3{s^3} + 1162{s^2} + 78290s - 6857}} \end{aligned}$$
Case2::

If extra \(10~\hbox {kg}\) load is added again and the speed of flywheel is boost up to \(167\,\hbox {rad}/\hbox {s}\) then the perturbed mobile robot is represented by the following transfer function.

$$\begin{aligned} G''(s) = \frac{{4299}}{{{s^4} + 683.3{s^3} + 1197{s^2} + 102300s - 6857}} \end{aligned}$$

The design algorithm for balancing control of robot is discussed by Bui and Parnichkun (2008) and the \({H_\infty }\) controller is designed as follows-

$$\begin{aligned} {G_{c}}(s) = \frac{1275{s^5} + 8.695 \times {10^5}{s^4} + 5.151 \times {10^5}{s^3} + 1.359 \times {10^8}{s^2} + 2.435 \times {10^7}s + 1.091 \times {10^6}}{{s^6} + 715.7{s^5} + 2.355 \times {10^4}{s^4} + 2.789 \times {10^5}{s^3} + 3.802 \times {10^6}{s^2} + 6.519 \times {10^5}s + 2.872 \times {10^4}} \end{aligned}$$

This \({H_\infty }\) controller is of sixth order. Therefore, practically this higher order controller is difficult to implement. In the following sections, implementation of lower order controllers such as first, second and third order controller designs are proposed and compared with other well-known controllers available in the literature. A comparison of the performance indices and time response specifications of closed loop system using different controllers is also included.

Design of first order controller

The first order controller using proposed method is obtained as follows.

$$\begin{aligned} {G_{{cr}\_{proposed}1}}(s) = \frac{{150}}{{s + 4.367}} \end{aligned}$$

whereas the PD controller (Bui et al. 2010), first order controller based on GA (Bui and Parnichkun 2008) and based on PSO (Bui et al. 2010) are given as follows-

$$\begin{aligned} {G_{{cr}\_{PD}}}(s)= & {} 2.5s + 30\\ {G_{{cr}\_{GA}}}(s)= & {} \frac{{197.33}}{{s + 4.91}}\\ {G_{{cr}\_{PSO}}}(s)= & {} \frac{{135.2}}{{s + 4.63}} \end{aligned}$$
Fig. 3
figure 3

Time response of original and reduced first order controllers with TWMR

Fig. 4
figure 4

Time response of original and reduced first order controllers with perturbed TWMR. a Case-1, b Case-2

The closed loop step responses of two wheeled mobile robot using different first order controllers are shown in Fig. 3. The closeness of responses can be observed from enlarge view. It is found that the closed loop response of TWMR using proposed first order controller is closer to the response of TWMR using higher order controller as compared to the controllers obtained by other methods. The closed loop step responses of perturbed TWMR for case-1 and case-2 are shown in Fig. 4. It observed that the proposed first order controller exhibits better performance in case of perturbation. Table 2 depicts the performance comparison of closed loop TWMR using first order controllers in terms of maximum overshoot (\({M_{p}}\)) in percentage, settling time (\(t_{s}\)), rise time (\(t_{r}\)) in second and performance indices such as integral square error (ISE), integral absolute error (IAE) and integral time absolute error (ITAE). It is also clear from this table that the proposed controller also exhibits the lesser values of performance indices.

Table 2 Performance comparison of closed loop TWMR using first order controllers

Design of second order controller

The second order controller using proposed method is obtained as follows.

$$\begin{aligned} {G_{{cr}\_{proposed}2}}(s) = \frac{{\mathrm{{266}}\mathrm{{.5 s + 595}}\mathrm{{.6}}}}{{{s^2} + 8.858s + 17.03}} \end{aligned}$$

whereas the transfer function of second order controller based on PSO (Bui et al. 2010) is given as follows-

$$\begin{aligned} {G_{{cr}\_{PSO}}}(s) = \frac{{\mathrm{{129}}\mathrm{{.7 s + 499}}\mathrm{{.6}}}}{{{s^2} + 6.835s + 16.18}} \end{aligned}$$
Fig. 5
figure 5

Time response of original and reduced second order controllers with TWMR

Fig. 6
figure 6

Time response of original and reduced second order controllers with perturbed TWMR. a Case-1, b Case-2

Table 3 Performance comparison of closed loop TWMR using second order controllers

The closed loop step response of two wheeled mobile robot using different second order controllers is shown in Fig. 5. The closeness of responses can be observed from enlarge view. It is found that the closed loop response of TWMR using proposed second order controller is closer to the response of TWMR using higher order controller as compared to the controllers obtained by other methods. The closed loop step responses of perturbed TWMR for case-1 and case-2 are shown in Fig. 6. It observed that the proposed second order controller exhibits better performance in case of perturbation. Table 3 depicts the performance comparison of closed loop TWMR using second order controllers in terms of maximum overshoot \(({M_p})\) in percentage, settling time \((t_s)\), rise time \((t_r)\) in second and performance indices such as integral square error (ISE), integral absolute error (IAE) and integral time absolute error (ITAE). It is also clear from this table that the proposed controller provides the comparable performance.

Fig. 7
figure 7

Time response of original and reduced third order controllers. a Without TWMR, b with TWMR, c with perturbed TWMR Case-1, d with perturbed TWMR Case-2

Design of third order controller

Similarly, the reduced third order controller is obtained as follows-

$$\begin{aligned} {G_{{cr}\_{proposed}}}(s) = \frac{{1241{s^2} + 234.8s + 1.936 \times {{10}^5}}}{{{s^3} + 32.47{s^2} + 395s + 5274}} \end{aligned}$$

whereas the third order reduced controllers designed by Schur Analysis (SA) (Nguyen et al. 2013), Balanced Truncation (BT) (Moore 1981) and Modal Truncation (MT) (Liu and Anderson 1989) are represented by the following transfer functions respectively.

$$\begin{aligned} {G_{{cr}\_{SA}}}(s)= & {} \frac{{1275{s^2} + 234.8s + 1.993 \times {{10}^5}}}{{{s^3} + 33.78{s^2} + 395s + 5506}}\\ {G_{{cr}\_{BT}}}(s)= & {} \frac{{1275{s^2} + 233.8s + 1.992 \times {{10}^5}}}{{{s^3} + 33.78{s^2} + 395s + 5499}}\\ {G_{{cr}\_{MT}}}(s)= & {} \frac{{1057{s^2} + 226.5s + 1.638 \times {{10}^5}}}{{{s^3} + 27.99{s^2} + 395.9s + 4521}} \end{aligned}$$

When subjected to unit step input, the time responses of full and reduced third order controllers are shown in Fig. 7a. It is observed that reduced third order controller obtained by proposed technique is much closer as compared to the controllers designed by other well-known techniques available in the literature. The closed loop step response of two wheeled mobile robot with full and reduced third order controllers is depicted in Fig. 7b. Hence the superiority of the proposed controller can be examined as it exhibits better performance as compared to other controllers.

Table 4 Comparison of reduced third order controllers in terms of error indices
Table 5 Poles of higher order and reduced order controllers
Fig. 8
figure 8

Comparison of first, second and third order controller

Table 6 Performance comparison of closed loop TWMR using third order controllers

The comparative analysis of reduced order controllers in terms of error indices is depicted in table 4 from which it is clear that the proposed reduced order controller gives lowest values of these error indices. Furthermore, to show the powerfulness of the proposed controller, its behaviour is analysed under two different cases of perturbed mobile robot as discussed above. The performance of perturbed mobile robot with full and reduced order controllers for case-1 and case-2 are depicted in Fig. 7c, d respectively. It is found that that proposed controller exhibits excellent performance for perturbed mobile robot also as compared to other well-known controllers. The poles of higher order and reduced order controllers are tabulated in Table 5 from which it is noticed that the proposed controller preserves the dominant poles of the full order controller. The step resonses of first, second and thrid order controllers obtained by proposed method is shown in Fig. 8. Furthermore, Table 6 depicts the performance comparison of closed loop TWMR using third order controllers in terms of time response specifications and performance indices. It is also clear from this table that the closed loop step response of TWMR with proposed third order controller is much better as compared to other controllers.

Conclusion

In this paper, the concept of reduced order modelling is utilised to design pre-specified structure controller for balancing control of two wheeled mobile robot. The three controllers are designed, namely, first, second and third order. Cuckoo search algorithm is employed to obtain the unknown parameters of the proposed reduced order controllers. The performance of the proposed/designed controllers is analysed in terms of time response specifications and performance indices such as ISE, IAE and ITAE. Two different cases of perturbed mobile robot are also considered to analyse the robustness and powerfulness of the proposed controllers. To show the efficacy of the proposed technique, the performance of the proposed controllers is compared with recently developed controllers such as Schur analysis based controller, GA based controller, PSO based controller and \(H_\infty \) controller etc. It is found that the proposed third order controller perform well not only under normal conditions but also, in the presence of parameter uncertainty in the two wheeled mobile robot.