nonlinear balance control of an unmanned bicycle: design

6
Nonlinear Balance Control of an Unmanned Bicycle: Design and Experiments Leilei Cui 1,* , Shuai Wang 2,* , Jie Lai 2 , Xiangyu Chen 2 , Sicheng Yang 2 , Zhengyou Zhang 2 , Fellow, IEEE, and Zhong-Ping Jiang 1 , Fellow, IEEE Abstract—In this paper, nonlinear control techniques are ex- ploited to balance an unmanned bicycle with enlarged stability domain. We consider two cases. For the first case when the au- tonomous bicycle is balanced by the flywheel, the steering angle is set to zero, and the torque of the flywheel is used as the control input. The controller is designed based on the Interconnection and Damping Assignment Passivity Based Control (IDA-PBC) method. For the second case when the bicycle is balanced by the handlebar, the bicycle’s velocity is high, and the flywheel is turned off. The angular velocity of the handlebar is used as the control input and the balance controller is designed based on feedback linearization. In these cases, the global stability of the closed-loop unmanned bicycle is theoretically proved based on Lyapunov theory. The experiments are conducted to validate the efficacy of the proposed nonlinear balance controllers. I. INTRODUCTION Compared with other ground vehicles, bicycles are envi- ronmentally friendly, cheap and versatile. Therefore, they are one of the most popular transportation means over the last two centuries. During the 20th century, most efforts were concentrated on making them easier to ride. Moving into the 21st century, the rapid development of computing and sensing technologies makes autonomous riding a popular and significant research topic. The huge market for bicycles creates tremendous opportunities for unmanned bicycles. Because there are only two contact points between the bicycle and the support road, as an inverted pendulum, bicycles are unstable systems. Therefore, balance control is fundamentally important, yet challenging, for autonomous riding of bicycles, and many researchers have made some progresses on this topic. The dynamic modeling and balance control of bicycles are reviewed in [1]–[4]. As stated in [1], it is difficult to balance a low speed bicycle via steering handlebar. In this case, the steering angle is set to zero, and other auxiliary balance equipment, such as flywheels, are required to balance the autonomous bicycle. However, when the autonomous bicycle is moving forward at a sufficiently high speed, the bicycle can be balanced by steering the handlebar [5], [6]. In this case, the steering angular velocity is the control *This work is supported in part by the National Science Foundation under Grant EPCN-1903781, and in part by a gift from the Tencent company. The first two authors contributed equally to this work. 1 L. Cui and Z. P. Jiang are with the Control and Networks Lab, Department of Electrical and Computer Engineering, Tandon School of Engineering, New York University, Brooklyn, NY 11201 USA (e-mail: [email protected]; [email protected]). 2 S. Wang, J. Lai, X. Chen, S. Yang and Z. Zhang are with Ten- cent Robotics X, Tencent Holdings, Shenzhen, Guangdong, China (email: [email protected]). 1 2 3 4 Fig. 1. The unmanned bicycle. input. Therefore, the balance problem can be divided into two cases. When the autonomous bicycle is balanced by other aux- iliary balance equipment, in [7]–[12], gyroscopic balance is applied. Yetkin et al. [7] design a controller to regulate the gimbal angle based on sliding mode control. In [8], the dynamic model is linearized and discretized. Then a model predictive controller is designed to balance the bicycle. In [9], based on the linear dynamic model of bicycles with a gyroscope, a mixed H 2 /H controller is designed, and the particle swarm optimization algorithm is applied to determine the coefficients in the controller. In [10], the root locus method is applied to design a balance controller. In [11], the dynamic model is also linearized and the pole- zero placement method is applied to design the balance controller. In [12], a nonlinear controller is also designed. However, it also cannot guarantee the global stability of the closed-loop autonomous bicycle. Among the aforementioned references, all the designed controllers can only give local stability results. Besides, two flywheels, spinning in opposite direction, are needed to cancel the reactive torques on the yaw dynamics of the bicycle [8]. For each flywheel, two actuators are required to regulate the angular velocities around two orthogonal axes. These properties would increase the complexity of the balance equipment. In this paper, to overcome the first aforementioned problem, we propose a nonlinear controller based on IDA-PBC method, which is detailed in [13] and [14]. In order to simplify the auxiliary balance equipment, only one flywheel is used, and the reactive torque, the direction of which is opposite to the active torque of the flywheel, is applied to balance the bicycle. 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) October 25-29, 2020, Las Vegas, NV, USA (Virtual) 978-1-7281-6211-9/20/$31.00 ©2020 IEEE 7279

