Вы находитесь на странице: 1из 5

Cyber Journals: Multidisciplinary Journals in Science and Technology, Journal of Selected Areas in Robotics and Control (JSRC), December

Edition, 2010

A New Configuration of Two-Wheeled Inverted


Pendulum: A Lagrangian-Based Mathematical
Approach
K M Goher 1 and M O Tokhi 2
1
Department of Mechanical and Industrial Engineering
College of Engineering, Sultan Qaboos University, Oman, e-mail: kgoher@squ.edu.om
2
Department of Automatic Control and Systems Engineering,
The University of Sheffield, United Kingdom

Abstract— This work presents a novel design of two-wheeled inverted pendulum problem is common in the field of control
vehicles. The proposed design provides the vehicle with more engineering. The uniqueness and wide application of
flexibility in terms of the increased degrees of freedom which technology derived from this unstable system has drawn
enable the vehicle to enlarge its working space. The additional interest of many researches, [2], [6], [8] and [9], and robotics
translational degree of freedom (DOF), offered by the linear enthusiasts around the world. In recent years, researchers
actuator, assists any attached payload to reach higher levels as have applied the idea of a mobile inverted pendulum model
and when required. The model of the system mimics the to various applications including the design of walking gaits
scenario of double inverted pendulum on a moving base. for humanoid robots, robotic wheelchairs [7] and personal
However, it is further complicated due to the addition of a one
transport systems [10].
more (DOF). As adding more degrees of freedom to the system
increases the degree of complexity, Lagrangian dynamic
In this paper, due to the highly nonlinearity
formulation is used, due to its relative simplicity, to derive the characteristics of the multi-inputs multi-outputs (MIMO)
system dynamics. The new developed configurations is of great two-wheeled system, mathematical model using Lagrangian
importance in various applications including self balance approach has been developed considering all possible system
robots, wheelchairs on two wheels, stability analysis of multi parameters maintaining system nonlinearities and
segment gaits and multi links cranes etc. In order to maintain complexity. Special concern is paid to the damping
the system nonlinear characteristics, the system model is characteristics of the joints as well as the dynamics of the
derived with the consideration of the joints friction based on overall centre of mass (COM) of the system. Further
the Coulomb friction model. An investigation is carried out on investigation will focus on the impact of the lower parts
the impact of the joints damping on the stability of the system. inertia and size; wheels mass and size, counter weights to
maintain balance and overall dimensions of lower parts of
Keywords- Lagrangian formulation, modelling and the vehicle.
simulation , double inverted pendulum.
II. SYSTEM DESCRIPTION
I. INTRODUCTION The vehicle considered in this work, shown in Figure 1,
Inverted pendula are currently used as teaching aids and comprises a rod on an axle incorporating two wheels as
research experiments. Quanser (2004), a supplier of described in Figures 1. The intermediate body (IB) of the
educational and research based equipment produce modular vehicle encompasses two segments; link 1 and link 2, where
systems which can be configured as single or double inverted the second link is a set of two coaxial-parts connected by a
pendula. Their range offers both a rotary and a linear version. linear drive to actuate the upper part and the attached
Many researchers have also built their own inverted payload. The vehicle is driven by four driving direct motors
pendulum systems (Åström and Furuta, 1996; Brockett & (DC); two motors drive the vehicle wheels and in turn the
Hongyi, 2003; Rubi, 2002) to suit their investigations. entire system, a motor driving link 2 and a linear actuator
Theoretically, any number of links can be mounted on between the two parts of link 2. The two wheels driving
the cart or rotor and successfully held in the all-up motors along with the motor driving link 2 help the system
configuration (Cazzolato, 2004). The most reported to have to be stabilized at the up right position or at any angular
been successfully balanced is four (Googol, 2004). Video position as required by the system control strategy. Using
footage of this feat can be viewed at the Googol website. the linear actuator increases the system degrees of freedom
Three link systems (triple inverted linear pendulum) have
by allowing the second link to extend the second to achieve
been observed as demonstrated by the Max Plank Institute
further levels of height.
(2004) and Quanser (2004). For all of these systems, each
link (including the rotary link or cart) has only one degree of The angular positions of link 1 and link 2; θ1 and θ 2 , are
freedom. measured from the positive vertical Z axis. The linear
The concept of balancing robot is based on the inverted displacement of the payload; Q, is measured, from
pendulum model. This model has been widely used by position O 2 , along link 2. In order to achieve a certain
researches around the world, [1], [3], [4] and [5], in angular position from the upright vertical axis, the vehicle is
controlling a system not only in designing wheeled robot but linearly moved in the XY plane undergoing a planar motion
also other types of robots as well as legged robots. The
1
in both directions. The motion of the vehicle in the XY advantageous for complex systems such as multi-link
plane relies, generally, on the degree of actuation of the systems.
wheels driving motors and hence on the control signals in
correspondence to the pre-assigned angular position of the TABLE I. PARAMETERS LABEL AND DESCRIPTION
IB. Terminology Description Units
Upon receiving the corresponding signal from the LM(t) Distance to the COM of the payload m
controllers, the wheels start to respond, independently, by L2u(t) Distance to the COM of the upper part of link m
2
rotating with the appropriate speed and in a direction La Position of the linear actuator m
relative to the nature of the received signals to the Ll Half length of link 1 m
corresponding controller. The linear actuator is working to 2L1 Length of link 1 m
activate the upper part of link 2 and the attached payload to H Distance between wheels, along X axis m
extend in accordance to the position measurement, as Q Displacement of the linear actuator m
required, of the payload. M1 Mass of link 1 kg
Mm Mass of motor driving link 2 kg
Payload M2l Mass of the lower part of link 2 kg
Upright position Ma Mass of the linear actuator kg
Linear actuator
M2u Mass of the upper part of link 2 kg

