2000 Santibañez - Fuzzy PD+ Control for Robot Manipulators.pdf
2000 Santibañez - Fuzzy PD+ Control for Robot Manipulators.pdf
2000 Santibañez - Fuzzy PD+ Control for Robot Manipulators.pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Proceedings of the <strong>2000</strong> IEEE<br />
International Conference on <strong>Robot</strong>ics & Automation<br />
San Francisco, CA April <strong>2000</strong><br />
<strong>Fuzzy</strong> <strong>PD+</strong> <strong>Control</strong> <strong>for</strong> <strong>Robot</strong> <strong>Manipulators</strong> *<br />
Victor Santibaiiez<br />
t Instituto Tecnol6gico de la Laguna<br />
Apdo. Postal 49, Adm. 1<br />
Torrebn, Coahuila, 27001 MEXICO<br />
e-mail: vsantiba@itZaguna. edu. mx<br />
Rafael Kelly and Miguel A. Llamat<br />
Divisi6n de Fisica Aplicada<br />
CICESE<br />
Ensenada , B.C., 22800 MEXICO<br />
e-mail: rkeZZy@cicese.mx<br />
Abstract<br />
This paper deals with applications of fuzzy logic systems<br />
to motion control of robot manipulators. In the<br />
proposed application, the fuzzy logic system plays the<br />
role of a tuner of the robot controller gains. This idea<br />
is evoked <strong>for</strong> the gains of the so-called <strong>PD+</strong> control<br />
scheme and we demonstrate, by taking into account the<br />
full non-linear and multivariable nature of the robot<br />
dynamics, that the overall closed loop system is globally<br />
asymptotically stable. Experimental results on a<br />
two degrees of freedom direct-drive arm show the usefulness<br />
of the proposed control approach.<br />
1 Introduction<br />
In recent years fuzzy logic has been widely used as a<br />
successful practical approach in robotics <strong>for</strong> designing<br />
and implementing control systems [3, 15, 13, 7, 6, 41.<br />
In this paper we use the potential of fuzzy self-tuning<br />
schemes to motion control of robot manipulators in<br />
order to design a methodology <strong>for</strong> on-line parameter<br />
selection of a robot motion controller. Particular attention<br />
is paid to provide a rigorous stability analysis<br />
including the robot nonlinear dynamics.<br />
A basic problem in controlling robots is the so-called<br />
motion control where a manipulator is requested to<br />
track a desired position trajectory. A number of<br />
such robot motion controllers having rigorous stability<br />
proofs have been reported in the literature<br />
and robotics textbooks [2, 12, 111. Among these<br />
motion controllers, the <strong>PD+</strong> control introduced by<br />
Koditschek [5] is simple and attractive. The structure<br />
of <strong>PD+</strong> control consists of a linear PD feedback plus a<br />
specific compensation of the robot dynamics. F’urthermore,<br />
this control strategy has the nice feature that it<br />
reduces to the PD control with gravity compensation<br />
in the particular case of set-point control.<br />
The first complete stability analysis of the <strong>PD+</strong> control<br />
strategy was provided by Paden and Panja [8] who<br />
coined the name “<strong>PD+</strong> control”. The stability study<br />
was possible thanks to the use of the Matrosov’s theorem.<br />
Some time later, Whitcomb et a1 [14] presented<br />
an alternative stability analysis by introducing a strict<br />
Lyapunov function in an adaptive context. Both analysis<br />
assume that the controller parameters, that is,<br />
the proportional and derivative gain matrices are constants.<br />
The main contribution of this paper is the extension<br />
of the <strong>PD+</strong> control to the case where the gains are allowed<br />
to vary according to a fuzzy logic system which<br />
depends on the robot state. This is an important<br />
ingredient to deal with practical specifications such<br />
as keeping asymptotically the tracking error within<br />
prescribed bounds without saturating the actuators.<br />
A stability analysis incorporating the nonlinear robot<br />
dynamics guarantees global asymptotic stability. The<br />
feasibility of the proposed control approach is illustrated<br />
through experiments on a robotic system composed<br />
by a two degrees-of-freedom direct drive vertical<br />
arm.<br />
Throughout this paper, we use the notation X,{A}<br />
and XM{A} to indicate the smallest and largest eigen-<br />
values, respectively, of a symmetric positive definite<br />
bounded matrix A(x), <strong>for</strong> any x E Etn. The norm of<br />
vector x is defined as IIxlI = &%.<br />
*Work partially supported by CONACyT and COSNET.<br />
0-7803-5886-4/00/$10.00~ <strong>2000</strong> IEEE 2112
2 <strong>Robot</strong> dynamics and<br />
control <strong>for</strong>mulation<br />
motion<br />
The dynamics of a serial n-link rigid robot can be<br />
written as [12]:<br />
M(qk + C(q, 414 + S(Q) = (1)<br />
where q is the n x 1 vector of joint displacements, q<br />
is the n x 1 vector of joint velocities, r is the n x 1<br />
vector of actuators applied torques, M(q) is the n x n<br />
symmetric positive definite manipulator inertia matrix,<br />
C(q,q)q is the n x l vector of centripetal and<br />
Coriolis torques and g(q) is the n x 1 vector of gravitational<br />
torques obtained as the gradient of the potential<br />
energy U(q) due to gravity. We assume the robot<br />
joints are joined together with revolute joints.<br />
Assume that joint position q and joint velocity q are<br />
available <strong>for</strong> measurement. Let the desired joint position<br />
qd be a twice differentiable vector function. We<br />
define a motion controller as a controller to determine<br />
the actuator torques r in such a way that the following<br />
control aim be achieved<br />
The control system is said to be globally asymptotically<br />
stable if the control aim is guaranteedl irrespective<br />
of the robot initial configuration q(0) and q(0).<br />
3 fizzy <strong>PD+</strong> <strong>Control</strong><br />
The structure of the <strong>PD+</strong> control strategy introduced<br />
by Koditschek [5] can be written as<br />
= Kpq + K ~ + 6 M(q)qd + c(q, 4)qd + g(q) (2)<br />
where qd,qd and qd are the n x 1 vectors of desired<br />
position, desired velocity and desired acceleration respectively,<br />
q = q d - q is the n x 1 vector of position<br />
errors, q = qd - q is the n x 1 vector of velocity errors,<br />
and Kp and K, are the n x n proportional and<br />
derivative gain matrices respectively.<br />
In this paper we generalize the <strong>PD+</strong> control by keeping<br />
intact its structure but permitting the gains be<br />
state dependent. Specifically, we propose the control<br />
law<br />
. .<br />
r=Kp(q)q+K,(q,q)q+M(g)iid+C(q,il)qdfg(4)<br />
(3)<br />
lStrictly speaking, in addition to global attraction also Lyapunov<br />
stability of the control system must be established.<br />
where Kp(q) and K,(q, G) are n x n diagonal positive<br />
definite matrices whose diagonal entries are denoted<br />
by kpi (&) and k,i (&, Qi) respectively.<br />
Freedom to select the Proportional and Derivative<br />
gain matrices in a nonlinear manner may be of worth<br />
in real applications where manipulators are under effects<br />
of disturbances and constraints. Two important<br />
real constraints on robot manipulators are the friction<br />
in the manipulators joints and the technological<br />
limitation of torque (or <strong>for</strong>ce) capability in robot actuators.<br />
Friction produces bias in positioning while<br />
torque capability reduces the class of desired position<br />
trajectories. The entries Icpi(@) and k,,i(&, &) of matrices<br />
Kp(G) and K,,(q,q) may be tuned on-line to<br />
get small gains <strong>for</strong> big tracking error and thus avoid<br />
torque saturation; and high gains <strong>for</strong> small tracking<br />
errors to obtain good accuracy in presence of friction.<br />
This is the rational behind the role of the fuzzy logic<br />
system in our approach.<br />
<strong>Fuzzy</strong> logic is suitable as a mechanism to determine<br />
the nonlinear Proportional and Derivative gains of the<br />
<strong>PD+</strong> control law according to previous practical specifications.<br />
In order to tune the proportional gains<br />
kpi(&) and the derivative gains Ic,,i(&, &) according to<br />
the input liil, in this paper we define one conceptual<br />
<strong>Fuzzy</strong> Logic Tuner (FLT) . In summary, 2n elementary<br />
FLT will be involved in computation of n proportional<br />
gains and n derivative gains.<br />
3.1 Basic fuzzy logic tuner<br />
Let the conceptual FLT have one input 1x1 and the<br />
corresponding output y. The FLT can be seen as a<br />
H: Et+ --+ IR<br />
static mapping H defined by<br />
I4 Y.<br />
The universes of discourse of 1x1, and g are partitioned<br />
into 3 fuzzy sets: B (Big), M (Medium), and S (Small)<br />
with each attribute being described by a membership<br />
function. We shall employ trapezoidal membership<br />
functions <strong>for</strong> input variables and singleton <strong>for</strong> output<br />
variables. In order to simplify notation, let us use<br />
the following convention. With reference to figure 1,<br />
the corresponding Small, Medium and Big membership<br />
functions <strong>for</strong> the input variable x are denoted<br />
respectively by: Ps(lzl ;Pl,PZ), PM(lzl ;Pl,P2,P3,P4),<br />
and PB(l”l ;P3,P4).<br />
For convenience we define the following vector<br />
1<br />
PS(14 ;PlrP2)<br />
PM(b? ;Pi,Pz,P3,P4) where P =<br />
PB(14 ;Ps,P4)<br />
[Pi, Pz, P3, P41.<br />
21 13
Since we attempt real-time implementation of the<br />
fuzzy self-tuning algorithm, this should have as few<br />
rules as possible in order to reduce the computational<br />
ef<strong>for</strong>t. The selected rules into the Mamdani’s rule base<br />
are the following<br />
IF PS(lXl ;Pl,P2) THEN Pfkk3)<br />
IF PM(lzl ;Pl,P2,P3,p4) THEN vi‘(.;k2)<br />
IF PB(bl ;P3,P4) THEN P:(+w<br />
Evaluation of the rules under the ‘scale’ criterion leads<br />
to a real-valued vector function h(l.1 , .) : IR+ x IR -i<br />
IR3 given by<br />
Figure 1: Input membership functions<br />
P(l4 ;PI<br />
-1 I [<br />
4 cw )<br />
0 fi. 22<br />
7j 1<br />
0<br />
*.<br />
22<br />
0 ! 22<br />
kJ<br />
Figure 2: Output membership functions<br />
With reference to the output variable y (see Figure<br />
2), the singleton membership functions corresponding<br />
to Small, Medium and Big are denoted by:<br />
p: (.; ki), py( *; k2) , and ,U: (.; k3), respectively.<br />
It is also convenient <strong>for</strong> the to define where<br />
the following vector: py(.) =<br />
2#<br />
21 14<br />
Owing to singleton membership functions, <strong>for</strong> a given<br />
s E IR we have<br />
h)~~(bl<br />
1<br />
[ 1<br />
P(I4 ;P3,P4P(S- kl)<br />
h(l.1 ,S> =<br />
;Pi,P2)<br />
Pf(S; k2)PM(bl ;Pi7P2,P3,P4)<br />
P;b; k1)PB(14 ;P3,P4)<br />
PS(14 ;Pl,mMS- k3)<br />
= PuM(lzl ;Pl,B,P3,P4)6(s- k2) (4)<br />
where 6(.) denotes the ‘Dirac function’ [l]. The following<br />
feature of Dirac functions will be evoked later.<br />
For a real valued function + : IR -+ IR and any SO E IR,<br />
the Dirac function has the following property<br />
+(s)6(s - s ow = +(so). (5)<br />
The defuzzification strategy chosen in this paper is the<br />
center of area method, also called “centroid method”.<br />
There<strong>for</strong>e, the output y can be computed as y =<br />
E:=, J-: hi(l4Pb ds<br />
. Invoking this <strong>for</strong>mula and (4)-<br />
Eh, J-; hi(l4,s)ds<br />
(5), the defuzzification procedure reduces to<br />
Y=<br />
kTP(14 ;P)<br />
IlP(14 ;p)II1<br />
(6)<br />
= ICz k31T, 11.111 <strong>for</strong> the norm<br />
and (.)T denotes transpose. There<strong>for</strong>e, <strong>for</strong> a given input<br />
1x1 the output y can be computed straight<strong>for</strong>ward<br />
from (6).
This FLT has the feature that under weak conditions<br />
its output y is bounded away from a strictly positive<br />
constant. This is stated in the following<br />
Lemma 1. Consider the described FLT. Assume that<br />
IIp( 1x1 ; p) )I > 0 <strong>for</strong> all 2 E IR, and k3 > > kl > 0.<br />
Then<br />
y(I2:l) 2 kl > 0<br />
v 2 E R.<br />
vvv<br />
Proof. Since by definition all entries of ~(1x1 ;p) are<br />
nonnegative and by assumption k3 > k:! > kl > 0,<br />
then [kl k2 k3lP(14 ;P) 2 kl IlP(l4 ;P)lll.<br />
Incorporating this expression in (6) we get the desired<br />
conclusion.<br />
0<br />
Assumption Ilp(lzl ;p)lll > 0 means that the intersection<br />
of the input membership functions is nonempty<br />
<strong>for</strong> all input 1x1. This is easy to check by testing the<br />
following obvious inequalities<br />
3.2 Tuning the gains<br />
Pl < P2, (7)<br />
P3 P4. (8)<br />
As previously described, the basic FLT is invoked<br />
to determine the proportional and derivative gains.<br />
Thus, a set of 2n FLTs are defined, that is<br />
R+ -+<br />
IGil '+ kpi<br />
and<br />
R<br />
I4il I-+ kvi<br />
HkVi: R+ -+<br />
<strong>for</strong> i = 1, . . . , n. Notice that <strong>for</strong> the.sake of simplicity,<br />
the derivative gains are allowed to depend only on<br />
the position error \&I instead of both (position and<br />
velocity errors). This was done mainly to reduce the<br />
computational cost <strong>for</strong> real-time implementation.<br />
A block diagram of the proposed self-tuning variable<br />
gains <strong>PD+</strong> control scheme is depicted in Figure 3.<br />
4 Stability analysis<br />
The closed-loop system is obtained by combining the<br />
robot dynamic model (1) with control law (3). The<br />
resulting equation is given by<br />
Figure 3: Block diagram<br />
4<br />
4<br />
. .<br />
C(s7C)Q]<br />
(9)<br />
which is a nonautonomous equation and the origin of<br />
the state space is the unique equilibrium.<br />
We assume that each FLT is designed according to<br />
(7)-(8) and the fuzzy set supports <strong>for</strong> the output variables<br />
are strictly positive (i.e. the corresponding kl ,<br />
kg and k3 are strictly positive). These assumptions together<br />
with lemma 1 implies that the FTL guarantee<br />
the existence of E > 0 such that<br />
[ M(4)-' [-Kp(Q)G -Am, -<br />
0 kpi(ii) 2 E <strong>for</strong> all Gi E R, and i = l,...,n<br />
0 k,i(&,&) ~~<strong>for</strong>all~~,~~~R,andi=l,...,n<br />
and there<strong>for</strong>e, matrices Kp(q) and K,(ij,q) are uni<strong>for</strong>mly<br />
positive definite.<br />
The stability analysis of the closed-loop system (9)<br />
is greatly simplified because under above assumptions<br />
the control law (3) belongs to the family of potential<br />
energy shaping motion controllers studied in [lo]. This<br />
family of motion controllers is defined by<br />
. .<br />
= v;yu,(q)+Kv(~,q)q+lM(4)ii,+c(q,q)C, (10)<br />
where matrix K,(q,q) is a n x n diagonal positive<br />
definite matrix <strong>for</strong> all q, 6 E R" and Ua(q) is a differentiable<br />
function called artificial potential energy defined<br />
as: &(q) = I .r~(q) -U(q), with U~(ij) being any<br />
continuously differentiable radially unbounded positive<br />
definite function with an unique minimum point<br />
at q = O E Et".<br />
2115
Straight<strong>for</strong>ward calculations show that the proposed<br />
fuzzy <strong>PD+</strong> control (3) can be derived from (10) considering<br />
the particular function<br />
The global asymptotic stability of potential energy<br />
shaping motion controllers, such as the proposed controller,<br />
can be proven by using the following strict Lyapunov<br />
function [IO]:<br />
where s(q) = A and y is a constant that satisfies<br />
1fllQll<br />
with k1 and kcl suitable positive constants.<br />
Finally, as a consequence of asymptotic stability, the<br />
position tracking aim limt,, q(t) = qd(t) is achieved.<br />
5 Experimental evaluation<br />
Experiments on a direct-drive robot arm, whose dynamics<br />
entries (1) are given in [9], have been carried<br />
out in order to evaluate the per<strong>for</strong>mance of the proposed<br />
fuzzy <strong>PD+</strong> controller. The structure of the desired<br />
position trajectory qd (see equation (13)) has<br />
been chosen with the end of exploiting the arm in its<br />
fastest motion but without invading the actuators saturating<br />
zone, and to demand an initial big torque<br />
[ l:::]<br />
qd = t<br />
r0.78[1 - e-’.’ t3] + 0.17[1 - ew2.O t3] sin (wit) 1<br />
<strong>Fuzzy</strong> partitions of the universes of discourse of the<br />
tracking errors I and I&/ are characterized respectively<br />
by the sets: pql = {0.5,1,10,15} [deg] and<br />
P, = {2,4,10,15} [degl, where = {P~,PZ,...,P~<br />
denotes the supports of the membership function of &<br />
according to our convention (see figure 1).<br />
On the other hand, the universes of discourse of the<br />
proportional gains kpi were determined according to<br />
the following criterion. A high priority was paid to<br />
avoid actuators saturation, thus the smaller values of<br />
the proportional gains were computed <strong>for</strong> the worst<br />
case in our experimental set-up where the larger position<br />
error was defined equal to 27r [rad].<br />
The partition of the universes of discourses <strong>for</strong> the proportional<br />
gains were: kkpl = {0.3,4.0,40.0} [Nm/deg]<br />
and kkpZ = {0.03,0.4,5.0} [Nm/deg], where kkp, =<br />
{kl, tip, kg} denotes the supports of the membership<br />
function of output k,i according to our convention (see<br />
figure 2).<br />
The partition of the universe of discourse <strong>for</strong><br />
the derivative gains kvi were chosen as follows:<br />
kkul = {0.087,0.5,1.57} [Nm- sec/deg] and kkvZ =<br />
{0.0087,0.05,0.157} [Nm- sec/deg].<br />
<strong>Fuzzy</strong> partitions chosen ensure that the fuzzy logic<br />
systems deliver proportional and derivative gains in<br />
agreement with conditions of Lemma 1.<br />
Implementation of the full control system composed<br />
by the <strong>PD+</strong> control law and the fuzzy logic algorithm<br />
was executed in 0.3 msec.<br />
Position tracking errors q <strong>for</strong> the fixed and fuzzy gains<br />
<strong>PD+</strong> controller are shown in Figures 4 and 5 respectively.<br />
It can be seen in base on the experimental results,<br />
that the fixed gains <strong>PD+</strong> controller is not able<br />
to suitably follow the desired position trajectory (13).<br />
This, because it is not possible increase the gains without<br />
saturating the actuators to reduce the position<br />
tracking errors. This type of trajectories are too severe<br />
to be followed by the classical tracking control<br />
schemes of robot manipulators. The main source of<br />
severity in the desired trajectory is the addition of<br />
a step reference to a smooth tracking reference. In<br />
contrast, the fuzzy self-tuning approach has shown to<br />
have the ability to face up to the tracking of such type<br />
of trajectories without exceeding the torque limits of<br />
the actuators.<br />
[1.04[1- e-1.8 t3] + 2.18[1 - t3] sin (wpt)<br />
(13)<br />
where w1 and wp represent the frequency of desired<br />
trajectory <strong>for</strong> the shoulder and elbow joints respect<br />
ively.<br />
2116
degrees<br />
IOU<br />
0 2 4 6 sec<br />
Figure 4: Position errors of the fixed gains scheme<br />
degrees<br />
t 100<br />
40<br />
0 2 4 6 sec<br />
Figure 5: Position errors of the fuzzy gains scheme<br />
6 Conclusions<br />
A fuzzy logic approach <strong>for</strong> on-line tuning of the Proportional<br />
and Derivative gains of a <strong>PD+</strong> controller <strong>for</strong><br />
robot manipulators has been presented. A stability<br />
analysis incorporating the nonlinear robot dynamics<br />
guarantees global asymptotic stability.<br />
References<br />
J.J. Craig, Zntroduction to <strong>Robot</strong>ics, 2nd ed.<br />
( Addison-Wesley Pub. , 1989).<br />
T. Fukuda and T. Shibata, Hierarchical intelligent<br />
control <strong>for</strong> robotic motion by using <strong>Fuzzy</strong>,<br />
artificial intelligence, and Neural Networks, in:<br />
Proc. Znt. J. Conference on Neural Networks<br />
l(Baltimore, 1992) 269-274.<br />
R. Kelly, R. Haber, R. E. Haber, F. Reyes, Lyapunov<br />
stable control of robot manipulators: A<br />
fuzzy self-tuning procedure, Intelligent Automation<br />
and Soft Computing, To appear (1999).<br />
D. Koditschek, Natural motion <strong>for</strong> robot arms,<br />
in: Proc. of the 1984 ZEEE Conf. on Decision<br />
and <strong>Control</strong> (Las Vegas, 1984) 733-735.<br />
M.A. Llama, V. Santibaiiez, R. Kelly, J. Flores,<br />
Stable fuzzy self-tuning computed-torque control<br />
of robot manipulators, in: Proc. of the ZEEE Znt.<br />
Conf. on Rob. and Automation (Leuven 1998)<br />
2369-2374.<br />
J. M. Meslin, J. Zhou and P. Coiffet, <strong>Fuzzy</strong> dynamic<br />
control of robot manipulators: A scheduling<br />
approach, in: Proc. ZEEE Znt. Conj’. on Syst.<br />
Man and Cybem. (Le Tourquet, 1993) 69-73.<br />
B. Paden and R. Panja,Globally asymptotically<br />
stable <strong>PD+</strong> controller <strong>for</strong> robot manipulators,<br />
Znt. J. <strong>Control</strong> 47(6) (1988) 1697-1712.<br />
F. Reyes, R. Kelly, Experimental evaluation of<br />
identification schemes on a direct-drive robot,<br />
<strong>Robot</strong>ica 15 (1997) 563-571.<br />
V. Santibaiiez, R. Kelly, Strict Lyapunov functions<br />
<strong>for</strong> control of robot manipulators, Automatica<br />
33 (1997) 6755682.<br />
L. Sciavicco and B. Siciliano, Modeling and control<br />
of robot manipulators (McGraw-Hill, 1996).<br />
M. Spong and M. Vidyasagar, <strong>Robot</strong> Dynamics<br />
and <strong>Control</strong> (John Wiley and Sons, NY., 1989).<br />
A. Tzes and K. Kyriakides, Adaptive fuzzycontrol<br />
<strong>for</strong> flexible-link manipulators: A hybrid<br />
frequency-time domain scheme, in: Proc. of the<br />
Second IEEE International Conference on <strong>Fuzzy</strong><br />
Systems (San Francisco, 1993) 122-127.<br />
L.L Whitcomb, A.A. Rizzi and D. Koditschek,<br />
Comparative experiments with a new adaptive<br />
controller <strong>for</strong> robot arms, in: Proc. of IEEE Int.<br />
Coni on Rob. and Aut. (Sacramento, 1991) 2-7.<br />
J. Zhou and P. Coiffet, <strong>Fuzzy</strong> control of robots,<br />
in: Proc. 1st. Znt. Conf. on <strong>Fuzzy</strong> systems (San<br />
Diego, 1992) 1357-1364.<br />
[l] M. Boas, Mathematical methods in the physical<br />
sciences, Second Edition, (John Wiley, 1983).<br />
21 17