Upload: others

Post on 02-Apr-2022

0 views

Category:

Documents


0 download

TRANSCRIPT

Nonlinear Balance Control of an Unmanned Bicycle: Design andExperiments

Leilei Cui1,∗, Shuai Wang2,∗, Jie Lai2, Xiangyu Chen2, Sicheng Yang2,Zhengyou Zhang2, Fellow, IEEE, and Zhong-Ping Jiang1, Fellow, IEEE

Abstract— In this paper, nonlinear control techniques are ex-ploited to balance an unmanned bicycle with enlarged stabilitydomain. We consider two cases. For the first case when the au-tonomous bicycle is balanced by the flywheel, the steering angleis set to zero, and the torque of the flywheel is used as the controlinput. The controller is designed based on the Interconnectionand Damping Assignment Passivity Based Control (IDA-PBC)method. For the second case when the bicycle is balanced bythe handlebar, the bicycle’s velocity is high, and the flywheel isturned off. The angular velocity of the handlebar is used as thecontrol input and the balance controller is designed based onfeedback linearization. In these cases, the global stability of theclosed-loop unmanned bicycle is theoretically proved based onLyapunov theory. The experiments are conducted to validatethe efficacy of the proposed nonlinear balance controllers.

I. INTRODUCTION

Compared with other ground vehicles, bicycles are envi-ronmentally friendly, cheap and versatile. Therefore, they areone of the most popular transportation means over the lasttwo centuries. During the 20th century, most efforts wereconcentrated on making them easier to ride. Moving intothe 21st century, the rapid development of computing andsensing technologies makes autonomous riding a popularand significant research topic. The huge market for bicyclescreates tremendous opportunities for unmanned bicycles.Because there are only two contact points between thebicycle and the support road, as an inverted pendulum,bicycles are unstable systems. Therefore, balance control isfundamentally important, yet challenging, for autonomousriding of bicycles, and many researchers have made someprogresses on this topic.

The dynamic modeling and balance control of bicyclesare reviewed in [1]–[4]. As stated in [1], it is difficult tobalance a low speed bicycle via steering handlebar. In thiscase, the steering angle is set to zero, and other auxiliarybalance equipment, such as flywheels, are required to balancethe autonomous bicycle. However, when the autonomousbicycle is moving forward at a sufficiently high speed, thebicycle can be balanced by steering the handlebar [5], [6].In this case, the steering angular velocity is the control

*This work is supported in part by the National Science Foundation underGrant EPCN-1903781, and in part by a gift from the Tencent company. Thefirst two authors contributed equally to this work.

1L. Cui and Z. P. Jiang are with the Control and Networks Lab,Department of Electrical and Computer Engineering, Tandon School ofEngineering, New York University, Brooklyn, NY 11201 USA (e-mail:[email protected]; [email protected]).

2S. Wang, J. Lai, X. Chen, S. Yang and Z. Zhang are with Ten-cent Robotics X, Tencent Holdings, Shenzhen, Guangdong, China (email:[email protected]).

1

2 34

Fig. 1. The unmanned bicycle.

input. Therefore, the balance problem can be divided intotwo cases.