O2 θ2 M Payload mass kg
Q TR , TL Wheels driving torques kg
Tm Motor torque N.m
O 1 θ1 Z Fa Linear actuator force N
Right wheel Ff Frictional force in the linear actuator N
Y Fd External disturbance force N

Left wheel θ1 Angular position of link 1 to the positive Z axis rad


θ2 Angular position of link 2 to the positive Z axis rad
O
H
X
There are several reasons for using Lagrangian approach.
Fig. 1 Two-wheeled vehicle with an extended rod First, the derivation is based on energy calculations of the
physical system. As energy calculations are independent of
M vectors representation, the derivation is simple in compared
Fd to Newton-Euler formulation. Calculation of the system
M2u energy is of great importance for power consumptions by the
Fa , F f system and designing the appropriate actuators to derive the
Ma
system.
Q Z Second, using generalized coordinates to describe the
θ2
M 2l system degrees of freedom simplifies and describes more
naturally the situation using more sensible coordinates.
Mm Another advantage of Lagrange's dynamic is the method of
LM (t) L 2 u ( t ) La Ll Lagrangian multipliers. That method is usable when you do
Tm θ1 2 L1
M1 not know the nature of some force during constrained
motion. Lagrangian Dynamics is derived from Newton’s
O Laws and so has the same restrictions as those laws.
Y TL , TR Using Lagrange dynamic formulation for the system
dynamics, the following dynamic equation can be expressed
for an n degrees of freedom (DOF) system

Fig. 2 Positions of vehicle main parts and Com dq  ∂L  ∂L (1)


  − = Qi
dt  ∂ q& i  ∂qi
III. LAGRANGIAN MODELING APPROACH
Where
Application of the Euler-Lagrange equations leads to a L = T − V , is the Lagrangian function,
set of coupled second-order ordinary differential equations Generalized force associated with a generalized
Qi =
and provides a formulation of the dynamic equations of
motion equivalent to those derived using Newton’s coordinate q i
formulation. However, the Lagrangian approach is q i = Generalized coordinate,
n = Number of degrees of freedom of the system,

