Abstract
The Segway, which is a popular vehicle nowadays, is an uncertain nonlinear system and has an unknown time-varying control coefficient. Thus, we should consider the unknown time-varying control coefficient and model uncertainties to design the controller. Motivated by this observation, we propose a robust control for the Segway with unknown control coefficient and model uncertainties. To deal with the time-varying unknown control coefficient, we employ the Nussbaum gain technique. We introduce an auxiliary variable to solve the underactuated problem. Due to the prescribed performance control technique, the proposed controller does not require the adaptive technique, neural network, and fuzzy logic to compensate the uncertainties. Therefore, it can be simple. From the Lyapunov stability theory, we prove that all signals in the closed-loop system are bounded. Finally, we provide the simulation results to demonstrate the effectiveness of the proposed control scheme.
1. Introduction
The Segway is a vehicle extended from the inverted-pendulum system and balancing robot. It can go anywhere and is easy to manipulate. Thus, the Segway is becoming more prevalent on urban sidewalks and the stable controller is essential for human safety. In order to design the controller for the Segway, the linear controllers such as proportional-integral-derivative (PID) [1] and linear quadratic regulator (LQR) [2] were firstly proposed. The structure of these linear controllers is simple and it is easy to analyze the stability. However, they require the linearized model of the Segway to design the controller. This implies that there is a limit due to the narrow operating range. To solve this problem, various nonlinear control methods such as sliding mode control [3,4] and adaptive control [5,6] based on the backstepping technique [7] were proposed. It is well known that the backstepping technique requires the differentiation of the virtual control and this complicates the controller. Although the dynamic surface control method [8] can remove the disadvantage of the backstepping technique, it is still complex because it should use the adaptive technique [9,10], neural network [11,12,13], and fuzzy logic [14,15] to deal with the uncertainties.
To reduce the complexity of the nonlinear control methods, a low complexity control method was recently proposed [16]. By using the prescribed performance function, it can adjust the transient and steady-state responses. Further, it does not require the adaptive technique, neural network, and fuzzy logic to compensate the uncertainties. Hence, the controller can be implemented more simply. In this regard, several controllers for various applications were presented using this method. In [17], the adaptive dynamic surface control for nonlinear time-varying system was proposed. The output feedback controller for interconnected time-delay systems was presented in [18]. The robust formation controller for nonlinear multi-agent systems was proposed in [19]. However, all these works assume that the control coefficient is known or constant if it is unknown. This assumption is not applicable to the Segway because the control coefficient is time-varying and unknown. Therefore, we need to relax this assumption. Furthermore, the Segway is an underactuated system which has only one control input. Thus, it is difficult to design the controller because we should control the angle and velocity of the Segway, simultaneously.
Motivated by these observations, we propose a robust control method for the Segway in the presence of the unknown control coefficient and model uncertainties. Firstly, we employ the Nussbaum gain technique [20] to deal with the unknown time-varying control coefficient. Then, the robust controller using the prescribed performance function and the auxiliary variable is designed to compensate the uncertainties and solve the underactuated problem. For the stability of the proposed scheme, we prove that all error signals of the closed-loop control system are bounded using the Lyapunov stability theory. Finally, the simulation results are provided to demonstrate the effectiveness of the proposed control method. Compared with previous methods for the Segway, the main contribution of this paper is as follows: (i) The proposed approach can provide the desired performance of the tracking error without knowing the time-varying control coefficient; (ii) adaptive technique, neural network, and fuzzy logic, which make the controller complex, are not required to compensate the uncertainties and thus, the proposed scheme can be simple; (iii) by introducing an auxiliary variable, we can solve the underactuated problem.
The rest of this paper is organized as follows. The problem formulation is introduced in Section 2. In Section 3, the approximation-free control for the Segway is presented. In Section 4, the effectiveness of the proposed scheme is validated through simulation results. Finally, we conclude the paper in Section 5.
2. Problem Formulation
Consider the Segway model shown in Figure 1. The dynamics of the Segway is as follows [21].
where
here, m is the mass of the body that is composed of the Segway base and the passenger, M is the mass of the wheel, l is the length between the wheel axle and the center of gravity of the body, and θ are wheel’s rotation angle and the inclination angle of the body, respectively, and are the moments of inertia of the body and the wheel, respectively, r is the radius of the wheel, and τ is the control torque applied to the wheels of the Segway.
Figure 1.
Segway model [22].
From Equation Equation (1), it follows that
where
To make the state model of the Segway, we define the state variable as and . From Equation (2), we can represent Equation (1) as follows:
where
In Equation (3), the velocity model of the Segway is omitted. This is because the Segway is underactuated. However, it is necessary to control the angular velocity of the wheel as well as the inclination angle. It will be solved by introducing an auxiliary variable.
Assumption 1.
The angle satisfies .
Assumption 2.
The state variables , , and are measurable exactly by sensors such as accelerometer and gyroscope [23,24].
Remark 1.
In practice the sensor noise is inevitable. Thus, various techniques such as the Kalman filter [25] and state estimation [26] are used to reduce the effect of the sensor noise. However, the related technique for noise is another problem in view of the controller design. Therefore, we design the controller under Assumption 2.
In Equation (3), we assume and are unknown. Further, is time-varying. Therefore, and denote model uncertainties and unknown time-varying control coefficient, respectively. The control objective is to design the controller so that tracks its desired value while the control errors remain within the prescribed performance bounds even though there exist the unknown time-varying control coefficient and model uncertainties.
3. Controller Design
In this section, an approximation-free controller is designed step by step for the Segway with unknown time-varying control coefficient and model uncertainties. Define the errors as
where
here, α is a virtual control, μ is an auxiliary variable, and and are performance functions defined by
where and are initial values of ρ-functions, and are gains of ρ-functions, and are final values of ρ-functions, is the initial value of the virtual control input α. In Equation (4), where . Thus, if is bounded, satisfies . This means that the tracking error is bounded such that .
Remark 2.
As stated, it is difficult to control the inclination angle θ of the body and angular velocity of the wheel simultaneously because there is only one control torque. However, we need to control the angular velocity of the wheel as well as the inclination angle of the body. To solve this problem, we introduce an auxiliary variable μ satisfying the differential equation
where and are positive constants. From Equation (6), one can easily show that the auxiliary variable μ is bounded.
Using Equations (3), (4) and (6), the error dynamics of and can be written as
To deal with the unknown time-varying control coefficient , we employ the Nussbaum gain technique [20]. A function is called a Nussbaum function if it has the following properties.
In this paper, the Nussbaum function is considered and the following lemma is used to analyze the stability.
Lemma 1.
Let and be smooth functions defined on with , . For , if the following inequality holds [27]:
where and are bounded constants, and b is unknown time-varying control coefficient, then , ζ and are bounded on . According to [28], if the solution of the resulting closed-loop is bounded, then .
Proof of Lemma 1.
See Theorem 1 in [27]. ☐
Remark 3.
Lemma 1 means that if the condition Equation (8) is satisfied, the tracking error of the closed-loop system is bounded on . Furthermore, it can be extended for . Therefore, we will design the controller to satisfy the condition Equation (8).
Now the controller is designed step by step using the backstepping technique. Note that the backstepping technique has the disadvantage that requires the differentiation of the virtual control. However, the prescribed performance function based controller does not require the differentiation of the virtual control and thus, we can reduce the complexity of the controller.
Step 1: Consider the following Lyapunov function candidate for
The time derivative of Equation (9) along with Equation (7) is
where . The virtual control law α is chosen as
where is a positive constant. Substituting Equation (11) into Equation (10) yields
By the definition of Equation (5), and are bounded. This means that there exists a positive constant such that . Thus Equation (12) can be rewritten as
If , then . Therefore, we can conclude that where , and satisfies . Furthermore, the boundedness of and μ implies that α is bounded, and thus, and are bounded. From Equations (6) and (7), is also bounded.
Step 2: Consider the following Lyapunov function candidate for .
The time derivative of Equation (14) along with Equation (7) is
where . The actual control law τ is chosen as
where and are positive constants.
Remark 4.
In Equation (16), the actual control law does not require any function approximations to compensate the uncertainties. Further, the differentiation of the virtual control is not required in spite of using the backstepping technique. Therefore, the controller is simple compared with previous results for the Segway.
Substituting Equation (16) into Equation (15) yields
In Step 1, the boundedness of and is proved. Since is composed of and , it is bounded. Then, there exists a positive constant satisfying . Thus Equation (17) can be expressed as
Note that . Adding and subtracting in the right side of Equation (18), we have
By the inequality,
Then, Equation (19) can be rewritten as
where and . Multiplying on both sides of Equation (20) yields,
Integrating Equation (21) on , we have
where . Note that and are positive. By Lemma 1, we can conclude that , ζ and are bounded on . The boundedness of implies that satisfies . According to [28], the boundedness of these signals ensures .
Theorem 1.
For the Segway Equation (3) with completely unknown time-varying control coefficient and model uncertainties, if we apply the controller Equation (16), then the solution of the closed-loop system is bounded. Furthermore, the errors remain within their prescribed performance functions such that and .
Proof of Theorem 1.
By the previous design procedures from Step 1 to Step 2, it is proved that and are bounded. Thus, and . This means that and . ☐
It is necessary to prove the convergence of . For the simplicity, assume that and converge to zero. Since the bounds of and are depend on and , the bounds of them can converge to nearby zero if we increase and . The convergence of and leads to the convergence of and . From Equations (4) and (11), and also converge to zero. This implies that and are zero, and thus, control torque τ is zero from Equation (3). Then, from Equation (16), η is zero because ζ is bounded due to . Since η is composed of and μ in Equation (16), μ converge to zero. If μ is bounded and converges to zero as , the angular velocity of the wheel converges to zero by Equation (6) and Lemma 2 presented in [7].
Remark 5.
The design procedure is as follows: (i) select to satisfy the condition such that ; (ii) select and to satisfy the convergence rate and robustness for the external disturbance after it is stabilized, respectively; (iii) calculate using Equation (4); (iv) select properly. The error will be decreased as is increased. Calculate the virtual control α using Equation (11); (v) select to satisfy the condition such that ; (vi) select and to satisfy the convergence rate and robustness for the external disturbance, respectively; (vii) calculate using Equation (4); (viii) select properly. Increasing leads to the smaller error . Calculate the actual control τ using Equation (16).
4. Simulation Results
In this section, the simulation results are provided to illustrate the effectiveness of the proposed scheme. For the real application, we use the model parameters presented in [29]. These are only for the simulation. That is, the proposed control scheme does not require the exact information of model parameters for the application and the simulation results show the robustness against these model uncertainties. The control parameters are chosen as , , , , , , , and .
Simulation results are shown in Figure 2, Figure 3, Figure 4 and Figure 5. Figure 2 and Figure 3 show the simulation results for and , respectively. Figure 2a,b show that the angle of the inclination and control torque converge to zero as times go on. This means that the proposed control scheme is well working for the Segway model. Figure 2b,c show the position and velocity of the Segway, respectively. As one can see, the velocity of the Segway converges to zero because the angle of the inclination is zero. Thus, we can know that the Segway does not move if the control objective, which should return to the vertical after the initial disturbance, is achieved. Figure 3 also show that the angle of the inclination converges to zero in the case of the opposite direction. Figure 4 depicts the control coefficient for both two cases. The control coefficients are time-varying while the angle of the inclination is not zero. On the other hand, these become constants because θ is time-invariant after the convergence. To show the effectiveness of the proposed control scheme even though a rider is changed, we simulate other model parameters such as kg and m. Figure 5 shows the simulation result. Compared with Figure 2a, there is no different in the performance between them.
Figure 2.
Simulation result for : (a) angle θ; (b) linear velocity v; (c) position x; (d) torque τ.
Figure 3.
Simulation result for : (a) angle θ; (b) linear velocity v; (c) position x; (d) torque τ.
Figure 4.
Control coefficient : (a) ; (b) .
Figure 5.
Angle of segway, m = 40 kg, l = 0.75 m.
To compared with previous results, we simulate using LQR method presented in [22] under the same model parameters. The simulation results are shown in Figure 6 and Figure 7. Figure 6 shows the angle of the Segway without disturbance for and . In [22], they use the linearized model, i.e., the Segway model is linearized at . Thus, there is no difference in the performance at . However, if the initial error is large enough, we can see that there is a performance difference between our method and [22]. Figure 6b shows this result. Figure 7 shows the angle of the Segway with disturbance. To show the robustness of the proposed scheme after it is stabilized, we apply the external disturbance to the Segway from time 15 to 16 s. As one can see, the proposed scheme is effective even though the external disturbance is applied to the Segway after it is stabilized. Therefore, we can conclude that the proposed scheme has the good performance even though there are unknown control coefficient and model uncertainties.
Figure 6.
Angle of Segway without disturbance (solid : proposed method, dotted : LQR method): (a) ; (b) .
Figure 7.
Angle of Segway with disturbance (solid : proposed method, dotted : LQR method): (a) ; (b) .
5. Conclusions
In this paper, a robust controller has been proposed for the Segway with unknown time-varying control coefficient and model uncertainties. To deal with unknown time-varying control coefficient and model uncertainties, we design the controller using the Nussbaum technique and prescribed performance function. Since the proposed control scheme does not require the adaptive technique, neural network, and fuzzy logic to compensate the uncertainties, the structure of the controller is simple. Furthermore, to solve the underactuated problem, we introduce the auxiliary variable that is used to control the velocity of the Segway. From the Lyapunov stability theory, we prove that all error signals of the closed-loop control system are bounded. Finally, the simulation results show that the proposed scheme has better performance compared with previous results.
Acknowledgments
This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT & Future Planning (NRF-2016R1C1B1006936).
Author Contributions
Kim, B.W. and Park, B.S. designed the controller and worte the paper; Kim, B.W. performed the simulation.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Wang, J. Simulation studies of inverted pendulum based on PID controllers. Simul. Modell. Pract. Theory 2011, 19, 440–449. [Google Scholar] [CrossRef]
- Wang, H.; Dong, H.; He, L.; Shi, Y.; Zhang, Y. Design and simulation of LQR controller with the linear inverted pendulum. In Proceedings of the International Conference on Electrical and Control Engineering, Wuhan, China, 25–27 June 2010; pp. 699–702.
- Wai, R.; Chang, L. Adaptive stabilizing and tracking control for a nonlinear inverted-pendulum system via sliding-mode technique. IEEE Trans. Ind. Electron. 2010, 53, 674–692. [Google Scholar]
- Seo, S. Adaptive fuzzy sliding mode control for uncertain nonlinear systems. Int. J. Fuzzy Logic Intell. Syst. 2011, 11, 12–18. [Google Scholar] [CrossRef]
- Ruan, X.; Ding, M.; Gong, D.; Qiao, J. On-line adaptive control for inverted pendulum balancing based on feedback-error-learning. Neurocomputing 2007, 70, 770–776. [Google Scholar] [CrossRef]
- Benaskeur, A.; Desbiens, A. Application of adaptive backstepping to the stabilization of the inverted pendulum. In Proceedings of the IEEE Canadian Conference on Electrical and Computer Engineering, Waterloo, ON, Canada, 24–28 May 1998; pp. 113–116.
- Jiang, Z.P.; Nijmeijer, H. Tracking control of mobile robots: A case study in backstepping. Automatica 1997, 33, 1393–1399. [Google Scholar]
- Swaroop, D.; Hedrick, K.; Yip, P.P.; Gerdes, J.C. Dynamic surface control for a class of nonlinear systems. IEEE Trans. Autom. Control 2000, 45, 1893–1899. [Google Scholar] [CrossRef]
- Li, Z.; Luo, J. Adaptive robust dynamic balance and motion controls of mobile wheeled inverted pendulums. IEEE Trans. Control Syst. Technol. 2008, 17, 233–241. [Google Scholar]
- Zeng, S.; Hu, H.; Xu, L.; Li, G. Nonlinear adaptive PID control for greenhouse environment based on RBF network. Sensors 2012, 12, 5328–5348. [Google Scholar] [CrossRef] [PubMed]
- Wang, D.; Huang, J. Neural network-based adaptive dynamic surface control for a class of uncertain nonlinear systems in strict-feedback form. IEEE Trans. Neural Netw. 2005, 16, 195–202. [Google Scholar] [CrossRef] [PubMed]
- Song, D.H.; Lee, G.H.; Jung, S. Neural network compensation technique for standard PD-like Fuzzy controlled nonlinear systems. Int. J. Fuzzy Logic Intell. Syst. 2008, 8, 68–74. [Google Scholar] [CrossRef]
- Yadmellat, P.; Samiei, E.; Talebi, H.A. A stable neural network-based controller for class of nonlinear systems. In Proceedings of the 2009 IEEE Control Applications, (CCA) & Intelligent Control, (ISIC), Saint Petersburg, Russia, 8–10 July 2009; pp. 926–931.
- Ahn, J.K.; Jung, S. Experimental studies of swing up and balancing control of an inverted pendulum system using intelligent algorithms aimed at advanced control education. Int. J. Fuzzy Logic Intell. Syst. 2014, 14, 200–208. [Google Scholar] [CrossRef]
- Kwak, S.; Choi, B. Design of fuzzy logic control system for segway type mobile robots. Int. J. Fuzzy Log. Intell. Syst. 2015, 15, 126–131. [Google Scholar] [CrossRef]
- Bechlioulis, C.P.; Rovithakis, G.A. A low-complexity global approximation-free control scheme with prescribed performance for unknown pure feedback systems. Automatica 2014, 50, 1217–1226. [Google Scholar] [CrossRef]
- Wang, C.; Lin, Y. Adaptive dynamic surface control for MIMO nonlinear time-varying systems with prescribed tracking performance. Int. J. Control 2014, 88, 832–843. [Google Scholar] [CrossRef]
- Hua, C.; Li, Y. Output feedback prescribed performance control for interconnected time-delay systems with unknown Prandtl-Ishlinski hysteresis. J. Franklin Inst. 2015, 352, 2750–2764. [Google Scholar] [CrossRef]
- Bechlioulis, C.P.; Kyriakopoulos, K.J. Robust model-free formation control with prescribed performance for nonlinear multi-agent systems. In Proceedings of the IEEE Conference on Robotics and Automation, Seattle, WA, USA, 26–30 May 2015; pp. 1268–1273.
- Nussbaum, R.D. Some remarks on the conjecture in parameter adaptive control. Syst. Control Lett. 1983, 3, 243–246. [Google Scholar] [CrossRef]
- Huang, J.; Guan, Z.; Matsuno, T.; Fukuda, T.; Sekiyama, K. Sliding-mode velocity control of mobile-wheeled inverted-pendulum systems. IEEE Trans. Robot. 2010, 26, 750–758. [Google Scholar] [CrossRef]
- Pinto, L.J.; Kim, D.; Han, C. Development of a segway robot for an intelligent transport system. In Proceedings of the IEEE/SICE International Symposium on System Integration, Fukuoka, Japan, 16–18 December 2012; pp. 710–715.
- Zhao, H.; Feng, H. A novel angular acceleration sensor based on the electromagnetic induction principle and investigation of its calibration tests. Sensors 2013, 13, 11051–11068. [Google Scholar] [CrossRef] [PubMed]
- Lee, J.; Yun, S.W.; Rhim, J. Design and verification for a digital controller for a 2-piece hemispherical resonator gyroscope. Sensors 2016, 16, 555. [Google Scholar] [CrossRef] [PubMed]
- Sontag, E.D. Mathematical Control Theory: Deterministic Finite Dimensional Systems, 2nd ed.; Springer-Verlag: New York, NY, USA, 1998. [Google Scholar]
- Aguiar, A.P.; Hespanha, J.P. Minimum-energy state estimation for systems with perspective outputs. IEEE Trans. Autom. Control 2006, 51, 226–241. [Google Scholar] [CrossRef]
- Ge, S.S.; Wang, J. Robust Adaptive Tracking for Time-Varying Uncertain Nonlinear Systems with Unknown Control Coefficients. IEEE Trans. Autom. Control 2003, 48, 1463–1469. [Google Scholar]
- Ryan, E.P. A universal adaptive stabilizer for a class of nonlinear systems. Syst. Control Lett. 1991, 16, 209–218. [Google Scholar] [CrossRef]
- Younis, E.W.; Abdelati, M. Design and implementation of an experimental segway model. In Proceedings of the 2nd Mediterranean Conference on Intelligence Systems and Automation, Zarzis, Tunisia, 23–25 March 2009; pp. 350–354.
© 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/).