When the autonomous bicycle is balanced by other aux-iliary balance equipment, in [7]–[12], gyroscopic balanceis applied. Yetkin et al. [7] design a controller to regulatethe gimbal angle based on sliding mode control. In [8], thedynamic model is linearized and discretized. Then a modelpredictive controller is designed to balance the bicycle. In[9], based on the linear dynamic model of bicycles witha gyroscope, a mixed H2/H∞ controller is designed, andthe particle swarm optimization algorithm is applied todetermine the coefficients in the controller. In [10], the rootlocus method is applied to design a balance controller. In[11], the dynamic model is also linearized and the pole-zero placement method is applied to design the balancecontroller. In [12], a nonlinear controller is also designed.However, it also cannot guarantee the global stability of theclosed-loop autonomous bicycle. Among the aforementionedreferences, all the designed controllers can only give localstability results. Besides, two flywheels, spinning in oppositedirection, are needed to cancel the reactive torques on theyaw dynamics of the bicycle [8]. For each flywheel, twoactuators are required to regulate the angular velocitiesaround two orthogonal axes. These properties would increasethe complexity of the balance equipment. In this paper, toovercome the first aforementioned problem, we propose anonlinear controller based on IDA-PBC method, which isdetailed in [13] and [14]. In order to simplify the auxiliarybalance equipment, only one flywheel is used, and thereactive torque, the direction of which is opposite to theactive torque of the flywheel, is applied to balance thebicycle.

2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)October 25-29, 2020, Las Vegas, NV, USA (Virtual)

978-1-7281-6211-9/20/$31.00 ©2020 IEEE 7279

θ

δ

δf

b

L

α

L1

L2

φ

Δ X

ZY

O

xy

z

P1Flywheel

Centroid

Fig. 2. Sketch of the bicycle.

When the autonomous bicycle is balanced by steeringthe handlebar, controllers are designed in [15]–[19]. In[15], based on a linearized bicycle model, the controlleris designed via gain-scheduling techniques. Defoort et al.[16] apply second-order sliding mode control and disturbanceobserver to balance the bicycle. In [17], a PD controller isdesigned to track a straight line. In [18], a fuzzy controlleris designed based on a linearized bicycle model. In [19], alinear controller combined with disturbance rejection termis designed. Among the aforementioned papers, most ofthem employ linear controllers, which can only give localresults for stability and performance analysis. Although [16]designs a nonlinear controller, the effect of accelerationon the balance of the bicycle is not considered. In thispaper, to address the aforementioned limitations, based onboth bicycle’s roll and acceleration dynamics, a nonlinearcontroller is designed via feedback linearization, which canguarantee the global stability. Here the global stability meansthat the bicycle can be balanced when the initial roll angleis within the range from −π/2 to π/2 radian.

The structure of the following contents is as follows. InSection II, the problem is formulated and the dynamic modelof the bicycle is derived. When the autonomous bicycle isbalanced by a flywheel, a nonlinear controller is designedbased on IDA-PBC in Section III. The global stability of theclosed-loop autonomous bicycle is also proved theoretically.In Section IV, when the autonomous bicycle is balanced bysteering the handlebar, a nonlinear controller is designed,which can also guarantee the global stability. In Section V,experiments are conducted to show the performance of theproposed controllers. Some concluding remarks are made inSection VI.

II. PROBLEM FORMULATION AND DYNAMICMODELING

As shown in Fig. 1, component 1 is a motor which canregulate the angular velocity of the handlebar. Component 2is a flywheel, the torque of which can be controlled by motor3. Component 4 is a motor which can control the angularvelocity or torque of the rear wheel. In Fig. 2, O− XY Z

denotes the base frame. P1− xyz is the frame, where P1 isthe contact point between the rear wheel and the ground,P1x is the direction of the bicycle, and P1z is vertical andupward. θ denotes the roll angle, φ denotes the rotationangle of the flywheel, δ denotes the steering angle and δ f isthe effective steering angle. Vx and Vy are longitudinal andlateral velocities respectively. V is the forward velocity ofthe bicycle. Let m1 and m2 denote the mass of the bicycleand the flywheel separately, and m = m1 + m2. I1 and I2are moment of inertia of the bicycle and the flywheel. gdenotes the gravity acceleration. Let uδ = δ denote angularvelocity of the steering angle, uφ denote the torque applied tothe flywheel, and uv denote the propulsive force applied tothe bicycle. Given the dynamic parameters of the bicycle,the nonlinear balance controllers will be designed in thefollowing cases.

Case 1 (Balancing by the Flywheel): When δ = 0, designa nonlinear controller to balance the roll angle of the bicycleto zero via regulating the torque applied to the flywheel uφ .

Case 2 (Balancing by the Handlebar): When V > 0, designa nonlinear controller to balance the roll angle of the bicycleto θeq and regulate the velocity V to a desired value Vd bymeans of the angular velocity of the steering angle uδ andthe propulsive force uv.