2
T = System kinetic energy, and V1 = M 1 gL1 cos θ1 (13)
V = System potential energy V m = M m g (2 L1 ) cos θ 1 (14)
V 2 l = M 2 l g (2 L1 cos θ1 + L 2 l cos 2 ) (15)
A. System Energy Requirements
V a = M a g (2 L1 cos θ 1 + 2 L 2 l cos 2 ) (16)
Since Lagrangian technique consider the system energy,
consisting of Kinetic and Potential energy, thus the total V 2 u = M 2 u g (2 L1 cos θ1 + 2 L2 u ( t ) cos 2 ) (17)
energy, U of the two-wheeled wheelchair can be described V M = Mg (2 L1 cos θ1 + 2 L M ( t ) cos 2 ) (18)
as the sum of the kinetic energy, T , and potential energy,
Where L 2 u ( t ) and L M (t ) are the positions of the centre of
V , of the system components; wheel, lower and upper
parts of links and the payload as: mass of upper part of link 2 and the payload respectively.
Both variables are time dependent, in correspondence to the
U = T+ V (2) displacement caused by the linear actuator, and can be
expressed as:
T = Tc + Tv,φ + T1 + Tm + T2 l + Ta + T2 u + TM (3)
V = V1 + Vm + V2l + Va + V2 u + VM (4) L 2 u ( t ) = 2 L 2 l + L2 u + Q (19)
(
Tc = M W R + J W δ& + δ&
2
W )( 2
L
2
R ) (5)
LM ( t ) = 2 L2 l + 2 L2 u + Q (20)
1
Tv,φ = (2 J W + J IB )φ&2 (6)
2 Manipulating the above equations yield the following
where two expressions for the total kinetic and total potential
energies respectively of the system;
M c = 2 M w + M axle + 2 M driving motors + 2 M gearbox
The pendulum kinetic energy can be expressed as the ( ) 1 1
Tv = C21 δ&L2 + δ&R2 + C22δ&Lδ&R + C8Q& 2 + C16φ&2 + C18θ&12
2 2
sum of its translational energy and rotational energy; (20)
1
(
+ C20 + C12Q + C8Q θ 2 + C9
2
2 &2
) RW & &
2
( )
L1θ1 δ L + δ&R cosθ1

1  R
2

R
( )
+ W (C10 + C8Q)θ&2 δ&L + δ&R cosθ 2 + 2L1 (C10 + C8Q )θ&1θ&2 cos(θ1 − θ 2 )
2   2
( ) 
T1 = M1   W δ&L + δ&R + L1θ&1 cosθ1  + L1θ&1 sinθ1 ( )  + 12 J θ&
2
1 1
2 (7) 2
  V v = C 3 g cos θ 1 + (C15 + C 8 Q )g cos θ 2 (21)
 R 2

1
( ) 
Tm = M m   W δ&L + δ&R + 2L1θ&1 cosθ1  + 2L1θ&1 sinθ1
 2
( )  + 12 J θ&
2
m 1
2 (8)
IV. VEHICLE DYNAMICS
2   
The Lagrangian equation of motion is represented as,
  RW  
2

1   δ(
& + δ& + )
2 L θ& cos θ + L θ& cos θ  1 (9) dq  ∂L

 ∂L
− =Q
(22)
T2l = M 2l   2   + J 2 Lθ&2
L R 1 1 1 2l 2 2

2
i
2   2 dt  ∂ q& i  ∂qi
 (
 + 2L θ& sin θ + L θ& sin θ 2
1 1 1 2l 2 2 ) 
 where qi represents a particular generalized coordinate,
  RW 2

1 

(δ&L + δ&R ) + 2L1θ&1 cos θ1 + 2L2lθ&2 cosθ 2   1 & 2 (10) and
Ta = M a  2  + J aθ 2 dq i
2   2 q& i = (23)
 + (2 L θ& sin θ + 2 L θ& sin θ )2 
 1 1 1 2l 2 2  dt
 2  RW 
2
 The overall motion of the system can be described using
1
Q& +  (δ&L +δ&R )+ 2L1θ&1 cosθ1 + L2u(t)θ&2 cosθ2   1 & 2 (11) Eq. (3) according to separate each generalized coordinate in
T2u = M 2u   2  + J 2uθ 2
2   2 a system. For example, in this case, there are five generalized
 + (2L θ& sinθ + L θ& sinθ )2 
 1 1 1 2u(t ) 2 2  coordinates taking part in the system motion, thus, the
 2  RW 2
 generalized coordinates of the system are chosen as
