Abstract

In this paper, an output feedback control approach based on an adaptive observer is developed for the two-wheeled self-balancing robot subject to unknown parameters (with nonlinear parameterization). Firstly, a high gain control method with state feedback is proposed. Then, an adaptive observer is designed to estimate the unknown state and the unknown body mass of the robot which influences the height of the center of mass. Next, the adaptive observer is combined with the designed high gain controller: a Lyapunov-based stability analysis of the closed loop system is developed to establish the convergence of the tracking error as well as estimation and adaptation errors. Simulation results assert the performance of the developed tracking control scheme for the two-wheeled self-balancing robot subject to mass variation.

1. Introduction

Control problem investigation on self-balancing robots has grown over the past decade in a number of robotic laboratories around the world. This is due not only to the dynamics of the inherent instability, nonlinearity, and under-actuation of these systems but also to the presence of disturbance and parameter uncertainties. These robots are characterized by their ability to balance only on two wheels and to turn on the spot.

Therefore, many researchers have conducted extensive studies, which can be proven how successful they were, to master the problems of modeling and control and application of the self-balancing robots. In [1], a robust tracking control scheme, employing the sliding mode method and based on nonlinear observer to estimate the unknown disturbances, is developed for two-wheeled self-balancing robot. In [2], the authors have proposed a nonlinear disturbance observer to estimate the uncertain disturbance torques with exponential convergence. More recently, a robust tracking control scheme based on a fuzzy disturbance observer was proposed for wheeled mobile robots with slipping and skidding in [3].

The sliding mode control (SMC) has proved its robustness on the control of the self-balancing robots. In [4], a robust sliding mode controller has been designed to deal with disturbances and instability of the self-balancing robot. An adaptive neural sliding mode controller for nonholonomic wheeled mobile robots with external disturbances and model uncertainties was investigated in [5]. The robustness and the efficiency of this control system were proven by the simulation results. Furthermore, a sliding mode controller was developed in [6] to achieve a trajectory tracking of mobile robots with parametric variations and external disturbances. The asymptotic convergence of tracking errors was shown using Lyapunov’s theory. More recently, in [7], a new sliding mode control strategy based on a high-order disturbance observer has been developed for a mobile wheeled inverted pendulum. Theoretical stability results of both estimation and tracking errors have been established and validated experimentally.

On the contrary, thanks to its robustness in preserving system performances; adaptive control represents the main motivation of several works notably the control of self-balancing robots. In [8], the authors have proposed an adaptive backstepping method to estimate the uncertain parameters and also to control the two-wheeled e-scooter. They used a PD controller to ensure the turning on the right and left of this system. They also treated the modeling, the material configuration of this system, and the signal processing using a Kalman filter. The experimental results proved the effectiveness of an adaptive backstepping self-balancing control. All the deepened studies on the self-balancing robot prove that changing in the center of mass of the robot affects, directly or indirectly, the system equilibrium and consequently the control of this system. The change of the center of mass may be a consequence of a terrain inclination and may be also due to the mass variation of loads carried by the robot. In this context, a full-state feedback controller based on the LQR method was proposed in [9] to perform the rejection of disturbance forces due to the terrain inclination by adjusting the center of mass position of the robot. In [10], the authors have developed an adaptive controller to deal with the variation of the height of the center of mass. Indeed, the height is re-estimated each time the states move away from what is expected. Simulation results have proved the performance of this adaptive controller in maintaining stability even during height change.

In this paper, we investigate the problem of observer-based control of the self-balancing robots in the case where the center of mass is changing. The idea that we adopt to deal with this problem is to design an adaptive observer that the objective is to estimate both, the unmeasured states and the mass of the robot which is assumed unknown.

