Sunteți pe pagina 1din 6

Copyright (c) 2005 IFAC.

All rights reserved


16th Triennial World Congress, Prague, Czech Republic

ORIENTATION CONTROL VIA A NON—MINIMAL


STATE REPRESENTATION: THE PENDULUM
CASE STUDY 1

Ricardo Campa and Rafael Kelly

Dirección de Telemática, CICESE


Apdo. Postal 2615, Adm. 1,
Carretera Tijuana—Ensenada Km. 107
Ensenada, B.C., 22800, MEXICO
e—mail: rkelly@cicese.mx , Fax: +52 (646) 175-05-54

Abstract: Three degrees of freedom are required to completely describe the


orientation (attitude) of a rigid body. Nevertheless, it is possible to use a non—minimal
set of state variables, plus some holonomic constraints, for representing orientation
(e.g. Euler parameters). This paper deals with orientation control problem using this
latter approach, when the motion is constrained to a plane. The simplest testbed for
such a motion is the pendulum. First, an alternative dynamic model of the pendulum
is presented, which uses a non—minimal state representation. Once the orientation
control objective for the plane is established, two controllers that solve this problem
are introduced, and LaSalle’s invariance principle is used to show the achievement of
the control aim. Copyright ° c 2005 IFAC

Keywords: Orientation control, Non—minimal realization, Invariance principle, Euler


parameters, Pendulum.

1. INTRODUCTION tion have been studied (see e.g., Spring (1986),


Wen and Kreutz-Delgado (1991)). Examples are
The number of degrees of freedom required to the rotation matrices, the angle-axis pair, and the
completely define the pose of a rigid body is six, Euler parameters. All of them use a set of 3 + k
being three for position and three for orientation. parameters, related by k holonomic constraints,
According to this, a minimal set of three inde- in order to keep the required three degrees of
pendent variables should be used for any repre- freedom.
sentation of the orientation. Traditionally, three
Of particular interest are the Euler parameters.
Euler angles are employed. But, in spite of their
They are four parameters with a unit norm con-
popularity, Euler angles su&er from representation
straint, so that they can be considered as unit
singularities.
quaternions that evolve on S3 , the hypersphere of
To avoid this drawback, and also solve the prob- dimension three.
lem of orientation control, in the recent years some
The main concern of this paper is to clarify the ba-
other non-minimal parameterizations of orienta-
sic concepts related to the use of Euler parameters
as a non-minimal parameterization of orientation.
1 Work partially supported by CONACyT, and CYTED. In order to do so, and also show the application of

1136
some controllers that use this approach to a simple 1
˙ =  T , (5)
mechanism, we have constrained the motion of the 2
rigid body to only two dimensions (e.g. a plane). 1
˙ = [I  S()] . (6)
In this case, only three degrees of freedom are 2
required (one for orientation), and the pendulum
shows up as a useful system to model and control. where, for a given x ; IR3 , the skew—symmetric
matrix S(x) is defined by
m u
2. ORIENTATION CONTROL PROBLEM 0 x3 x2
S(x) = t x3 0 x1 { . (7)
The dynamics of a serial—chain n—link robot ma- x2 x1 0
nipulator can be written in joint space as (Spong
and Vidyasagar, 1989):
M (q)q̈ + C(q, q̇)q̇ + g(q) = + (1) 2.1 Orientation error and control objective

where q is the n × 1 vector of joint displacements, The desired orientation trajectory is specified by
q̇ is the n × 1 vector of joint velocities, + is the the desired Euler parameters d (t) and d (t), the
n × 1 vector of applied torque inputs, M (q) is desired angular velocity  d (t) and the desired
the n × n symmetric positive definite manipulator angular acceleration ˙ d (t).
inertia matrix, C(q, q̇)q̇ is the n × 1 vector of
e ; IR3 is
The angular velocity error vector 
centripetal and Coriolis torques and g(q) is the
n × 1 vector of gravitational torques. defined by

In the general case, it is common to consider that e = d  


 (8)
the manipulator output x(q) is the pose (position
and orientation) of a frame attached to the end— and, for the orientation error, let us consider
e&ector referred to a fixed base frame. But in this
paper, for the sake of simplicity, let us consider
that only the orientation is of concern, i.e. x e = d + T d (9)
denotes the end—e&ector orientation. e
 = d  d  + S()d . (10)
T T 4
Euler parameters [   ] ; S3 2 IR are
usually defined in terms of an angle  ; IR and It can be shown that the pair (e , e
) forms a unit
£ ¤T
a unit vector u ; S2 , corresponding to the angle- quaternion (i.e. e e T ; S3 ) and it corre-
axis representation of a rotation, due to Euler sponds to the Euler parameters for the mutual
T T
(Sciavicco and Siciliano, 2000): orientation between [ d Td ] and [  T ] .
} ¸ } ¡ ¢ ¸ Such a definition of the orientation error was first
 cos 2