Q& +  δ&L +δ&R + 2L1θ&1 cosθ1 + LM(t)θ&2 cosθ2  
( ) q i = [δ L δ R θ 1 θ 2 Q ]
T
1  1 (12) (24)
TM = M 2   + JMθ&22
2   2 The generalized force is expressed as,
 1 1(
+ 2L θ& sinθ + L θ& sinθ 2
1 M(t ) 2 2 ) 
 Q i = [T LT T RT 0 T MT F aT ]
T
(25)
Where the generalized forces and moments are expressed
where J l , J a , J u and J M are the mass moments of inertia as follows:
of the lower rod, linear actuator, upper rod and the payload T LT = T L − T fL (26)
respectively around the IB centre of mass.
Since there is no motion for the vehicle in the Z direction T RT = T R − T fR (27)
as the wheels remain in full contact with the T MT = TM − T fM (28)
ground; Z&&R = Z&&L = Z&&O = 0 , there is no potential energy for
FaT = Fa − F fa (29)
the cart in the Z direction. The potential energy of various
components can be expressed as:

3
A. Joints friction effects C. Vehicle dynamic equations
Based on the Coulomb’s friction model and assuming the The system is described by a set of Manipulating the
same frictional coefficients at all the joints, the frictional above expressions yields the following five highly non-linear
moments and forces are expressed as the following: differential equations describing the vehicle dynamics
alongside the driving moments and an external disturbance
T fL = c v δ&L + c c sin δ&L (30) force as:

RW R
T fR = c v δ&R + c c sin δ&R (31) 2C 21δ&&L + C 22δ&&R − C 9 L1θ&12 sin θ 1 + C 9 W θ&&1 cos θ 1
2 2
RW RW RW (40)
− C10θ 2 sin θ 2 +
& 2
C10θ 2 cos θ 2 +
&& C 8 Q& θ&2 + Q θ&&2
T fM = c vθ&2 + c c sin θ&2 (32) 2 2 2
+ Q& cos θ 2 − Q θ&22 sin θ 2 + θ&&2 cos θ 2 − θ&22 sin θ 2 = TL − T fL
F fa = c v Q& + c c sin Q& (33)
RW & 2 R
2C 21δ&&R + C 22δ&&L − C9 L1θ1 sin θ1 + C9 W θ&&1 cos θ1
2 2
Where T fL , T fR and T fM are the frictional moments at the (41)
RW R R
left and right wheels joints and the intermediate joint − C10θ&2 sin θ 2 +
2 W
C10θ&&2 cos θ 2 + W
C8Q& θ&2 + Qθ&&2
2 2 2
between link 1 and link 2 respectively and F fa is the + Q& cos θ 2 − Qθ&22 sin θ 2 + θ&&2 cos θ 2 − θ&22 sin θ 2 = TR − T fR
frictional force exist in the linear actuator. c v and c c are the
viscous and Coulomb friction coefficients at the vehicle 2C18θ&&1 + C22δ&&L + C9
RW && &&
2
(
L1 δL + δR cosθ1 )
joints respectively. δ&L and δ&R are the rate of angular rotations
at the left and right wheels respectively. θ&2 is the rate of the − C9
RW & & &
2
( )
L1θ1 δL + δR sinθ2 − 2L1((C8 + C10 ) θ&2 −θ&1 sin(θ1 −θ2 ) (42) ( )
angular position of link 2 and Q& is the velocity of the & (
+ 2C8Qθ2 + +2C8Qθ2 + C8Q + (C8 + C10 )θ2 (sinθ1 + sinθ2 + cosθ1 + cosθ2 )
&& && && && )
attached payload.
( )(
+ C Q + (C + C )θ& θ& (cos − sinθ ) + θ& (cosθ − cosθ ) )
8 8 10 2 1 1 1 2 2 1 )
B. Lagrangian formulation
Lθ (δ + δ )sinθ + 2L (C
R & & &
+C 9
W
1 1 L R 1 1 10 + C8Q)θ&1θ&2 sin(θ1 −θ2 ) − C3 g sinθ1 = 0
The Lagrangian function of the system; L can be 2
expressed as the difference between the system kinetic and
potential energy as the following: ((C 20 )
+ C12Q + C8Q2 + 2L1 (C8 + C10 )(sinθ1 + sinθ2 + cosθ1 + cosθ2 ) θ&&2 )