In the literature of automatic control, many adaptive observers have been developed. In [11], the author has illustrated the performance of the adaptive observer by developing an adaptive observer for MIMO linear time-varying systems. In addition, the authors in [12] have developed an observer design for nonlinear systems by immersion into an appropriate form and under some conditions. The design methodology was demonstrated through application examples. In [13], an adaptive observer for parametric and state estimation was proposed for synchronization of chaotic systems. Moreover, an adaptive observer for nonlinear systems was designed in [14] to tackle the issue of state estimation in the presence of parameter uncertainty. More recently, the authors of [15] have designed an adaptive neural observer used for adaptive neural tracking control with backstepping approach applied to nonlinear nonstrict-feedback systems.

In particular, Farza et al. have developed in [16] an adaptive observer for nonlinearly parameterized class of nonlinear systems. The exponential convergence of the designed observer was warranted under a determined persistent excitation condition for linear and nonlinear parameterization. The application of this observer in a bioreactor model proved its effectiveness to estimate unmeasured states and model parameters.

In our case, since the mass parameter appears nonlinearly in the dynamics of the self-balancing robot, we adopt the adaptive estimation approach developed in [16] to deal with the mass variation.

The adopted observer is then combined with a high gain control law with output feedback which has the advantages to upgrade the dynamic performances and to preserve the steady-state error as small as possible, and this seems clear in [17], in which the authors have developed an adaptive output feedback controller for a class of uncertain nonlinear system. They showed the full convergence analysis of the tracking error of the high gain control method with state feedback. Simulation results proved the performances of the proposed controller.

Motivated by the advantages of this controller, a high gain control method with output feedback was developed for the two-wheeled self-balancing robot. Indeed, the designed observer to estimate both unmeasured states and body weight of the robot is combined with the proposed control law in order to provide an adaptive high gain controller with output feedback. The convergence of the tracking error is established using a Lyapunov analysis.

In summary, we propose in this paper an efficient adaptive observer-based tracking controller for two-wheeled self-balancing robot subject to a varying center of mass (the robot is manipulating objects and additional loads). The main contributions of this paper are as follows:(i)Simultaneous estimation of unmeasured states and the unknown mass parameter which appears nonlinearly in the dynamics of the two-wheeled robot, using a high gain adaptive observer(ii)Synthesis of an output feedback tracking control scheme, consisting of a high gain controller combined with the designed high gain adaptive observer, for the two-wheeled robot(iii)Proofs of stability of the closed loop system and demonstration of convergence of the tracking error based on Lyapunov theory(iv)Validation of the good performances of the proposed adaptive observer-based tracking control approach and illustration of the robustness against additive disturbances, measurement noise, and computational delays, via numerical simulations

The paper is organized as follows: Section 2 introduces the problem statement and preliminaries. The high gain control method based on adaptive observer as well as the stability of analysis of the complete system is presented in Section 3. Simulation results in Section 4 are dedicated to emphasize the performances of the proposed tracking control scheme. Finally, a few conclusions are given in Section 5.

1.1. Notation

represents the Euclidean norm for vectors and induced norm for matrices. is an identity matrix with dimension. is a null matrix with n rows and m columns. and denote, respectively, the maximum and the minimum eigenvalues of M. represents the block-diagonal matrix = , where and are the square matrices. denotes the pseudoinverse (generalized inverse) of a matrix . is a matrix such that and .

2. Context and Problem Statement

2.1. Model of Self-Balancing Two-Wheeled Robot

The modeling of the two-wheeled self-balancing robot is directly inspired by the famous academic model of the inverted pendulum [18]. It consists of a mobile cart surmounted by an inverted pendulum, freely articulated around a transverse axis. In order to ease the control of the robot and to impose a desired dynamics, a decoupling unit is needed to transform the two-wheeled torques and into a torque around the vertical axis and another torque around the horizontal axis [1, 18].

The model of the two-wheeled self-balancing robot is given as [1]where , , , and x represents the linear displacement of the chassis. is the input vector. ψ and δ are, respectively, the pitch angle and the yaw angle. is the unknown external disturbance vector. The control input matrix and the function vector are, respectively, and , where ρ is a constant unknown parameter that will be defined later.