A. Dynamic Modeling

When δ is constant, the path of the bicycle is a circle. Letσ denote the curvature of this circle, which can be expressedas

σ = tan(δ f )/L. (1)

The relationship between δ and δ f is

tan(δ f )cos(θ) = tan(δ )sin(α). (2)

Combining (1) and (2), one can obtain the following expres-sion

σ =tan(δ )sin(α)

cos(θ)L. (3)

Define uσ as follows

uσ = σ

=sin(α)

L

(sec2(δ )uδ cos(θ)+ tan(δ )sin(θ)θ

cos2(θ)

).

(4)

Then we establish the dynamic model of the bicycle bymeans of Euler-Lagrange equation

L = T −U, (5a)ddt(

∂L

∂ qi)− ∂L

∂qi= τi. (5b)

In (5), T denotes the kinetic energy, U denotes the poten-tial energy and τi denotes the external forces, which aredescribed below.

The motion of a rigid body can be split into two parts:translational and rotational. For translational motion , the ve-locities of the bicycle’s centroid and the flywheel’s centroid

7280

are

Vxi =V, (6a)

Vyi =−V σb−Liθ cos(θ), (6b)

Vzi =−Liθ sin(θ) (i = 1,2). (6c)

The rotational velocities of the bicycle and the flywheel are

ω1 = θ , (7a)

ω2 = θ + φ . (7b)

Therefore, with (6) and (7), the kinetic energy can beexpressed as

T =12

m1(V 2x1 +V 2

y1 +V 2z1)+

12

m2(V 2x2 +V 2

y2 +V 2z2)

+12

I1ω21 +

12

I2ω22 .

(8)

Further, the potential energy can be expressed as

U = (m1L1 +m2L2)g(cos(θ)+1), (9)

and the external force τ can be expressed as

τθ =−(m1L1 +m2L2)cos(θ)σV 2 +mgb∆sin(α)

Lcos(θ)δ f ,

(10a)τφ = uφ , (10b)τv = uv, (10c)

where the first term of (10a) denotes the centrifugal forceand the last term of (10a) denotes the torque produced bythe effect of trail ∆ [20].

Define the last term in (10a) as τ∆(θ ,δ f ). Substituting(8), (9) and (10) into (5), one can get the following dynamicmodel

(m1L21 +m2L2

2 + I1 + I2)θ + I2φ +(m1L1 +m2L2)bσ cos(θ)V

= (m1L1 +m2L2)gsin(θ)− (m1L1 +m2L2)cos(θ)σV 2

+ τ∆(θ ,δ f )− (m1L1 +m2L2)bV cos(θ)uσ ,(11a)

I2θ + I2φ = uφ , (11b)

(m1L1 +m2L2)bσ cos(θ)θ +(m+mb2σ

2)V =

− (2mb2V σ +(m1L1 +m2L2)bcos(θ)θ)uσ

+(m1L1 +m2L2)bσ sin(θ)θ 2 +uv.

(11c)

In the next two sections, the nonlinear balance controllersare designed in the following two cases: balancing by theflywheel and balancing by the handlebar.

III. BALANCING BY THE FLYWHEEL

When the bicycle is balanced by the flywheel, the steeringangle δ is set to zero, which means σ = 0. In this case, thedynamic model (11) can be simplified into the followingequation

(m1L21 +m2L2

2 + I1 + I2)θ + I2φ = (m1L1 +m2L2)gsin(θ), (12a)

I2θ + I2φ = uφ . (12b)

Define Iθ = m1L21 +m2L2

2 + I1, Iφ = I2, λ = (m1L1 +m2L2)g,M = diag(Iθ , Iφ ), q = [θ ,θ +φ ]T, G = [−1,1]T and p = Mq.Then the Hamiltonian form of (12) is

H =12

pTM−1 p+λ (cos(q1)+1), (13a)[qp

]=

[0 I2×2−I2×2 0

][ ∂H∂q∂H∂ p

]+

[02×1

G

]uφ . (13b)

In (13b), H is the total mechanical energy of the bicycle withthe flywheel. I2×2 denotes the identity matrix of dimension2.