( R
) 
+  C12Q& + 2C8QQ& + W C8 (Q − 1) δ&L + δ&R sinθ2 θ&2 ( )
( ) 1
2
1
L = C21 δ&L2 + δ&R2 + C22δ&Lδ&R + C8Q& 2 + C16φ&2 + C18θ&12
2
 2 
(43)
1
(
+ C20 + C12Q + C8Q θ2 + C9
2 &2
) RW & &
( )
L1θ1 δ L + δ&R cosθ1
(34) +
RW
2
R
(C8Q + (C8 + C10 ) cosθ2 ) δ&&L + δ&&R + W C8Q& δ&L + δ&R
2
( ) ( )
2 2
+ 2L1C8 2θ&2Q ( )
&& + 2Qθ&& + 2L θ& (C + C )θ& + C Q (cosθ − sinθ ) ( )
( )
2 1 1 8 10 2 8 1 1
RW
+ (C10 + C8Q)θ2 δ L + δ R cosθ2 + 2L1(C10 + C8Q)θ&1θ&2 cos(θ1 − θ2 )
& & &
(
+ 2L θ& C θ& + C θ& + Q (cosθ − sinθ ) ( ))
2 1 2 10 2 8 2 2 2

− C3 g cosθ1 − (C15 + C8Q)g cosθ2  R 


+ C8 W Qθ&2 + (C15 + C8Q)g  sinθ2 + C8Q& cosθ2
 2 
The Lagrangian equations of motion of the vehicle can be + 2L1 (C8 + C10 ) sin(θ1 − θ2 ) − (C10 + C8Q)θ&1θ&2 sin(θ1 − θ2 )
represented as: = Tm − Tfm − Ld Fd

d  ∂L  ∂L (35)
dt

 ∂δ L
&
 −
 ∂δ L
= T L − T fL && −
C8Q
1
2
(C12 + 2C8Q)θ&22 − RW C8θ&2 δ&L + δ&R cosθ 2
2
( ) (44)
d  ∂L

 ∂L
 − = T R − T fR
(36) − 2L1C8θ&1θ&2 cos(θ1 − θ2 ) + C8 g cosθ2 = Fa − Ffa
dt  ∂ δ&R  ∂δ R
d  ∂L  ∂L (37) D. Intermediate body centre of mass (COM)
dt  ∂ θ&  − ∂ θ = 0 Calculating of the IB centre of mass is of great
 1  1

d  ∂ L  ∂L (38) importance, the following equations describe how the COM


 − = T M − T fM − L d Fd of the intermediate body is calculated. Considering the
& 
dt  ∂θ 2  ∂θ 2 moments of the vehicle main parts around the position of the
d  ∂L  ∂L (39) COM in two mutually perpendicular directions; X and Z
  − = Fa − F fa
&
dt  ∂Q  ∂Q yields the following expressions:

4
Lg M eq sin α = (M 1L1 + M m (2 L1 ) + 2 L1 (M 2l + M a + M 2u + M )) sin θ1 (45) The developed control strategy is implemented on the
+ (L2l M 2l + 2 L2 l M a + M 2u L2u ( t ) + MLM ( t ) ) sin θ 2 system model with the full results to be presented and
discussed in the full paper.
Lg M eq cos α = (M 1 L1 + M m (2 L1 ) + 2 L1 (M 2l + M a + M 2u + M )) cos θ1 (46)
+ (L2l M 2l + 2 L2l M a + M 2u L2u (t ) + MLM ( t ) )cos θ 2 δ Ld - Fd
C1 Payload

+
+ TL
where L g is a two dimensional vector in the XZ plane δ Rd -
C2 θ2 δL
+ -
δR
with a length represents the position of centre of mass + TR Q θ1
Z
θ1
(COM) of the intermediate body, and it is a time-dependent - Y
Tm θ2
varying with the angular positions of link 1 and link 2 and θ 1d +
Fa Q
C3 X
the linear displacement of the attached payload and can be -
calculated using;
θ 2d +
C sin θ1 + (C14 + C8Q )sin θ 2
C4
(47) -
Lg = 13
M eq sin α Qd
C5
Where M eq = M 1 + M m + M 2 l + M a + M 2 u + M