The moments of inertia of the system are given as follows (11): , , and , where is the moment of inertia of the chassis with respect to the z-axis, is the moment of inertia of the chassis with respect to the y-axis, and is the moment of inertia of the wheel. D is the lateral distance between the contact patches of the wheels, R is the radius of the wheels, and is its mass. is the total mass of the robot, which is assumed unknown. In fact, where is the mass of the upper part of the robot which represents the movable mass block supported by the stem and is the mass of the lower part which is composed of the chassis and wheels. Our objective later is to design an adaptive observer to estimate the unknown parameter . According to the center of mass theorem, we deduce the height of the center of mass , where is the length of the stem.

Proceeding as in (1) and (10) and replacing the moments of inertia and as well as the center of mass L by their respective expressions depending on the total mass , we conclude the following expressions:

2.2. Problem Formulation

To develop an effective tracking control scheme, it is essential to have a complete and instant knowledge of the state variables. Given the economic, technological, and even feasibility constraints, it is often difficult to access all this variables. In the same way, a precise knowledge of the parameters describing the system proves necessary for its control, mainly the parameters which influence the system equilibrium, notably the mass. Indeed, it is assumed in this paper that the mass is unknown. As a consequence, the height of center of mass changes and pushes the system to move away from its equilibrium position which inhibits the system control and decreases its robustness. So designing a suitable observer is the best solution for this problem. In this regard, to deal with the change of the height of the center of mass due to the variation of the body weight of the two-wheeled self-balancing robot and with the only measurements of linear and angular positions (x, ψ, δ), we consider the problem of adaptive observer design to estimate the speed states (, , ) as well as the unknown parameter . That is,where the estimated states and the unknown parameter obtained from the adaptive observer are used by a high gain output feedback controller which ensures the following trajectory tracking objective:where is the reference trajectory.

Remark 1. The two-wheeled self-balancing robot is an under-actuated nonlinear system with more degrees of freedom than actuators (three degrees of freedom and two control inputs). The lack of actuators complicates the control problem, and many classical nonlinear control methods are not directly applicable. Analytical tools based on the use of global change of coordinates have been developed in the literature to transform the considered under-actuated systems in appropriate normal forms such as strict feedback form and feed-forward form, under some restrictive assumptions (see reference [19] for more details). However, when applying global transformations, the new control inputs may appear in both actuated and unactuated subsystems which make the control problem more complex. Alternatively, particular global transformations have been introduced in [19] to decouple actuated and unactuated parts with respect to the new control input. Classical control strategies such as state feedback control and backstepping control may be addressed to the obtained normal forms.
In this context, the two-wheeled self-balancing robot model is subject to all the difficulties cited above. In our approach, we avoid the global transformation methods: the control and observation algorithms that will be developed in this paper are directly applied to the original model of the self-balancing robot. Indeed, at the beginning, the dynamics of the wheels and pendulum are analyzed separately. Using a decoupling unit, the two-wheeled torques and are transformed into two torques and .
The torque controls the left and right rotation of the robot which allows us to obtain the desired yaw trajectory . The torque controls the translation along the x-axis while keeping the vertical up position, and this behavior is similar to a pendulum cart. On the contrary, by observing that the model of the self-balancing robot is a MIMO system that is naturally in the canonical triangular form subject to nonlinear functions with a triangular structure with respect to the subblocks ( in our case), high gain observer design and high gain control approaches will be adopted to achieve both observation and tracking control objectives (see References [16] and [17] for more details about high gain strategies for canonical triangular form systems).

3. Adaptive Observer-Based High Gain Control for the Two-Wheeled Self-Balancing Robot

3.1. High Gain Control Method

We consider the class of systems studied in (2) and described by the following equations:

It is clear that the system described in (5) includes the two-wheeled self-balancing robot system (1).