x= = ¡ ¢ (2) used by Yuan (1988), and then by other authors
 sin 2 u (Lin, 1995; Caccavale et al., 1999; Sciavicco and
Siciliano, 2000).
where all, , u, , and  can be obtained as a
function of q. The angular velocity of the end— The orientation control objective is to achieve
e&ector, denoted by  ; IR3 , is obtained via the that the orientation of the manipulator’s end—
di&erential kinematics by: e&ector follows the desired orientation. For this,
we can use any representation of the orientation.
 = J(q)q̇ (3) In the case of using Euler parameters the control
objective is
where J(q) ; IRn×n is the manipulator geometric } ¸ } ¸
Jacobian. As pointed out by Campa et al. (2001), (t)  (t)
lim = d , (11)
, , and  can also be obtained directly from the t (t) d (t)
corresponding rotation matrix, R ; SO(3).
Observe that the Euler parameters  and  satisfy or, what is the same
the next holonomic constraint } ¸ } ¸
 (t)|
|e 1
2 lim = . (12)
 2 + kk = 1. (4) t e
(t) 0

T T
Also, it can be shown that [   ] and [   ] Yuan (1988) showed that this control objective is
represent the same orientation. satisfied if and only if limt e
(t) = 0.
The time derivative of the Euler parameters is es- We digress momentarily to establish an applica-
tablished by the so—called quaternion propagation tion of the LaSalle’s invariance principle which is
rule (Sciavicco and Siciliano, 2000): fundamental to the purpose of this paper.

1137
Theorem 1. Consider the autonomous system
ẋ = f (x) (13)

where f : D IRn is a Lipschitz map from a


domain D 2 IRn into IRn . Let V : D IR be a
continuous di&erentiable function such that
V (x) as kxk , (14)

and Fig. 1. Simple pendulum


mass of the pendulum, concentrated in the center
V̇ (x)  0 for all x ; D. (15)
of mass; l, the distance between the axis of rota-
tion and the center of mass; + , the external torque
Let be applied to the pendulum axis; g, the acceleration
n o
= x ; D : V̇ (x) = 0 (16) due to gravity. The di&erential equation that rules
the motion of the pendulum is:
} ¸ } ¸ } ¸
and M be the largest invariant set in . Then d q q̇ q
= 1 , ; IR2 (18)
dt q̇ ml2 (+  mgl sin(q)) q̇
lim dist (x(t), M ) = 0  x(0) ; D. (17)
t
where q is the angle of the pendulum respect to
Proof. The proof relies on application of Theorem the vertical and q̇ is the corresponding angular
4.4 from Khalil (2001). To this end, define the velocity.
closed set Dc 2 D as
Dc = {x ; D : V (x)  c} 3.1 Non-minimal realization

for c > 0. In virtue of the radially unbounded- System (18) uses the minimum number of vari-
ness assumption on function V (x) in (14), the ables (states) required to describe completely the
boundedness of set Dc is guaranteed for all values motion of the pendulum. However, it is also pos-
of c. This fact and (15) imply that Dc is also a sible to use a non-minimal realization.
positively invariant set with respect to (13) for
Let us consider the next definition of variables:
all values of c. Both features of Dc –being a ³q´ ³q ´
compact and positively invariant set– are needed  = cos ;  = sin (19)
for application of Theorem 4.4 in Khalil (2001). 2 2