Manipulating the above equations yields the calculation


of the angular position of COM in the XZ plane as follows: Figure 1. Schematic description of the control strategy

C13 sin θ1 + (C14 + C8 Q )sin θ 2 (48)


α = arctan REFERENCES
C13 cosθ1 + (C14 + C8 Q )cosθ 2
[1] K. M. Goher and M. O. Tokhi ,A new configuration of two wheeled
vehicles: Towards a more workspace and motion flexibility, in the
The equation of motions derived were constructed in the Proceedings of the 4th IEEE International Systems Conference, San
Simulink environment for testing with conventional PID Diego, CA, USA, (2010), April 5- 8.
controller. [2] C.A. Woodham and H. Su, “A computational investigation of pole-
zero cancellation for a double inverted pendulum” Journal of
V. CONTROL STRATEGY Computational and Applied Mathematics 140 (2002) 823–836.
[3] H. Su and C.A. Woodham, “On the uncontrollable damped triple
The strategy to control the system depends on developing inverted pendulum” Journal of Computational and Applied
a feedback control strategy of five control loops as shown in Mathematics 151 (2003) 425–443.
Figure 3. In order to drive the vehicle to undergo a specific [4] Wei Zhong and Helmut R ock., “Energy and Passivity Based Control
planar motion in the XY plane, two feedback loops are of the Double Inverted Pendulum on a Cart”, Proceedings of the 2001
developed. The input to the both control loops is the error in IEEE international conference on control applications, Sept 5-7, 2001,
the angular position of each wheel which measures the Mexico city, Mexico.
difference between the desired and actual angular position of [5] K. J. Åström and K. Furuta, “ Swinging Up a Pendulum by Energy
Control”, Proceedings of the 13th IFAC World Congress, San
the corresponding wheel. The angular position of the Francisco, CA, 1996.
intermediate body is controlled by the measurement of the
[6] Xin Xin, Masahiro Kaneda, Taiga Yamasakil and Jin-Hua She,
error in the position of link 1 and link 2. In order to control “Energy based Swing-up Control for a 3-Link Robot with Passive
the position of the attached payload, a feedback control loop Last Joint: Design and Analysis”, SICE-ICASE International Joint
is developed with the error in the payload position as an Conference 2006, Oct. 18-21, 2006 in Bexco, Busan, Korea.
input and the actuation force as the output of the control [7] SeongHee Jeong and Takayuki Takahashi, “Wheeled Inverted
loop. Pendulum Type Assistant Robot: Inverted Mobile, Standing, and
The system of vehicle considered in this paper is a multi Sitting Motions”, Proceedings of the 2007 IEEE/RSJ International
Conference on Intelligent Robots and Systems, San Diego, CA, USA,
input multi output (MIMO) system characterized by its high Oct 29 - Nov 2, 2007.
nonlinearity and the highly coupled dynamics. The inputs to [8] Takahashi, Y., S. Ogawa, and S. Machida. Front wheel raising and
the system are the main motors driving torques; T L and Tr , inverse pendulum control of power assist wheel chair robot. in The
torque driving the motor activating link 2; Tm , the linear 25th Annual Conference of the IEEE Industrial Electronics Society.
1999.
actuator force; Fa and an external disturbance force; Fd . The [9] Eltohamy, K.G. and C. Yuan Kuo, Nonlinear Generalized Equations
system posses five outputs; the angular positions of the left of Motions for Multi-Link Inverted Pendulum Systems. International
Journal of Systems Science, 1999. 30(5): p. 505 - 513.
and right wheels; δ L and δ R respectively, the angular
[10] Yamakita, M., et al. Robust swing up control of double pendulum. in
positions of the IB segments; θ1 and θ 2 and the displacement American Control Conference. 1995.
of the payload; Q. [11] http://news.cnet.com/gm-segway-partner-on-two-wheel-city-vehicle.

Вам также может понравиться