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

pmeedings of the 4151 IEEE

Conference on Decision and Control


Las Vegas, Nevada USA,December 2002 TuM04-4
A Normal Form for Energy Shaping:
Application to the Furuta Pendulum
Sujit Nair and Nmmi Ehrich Leonard
Department of Mechanical and Aerospace Engineering
Princeton University
Princeton, NJ 08544 USA
nairoprinceton.edu, nmmiOprinceton.edu

Abstract with the limited number of actuation directions. Bloch,


Leonard and Marsden constructed, for certain classes of
In this paper we derive a nonlinear control law for systems, a structured family of controlled Lagrangians
stabilization of the Furuta pendulum system with the for which the matching conditions reduce to simple tests
pendulum in the upright position and the rotating rigid and the control design becomes algorithmic.
link at rest at the origin. The control law is derived One such class of systems was described in 14, 21. In
by first applying feedback that makes the Furuta pen- these works, a control law was presented and a s y m p
dulum look like a planar pendulum on a cart plus a totic stability proved for any mechanical system satis-
gyroscopic force. The planar pendulum on a cart is an fying the simplified matching conditions. In [Z], both
example of a class of mechanical systenls which can be the kinetic energy and the potential energy were mod-
stabilized in full state space using the method of con- ified in the closed-loop system so that stabilization in
trolled Lagrangians. We consider this class of systems the full state space could be achieved. The examples
as our normal form and for the case of the Furuta pen- described in that paper, representative of the class of
dulum, we add t o the first transforming feedback law, mechanical systems, were the classic inverted planar
the energy-shaping control law for the planar pendulum pendulum on a cart as well as the inverted spherical
system. The resulting system looks like a mechanical pendulum on a 2-D cart.
system plus feedback-controlled dissipation and an ex-
In this paper we consider the Furuta pendulum
ternal force that is quadratic in velocity. Using energy
as a model system which does not satisfy the simpli-
as the Lyapunov function we prove local exponential fied matching conditions and for which satisfaction of
stability and demonstrate a large region of attraction.
a somewhat more generalized set of matching condi-
tions (based also on a structured choice of controlled
1 Introduction Lagrangian) fails to give a stabilizing control law in the
full state space. The Fnruta pendulum is a pendulum
The method of controlled Lagrangians and the with fulcrum attached to a rigid link that rotates in the
equivalent IDA-PBC method use energy shaping for horizontal plane. The pendulum rotates in the plane
stabilization of underactuated mechanical systems (see perpendicular to the rigid link, so the system looks like
[2, 6, 10, 91 and references therein). The method of an inverted pendulum on a cart that is constrained to
controlled Lagrangians provides a control law for un- move in a circle rather than along a line.
deractuated mechanical systems such that the closed- The %wing-up problem for the Furuta pendulum
loop dynamics derive from a Lagrangian. The objective was studied using energy methods by Astrom and Fu-
of the method is to choose the control law to shape the ruta [l].Their controller uses a bang-bang pseud-state
controlled energy for stability. It is also possible to use feedback control method. Olfati-Saber [8] proposed a
the control t o modify structure, e.g., to introduce or semi-global stabilizing scheme for the Furuta pendulum
change gyroscopic terms in the Lagrangian setting (see in the inverted position using k e d point controllers.
161). Taking into account passivity of the system, Fantoni
In general, computing the control law and controlled and Lozano 171 proposed an energy-based approach to
energy requires solving a set of PDEs. These PDEs, swing up the Furuta pendulum to a homoclinic orbit.
referred to as matching conditions, ensure that the By guaranteeing convergence to the homoclinic orbit,
proposed energy and structure shaping is realizable it is guaranteed that the trajectory will ent.er the basin
of attraction of any (local) balancing controller. More
Research partially supported by the Office of Naval Researeh details on the Furuta pendulum can be found in [7] and
under grant N00014-98-1-OM9, by the National Science Foun-
dation under grant CCR-9980058 and by the Air Force Officeof
references therein.
Scientific Research under grant F49620-01-1-0382. In 131, it was demonstrated that the Furuta pendu-

0-7803-7516-5/02/$17.00 82002 IEEE 516


lum satisfies a set of matching conditions for a struc-
tured shaping of kinetic energy. In this case, symmetry
in the kinetic energy was retained, that is, the angle Satisfaction of these matching conditions allows for a
of the rotating link with respect to a reference vertical structured feedback shaping of kinetic and potential en-
plane remains a cyclic variable for the closed-loop sys- ergy. In particular, a control law is given in [2] such that
tem. Stabilization was proved for the reduced system the closed-loop system is a Lagrangian system with the
dynamics meaning that the control law stabilized the (parametrized) controlled Lagrangian given by
pendulum in the inverted position and brought the cart
to rest, but the final position of the cart was left arbi-
trary. Potential shaping, in addition to kinetic shaping,
for the Furuta pendulum within the structured choice of
controlled Lagrangian is possible; however, this choice
does not yield full state-space stabilization.
Chang showed in [5] that a stabilizing control law
could be derived for the Furuta oendulum using the - where p and K are constant parameters and V, satisfies
most general framework for the method of controlled
Lagrangians which allows for external gyroscopic forc-
inn 161.
Here, we consider systems that satisfy the simplified The results in [2]then given condition on p7 K and V ,
matching conditions as systems in normal form. These that ensure stability of the equilibrium in the full state
systems and the associated stabilizing control law are space. For example, in the case that the equilibrium of
described in 52. In 53 we use feedback to transform the interest is a maximum of the original potential energy
Furuta pendulum dynamics into normal form, i.e., into (as in the case of the inverted pendulum examples),
the dynamics of a planar pendulum on a cart plus a g)- n > 0 and p < 0 and the potential V , are chosen such
roscopic force. We then use the stabilization law for the that the energy function for the controlled Lagrangian
planar pendulum and prove stability of the controlled E, has a maximum at the origin of full state space.
Furuta pendulum system in 54. In $5 we present sim- Asymptotic stability is obtained by adding a dissipa-
ulat,ion and experimental results that suggest a large tive term to the control law which drives the controlled
region of attraction. Final remarks are given in 56. system to its maximum energy ( E c )state.
Consider the planar inverted pendulum as shown in
Figure 2.1.
2 Simplified Matching Systems as Normal
Form
In [Z], using the method of controlled Lagrangians, a
control law to asymptotically stabilize a class of systems
satisfying simplified matching conditions was derived. ? I = pendulum length
m =pendulum bob m
a=d2
B=ml
Such systems lack gyroscopic forces and the planar in- i