We will employ the IDA-PBC control method of [13].The IDA-PBC controller design method can be partitionedinto two parts: energy shaping and damping injection [13],which means uφ = uφ ,s+uφ ,i. For energy shaping, the goal isto design uφ ,s, such that the Hamiltonian form of the closed-loop system is as follows

Hd =12

pTM−1d p+Ud(q), (14a)[

qp

]=

[0 M−1Md

−MdM−1 0

][ ∂Hd∂q

∂Hd∂ p

]+

[02×1

G

]uφ ,i. (14b)

In (14b), Md =

[α1 α2α2 α3

],α1 > 0,α1α3−α2

2 > 0. Comparing

(13) with (14), one can find that the following conditionshold

Guφ ,s =∂H∂q−MdM−1 ∂Ud(q)

∂q, (15a)

G⊥(∂H∂q−MdM−1 ∂Ud(q)

∂q) = 0. (15b)

In (15b), G⊥ is a vector that is orthogonal to G, i.e. G⊥G= 0.From (15b), one can get the following partial differentialequation equation for Ud(q)

α1 +α2

∂Ud(q)∂q1

+α2 +α3

∂Ud(q)∂q2

=−λ sin(q1). (16)

The solution to (16) is

Ud(q) =λ Iθ

α1 +α2(cos(q1)−1). (17)

In (17), in order to guarantee that q1 = 0 is the minimum ofUd(q), α1 +α2 < 0. According to (15a) and (17), uφ ,s canbe expressed as

uφ ,s =λα2

(α1 +α2)sin(q1). (18)

For damping injection, the aim is to design uφ ,i, such thatHd ≤ 0. According to (14), after designing uφ ,s as (18) theexpression of Hd is

Hd =

(∂Hd

∂ p

)T

Guφ ,i. (19)

Therefore, uφ ,i is designed as

uφ ,i =−kvGT(

∂Hd

∂ p

)=−kvGTM−1

d p (20)

7281

Theorem 1: For the system (12) with the controller (18)and (20), we have the following convergence properties

limt→+∞

θ(t) = 0, limt→+∞

φ(t) = 0. (21)Proof: Let Hd in (14) denote the candidate Lyapunov

function. According to (19) and (20), Hd can be expressedas

Hd =−kv(GTM−1

d p)2 ≤ 0. (22)

When Hd = 0, q1 = 0, p1 = 0 and p2 = 0 can be inferred.According to LaSalle’s invariance principle [21], (21) canbe proved.

IV. BALANCING BY THE HANDLEBAR

When the autonomous bicycle is balanced by the handle-bar, V > 0 and the flywheel is turned off. Ignore the effectof trail τ∆(θ ,δ f ). Define the following matrices and vectors

Ml =

[(m1L2

1 +m2L22 + I1 + I2) (m1L1 +m2L2)bσ cos(θ)

(m1L1 +m2L2)bσ cos(θ) (m+mb2σ2)

],

G =

[(m1L1 +m2L2)gsin(θ)− (m1L1 +m2L2)cos(θ)σV 2

(m1L1 +m2L2)bσ sin(θ)θ 2

],

B =

[−(m1L1 +m2L2)bV cos(θ) 0

−(2mb2V σ +(m1L1 +m2L2)bcos(θ)θ) 1

].

In the case, according to (11), the dynamic model can besimplified as

Ml

V

]= G+B

[uσ

uv

]. (24)

It is obvious that when V > 0, the matrix B is invertible.In order to control the roll angle θ and the velocity V tothe desired value θd and Vd , where Vd is positive and θd ∈(−π/2,π/2), the following controller is designed[

uv

]= B−1

(−G+Ml

[v1v2

]), (25a)

v1 =−kd1θ − kp(θ −θd), (25b)v2 =−kd2(V −Vd). (25c)

In (25), kp, kd1, and kd2 are positive. Combining (24) and(25), the dynamics of the closed-loop system is

θ =−kd1θ − kp(θ −θd), (26a)V =−kd2(V −Vd) (26b)

Theorem 2: For the system (24), with the controller (25),we have the following convergence properties

limt→+∞

V (t) =Vd , limt→+∞