So, in our case, the function φ is defined as , where , , , , and .

The output ; the state , an open compact , and the input , a compact for . For this control method, the following assumptions must be taken into account [17]:

(A1). For any bounded input u, i.e., a compact subset of , the state , and the unknown parameter ρ are bounded, i.e., , for all and , where and are compact sets.

(A2). The functions and are Lipschitz with respect to x and ρ, uniformly in u, where () in UX.
The problem of the high gain control consists of the perfect pursuit of output trajectory that we will note and we assume that it is sufficiently differentiable, i.e.,whereGiven the two-wheeled self-balancing robot system described in (1), it is possible to determine the system state path and the input sequence corresponding to the output sequence . To that end, it is required to generate a second time derivative of the reference output . The latter signal may be made sufficiently smooth by using a second-order filtered trapezoidal profile. This allows us to define a reference model as follows:where and are given byIn fact, the states and can be determined from the reference signal and its derivative with respect to time. As a consequence, the tracking of the output problem may be extended to the state tracking problem:whereThe tracking error system is given byProceeding as in (4), we obtain the structure of the state feedback high gain control for the two-wheeled self-balancing robot system (1):where e is defined by (7) as the tracking error and is a diagonal matrix given bywhere is a strictly positive scalar, is a bounded function, and is the solution of Lyapunov equations (3) and (5):Considering the expression of given by (5) and (7), we have , where , , and .
Proceeding as in the proof of Theorem 3.1 in [17], it may be shown that the control law (13) achieves the tracking objective. That is, the state and the output converge exponentially, respectively, to the state and the output of the reference model (43) by choosing relatively large values of λ.
At this stage, the use of ρ in the high gain control law is not realistic since ρ is assumed unknown and not available. Indeed, the height of the center of mass is sensitive to the robot mass variation , which reduces the efficiency of this control law described in (13). So, to solve this problem we propose, in the next section, an adaptive observer which allows the joint estimation of the states and the unknown parameter ρ.

3.2. Adaptive Observer with Nonlinear Parameterization

In this section, we recall the main features of the adaptive estimation approach developed in [16]. It is to be noticed that if the nonlinear functions and are not globally Lipschitz but just once continuously differentiable which is the case of the self-balancing robot system, we can apply the so-called Lipschitz prolongation approach under the assumption (A1). The idea of this approach consists in constructing a prolongation and of the nonlinear functions f and using saturation functions (for more details about the Lipschitz extension technique, see References [16, 20]). So one obtains the following dynamical system:where and are global Lipschitz and defined as and , where and are smooth bounded saturation functions such that and for all and . According to (2), the observer elaborated for system (5) is given bywhere and , where is a real number, , and is the unique solution of the algebraic Lyapunov equation (15), and is the symmetric positive definite (SPD) and the matrix is Hurwitz. is defined as

In order to ensure the parametric convergence, we need the following additional assumption.

(A3). For any trajectory , the matrix must satisfy the condition of persistent excitation, and it meansAssumption (A3) is the classical assumption of persistency of excitation usually used in the literature of adaptive control. Physically, it means that the signals forming the matrix are sufficiently rich in frequency. Persistency of excitation is a necessary sufficient condition for asymptotic stability and parametric convergence. By applying Theorem 4.1 in [16] for system (5) with under Assumptions (A1) to (A3), one can deduce that the estimation error and the adaptation error converge exponentially to zero for relatively high values of the design parameter θ. Refer also to reference [21] where we have applied the adaptive observer (17) to the two-wheeled robot under proportional-integral-derivative (PID) control.
Once the unknown parameter and the unmeasured states of the self-balancing robot are estimated, they are used by the state feedback control law developed in Section 3.1 to obtain an adaptive output feedback control which is the purpose of the next section.

