Mathematical Problems in Engineering

Volume 2014 (2014), Article ID 284216, 8 pages

http://dx.doi.org/10.1155/2014/284216

## Terminal Sliding Mode Control of Mobile Wheeled Inverted Pendulum System with Nonlinear Disturbance Observer

^{1}Key Laboratory of Ministry of Education for Image Processing and Intelligent Control, School of Automation, Huazhong University of Science and Technology, No. 1037, Luoyu Road, Hongshan District, Wuhan, Hubei 430074, China^{2}Faculty of Control Science, University of Science and Technology, Unjong District, Pyongyang 999093, Democratic People's Republic of Korea

Received 6 June 2014; Accepted 30 August 2014; Published 29 September 2014

Academic Editor: Kang Li

Copyright © 2014 SongHyok Ri et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

A terminal sliding mode controller with nonlinear disturbance observer is investigated to control mobile wheeled inverted pendulum system. In order to eliminate the main drawback of the sliding mode control, “chattering” phenomenon, and for compensation of the model uncertainties and external disturbance, we designed a nonlinear disturbance observer of the mobile wheeled inverted pendulum system. Based on the nonlinear disturbance observer, a terminal sliding mode controller is also proposed. The stability of the closed-loop mobile wheeled inverted pendulum system is proved by Lyapunov theorem. Simulation results show that the terminal sliding mode controller with nonlinear disturbance observer can eliminate the “chattering” phenomenon, improve the control precision, and suppress the effects of external disturbance and model uncertainties effectively.

#### 1. Introduction

Mobile wheeled inverted pendulum- (MWIP-) based robots are able to provide effective physical assistance to humans in various activities such as delivery and touring. Recently, many robotic systems are designed based on MWIP model, such as Segway [1], JOE [2], UW-Car [3], and PMP [4].

However, the control of the inherent unstable MWIP system is a challenge. First of all, the dynamics of MWIP system is underactuated; that is, the number of the control inputs is less than the number of the degrees of freedom to be stabilized. In addition, MWIP systems are different from either the conventional cart and pendulum systems or the conventional nonholonomic systems. Therefore, many available control design approaches are not applicable to the MWIP systems.

In the past several years many approaches have been applied in the control of MWIP, including the linear [5] or feedback linearization [6] methods, fuzzy control methods [7], neural network-based methods [8], adaptive control, and optimized model reference adaptive control [9].

The sliding mode control (SMC) approach seems an appropriate control method to deal with uncertain MWIP systems because SMC is less sensitive to model uncertainty and noise disturbances. Sankaranarayanan and Mahindrakar [10] proposed a sliding mode control algorithm to robustly stabilize a class of underactuated mechanical systems that are not linearly controllable and violate Brockett’s necessary condition for smooth asymptotic stabilization of the equilibrium, with parametric uncertainties.

Park et al. [11] proposed an adaptive neural SMC method for trajectory tracking control of nonholonomic wheeled mobile robots with model uncertainties and external disturbances. Huang et al. [12] proposed a velocity control method for the MWIP based on sliding mode and a novel sliding surface.

Terminal sliding mode control (TSMC) of finite-time convergence is a variable structure control method whose formation and development are based on the introduction of a nonlinear function into sliding hyperplane. Compared to the conventional SMC, TSMC provides faster finite-time convergence and higher control precision. So far, the research of control methods of the terminal sliding mode control can be mainly divided into two types, that is, fractional exponent method such as [13] and cubic polynomials [14]. Bayramoglu and Komurcugil [15, 16] proposed a nonsingular decoupled terminal sliding mode control (NDTSMC) method for a class of underactuated fourth-order nonlinear systems. This control method is relatively simple. However, these references do not involve how to choose two intermediate parameters and , which brings difficulty of their practical applications. Huang et al. [3], for a novel narrow vehicle based on an MWIP system and a movable seat, called UW-Car, proposed two terminal sliding mode controllers to control the velocity and braking.

Although TSMC controller is less sensitive to parameter variations and noise disturbances, its robustness is normally obtained by increasing the switch gain . Note that a bigger also brings chatter to the system which is the main drawback of the SMC.

Disturbance observer might be a candidate solution for the problem. It is found that using a disturbance observer can further improve the robustness of controller. A nonlinear disturbance observer was proposed by Mohammadi et al. [17] to manage the disturbance of nonlinear system, which is applied for a 4-degree-of-freedom SCARA manipulator. Chen [18] proposed a nonlinear disturbance observer to deal with the disturbance of nonlinear system, which is applied to tracking control of pneumatic artificial muscle actuator by using DSC control method [19]. Wei et al. [20], for uncertain structural systems, proposed a new type of composite control scheme of disturbance-observer-based control and terminal sliding mode control (TSMC). Yang et al. [21], for systems with mismatched uncertainties, proposed a sliding mode control approach by using a novel sliding surface based on a disturbance observer.