On the other hand, define the set c 2 as so that the holonomic constraint
n o
c = x ; Dc : V̇ (x) = 0 .  2 + 2 = 1 (20)

Hence, from (15) results is always satisfied. So, we have that [   ]T ; S,


V̇ (x)  0 for all x ; Dc i.e. it evolves on the unit circle.
Figure 2 shows how  and  can be interpreted
which is valid for all values of c. Then, invoking physically in the pendulum. Notice that dividing
Theorem 4.4 in Khalil (2001) we have by 2 the angle q causes the period of the trigono-
lim dist (x(t), Mc ) = 0  x(0) ; Dc metric functions to double. If, for a given angle q
T
t we have a pair [   ] , then for q + 2$ (which
topologically corresponds to the same angle) we
where Mc is the largest invariant set in c . Since T
have [   ] .
c can be arbitrarily large, then we have the con-
clusion (17). It is clear that parameters  and  are related
to the Euler parameters described in Section 2.
In fact, they are a particular case, when the
3. A CASE STUDY: THE PENDULUM motion is restricted to the plane, and only one
degree of freedom is required for orientation. To
The pendulum is a simple and intuitive nonlinear see this, consider the following for the case of the
physical system. Figure 1 shows a diagram of a pendulum.
pendulum with its distinctive parameters.
Suppose that the plane of the motion is the X-Y
For the physical description of the pendulum, let plane in the 3D Cartesian space. Then, the only
us consider the following parameters: m, the total possible rotation must be accomplished along the

1138
4. TWO ORIENTATION CONTROLLERS

This section introduces two orientation controllers


for the pendulum, which make use of a non—
minimal representation for the orientation. In the
case of motion in the plane, the orientation error
reduces to (see (9)-(10)):

e = d + d (23)


e = d  d . (24)
T
where [ d d ] ; S corresponds to the desired
orientation, and can be obtained from a desired
angle qd through a map similar to (19). Also,
notice that [ e e ]T ; S is obtained applying the
same map to the angle qe = qd  q. Moreover, the
angular velocity error is defined as  e = d  ,
where d is the desired angular velocity.
By using (20), and the fact that d2 + 2d = 1, it
can be shown that [ e e ], as defined in (23)-(24),
also satisfies the unit norm constraint, i.e.
Fig. 2. Physical interpretation of  and 
T
e2 + e2 = 1 (25)
axis u = [ 0 0 1 ] . The only variable describing
orientation is the angle q which corresponds to the The orientation control objective in the plane is
 variable of the angle-axis representation. Then, ensured if
