Fuzzy Pre-Compensated Fuzzy Self Tuning Fuzzy Pid Controller of 3 Dof
Fuzzy Pre-Compensated Fuzzy Self Tuning Fuzzy Pid Controller of 3 Dof
control is needed to make each joint track a desired such as fuzzy sliding control, fuzzy gain scheduling [24],
trajectory as close as possible. Many control algorithm such and adaptive fuzzy control [18], in order to alleviate
as computer torque method [12], [19], optimal control [1-2], difficulties in constructing the fuzzy rule base.
adaptive control [13], [23], variable structure control (VSC) Analytical calculations show that a two-input FLC
[4], [14], neural networks (NNs) [22] and fuzzy system [3], employing proportional error signal and velocity error signal
[6], [8], [20], have been proposed to deal with this robotic is a nonlinear proportional-integral (PI) or proportional-
control problem. In [12], [19], a computer torque control is derivative (PD) controller [16], [11]. Due to the popularity
developed on the basis of the feedback linearization. of PID controllers in industrial applications, most of the
However, these designs are possible only the dynamics of development of fuzzy controllers revolves around fuzzy PID
the robotic dynamic are well known. controllers in the past decade [21]. PI- and PD-type Fuzzy
Generally, uncertainties may not be known in practical controller have gained prominence for almost two decades
robotic systems such as changing payload, nonlinear friction, now because of their simple structure, ease of
unknown disturbance, and the high frequency part of the implementation and inherent robustness [5], [17].
dynamics. Therefore, it is necessary to consider these effects Another possible implementation of a PID-type FC requires
1
978-1-4244-8030-2/10/$26.00 ©2010 IEEE 599
the development of a popular PD- type Fuzzy controller in • • •
e(t ) = q d − q that will be fed to fuzzy controller while
parallel with a conventional integral (I) controller. Presently
the research interest in this field is focused on the integral error ³ e(t ) dt will be use as conventional integral
development of adaptation policies which can adapt these
action. Figure 1 shows the structure of Fuzzy PD+I
component fuzzy controllers in a suitable and simple
controller.
fashion, and furthermore can achieve reasonably accurate
d q
and satisfactory performance. An excellent example of Kd Fuzzy PD +
u
dt KU Robot
Control +
applying self-organized fuzzy systems to auto tune the gains q+d e Kp
−
of a classical PID controller online and its successful
application in controlling an MIMO robot arm can be found Ki
³ e(t) dt
in [10].
In this paper utility and effectiveness of soft computing Fig. 1 Block diagram of fuzzy PD+I controller
•
approaches for the control of three degree of freedom planar The linguistic descriptions of inputs ( e(t ) , e(t ) ) and
robot arm with structured and unstructured uncertainties is
output u membership functions are NL (negative large),
presented. In this approach, pre-compensation of a hybrid
NM (negative medium), NS (negative small), Z (zero), PS
fuzzy PD+I controller is proposed. The control scheme
(positive small), PM (positive medium) and PL (positive
consists of a fuzzy logic-based pre-compensator followed by
large). The fuzzy membership functions for inputs and
fuzzy PD+I control. Moreover, a fuzzy supervisory
output are shown in Figures 2 and 3. The control surface of
controller is used to supervisor a conventional proportional
the output u is shown in figure 4.
and derivative actions such that the conventional gains are NL
1
NM NS Z PS PM PL
controller design. The remainder of this paper is organized -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Rate of change of error
0.2
dynamic model of three DOF planar robot arm. Three input Fig. 3 Membership functions of output u
had been used, position error e(t ) = q d − q , change of error
2
600
^
modified desired position q d (t ) is simply the sum of the
the inputs and the output are shown in figure 6 and figure 7.
output
The input scaling factors are set as: The input scaling factors associated with the position error
K p = diag{0.9, 0.9, 0.9} and K d = diag {0.7, 0.7, 0.7} . The ~
•
~
output scaling factor KU is set to 5000. The conventional q(t ) and the velocity error q(t ) are set to K e = 0.5
and K de = 0.2 , respectively. The output scaling factor K u is
integral gain K i is set to 1.
set to 2 .
III. FUZZY PRE-COMPENSATED FUZZY PD+I NL
1
NM NS Z PS PM PL
CONTROLLER
0.8
Degree of membership
0.6
•
~ ~
compensated fuzzy PD+I controller. Fig. 6 Membership functions of q (t ) and q(t )
^
Modified qd NL NM NS Z PS PM PL
1
qd +
Ke Fuzzy + 0.8
+ −
Precom Ku
Degree of membership
-
d K de pensato 0.6
dt 0.4
0.2
d Kd q
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
e Fuzzy + u output
dt KU Robot
PD
Control
+ Fig. 7 Membership functions of output γ (t )
+ Kp
−
Ki
³ e(t ) dt 0.5
output
•
~ ~ 1
0
-0.5
-0.5
and γ (t ) as the output. The term γ (t ) represents a Rate of error -1 -1
error
compensation or correction term, so that the compensated or Fig. 8 Fuzzy control surface of output γ (t )
3
601
IV. FUZZY-SELF TUNING FUZZY
PRECOMPENSATED FUZZY PD+I CONTROLLER
To obtain the better controller performance over a wide 1.1
Kp
implemented as shown in Figure 9. 0.9
0.8
^
Modified qd
1
0.5 1
0 0.5
Supervisory
Fuzzy Control
0.8
d Kd q 0.7
e Fuzzy + u
dt KU Robot
Kd
PD
+ 0.6
Control
+ Kp 0.5
−
³
1
Ki e(t ) dt 0.5
0.5
1
0
0
-0.5 -0.5
Rate of error -1 -1
error
•
the inputs ( e(t ) , e(t ) ) is in the range {-1, 1} and that of the 0.8
Degree of membership
0.2
V. SIMULATION RESULTS
0
The proposed controller was tested for the control of a 3
0.7 0.75 0.8 0.85 0.9 0.95 1 1.05 1.1 1.15 1.2
Kp
DOF rigid three–link manipulator shown in figure 15.
Fig. 13 Membership functions of Kp
4
602
1.2
Z PS PM PB PVB Fuzzy PD + I
1
Fuzzy precompensated Fuzzy PD + I
1
Fuzzy self-tuning fuzzy precompensated Fuzzy PD + I
0.8
Degree of membership
0.6 0.6
0.4 0.4
0.2
0.2
0
0
-0.2
0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Kd Time t (sec.)
τ3 θ3
0.5
τ2 0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
θ2 Time t (sec.)
For the case of direct fuzzy controller with fixed input 0.6
scaling factors, K p = diag {0.9, 0.9, 0.9} and K d = diag {0.7, 0.7, 0.7}. 0.4
0.2
Figures 16, 18, and 20 show the set point tracking for joints
0
steady state error and setting time calculated for each of the Fuzzy PD+I
Fuzzy precompensated fuzzy PD+I
Fuzzy self-tuning fuzzy precompensated fuzzy PD+I
1.5
Desired position
Fuzzy PD + I
Fuzzy precompensated Fuzzy PD + I 0.5
Fuzzy self-tuning fuzzy precompensated Fuzzy PD + I
Position of joint 1 (rad.)
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time t (sec.)
0.5
Fig. 20 Position of joint 3
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time t (sec.)
5
603
1.2 [2] A. Green, J.Z. Sasiadek, Fuzzy and optimal control of a two-link
Fuzzy PD+I flexible manipulator, in: Proceedings of the IEEE/ASME
Fuzzy precompensated fuzzy PD+I
1
Fuzzy self-tuning fuzzy precompensated fuzzy PD+I International Conference on Advanced Intelligent Mechatronics ,
pp. 1169–1174, 2001.
Position error of joint 3 (rad.)
0.8
[3] B.K. Yoo, W.C. Ham, Adaptive control of robot manipulator
0.6 using fuzzy compensator, IEEE Trans. Fuzzy Syst. 8 ,186–198,
2000.
0.4
[4] C.Y. Su, T.P. Leung, A sliding mode controller with bound
0.2 estimation for robot manipulators, IEEE Trans. Robotics
Automat. 9, 208–214, 1993.
0
[5] D. Driankov , H. Hellendorn, Reinfrank M, An introduction to
-0.2
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
fuzzy control, New York: Springer-Verlag, 1993.
Time t (sec.)
[6] E.A.M. Cruz, A.S. Morris, Fuzzy-GA-based trajectory planner
Fig. 21 Tracking error of joint 3 for robot manipulators sharing a common workspace, IEEE
Trans. Robot. 22, 613–624, 2006.
Table 1 steady state error and setting time [7] E. H. Mamdani and S. Assilian, An experiment with in linguistic
synthesis with a fuzzy logic controller, Int. J. Man-Machine
Settling time Stud., vol. 7, pp. 1–13, 1975.
Steady state error (rad.)
Algorithm (sec.) [8] F.C. Sun, Z.Q. Sun, G. Feng, An adaptive fuzzy controller based
on sliding mode for robot manipulators, IEEE Trans. Syst. Man
J1 J2 J3 J1 J2 J3 Cybern. 29 ,661–667, 1999.
Convention
al fuzzy 0.002 0.005 0.005 4.4 3.6 4.2
[9] G. K. I. Mann, B. G. Hu, and R. G. Gosine, “Analysis of direct
PD+I action fuzzy PID controller structures,” IEEE Trans. Fuzzy Syst.,
vol. 29, pp. 371–388, June 1999.
Fuzzy
precompens
[10] H. B. Kazemian, The SOF-PID controller for the control of a
ated fuzzy
0.001 0.0025 0.0004 2.2 2.3 2.3 MIMO robot arm. IEEE Trans Fuzzy Syst 10: 523–532, 2002.
PD+I [11] H. Ying, “A nonlinear fuzzy controller with linear control rules
is the sum of a global two-dimensional multilevel relay and a
self-tuning local nonlinear proportional-integral controller,” Automatica,
fuzzy
vol. 29, pp. 499–505, 1993.
precompens 0.009 0.0001 0.0003 1.2 1.2 1.2
ated fuzzy [12] J.J. Craig, Introduction to Robotics, second ed., Addison-Wisley,
PD+I Reading, MA, 1989.
[13] J.E. Slotine, W. Li, Composite adaptive control of robot
manipulator, Automatica 25 (1989) 509–519.
From the simulation results, it is concluded that our [14] J.E. Slotine, W. Li, Applied Nonlinear Control, Prentice-Hall,
Englewood Cliffs (NJ), 1991.
proposed fuzzy pre-compensated fuzzy self-tuning fuzzy [15] J. J. E. Slotine and W. P. Li, Applied Nonlinear Control. Upper
Saddle River, NJ: Prentice-Hall, 1991.
PD+I controller showed superior performance for each of [16] K. J. Astrom and T. Hagglund, PID Controllers: Theory,
the three joints. Hence it can be inferred that our proposed Design, and Tuning. Research Triangle Park, NC: Instrum. Soc.
Amer., 1995.
controller could outperform another existing popular [17] K. M. Passino, S. Yurkovich (1998) Fuzzy control. Menlo Park,
CA: Addison-Wesley-Longman
variation of fuzzy controller with gain tuning provision. [18] L. X. Wang, Adaptive Fuzzy Systems and Control: Design and
Stability Analysis. Upper Saddle River, NJ: Prentice-Hall, 1994.
[19] M.W. Spong, M. Vidyasagar, Robot Dynamics and Control,
VI. CONCLUSIONS Wiley, New York, 1989.
The present paper has described the development of a [20] M.A. Llama, R. Kelly, V. Santibanez, Stable computed-torque
control of robot manipulators via fuzzy self-tuning, IEEE Trans.
fuzzy pre-compensated fuzzy self-tuning fuzzy PD+I Syst. Man Cybern. 30, 143–150, 2000.
controller with input gain tuning in which it has been [21] M. J. Er and Y. L. Sun, Hybrid fuzzy proportional-integral plus
successfully applied for the motion control of robot conventional derivative control of linear and nonlinear systems,
manipulators. It could also prove a success in a challenging IEEE Trans. Ind. Electron., vol. 48, pp. 1109–1117, Dec. 2001.
domain of robot manipulators where the dynamics for each [22] O. Barambones, V. Etxebarria, Robust neural control for robotic
link was expressed by complex, nonlinear, time-varying, manipulators, Automatica 38, 235–242, 2002.
coupled differential equations. An interesting research topic [23] R. Ortega, M.W. Spong, Adaptive motion control of rigid
robots: a tutorial, Automatica 25, 877–888, 1989.
is concerned with whether this controller can perform, as
[24] R. Palm, D. Driankov, and H. Hellendoorn, Model Based Fuzzy
well as fuzzy robust controllers and adaptive fuzzy sliding Control. New york: Springer-Verlag, 1997.
mode controllers in their relevant domains, without actually
embodying the significant complexities of these robust and
sliding mode controllers.
REFERENCES
[1] A. Green, J.Z. Sasiadek, Dynamics and trajectory tracking
control of a two-link robot manipulator, J. Vibr. Control 10,
1415 –1440, 2004.
6
604