Remark 2. The adaptive high gain observer used in this paper may be compared with three important classes of adaptive observers. The first one was proposed by Zhang in the pioneering work [11] for a class of MIMO linear time-varying systems. The design of Zhang’s adaptive observer does not need any structural assumptions, but it is only addressed to linear systems which is not our case (the self-balancing robot model is nonlinear). The second one is the class of adaptive observers used, for instance, in [14, 22]. This approach is characterized by its simple architecture for practical implementation, but it is specifically addressed to particular systems (with linear parameterization) satisfying the restrictive minimum phase and relative degree one assumptions. These conditions are clearly not satisfied for the self-balancing robot model, and the latter approach is not applicable in our case. The third one is the class of extended Kalman filters (EKFs) [23]: This approach is a powerful estimation and filtering method which is characterized by its robustness against relatively small perturbations; however, it is designed under the classical restrictive observability assumption. Alternatively, high gain extended Kalman filters (HG-EKFs) [24] which have been designed for nonlinear systems in the triangular canonical form are robust against larger perturbations but more sensitive with respect to measurement noise. An improved version of the HG-EKF has been developed in [25] by using an adaptive high gain design parameter to reduce the sensitivity to the measurement noise. When using Kalman filtering in our case, the unknown parameter should be considered as an additional state. Unfortunately, the EKF may not be applied to solve the problem of joint states and unknown parameters estimation in our case because the observability condition is actually not satisfied. Moreover, the HG-EKF design is not applicable to the self-balancing robot model for which the classical canonical form is not satisfied ( and are not scalar in our case). The adaptive high gain observer that we consider in this paper is addressed to a particular class of nonlinear systems in the block triangular canonical form subject to nonlinear functions with a triangular structure with respect to the subblocks ( in our case) which includes several mechanical systems and particularly the self-balancing robot system. The minimum phase assumption and the observer-matching condition are not needed in our adaptive high gain estimation approach, and the unknown parameters appear nonlinearly in the state model (we do not need to consider the unknown parameter as an additional state in our approach). The main drawback of adaptive high gain observers is their sensitivity to the measurement noise whose the effect is amplified when using large values of the design parameters. The effect of measurement noise may be reduced by well adjusting the high gain parameter θ and applying appropriate law-pass filters to the noisy output signals. Some recent design methods have been addressed in the literature of high gain observers to the problem of sensitivity to measurement noise (see References [26, 27]). It is also worth noticing that a common hypothesis used for all the above adaptive design methods including the adaptive observer used in this paper is the persistency of excitation assumption which means that the considered system is sufficiently rich in frequencies and which leads to the statement of necessary and sufficient conditions for asymptotic stability and parametric convergence.

3.3. Adaptive Observer-Based Output Feedback Control for the Self-Balancing Robot

The output feedback adaptive controller is obtained by the replacement of the speed states (, , ), which are not accessible to the measurement, and the unknown parameter for the two-wheeled self-balancing robot by their estimates generated by the adaptive observer (17) as it is shown in Figure 1.

The state feedback control law incorporating the adaptive observer is given bywherewhere represents the trajectory estimated for and it is calculated as in (11) by replacing ρ by and refers to the estimate of the state tracking error which is defined as . The matrices and are, respectively, defined as in (14) and (15). First of all, to prove the convergence of the estimated tracking error based on the control laws (20) and (21) one must show that the observation error and the adaptation error converge exponentially to zero, and this follows directly from Theorem 3.1 in [16], in which the authors showed that by considering the Lyapunov function with and , one hasand by choosing θ such thatthe inequality (22) leads to

Next, we are going to show the convergence of the estimated tracking error, starting with an appropriate Lyapunov function.

Let us consider both tracking error and observation error as follows: and .

Using equations (43), (13), and (17), one can obtain

Set and . Referring to the identity (21) and taking into account that and , we get

Now, we consider the Lyapunov function , and its total derivative along the trajectories of (26) is given by

Hence, according to (15), one can obtain