θ(t) = θd ,

limt→+∞

uσ (t) = 0, limt→+∞

uv(t) = 0.(27)

Proof: Define the candidate Lyapunov function as

Ly =kp

2(θ −θd)

2 +12

θ2 +

12(V −Vd)

2. (28)

According to (26), the time derivative of (28) is

Ly =−kd1θ2− kd2(V −Vd)

2 ≤ 0. (29)

Feedforward

Controller

Feedback

ControllerBicycle

, , ,V eq d

, vu u

, , , ,V

Fig. 3. Control scheme when the bicycle is balanced by the handlebar.

When Ly = 0, V = Vd , θ = θd , σ = 0 and uv = 0 canbe inferred. According to the generalization of LaSalle’sinvariance principle [22], the theorem can be proved.From (4) and (25), we can get the expression of uδ as

uδ =cos2(δ )

cos(θ)

(Lcos2(θ)

sin(α)uσ − tan(δ )sin(θ)θ

). (30)

Remark 1: In some cases, if the effect of τ∆(θ ,δ f ) cannotbe ignored, the feedforward controller can be applied toeliminate the steady-state error, which can be expressed as

θd =−τ∆(θeq,δ f )+ kp(m1L2

1 +m2L22 + I1 + I2)θeq

kp(m1L21 +m2L2

2 + I1 + I2). (31)

The control scheme is described in Fig.3.

V. EXPERIMENTS

In this section, several experiments are conducted to showthe performance of the proposed nonlinear controllers whenthe autonomous bicycle is balanced by the flywheel and bythe handlebar respectively. For clarity, the controller designedin Section III is named FC and the controller designed inSection IV is named HC.

As shown in Fig.1, the handlebar is driven by a steeringmotor, and the steering angular velocity can be regulated.The flywheel is driven by a servo motor, the torque of whichcan be regulated. The rear wheel is also driven by a servomotor, both the velocity and the torque of which can beregulated. The roll angle of the bicycle is measured by theinstalled IMU. The embedded chip STM32H7 is appliedas a calculator. The reference signal is sent by a infraredremote controller. In order to move along a clockwise circle,θeq should be positive, and vice versa. Parameters of thebicycle are listed as follows: m1 = 11kg,m2 = 3.5kg, I1 =0.12418kg · m2, I2 = 0.007882kg · m2,L1 = 0.2316m,L2 =0.15m,L = 0.7485m,b = 0.3642m,α = 75◦,∆ = 4.6cm.

A. Experiments for Balancing by the Flywheel

In order to validate the efficacy of the proposed FC, thefollowing two experiments are conducted. Firstly, when theautonomous bicycle keeps stationary, the FC is applied. Fig.4, (a) and (b) show that two opposite external disturbancesare exerted to the bicycle. The results of this experimentare shown in Fig. 5. From Fig. 5 (b), one can find twodisturbances at 20s and 40s. In Fig. 5 (d), in order tobalance the bicycle, two torques are exerted to the flywheelsimultaneously. Then the reactive torques are produced tobalance the bicycle. From Fig. 5 (e), one can find that theangular velocity of the flywheel eventually converges to zero.

7282

(a) (b)

Fig. 4. Experiment for the stationary bicycle. (a) External disturbance to-wards one direction. (b) External disturbance towards the opposite direction.

(a) (b)

(c) (d)

(e) (f)

Fig. 5. The results of the experiment for the stationary scenario

Secondly, the autonomous bicycle accelerates and brakesalong a straight line, and the FC is applied. The velocityof the rear wheel is controlled by the velocity command ofthe servo motor. As shown in Fig. 6, the bicycle acceleratesand brakes from the initial position to the final position.From Fig. 7 (b) and (f), when the bicycle is acceleratingand braking, there are some disturbances moving the bicycleaway from the equilibrium point. From Fig. 7 (d), when thebicycle is away from the equilibrium point, the torque of theflywheel changes correspondingly, balancing the bicycle tothe equilibrium point. From Fig. 7 (d), one can find that theangular speed of the flywheel converges to zero finally.

From the aforementioned two experiments, one can con-clude that when there are some external disturbances or thebicycle is accelerating and braking, the proposed nonlinearcontroller can balance the autonomous bicycle.