However, most of the aforementioned studies rarely discussed terminal sliding mode control with disturbance observer for an underactuated system such as the MWIP.

In this paper, we proposed a terminal sliding mode controller with nonlinear disturbance observer (TSMCNDO) for the balance control of an MWIP system. Compared with the conventional sliding mode controller in [14], larger stability region, very higher control precision, and smaller chattering can be achieved by applying the TSMCNDO strategy.

The rest of this paper is organized as follows. The MWIP system formulation and a nonlinear disturbance observer are discussed in Section 2. The terminal sliding mode control with nonlinear disturbance observer (TSMCNDO) and stability analysis are discussed in Section 3. Section 4 presents some MATLAB simulation results and the paper finally ends by the conclusion in Section 5.

In the rest of this paper, denotes a nominal value of .

#### 2. System Formulation

##### 2.1. MWIP System Dynamic Model

The MWIP system is a one-dimensional inverted pendulum that rotates about the wheels’ axles. Hence, inclination and translational motion of the body determined the whole motion on a plane. Figure 1 shows the structure of an MWIP system, where and are the inclination angle of the body and the wheel’s rotation angle, respectively. To describe the parameters of the MWIP system, some notations should be clarified first (see also Figure 1), which are shown in Table 1.

Lagrange’s motion equation is used to analyze the dynamics of this system, which leads to a second-order underactuated model given by Huang et al. [12]. Consider where parameters , and satisfy Add the first equation of (1) to the second one and consider external disturbance; we have where are used to denote external disturbance.

##### 2.2. Nonlinear Disturbance Observer Design

In order to improve the robustness and control precision of the MWIP system, it is necessary to design a nonlinear disturbance observer estimating model uncertainties and external disturbance. This subsection illustrates the design procedure of a nonlinear disturbance observer in the MWIP system.

For the nonlinear underactuated system with disturbances, in order to simplify the denotation, we can rewrite (3) as where Then, we can get The lumped disturbance vector is defined as Therefore, the effect of all modelling uncertainties and external disturbance is lumped into a single disturbance vector . From (4), it is seen that To estimate the lumped disturbance , the nonlinear disturbance observer is designed as follows: Define as the disturbance tracking error and using (9), it is observed that or, equivalently, In general, there is no prior information about the derivative of the disturbance . When the disturbance varies slowly relative to the observer dynamics, it is reasonable to suppose that . Then, we get Let us define an auxiliary variable , where . Substitute it into (9); the observer can be designed as where observer gain matrix and vector satisfy is a constant invertible matrix; that is, Substituting (14) and (15) into (13) and using (4) we have where Therefore, the disturbance observer can be designed as follows:

#### 3. Controller Design

The MWIP system model (3) can be rewritten as From the two equations of (19), we have According to the TSMC method proposed in [14], the sliding surface is defined as follows: where , and is the reference value. And, The TSMC method is applied to the subsystem (20). The desired inclination angle and its rate of change are expected to be zero. Let us define the following sliding surfaces: where is a positive constant. The augmenting function is designed as cubic polynomials that guarantee Assumption 1 in [14] holds.

*Assumption 1. *The tracking errors of the nonlinear disturbance observer are bounded and satisfy
where and are known bounds.

Theorem 2. *The sliding surfaces (23) will be achieved while the inclination angle converges to zero in finite time if the following control law is applied to the subsystem (20):
**
where
*

*Proof. *Choose the following Lyapunov function candidate:
Differentiating (27) along the controlled system (20) yields
Substituting (25) into (28)
Therefore, is a positive-definite function and is a negative-definite function. From Remark 1 in [14], it is easily known that , and it implies that . Thus, it implies that and . This completes the proof.

*Theorem 3. For the internal dynamic model of the MWIP system (the second equation of (3)), the proposed TSMCNDO controller (25) guarantees that the angular velocity can converge to zero.*

*Proof. *Similar to Proposition 2 in [3], the second equation of (3) can be rewritten as
where and . Therefore, we can know, the solution of (30) is asymptotically stable. From Theorem 2, it follows that and converge to zero, which makes finally converge to zero. This results in the final convergence of .

*4. Simulation Study*

*In order to verify the performance of the proposed controller, we present some simulations in this section. In the simulations, the nominal values of system parameters come from a real MWIP-based vehicle. All the parameters are given in Table 2.*

*The external disturbance is assumed as
The augmenting function is designed as a cubic polynomial:
where
For the sliding surface, were used.*