Let and . Using the mean value theorem, one has

Given that is globally Lipschitz in X and continuously differentiable in X, the matrixis bounded. Taking into account the triangular structure of , thendepends only on .

So for large values of λ, , with is independent of λ. As a consequence, one can obtainwhere , and .

We proceed in the same way for , and is obtained, for and is independent of λ.

As a result, we obtainwhere . In addition, we havewith and since and . Now, using that , one can obtainwith and .

Applying condition (18), one can easily obtain the following inequality:with .

It is to be noticed that is calculated as in (14) and it depends only on . As a result, for a large value of λ (). Similarly, since P is bounded, one can obtain

It is to be noticed that is bounded. Indeed, considering the dynamics of in system (17) and using the fact that the matrix is Hurwitz and that and are bounded (according to Assumption (A2) and with the triangular structure of and ), it exists a positive constant such that for all , .

As a result, . Moreover, by combining the previous inequalities (32)–(37), one can obtainwhere and .

This allows us to conclude the asymptotic convergence of the estimated tracking error:

It is important to notice that our adaptive high gain observer-based output feedback control approach guarantees the global asymptotic convergence of both estimation and tracking errors unlike many local control methods used in the literature of under-actuated control systems. The tracking problem considered in this paper consists in maintaining the unactuated variable (the pitch angle) in the unstable equilibrium position and to force the actuated variables (the linear displacement) to track a reference trajectory. The only assumption required for the desired trajectory is to plan sufficiently smooth trajectories. Indeed, in order to generate the input reference trajectories , it is required to calculate a second time derivative of the reference output . The latter signal may be made sufficiently smooth by using a second-order filtered trapezoidal profile.

4. Numerical Simulations

In this section, the simulation results are realized to highlight the performances of the proposed observer and the effectiveness of the tracking control scheme applied on the two-wheeled self-balancing robot. Furthermore, in order to validate the ability of the proposed composite adaptive observer-based controller in real-world conditions and taking into account to practical considerations, additional numerical simulations are carried out to highlight the robustness of our proposed approach in the presence of additive disturbances, measurement noise, and computational delays.

Table 1 contains the physical parameters of the two-wheeled self-balancing robot.

We choose the following initial conditions: . Now, we apply the adaptive observer (17) introduced in Section (3.2) for the two-wheeled self-balancing robot with the initial conditions , , P is a scalar such that , and . The design parameters of the adaptive observer are choosen as and . The design matrix are selected such that the Hurwitz condition (15) is satisfied:and the matrice is choosen as follows:

To control the self-balancing robot, we apply the control law cited in (13) with

The simulation results of the output feedback adaptive controller are illustrated in Figures 29.

The tracking control result under the adaptive high gain control with output feedback is on view in Figure 2. In fact, the self-balancing robot follows the desired trajectories in Figures 24 although keeping the zero requirement of the pitch angle. From Figure 2, we can conclude that the tracking objective of displacement is achieved. Indeed, it is shown that the estimated trajectory tracks well the desired one with quasi-null error even in the reference variation. Most of the results arise from the trajectory of the linear speed which tracks well a trapezoidal profile (Figure 5). Figures 6 and 7 illustrate, after the transient, a good agreement between angular speeds and their estimates. In Figure 8, it is easy to see the efficiency and the robustness of the proposed adaptive observer to estimate the unknown parameter . The control input vector, U =  is shown in Figure 9. It is worth noticing that the estimation of the moments of inertia and as well as the estimation of the height of the center of the mass may be deduced by using the estimate of the unknown parameter and the estimate of the pitch angle ψ. Accordingly, Figures 10(a) and 10(b) illustrate the estimation of the moment of inertia and the estimation of the height of the center of the mass L, respectively. Accordingly, Figures 10(a) and 10(b) illustrate that the moment of inertia (15) and the height of the center of the mass L are well reconstructed by the proposed adaptive estimation approach.