verted pendulum is one such system. Here, qp denotes


the coordinates for the unactuated directions with in-
dex 01 going from 1 to m. q; denotes the coordinates
for the actuated directions with index a going from 1
to n. The Lagrangian for the given system is given by
w 92
- 92

Figure 2.1: The planar pendulum on a cart


L(qP, 4% Q?,42b)
1 1 The Lagrangian for this system is
= ZS"?QPQf + ga..QPQ; + 5g"642"4: - v(s;,42b)
L = 5aq1
1 . 2 + P c o s ~ ~ Q1 ~ . Q ~ + ~ ~ Q ~ + D c o s ~ ~
where summation over indices is implied, g is the ki-
netic energy metric and V is the potential energy. It is and the equations of motion are
assumed that the actuated directions are symmetry di-
rections for the kinetic energy, that is, we assume gap,
gao, gob are all independent of 9;.
The condition for such a system to satisfy the sim-
plified matching conditions are + [ 0
-osinqlQ: ] [ ].
=
(2.1)

gab = constant It can easily be verified that this system satisfies the
simplified matching conditions since gob = y is a con-
stant and the other two conditions are trivially sat,isfied.

517
Following [2],the control law which asymptotically sta-
bilizes the system at the origin in full state space is
given by

rcPsinq1 (aqf + Dcosql) - _ _


BcD72qz +B Udk