according to (2) the Euler parameters for the pen-
¡ ¢ ¡ ¢
dulum are  = cos 2q and  = [ 0 0 sin q2 ]T . lim e(t) = 0. (26)
t
T
Also, notice that  = [ 0 0  ] , where  = ˙ =
q̇. For the analysis below, it is convenient to define
the domain D 2 IR3 as:
So, the four—parameter description of orientation Tm u [
given by the Euler parameters reduces to only z e 
two non—zero parameters in the case of two— D = S × IR = t e { ; IR3 : e2 + e2  1 = 0 . (27)
Z `
dimensional motion. These two parameters cor- e

respond precisely to the new variables defined
in (19) and their physical significance has been
4.1 Resolved acceleration control
explained above.
To obtain the time derivatives of  and  for the First proposed by Luh et al. (1980) for solving the
pendulum, we can simply derivate from (19) or general problem of task space control. In the case
substitute the corresponding terms in the quater- of the pendulum, this controller reduces to:
nion propagation rule (5)—(6). We obtain:
e + kp e] + 2mgl
+ = M [˙d + kv  (28)
1 1
˙ =  , ˙ = .
2 2 where kp and kv are strictly positive control gains.
On the other hand, we can use some trigonometric By substituting the control law (28) into pendu-
identities to get the following useful relations: lum dynamics (22) we get the closed—loop equa-
tion:
cos(q) =  2  2 ; sin(q) = 2 (21) ė + kv 
 e + kp e = 0
which can be expressed in terms of the state vector
Taking , , and , as the new state variables, the [ e e 
T
e ] as:
pendulum dynamics (18) is expressed as: m u m u m u
m u m u e  12 e
e e
  12  d t { t 1 { , t e { ; D. (29)
d t { t e = 2 e
 e

 = 1 {, dt
2 
(22) e
 kp e  kv 
e e

dt 1
 M [+  2mgl]
m u This is an autonomous system, with equilibria in
 the set (see Figure 3):
where M = ml2 with t  { ; S × IR 2 IR3 . T
 S = {[ e e   | = 1, e = 0, 
e ] ; D : |e e = 0}.(30)

1139
4.2 Slotine-Li type control

This is an original controller, proposed to solve the


problem of orientation control for the pendulum.
It is motivated by the non—adaptive version of the
controller introduced by Slotine and Li (1988).
The proposed control law is given by:
} ¸
1
+ = M ˙d + e e + kp e + kv 
e + 2mgl (32)
2

where kp y kv are strictly positive control gains,


Fig. 3. Domain of definition of the closed—loop and
system = kv1 kp . (33)
Notice that S has only two elements, that is, the
equilibria are at By substituting (32) into (22), we obtain the
m u m u m u m u closed—loop equation
e 1 e 1 } ¸
t e { = t 0 { and t e { = t 0 { . 1
M  ė + e
e + kp e + kv 
e=0
e
 0 e
 0 2
which can be also expressed in terms of the
Notwithstanding, according to the definition of e conventional states:
they correspond to the cases where qe = 0 and m u m u m u
e  12 e
e e
qe = 2$, respectively, which represent the same d t { t 1 { , t e { ; D (34)
e = 2 e
 e

orientation. dt 1
e
 M [kp e  kv  e ]  12 ee
 e

In order to analyze the system behavior, we shall
utilize Theorem 1. To this end, consider the fol- where we can see that it is an autonomous sys-
lowing function, which has been inspired from Lin tem with equilibria in the set S defined in (30),
(1995): that is, the same equilibria than for the resolved
acceleration control system.
1 2
 , e, 
V (e   1]2 + e2 +
e ) = [e e .
 (31) For the closed—loop analysis, we propose the fol-
2kp
lowing function inspired by the one introduced by
It is easy to verify that above function is radially Spong et al (1990):
unbounded in the sense (14). Obtaining the time M
derivative of (31), along the trajectories defined  , e, 
V (e e) = ]2 + 2e
 + e
[e 2 + 2[e
  1]2 (35)
2kp
by (29) we get:
m u
e which is radially unbounded in the sense of (14).
kv 2
 , e, 
V̇ (e e) =   e  0  t e { ; D. The time derivative of (35) along the trajectories
kp of system (34) yields:
e
 , e, 
V̇ (e 2  1 
e ) =  e e2.
On the other hand, the set defined as (16)
results in where we have used the definition of (33), to
simplify the terms. Notice that it satisfies
T
e ] ; D : e2 + e2  1 = 0, 
= {[ e e  e = 0}. m u
e
 , e, 
V̇ (e e)  0  t e { ; D.
It is easy to see that the largest invariant set
e

in is the equilibria set S. Therefore, invoking
Theorem 1 it can be concluded that the closed— Observe that the set defined as (16) reduces to
loop system trajectories tend asymptotically to
T
the equilibria, i.e. = {[ e e 
e ] ; D : |e
 | = 1, e = 0, 
e = 0}.
Cm u I m u
e(t) e(0) This is trivially the invariant set because it cor-
lim dist Ht e(t) {  S O = 0  t e(0) { ; D. responds to the equilibria set S. Therefore, in
t
e (t)
 e (0)
 virtue of the Theorem 1, the closed—loop system
trajectories tend asymptotically to the equilibria,
This ensures that the control objective (26) is i.e.
achieved globally in the sense that any desired Cm u I m u
T e(t) e(0)
time—varying orientation [ d (t) d (t) ] ; S, is
lim dist Ht e(t) {  S O = 0  t e(0) { ; D,
asymptotically tracked from any initial orienta- t
e (t)
 e (0)

tion.

1140
hence, the control objective (26) is achieved glob- where the four Euler parameters reduce to only
ally in the sense that any desired time—varying two.
T
orientation [ d (t) d (t) ] ; S, is tracked start-
In order to show the feasibility of this non—
ing from any initial orientation.
minimal state representation of the pendulum,
we have studied two controllers that solve the
4.3 Discussion orientation control problem in a plane. In both
cases, we can conclude the fulfillment of the orien-
Simulations of the closed—loop systems (29) and tation tracking objective, by using an appropriate
(34) reveal that they have similar qualitative version of the LaSalle’s invariance principle.
behavior. One equilibrium is asymptotically stable
and the other, which is unstable, possesses a stable
manifold. The flow of these systems is illustrated 6. REFERENCES
in Figure 4. As expected, the flow lines tend to
the equilibria, so indicating the matching of the Caccavale F., B. Siciliano and L. Villani (1999).
desired orientation (and desired angular velocity The role of Euler parameters in robot control.
as well). Asian Journal of Control, Vol. 1, No. 1, pp.
25-34.
Campa R., R. Kelly and E. Garcia (2001). On
stability of the resolved acceleration control.
Proc. IEEE International Conference on Ro-
botics and Automation, Vol. 4, pp. 3523-3528,
Seoul, Korea.
Khalil H.K. (2001). Nonlinear systems, Prentice
Hall, Second Edition.
Lin S. K. (1995). Robot control in Cartesian
space. In: Progress in Robotics and Intelligent
Systems (G.W. Zobrist and C.Y. Ho, Eds.).
Vol. 3, pp. 85—124. Ablex Publishing, New
Jersey.
Luh J.Y.S., M.W. Walker and R.P.C. Paul (1980).
Resolved-acceleration Control of Mechanical
Manipulators. IEEE Transactions on Auto-
matic Control, Vol. 25, pp. 486-474.
Sciavicco L. and B. Siciliano (2000). Modeling
and Control of Robot Manipulators, Springer-
Verlag, London.
Slotine J. J. and W. Li (1988). Adaptive manip-
ulator control: A case study, IEEE Trans. on
Automatic Control, Vol. AC—33, No. 3, pp.
49—59.
Spong M.W. and M. Vidyasagar (1989). Robot
Dynamics and Control, John Wiley and Sons,
New York.
Spong M.W., R. Ortega and R. Kelly (1990).
Comments on: Adaptive manipulator control:
A case study, IEEE Trans. on Automatic
Fig. 4. Flow of the closed—loop systems as viewed Control, Vol. 35, No. 6, pp. 761—762.
on the plane Spring K.W. (1986). Euler parameters and the
use of quaternion algebra in the manipulation
of finite rotations: A review. Mechanism and
5. CONCLUSION Machine Theory, Vol. 21, No. 5, pp. 365-373.
Wen J.T.Y and K. Kreutz-Delgado (1991). The
Although only three parameters are required to attitude control problem. IEEE Transactions
completely describe the orientation of a rigid body on Automatic Control, Vol. 36, No. 10, pp.
in space, there exist several representation for 1148—1162.
the orientation that use a non-minimal set of Yuan J.S.C. (1988) Closed-loop manipulator con-
parameters. Among these representations, Euler trol using quaternion feedback. IEEE Journal
parameters are commonly used because of their of Robotics and Automation, Vol. 4, No. 4, pp.
properties as unit quaternions. We have employed 434—440.
this approach to describe the pendulum dynamics,

1141

S-ar putea să vă placă și