B. Experiments for Balancing by the Handlebar

For the FC, the desired roll angle can only be zero. Forthe HC, it can balance the bicycle to a non-zero desiredroll angle, but the velocity of the bicycle must satisfy thatV >Vc, where Vc is a positive velocity threshold. The higher

(a)

(b)

Fig. 6. Experiment for accelerating and braking. (a) The initial position(b) The final position.

(a) (b)

(c) (d)

(e) (f)

Fig. 7. The results of the experiment for accelerating and braking.

the forward velocity, the more effective the proposed HC.Therefore, if the desired roll angle θeq = 0, the FC is applied.If θeq 6= 0 and V >Vc, the HC is applied. According to thiscontrol logic, we design the following accelerating-circle-braking experiment to test the performance of the proposedHC.

Firstly, the bicycle accelerates from standstill, and theFC is applied. Then a positive desired roll angle is sent tothe bicycle, during which the HC is applied. Finally, thedesired roll angle is reset to zero, the bicycle brakes andthe FC is applied. Fig. 8 shows different moments when thebicycle is accelerating, moving along a circle and braking.The results of this experiment are shown in Fig. 9. As shownin 9 (a), (b) and (c), when a positive desired roll angle issent to the bicycle, with the HC, the steering angle turnsto the positive direction, and the roll angle is balanced tothe desired position. As shown in Fig. 9 (d) and (e), duringthis time, the flywheel is turned off. Therefore, it shows thatthe autonomous bicycle can be balanced by the proposednonlinear controller via steering the handlebar.

7283

(a) (b)

(c) (d)

Fig. 8. Experiment for the accelerating-circle-braking. (a) Accelerating (b)Moving along a circle. (c) Moving along a circle. (d) Braking

(a) (b)

(c) (d)

(e) (f)

Fig. 9. The results of the experiment for accelerating-circle-braking.

VI. CONCLUSIONSIn this paper, two nonlinear controllers are presented

to balance an unmanned bicycle with non-local stabilityguarantee. When the steering angle of the bicycle is zero,the flywheel is applied and the corresponding nonlinearcontroller is designed to balance the bicycle based on IDA-PBC. When the bicycle is moving forward, the nonlinearcontroller is designed based on the feedback linearization.The stability of the closed-loop bicycle system is alsoguaranteed by Lyapunov’s direct method. The efficacy ofthe proposed nonlinear controllers has been validated byexperiments. Our future work will be directed at generalizingthe presented results to formation control of a group ofunmanned bicycles using techniques in distributed nonlinearcontrol [23]. Besides, the continuous-time robust dynamicprogramming [24] can be applied to handle the uncertaindisturbances in the dynamics of the bicycle.

REFERENCES

[1] A. L. Schwab and J. P. Meijaard, “A review on bicycle dynamics andrider control,” Vehicle System Dynamics, vol. 51, no. 7, pp. 1059-

1090, 2013.[2] R.S. Sharp, “Stability, control and steering responses of motorcycles,”

Vehicle System Dynamics, vol. 35, no. 4–5, pp. 291-318, 2001.[3] D. J. N. Limebeer and R. S. Sharp, “Bicycles, motorcycles, and

models: Single-track vehicle modeling and control,” IEEE ControlSystems Magzine, vol. 26, no. 5, pp. 34–61, 2006.

[4] A.A. Popov, S. Rowell, and J.P. Meijaard, “A review on motorcycleand rider modelling for steering control,” Vehicle System Dynamics,vol. 48, no. 6, pp. 775–792, 2010.

[5] K. J. Astrom, R. E. Klein, and A. Lennartsson, “Bicycle dynamics andcontrol: adapted bicycles for education and research,” IEEE ControlSystems Magazine, vol. 25, no. 4, pp. 26-47, 2005.

[6] J. D. G. Kooijman, J. P. Meijaard, J. M. Papadopoulos, Andy Ruina,and A. L. Schwab, “A bicycle can be self-stable without gyroscopicor caster effects,” Science, vol. 332, no. 6027, pp. 339-342, 2011.