U =
PZ
PZ(k -t 1) cos2 91
a-
Y
(2.2) Figure 3.1: The Furuta pendulum.
with udiss
= cy(q2 + p1 cosqlql), c > 0 a constant and
This system does not satisfy the simplified match-
+
ing conditions since gob = 7' a sin2 ql is not constant.
Using a more general form of kinetic shaping, relative
In $4, we will prove local exponential stability for stability can be obtained i.e., the system can be brought
the Furuta pendulum using a control law that augments to the state ( q 1 , d l r q z , q 2 ) = ( O , O , q f , O ) , where @f need
not be zero [3]. As mentioned in the introduction, com-
(2.2). To do this we will consider gyroscopic forces.
bining both the kinetic shaping and potential shaping
Define
within the structured choice of controlled Lagrangians
does not yield full state space stability. Instead, we
look for a stabilizing solution in full state space by first
recasting the Furuta pendulum system it(i a planar pen-
Then, consider a system with equations of motion given dulum plus a gyroscopic force term.
The equations of motion for the Furuta pendulum
with input U = u1 + U ; are

where S(q,q ) is gyroscopic i.e., a skew-symmetric.ma-


trix. Then, if E, is the energy for the system, E, = [ (2 P'COWl
F c o s q l y'+asin2ql
-rrsinql cosqI$
3 [:] [D
+
sin q1
0 ]
qTS(q,q)q = 0. Since the gyroscopic force does not af-
fect the rate of change of energy, it is still natural, even
in the presence of a gyroscopic force, to use energy E,
+ [ -P'sinq1rj; +2asinq,cosqlqlilz ]= [ u,:u:]
(3.2)
as the Lyapunov function to prove stability.
With this as inspiration, we use a feedback control Choose U I to cancel terms so that the above set of equa-

] [ :;] [
law in $3 to transform the equations of motion for the tions transform t o
Fnruta pendulum into the equations of motion for the
planar pendulum system plus a gyroscopic force. The
[
(2

P'cosq1
P'cosqi
7'
+ ]
Ds?qi
idea then is to use the feedback law for the planar pen-
dulum described above to stabilize the transformed Fu-
ruta pendulum system. As will be seen this is not as
+ [ -8' 0 916:
sin 7 ;[ j + [ us,]
= (3.3)
straightforward as it might seem, since a pure energy- where
shaping control law does not necessarily preserve gy-
roscopic forces. The general matching conditions for F, = a s i n q l cosq1q2, Fa = -asinql cosq1614z.
mechanical control systems with gyroscopic forces are
given in [6]. The LHS of equation (3.3) is the same as the LHS of
the equations of motion for the planar pendulum (2.1),
with 7 replaced by 7' and P replaced by p'. Observe
3 F'uruta P e n d u l u m and l k a n s f o r m a t i o n to that F,q1 + FaQz = 0. Therefore, the RHS is a gym
Normal Form scope force term added to the input term ( 0 , ~ : ) ~We
.
now split U ; into a sum of U* and ud. The idea is t o
The Fnruta pendulum consists of a pendulum on choose u2 so that the controlled system derives from a
a cart where the cart is restricted to move on a circle
Lagrangian LZ where
in the horizontal plane as shown in Figure 3.1. The
Lagangian for this system is given by

1 .
L=-aq:+p'cosq1q1q2
2
+ -21 (7'+asin2q1)q2 and the RHS is a gyroscope force term. This can be
done for the Furuta pendulum using the control law for
+D COS 91 (34 the planar pendulum; however, the parameters p and

518
K must be constrained in such a way that equilibrium with c > 0, we get
cannot be made stable. Since this is unacceptable, we
relax the requirement that the RHS be perfectly gy- Ec = Fe&+ c Y ' ( Q z + P I ~ ~ s ~ I @ ~ ) ~
roscopic and use this control law without constraining +
= asinql COSqlq&+I ~ ' ( 4 2+ P I C0Sqlql)2.
the choices of p and K a t the matching stage. We prove
local exponential stability for the Furuta pendulum in Note that Ec is not positive semi-definite as desired
the next section and show in 55 that the region of at- since there exist points arbitrarily close to the origin
traction appears to be considerable. where Ec < 0. However, when < 0, it is necessary
that 91 and q1 have opposite signs, i.e., the pendulum
must be moving towards the upright position when the
4 Stabilization of t h e F u r u t a Pendulum energy is decaying away from the maximum value. See
Denote the LHS of equation (3.3) by Figure 4.1 for plots of the E, = 0 surface.
(ELpp,, ELpp.)= where p p signifis "planar pendu- We show next that the closed-loop system is locally
lum''. Let (ELppc,, ELppc,)= be the Euler-Lagrange exponentially stable by showing asymptotic stability of
equations for the controlled planar pendulum when the the linearization of (4.4) about the origin. To do so we
force terms on the RHS of equation (3.3) are ignored. use Lyapunov's direct method with Lyapunov function
Since we cannot, in this context, obtain gyroscopic defined by the energy E, associated with the linearized
forces for the controlled Lagrangian and guarantee (Lagrangian) system. Note that the energybased a p
stability, we choose to cancel F. in equation (3.3) using proach is much easier than an eigenvalue check.
111 so that

These equations become

for
BeDy"q2
~ 0 ' s i n q l(aq: +Dcosql) -
212 = 0'2
p"(K+ 1)C0S2q1
a-
y'
- @'Fa cos q1
(4.3)
a - b " ' ( ~ +1)cos2ql
y' Figure 4.1: The surface E, = 0 in ( q l , q i , q z + p l c o s q ~ q ~ )
coordinates.
and B defined as for equation (2.2). When F, = 0 and
udisr= 0, (4.3) is the same as (2.2). The calculation of
u2 is done exactly as in [2]. Proposition 4.1 The system given b y (4.4) is locally
Adding a dissipation term ud to the input a2 mod- ezponentially stabilized b y the choice of ud given b y
ifies equation (4.2) to (4.6).
PmoJ The linearized controlled Lagrangian for the pla-
nar pendulum is

where pl = (K + $) $ > 0. Let E, he the con- -


L, =
1
p& 1 1
+ alzQlq2 + p q , ' - SDq?
* , ,
trolled energy for the system given by equation (4.2). 1
- ~P2(4'2+P191)2
K > 0, p e 0 and e > 0 are chosen such that E, has a
maximum at (0,0, 0,O) as in [2]. Then, for the system
where
(4.4), the expression for Ec is

Ec = F,Q1 +.d(b +plcosqlq*). (4.5)


If we choose
D-p
Ud = Cr'(Q2 +PI cosqlql) (4.6) a12 = pia' (K + I), a22 = PY'. PZ = -< 0.
4"

519
Let the corresponding energy be E=.Then, we compute where IMwlis the determinant of the mass matrix of
the whirling pendulum (3.2), lMpl is the determinant of
+P 2 h )
I

E, = ad(Qz the mass matrix of the corresponding planar pendulum


= oi(Qz+prQ1)2 (3.3), 8 2 is given by (4.3) and ad is given by (4.6).
2 0
Let S = {(q1,Q1,qzrq2) 1 & 2 0) and M =
5 Simulation a n d Experiment.
EC
{ ( ~ 1 , 4 1 , q 2 , q zI ) = 0) C S. The set M is an invari-
ant set. Consider a solution belonging to M. Note that
ud = 42 + P I & = 0 on M . Therefore, 92 plql = d l , + In 54, we proved local exponential stability of the
a constant. We have the following three equations for origin using the controlled energy Ec of the linearized
motion on M: system as a Lyapunov function. The region of at-
traction for the control law given by (4.12) seems to
+ a12B + Dql f p l p z d l = 0 (4.7) he large. Figure 5.1 shows a MATLAB simulation
+ a ~ z q z+ p z d l = 0 (4.8) for an initial condition as large as ( q l , Q ~ , q z , q z =
)
qZ+plql = 0. (4.9) (1,2, 1,Z). The values chosen for the simulation aze
Using (4.9) to eliminate q2 from (4.7) and (4.8) gives m = 0.14kg, M = 0.44kg, 1 = 0.215m, R = l m , n =
25, p = -0.02, c = 0.015 and e = 0.00001. Figure 5.2
a41 = -Dql - p l P z d l (4.10) is a plot of E, as a function of time for the same initial
Oiii = -p2di (4.11) condition. It takes a couple of dips initially and then
tends to zero staying positive always. The same con-
since a = all - al2pl and /3 = a12 - a2zpl. Equating
these two expressions for q1 and using d l = qz p l q l + trol law was implemented on an experimental appara-
tus [ll].The output is shown in Figure 5.3. The initial
gives
a condition was q1 = -0.81 radian and q2 = 0.37 radian.
41 = --q2 , where Initial velocities were zero. As can be seen, the angle q1
1+ apl
is brought to zero hut q2 keeps oscillating about a point
less than zero. This may be because we havent account
for other forces like friction or because of hardware lim-
Thus, itations. Another interesting observation is that since
1 we are transforming the whirling pendulum into a pla-
di = qz + piqi = __
1 + apl
q2 = constant.
nar pendulum problem with some benign forces, the
This implies that qz and therefore q1 is constant. Thus, control system evolves on I2 x S rather than on S x S.
Q1 = Qz = 0. By (4.11),this implies that d l = 0 which By this we mean the pendulum doesnt know that
in turn implies that q1 = 0 by (4.10). It follows that qz = 0 and 42 = 2?r are in fact the same points.
qz = 0.
Therefore, the only dynamical solution in the set
M is the trivial solution and so by the LaSalle Invari-
ance principle the linearized system is asymptotically
(and therefore exponentially) stable. Accordingly, the
nonlinear system is locally exponentially stable. 1
Thus we have proved that the Furuta pendulum
is locally exponentially stabilized with the control law
given by U = 8 1 +U; where a; is the sum of az and ad.
u1 is the control law that cancels terms. We note that
some of these cancelled terms are acceleration terms.
We can derive the control law in terms of the state
variables by substituting for the expressions for accel-
erations since we know the closed-loop Euler-Lagrange
equations. The complete control law is given as follows.

1
U = Zasin(ql)cos(q&jlq2 +-
Pcos(q1)
I
(y+asin2(qt))(F, - Dsin(sl))
Figure 5.1: Simulation of Furuta pendulum for initial con-
- _(-,(F~ - Dsin(q1)) - ~ ( 8 +2 u d t dition ( l , Z , l , Z ) .
IMP1
Psin(n1)~:)) } - Osin(q~)Q? (4.12)

520
of energy function as the Lyapunov function was not
so useful with respect to proving a large region of at-
traction. This suggests combining our technique with
other nonlinear control techniques to construct better
control Lyapunov functions.

References

[l] K.J. Astrom and K. Furuta. Swinging up a pen-


dulum by energy control. Automatica, 36(2):287-295,
February 2000.
[Z] A. M. Bloch, D.E. Chang, N. E. Leonard, and
J. E. Marsden. Controlled Lagrangians and the sta-
bilization of mechanical systems 11: Potential shaping.
IEEE Trow. Aut. Cont., 46(10):1556-1571, 2001.

Figure 5.2: Plot of Ec versus time for the initial condition [3] A. M. Bloch, N. E. Leonard, and J. E. Marsden.
Stabilization of the pendulum on a rotor arm by the
(L2,L2).
method of controlled Lagrangians. I n Proc. Int. ConJ.
Robotics and Automation, pages 50Ck505, IEEE, 1999.
[4] A. M. Bloch, N. E. Leonard, and J. E. Marsden.
Controlled Lagrangians and the stabilization of me-
chanical systems I: The first matching theorem. IEEE
Trow. Aut. Cont., 45(12):2253-2270, 2000.
Bb
m
[5] D. E. Chang. Controlled Lagrangian and Hamil-
tonian System. PhD thesis, Caltech, Pasadena, CA,
2002.
[6] D.E. Chang, A. M. Bloch, N. E. Leonard, J. E.
Marsden, and C . Woolsey: The equivalence of COLI-
trolled Lagrangian and cont.rolled Hamiltonian systems.
ESIAM: Control. Optimisation and Calculus OJ Varia-
tions, 2001. To appear.
n IW IS I. Fantoni and R. Lozano. Non-linear Control for
[7]
Tim (scc) Undemctuated Mechanical Systems. Springer-Verlag,
London, 1st edition, 2001.
Figure 5.3: Experiment output 181 R. Olfati-Saber. Fixed point controllers and sta-
bilization of the cart-pole system and the rotating pen-
dulum. In Proc. IEEE CDC,pages 1174-1181, 1999.
6 Final Remarks [9] R. Ortega, M. W. Spong, F. Gcjmez-Estern, and
G. Blankenstein. Stabilization of underactuated me-
In this paper, a control law for the Furuta pendu- chanical systems via interconnection and damping as-
lum is derived using the fact that the Furuta pendu- signment. IEEE Trans. Aut.Contm1. to appear.
lum can be expressed after a feedback transformation
as a planar pendulum plus a gyroscopic force. The pla- [lo] R. Ortega, A. J. van der Schaft, B. Maschke, and
nar pendulum belongs to a class of systems which can G . Escobar. Stabilization of port-controlled Hamilto-
be asymptotically stabilized in full state space using nian systems: Energy-balancing and passivation. Au-
the method of controlled Lagrangians. It is of interest tomatica. To appear.
to explore the possibility of extending this approach [ll] C. Woolsey. Energy Shaping and Dissipation: Un-
to a class of systems that can be brought into normal derwater Vehicle Stabilization Using Internal Rotors.
form, i.e., which can, after a feedback transformation, PhD thesis, Princeton University, Princeton, NJ, Jan-
be made equivalent to a system that satisfies the sim- uary 2001.
plified matching conditions plus a gyroscopic force (or
possibly other forces).
Another direction of interest concerns the choice of
Lyapunov function to prove stability. As was observed
in this application to the Furuta pendulum, our choice

521

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