*Suppose the initial conditions are given by , , , and .*

*We consider the balance control of MWIP systems by using the conventional linear quadratic regulator (LQR), the TSMC in [14], and the TSMCNDO proposed in this paper. When using the LQR controller, an approximately linearized dynamic model was established by choosing state as . The calculated state feedback gain matrix of LQR controller is .*

*In order to avoid chattering associated with the terminal sliding mode control law, we have approximated the discontinuous sign function with continuous saturation function defined as
where is boundary layer. For applying the two control strategies to the subsystem (20), the determined parameters of all controllers are listed in Table 3.*

*The balance control simulation results of the MWIP system with uncertainties and disturbances using the LQR, the TSMC given by [14], and the TSMCNDO proposed in this paper are shown in Figures 2, 3, 4, and 5.*

*Figure 6 shows the inclination angle tracking errors of the MWIP system considering uncertainties and disturbances using the two control strategies.*

*From Figures 2–6 the following turn out.(1)The control performance of LQR controller seems worst because it is not designed to deal with the model uncertainties and external disturbance.(2)Even if there are model uncertainties and external disturbance, the inclination angle, angular velocity, and wheel rotation velocity of the MWIP system will finally converge when either TSMC or TSMCNDO controller is employed.(3)The control performance of the MWIP system by using TSMCNDO control strategy is better than the one by using TSMC control strategy. The effect of external disturbance on the MWIP system is significantly reduced by using TSMCNDO control strategy while it still remains when using a conventional TSMC controller.*

*In the case of TSMC strategy, the control precision of the system is mainly related to parameter . In order to improve the control precision of the MWIP system, usually smaller value of the parameter should be chosen. However, the chattering will increase as the value of decreases. On the other hand, when using the TSMCNDO strategy, a satisfactory control performance can be easily achieved even if the value of parameter is relatively large. This is because the NDO can compensate the lumped disturbance in a feedforward way.*

*In a word, the proposed TSMCNDO control strategy is superior to a conventional LQR or TSMC strategy in the balance control of an MWIP system.*

*5. Conclusion*

*The balance control of MWIP system is a challenge due to its strong nonlinearity and underactuated feature. The TSMC seems an appropriate method because it can deal with both the modeling uncertainties and external disturbances. In addition, a TSMC controller can guarantee the system trajectory converges in a finite time, whereas there are few researches about the robust finite-time control strategy applied in an underactuated system such as an MWIP. The main contribution of this paper lies in the following.(1)We formulated the TSMC design for the balance control of the underactuated MWIP system.(2)To remove the “chattering” caused by sliding mode control and further improve the control performance, a new TSMCNDO strategy is proposed for controlling the MWIP system.*

*Together with the nonlinear disturbance observer, the control precision is significantly enhanced by the proposed method even if the boundary layer parameter is relatively large. Simulation results demonstrate the effectiveness of the proposed methods.*

*Conflict of Interests*

*The authors declare that there is no conflict of interests regarding the publication of this paper.*

*Acknowledgments*

*This work was partially supported by the International Science and Technology Cooperation Program of Hubei Province “Joint Research on Green Smart Walking Assistance Rehabilitant Robot” under Grant no. 2012IHA00601, the Fundamental Research Funds for the Central Universities (HUST) under Grant no. 2013ZZGH007, and the National Natural Science Foundation of China under Grant 61473130 and was partially supported by Program for New Century Excellent Talents in University (Grant no. NCET-12-0214).*

*References*