In a more sophisticated and realistic scenario, additional constraints and practical considerations are taken into account. In a first new run of simulation, we consider the model of the two-wheeled self-balancing robot subject to disturbances and measurement noise:where represents all unknown time-varying perturbations that may occur in practice such as external disturbances, actuator failures, and model uncertainties. For simulations, we assume as in (1) that , where , , and . , and is a white noise of power equal to .

The simulation results of the output feedback adaptive controller are illustrated in Figures 1113.

It is shown that the tracking performances are preserved from Figure 11, whereas we recorded a more fluctuated signal on the control inputs (, ) as it can be seen in Figure 13. Figure 12 shows that the estimation of the unknown parameter is sensitive to measurement noise and external disturbances.

The comparison between Figures 12(a) and 12(b) proves that the measurement noise effect increases while increasing the observer gain θ.

In light of this, we deduce that our high-gain adaptive observer-based tracking control method has satisfactory tracking performances in the presence of disturbances and noise, but adaptive estimation is clearly sensitive to measurement noise.

In this context, when using high gain observers for nonlinear systems subject to external bounded unknown disturbances and measurement noise, the observation error converges to a compact set with a radius proportional to the upper bound on the disturbance signal which may be reduced by choosing sufficiently large values of the high gain design parameter θ. However, large values of θ may increase the effect of the measurement noise since the radius of the compact set depends also on the upper bound on the measurement noise. Hence, an optimal choice of the high gain design parameter is necessary to ensure the best convergence performances and reduce the sensitivity to measurement noise. Note that in the disturbances and measurement noise free case, the estimation error converges exponentially to zero. For more details about the influence of disturbances and measurement noise on the performances of high gain observers, refer to Theorem 2.1 in [28] and Theorem 2.1 in [4].

In the literature of automatic control, new design methods of high gain observers (in the unknown parameter free case) have been proposed to reduce the sensitivity to measurement noise: for instance, a high gain observer with a switched gain approach have been proposed in [26] and more recently a filtered high gain observer has been designed in [27] for nonlinear systems subject to measurement noise. The extension of these design methods to adaptive high gain observers for systems subject to unknown parameters and measurement noise is an important perspective that may be investigated from a theoretical viewpoint.

On the contrary, additional simulations are carried out in order to analyze the performances of our adaptive observer-based output feedback control approach in the presence of delayed control inputs and delayed outputs. Indeed, in practice, control and observation algorithms are to be implemented using digital technologies where computational delays are unavoidable. The tracking and estimation performances are analyzed and discussed in the presence of a constant delay corrupting both outputs and control inputs. The model of the two-wheeled self-balancing robot including input and output delays is given by

The simulation results of the output feedback adaptive controller are illustrated in Figures 1416.

According to Figure 14, it is shown that the tracking performances are quasi-insensitive to the considered computation small delays. Indeed, it is clear that the self-balancing robot ensures the desired tracking and that the equilibrium at the upright position is established. The estimation of the mass, as shown in Figure 15, is weakly influenced: it is illustrated that the proposed adaptive observer ensures the unknown parameter estimation even with small delays. The control input vector, , is shown in Figure 16.

It is worth noticing that when computational delays are more important, the adaptive observer structure should be modified and a set of cascaded adaptive observers may be designed to deal with large values of computational delays as it has been demonstrated in [29].

5. Conclusion

An adaptive high gain control method has been proposed for the two-wheeled self-balancing robot in this paper. The use of the adaptive observer ensures the joint estimation of the state and the unknown parameter (unknown body mass). The convergence of the output feedback controller based on the adaptive observer was carried out by a Lyapunov analysis. The simulation results illustrate the performance of the proposed observer as well as the tracking control scheme applied on the two-wheeled self-balancing robot. In a future work, we will take into account that the self-balancing robot dynamics is also corrupted by unknown time-varying disturbances and we will improve more the robustness of our control method.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.