[7] H. Yetkin, S. Kalouche, M. Vernier, G. Colvin, K. Redmill, andU. Ozguner, “Gyroscopic stabilization of an unmanned bicycle,” inAmerican Control Conference, Portland, 2014, pp. 4549 - 4553.

[8] C. Chen, T. Chu and X. Zhang, “Modeling and control of an activestabilizing assistant system for a bicycle, Sensors,” vol. 19, no. 2, pp.248-269, 2019.

[9] B. T. Thanh and M. Parnichkun, “Balancing control of bicyrobo byparticle swarm optimization-based structure-specified mixed H2/H∞

control,” International Journal of Advanced Robotic Systems, vol. 5,no. 4, pp. 187–195, 2008.

[10] J. M. Gallaspy, “Gyroscopic stabilization of an unmanned bicycle,”M.S. thesis, Electrical Engineering Department, University of Auburn,Auburn, USA, 1999.

[11] S. C. Sprya and A. R. Girardb, “Gyroscopic stabilisation of unsta-ble vehicles: configurations, dynamics, and control,” Vehicle SystemDynamics, vol. 46, no. supplement, 2008.

[12] Y. Zhang, P. Wang, J. Yi, D. Song, and T. Liu, “Stationary balancecontrol of a bikebot,” in IEEE International Conference on Roboticsand Automation, Hongkong, 2014, pp. 6706-6711.

[13] R. Ortega, M. W. Spong, F. Gomez-Estern, and G. Blankenstein,“Stabilization of a class of underactuated mechanical systems Viainterconnection and damping assignment,” IEEE Transactions on Au-tomatic Control, vol. 47, no. 8, pp. 1218-1233, 2002.

[14] J. A. Acosta, R. Ortega, A. Astolfi, and A. D. Mahindrakar, “Intercon-nection and damping assignment passivity-based control of mechan-ical systems with underactuation degree one,” IEEE Transactions onAutomatic Control, vol. 50, no. 12, pp. 1936-1955, 2005.

[15] V. Cerone, D. Andreo, M. Larsson, and D. Regruto, “Stabilization of ariderless bicycle: a linear-parameter-varying approach,” IEEE ControlSystems Magazine, vol. 30, no. 5, pp. 23–32, 2010.

[16] M. Defoort, and T. Murakami, “Second order sliding mode controlwith disturbance observer for bicycle stabilization,” in IEEE/RSJInternational Conference on Intelligent Robots and Systems, Nice,2008, pp. 2822-2827.

[17] Y. Tanaka and T. Murakami, “A study on straight-line tracking andposture control in electric bicycle,” IEEE Transactions on IndustrialElectronics, vol. 56, no. 1, pp. 159-168, 2009.

[18] S. Hashemnia, M. S. Panahi, and M. J. Mahjoob, “Unmanned bicyclebalancing via Lyapunov rule-based fuzzy control,” Multibody SystemDynamics, vol. 31, no. 2, pp. 147–168, 2014.

[19] M. Baquero-Suarez, J. Cortes-Romero, J. Arcos-Legarda, and H.Coral-Enriquez, “A robust two-stage active disturbance rejection con-trol for the stabilization of a riderless bicycle,” Multibody SystemDynamics, vol. 45, no. 1, pp. 7-35, 2019.

[20] M. Defoort and T. Murakami, “Sliding-mode control scheme foran intelligent bicycle,” IEEE Transactions on Industrial Electronics,vol.56, no. 9, pp. 3357-3368, 2009.

[21] H. K. Khalil, Nonlinear System, 3rd ed., Upper Saddle River, NJ,USA: Prentice Hall, 2002.

[22] T. Lee and Z. P. Jiang, “A generalization of Krasovskii-LaSalletheorem for nonlinear time-varing systems: converse results and ap-plications,” IEEE Transactions on Automatic Control, vol. 50. no. 8,pp. 1147-1163, 2005.

[23] T. Liu, Z. P. Jiang, and D. J. Hill, Nonlinear Control of DynamicNetworks, Boca Raton, FL, USA: CRC Press, 2014.

[24] T. Bian and Z. P. Jiang, “Continuous-time robust dynamic program-ming,” SIAM Journal on Control and Optimization, vol. 57, no. 6, pp.4150-4174, 2019.

7284