- D. Kamen, “Segway Company,” San Francisco, Calif, USA, 2010, http://www.segway.com.
- F. Grasser, A. D’Arrigo, S. Colombi, and A. C. Rufer, “JOE: a mobile, inverted pendulum,”
*IEEE Transactions on Industrial Electronics*, vol. 49, no. 1, pp. 107–114, 2002. View at Publisher · View at Google Scholar · View at Scopus - J. Huang, F. Ding, T. Fukuda, and T. Matsuno, “Modeling and velocity control for a novel narrow vehicle based on mobile wheeled inverted pendulum,”
*IEEE Transactions on Control Systems Technology*, vol. 21, no. 5, pp. 1607–1617, 2013. View at Publisher · View at Google Scholar · View at Scopus - M. Sasaki, N. Yanagihara, O. Matsumoto, and K. Komoriya, “Steering control of the Personal riding-type wheeled Mobile Platform (PMP),” in
*Proceedings of the IEEE IRS/RSJ International Conference on Intelligent Robots and Systems (IROS '05)*, pp. 1697–1702, August 2005. View at Publisher · View at Google Scholar · View at Scopus - A. Salerno and J. Angeles, “The control of semi-autonomous two-wheeled robots undergoing large payload-variations,” in
*Proceedings of the IEEE International Conference on Robotics and Automation*, pp. 1740–1745, May 2004. View at Scopus - K. Pathak, J. Franch, and S. K. Agrawal, “Velocity and position control of a wheeled inverted pendulum by partial feedback linearization,”
*IEEE Transactions on Robotics*, vol. 21, no. 3, pp. 505–513, 2005. View at Publisher · View at Google Scholar · View at Scopus - C. Li, X. Gao, Q. Huan et al., “A coaxial couple wheeled robot with T-S fuzzy equilibrium control,”
*Industrial Robot*, vol. 38, no. 3, pp. 292–300, 2011. View at Publisher · View at Google Scholar · View at Scopus - S. Jung and S. S. Kim, “Control experiment of a wheel-driven mobile inverted pendulum using neural network,”
*IEEE Transactions on Control Systems Technology*, vol. 16, no. 2, pp. 297–303, 2008. View at Publisher · View at Google Scholar · View at Scopus - Z. Li, C. Yang, and L. Fan,
*Advanced Control of Wheeled Inverted Pendulum Systems*, Springer, London, UK, 2013. View at Publisher · View at Google Scholar · View at MathSciNet - V. Sankaranarayanan and A. D. Mahindrakar, “Control of a class of underactuated mechanical systems using sliding modes,”
*IEEE Transactions on Robotics*, vol. 25, no. 2, pp. 459–467, 2009. View at Publisher · View at Google Scholar · View at Scopus - B. S. Park, S. J. Yoo, J. B. Park, and Y. H. Choi, “Adaptive neural sliding mode control of nonholonomic wheeled mobile robots with model uncertainty,”
*IEEE Transactions on Control Systems Technology*, vol. 17, no. 1, pp. 207–214, 2009. View at Publisher · View at Google Scholar · View at Scopus - J. Huang, Z.-H. Guan, T. Matsuno, T. Fukuda, and K. Sekiyama, “Sliding-mode velocity control of mobile-wheeled inverted-pendulum systems,”
*IEEE Transactions on Robotics*, vol. 26, no. 4, pp. 750–758, 2010. View at Publisher · View at Google Scholar · View at Scopus - M. Zhihong, A. P. Paplinski, and H. R. Wu, “A robust MIMO terminal sliding mode control scheme for rigid robotic manipulators,”
*IEEE Transactions on Automatic Control*, vol. 39, no. 12, pp. 2464–2469, 1994. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - K.-B. Park and T. Tsuji, “Terminal sliding mode control of second-order nonlinear uncertain systems,”
*International Journal of Robust and Nonlinear Control*, vol. 9, no. 11, pp. 769–780, 1999. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - H. Bayramoglu and H. Komurcugil, “Nonsingular decoupled terminal sliding-mode control for a class of fourth-order nonlinear systems,”
*Communications in Nonlinear Science and Numerical Simulation*, vol. 18, no. 9, pp. 2527–2539, 2013. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - H. Bayramoglu and H. Komurcugil, “Time-varying sliding-coefficient-based terminal sliding mode control methods for a class of fourth-order nonlinear systems,”
*Nonlinear Dynamics*, vol. 73, no. 3, pp. 1645–1657, 2013. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - A. Mohammadi, M. Tavakoli, H. J. Marquez, and F. Hashemzadeh, “Nonlinear disturbance observer design for robotic manipulators,”
*Control Engineering Practice*, vol. 21, no. 3, pp. 253–267, 2013. View at Publisher · View at Google Scholar · View at Scopus - W.-H. Chen, “Disturbance observer based control for nonlinear systems,”
*IEEE/ASME Transactions on Mechatronics*, vol. 9, no. 4, pp. 706–710, 2004. View at Publisher · View at Google Scholar · View at Scopus - J. Wu, J. Huang, Y. Wang, and K. Xing, “Nonlinear disturbance observer-based dynamic surface control for trajectory tracking of pneumatic muscle system,”
*IEEE Transactions on Control Systems Technology*, vol. 22, no. 2, pp. 440–455, 2014. View at Publisher · View at Google Scholar · View at Scopus - X. Wei, H. Zhang, and L. Guo, “Composite disturbance-observer-based control and terminal sliding mode control for uncertain structural systems,”
*International Journal of Systems Science*, vol. 40, no. 10, pp. 1009–1017, 2009. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - J. Yang, S. Li, and X. Yu, “Sliding-mode control for systems with mismatched uncertainties via a disturbance observer,”
*IEEE Transactions on Industrial Electronics*, vol. 60, no. 1, pp. 160–169, 2013. View at Publisher · View at Google Scholar · View at Scopus

*
*