Fuzzy Control for an under-actuated Robotic Manipirlator: Pendubot Xiao Qing Ma A Thesis in The Department of Mechanical Engineering Presented in Partiai F u l f ï h e n t of the Requirements For the Degree of Master of Appiied Science at Concordia University Montreal, Quebec, Canada Aupst 200 1 O Xao Qing Ma, 2001
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Fuzzy Control for an under-actuated Robotic
Manipirlator: Pendubot
Xiao Qing Ma
A Thesis
in
The Department
of
Mechanical Engineering
Presented in Partiai Fulfïhent of the Requirements
For the Degree of Master of Appiied Science at
Concordia University
Montreal, Quebec, Canada
Aupst 200 1
O Xao Qing Ma, 2001
Acquisitions and Acquisiiions et Bibliographie Services senrices bibriraphiques
The author has granted a non- L'auteur a accordé une licence non exclusive licence dowing the exclusive permettant à la National Li'brary of Canada to Bibliothèque nationale du Canada de reproduce, loan, distribute or seîi reproduire, prêter, distniuer ou copies of this thesis in microform, vendre des copies de cette thèse sous paper or electronic formats. la forme de microfiche/film, de
reproduction sur papier ou sur format électronique.
The author retains owneship of the L'auteur conserve la propriété du copyxight in this thesis. Neither the droit d'auteur qui protège cette thèse. thesis nor substantial extracts h m it Ni la thèse ni des extraits substantiels may be printed or otherwise de ceNe4 ne doivent être imprimés reproduced without the author's ou autrement reproduits sans son permission. autorisation.
Abstract
Fuzzy Control of an Under-actuated Ro bo tic Maoipulator:
Pendubot
Xiao Qing Ma
Control of under-actuated mechanicd systerns (robots) represents an important cIass
of control problem. This thesis studies severai relateci control problems associated with
an under-actuated robot, Pendubot, h m the point view of fuPy logic control. To swing
up the Pendubot fiom a rest position to the upright confi-don, a fuzzy aigorithm is
proposed fiom non-complete sets of linguistic d e s that Iink some mechanism states to
the sign of a singe conno1 action. Therein, a simpiifïed Tnikamoto's reasoning method
and quasi-hear-mean aggregating operators are used to denve and anaiyze the controlIer
input-out rnappings. in order to balance the Pendubot at the unstable upright top
configuration after swinghg up, another simple fuzzy controiier is derived according to
its joint states. This combining fuzzy aigorithm for swin-eing-up m d baiancing is
successfuiiy applied to the Pendubot. This thesis also investigates the case t b t the
Pendubot tracks a desired signai and a corresponding fuzzy scheme is proposed, which
combines the iinear reguiator theory with the Takagi-Sugeno h z q methodolog. The
stability and stability conditions for this fuzq scheme are analyzed. Numericd
simuiations for ail the above controüers are carried out to validate the theoreticai anaiysis
by using SIMULIMC F ï y , the hardware experiments in the Pendubot have
successfully been conducted in the Robotics and Mechatronics Laboratory.
.-- Ill
Acknowledgements
The author dedicates this thesis to the thesis supervisor Associate Professor Dr. Chun-
Yi Su, for his invaluable guidance and consistent encouragement through out the course
of this research and looks forward for his guidance in a i i future endeavors.
The author would like to express her appreciation to h k Z. Cai, whose enthusiasm to
build and set up the whole system and àelp me perfom the experiments played a
significant roIe in the deveIopment of this project.
The author wodd Iike to express her sincere thanks to Mr. Z. L. Liu for the useful
discussions with the author.
1 would like to thank my entire f d y for their love and support throughout my
graduate school days. They and especiaily my husband, KangZe Zheng, gave me the
encouragement to compIete this work
Table of Contents
List of Figures .-. v u
Chapter 1
1.1
13
1.3
1.4
Chspter 2
2.1
2.2
2.3
2.4
2.5
Chapter 3
3.1
3 .?
3.3
3 -4
Chapter 4
4.1
4.2
Introduction
Overview
Objectives
Thesis Organization
Contribution
Basic Knowledge
Introduction of Robot
Review of Robouc Control
Fu;n Logic Conml and Reasoning
Introduction of Digitai Conml
Description of Pendubot
Pendubot Mode1
The Dynamics
introduction of Identification
The Equilibrium ManifoId
Controiiability
Swing Up Control
A Two-Rule-Based Fuzzy ControiIer
A Two-Rule-Si@-Based Strategy for the Pendubot
Chapter 5
Chapter 6
Chapter 7
7.1
7.2
Chapter 8
8.1
8 -2
8.3
8.4
8 -5
Chapter 9
9.1
9 3
9.3
9.4
Andysis of the Controt Law
Bdancing Control
System Analysis
Conml Law
Shbüity Anaiysis of Fuzy Trajectory Tncking Controiier
Fuzzy Control Aigorithm
Stabiiity Adys i s
Combining the Controllers
Combining in the Simulation
Combining in the implementation
Simulation
Simulation Pendubot Model
Swing-Up Simulation Mode[
The Balancidg Simulation Model
The Final SimuIation Mode1
Simuiation Resuits
8.51 The Simuiation Resuits for the Continuou System
8.5.2 The Simdation ResuIts for the Discrete System
Red-time Experimentd Tests
introduction
Flow Chart
Experimentai Results for Swinging-up and BaIancing
Photographs of Experiments
Chapter 10 Conclusions and Recommendrtions for Future Work
10.1 Discussion
10.2 Conclusions
10.3 Recornmendations for Future Work
References
Appendü A Linearized equations
List of Figures
Figure 2.1
Figure 2 3
Figure 23
Figure 2.4
Figure 2.5
Figure 3.1
F i p 3.2
Fi_- 3.3
Figure 4.1
Figure 5.1
F i p 5.1
Fi-- 5.3
F i p e 8.1
Figure 8.2
Figure 8.3
Figure 8.4
Fi_- 8.5
Figure 8.6
Figure 8.7
Fuzzy System
Function tanh(t)
Structures for a digital control Ioop
Front and side perspective drciwings of the Pmdubot
Pictorial of the Pendubot's interface with its conmuer
Coordinate description of the Pendubot
Equiiibrium configuration
Uncontrollable configurations
ïhe two situations
The BaIancing corifiguration at the top position
The link one on the right side arouud the equiIr'brïum point
The iink one on the left side around the equiIr'bnum point
S wing-up and baiancing controI
Subsystem 1: Pendubot mode1
Subsystem 2: swing-Up controllet
Subsystem 3: baiancing controller
Swinghg up simdation
Balancing simulation
Subsystem 4: switching block
Figure 8.8 The whole simulation system
Figure 8.9 Discrete-tirne Pendubot madel
F i p 8.10 TheOutputofq,
Figure 8.1 1 The Output of q,
Figure 8.12 The Output of torque r
Figure 8.1 3 The angular velocity for one
Figure 8-14 The angular velocity for Iiak two
Figure 8.15 The Output of s oust swinghg up)
Figure 8.16 The Output of q, (just mvinging up)
Figure 8.1 7 The Output of q2 (jus swinghg up)
Figure 8.18 The Output of q,
Figure 8.1 9 The Output of q,
Figure 8.20 The Output of torque r
Figure 8.2 1 The angular veiocity for Iink one
Figure 8.22 The angdar veiocity for hk two
Figure 8.23 The Output of r Cjust swinghg up)
Figure 8.24 The Output of q, oust swinghg up)
Figure 8.2s The Output of q, Gust swinging up)
How Chart
Figure 9.1 Effect of torque
Figure 9.2 Effect of ag i e for Link one
Figure 9 3 Effect of angie for Iink two
Figure 9.4 Effect of mgdar vetocity for iink one
F i m m 9.5 Effect of angular velocity for link two
Figure 9.6 The Pendubot at the rest configuration
Figure 9.7 BaIancing at the top configuration
Figure 9.8 The Pendubot on the left side
Figure 9.9 The Pendubot on the right side
Chapter 1
Introduction
In ment yevs the control of underdctuated mechicai systerns has arûacted
p w i n g attention and is a topic of great interest [2][3][1 I][I5][10]. As yet, there is no
comprehensive theory for underactuated robot manipdators, Le., manipdators having
fewer acntators than degrees of W o m . Examples of such synems are ilIustrated, for
examp[e in [2] [16][7[ 11 [5] [a. Frequentiy cited appIications inciude saving weight and
energy by using fewer actuators and gaining M t tolerance to actuator failure.
The challenge of s o h g control probiems associated with this class of systems WU
stimuiate new results in robot control theory in the years ro corne, interest in studying the
under-actuated mechanical systems is aiso motivated by their role as a class of strongly
nonlinear .stems where cornpiex i n t d dynamics, nonhoIonomic behavior, and lack of
feedback IinearizabiIity are ofien exhiiited, for which traditionai nonluiear control
mettiods are insriffcient and new approaches mus be developed
Tho@ dynamics of the under-actuated mechanical systems is well uuderstood, the
difficulty of the control problem for under-actuaîed mechanism is obviously due to the
reduced dimension of the input space. The literame on the conm~l of under-actuated
systems is rnahiy ment [2] 141 [5] [13] [12], and the discussion mainiy focuses on two-
degeesf-fieedom exarnples [3] 1151 [a] [59]. Eririier work that deais with control of
under-actuated robotic systems is described in [jq [Sq. Under-actuated mechanicd
systems have also k e n investigated h m nonholonimc constraint point of view [13] [lq,
where, for instance, Oriolo and Nakamura [57] and Wichlund [58] established the
conditions for partid integrability of secondsrder nonholonomic constrahts and
discussed control problems.
WhiIe some interesthg techniques and fesults have been presented in the mentioned
above publications, the conmi of such systems stiii remains an open problem. For
example, most of the control schemes mentioned above either faiIed to provide a
thorou& analysis of the overd system stability or assumed that gravitation forces didn't
act on the passive joints. Fusthemore, the precise knowkdge of dynamic mode1 is
generalIy required.
F u z q bgic conmi techniques were origindy advocated by Zadeh and Mamdani as a
means of both coiiecting human knowiedge and experience and dealing with
unceaainties in the control process, It has become a very popular tooI in control
engineering [8][7I[lO][lI]. Fuzzy control systems have the advantages that no formai
mathematicai modelr are needed and the systern uncertainties c m be coped wilh.
Therefore, aimine at the mentioned above control prublems for such under-actuated
mechanid nonhear systems, this thesis wiII investigate severai reIated conml
pmblems, associated with an under-actuated robot-Pendubof fiom the point view of the
fuzzy bgic control.
The Pendubot (PenduIum robot) is a benchmark system for under-actuated robot
manipulators, coasisthg of a double penddum with an actuator at only the second joint.
Using the Pendubot, one can rnainly investigate the set-point regdation, inctuding
swingkg up and balancing, and trajectory tracking.
The pmblem of swinghg the Pendubot h m the open' loop stable coofiguration
q, = - K I 2. q, = O to any of the inverted equilibria is an interesting problem because of
the strong nonlinearity and dynamic coupling between the W. Many dserent control
algorithm could bave been used to perfonn the swing up. in the classic control field
Spong [2] and Block (1) applied smaii partial feedback linearization to swing up the nvo
k h m hanging straight down to standing straight up. Yoshida [6] used energy-based
methods to complete the swing-up control of an inverted penduIum. in addition, some
mearchers proposed the robust adaptive control algorithm or hybrid algorithni to control
the two-link under-actuated robots [3] [SI. In the fuzzy control field, Sanchez [15] and
Vidolov [IO] designed a MIMO fuzzy PD controller to swing up an underactuated robot
Sousa and Madrid [I Il- proposed a control strategy based on genetic algorithm and
Takagi-Sugeno fuzzy methodoIogy to control the Pendubot- However, the genetic
aigorithm is not easy to implement because it depends on the number of d e s . Some
other fuzzy controt schemes are just implemented in the simdation system, and they
didn't give the experimentai resuits.
Once both links are m g up, the problem of baIancing the Peadubot about an open
loop unstabIe equilibrium should be investigated. ïhe Pendubot possesses infinitdy
many confi-pations at which it can be baianced Spong [2] and BIock [I l proposed a
baiancing controller, using iinear quadratic optimal control theory to bdance the
Pendubot at top or mid configurations. Furthemore, the robust daptive control
algorithm or hybrid algorithm has &O been proposed, but they are not fidiy general,
Besides the above-mentioned probIem associated with the Pendubot, trajectory
tracking for nonlinear systerns aIso can be achieved in the Pendubot, Berkemeier [4]
denved a surprising set of exact trajectories of the nonIinear equations of motion. which
involve inverted periodic motions. Moceover, Begovich and Sanchez [I4] combined
Iinear regulator theory with the Takagi-Sugeno fuzzy methodology a new algorithm to
get a nover approach to achieve trajectory tracking for the Pendubot. However, they
didn't anaiyze the stability of the whole control system. in this thesis, nodinear system
trajectory tracking has been analyzed and impiemented in red tirne in the Pendubot.
1.2 Objectives
The objective of this research is to develop a di@ controiier based on fuzzy logical,
approximate reasoning, and quasi-iinear-mean aggegating operators, to swing up and
balance the imder-actuated Robot - the Pendubot, Noniinear system trâjectory tracking
wiil ais0 be anaiyzed, based on the linear regufator theory and the Take-Sugeno (TS)
fuzzy methodology. important issues for the under-actuated robotic controiier design are
to develop the fuzzy logic aigorithms and impiement them, The motivation is to make an
effort tomrds applying fuzzy controlling methods to the actual robot 1 will build a
completed and feasible simularion mode1 and mite a digital controuer program.
The Pendubot is Uistalled in the Robotics and Mecbtronics Labontory, led by Dr%
It is a typicai under-actuated penddum robot which is an electro-mechanicd system
consisting of two rigid links interconnected by revohte joints.
Chapter 2 rnainly coiisists of ttiree main parts. The £îrst part is a brief introduction to
robotic control. The second part is a description of fuPy logic theory and fuzn control.
The third part is a description of the Pendubot
Chapter 3 discusses the dynamics of the Pendubot, introduces the equilibrium
manifold and identxcation of the iink inertia parameters, and discusses the controllability
of this system. in this chapter? I provide the mathemaricd mode1 bat c m be used to
derive various controiiers and to simulate the response of the system. It serves as the base
for the whole research.
Chapter 4 denves a two-de-based fuzzy controI scheme fiom a simpiified
Tsukamoto's reasoning method and quasi-hez-mean qgegathg operators to swing-up
the Pendubot h m its rest position. The fuzzy scheme is derived fiom non-comptete sets
of linpuistic d e s thrit Link some mechanism states to the sign of a singie control action.
At the end of this chapter, I analyze the coatrd law and give the principie of control
parameters' tuning.
Chapter 5 dispIays a fuPy control dgorithm for baiancing the Pendubot at unstable
open-loop equilibriurn states. This scheme is aiso obtained based on the fuzzy mie base,
but contrary with the d g - u p ' s d e base, because their control gods are dierent.
Chapter 6 anaiyzes the stabiiity of a fuzzy scherne for üajectory tracking of the
nonhear system: Pendubot. There are two steps: the first one is the stability anaiysis of
the fuPy control systern, consisting of a nonlinear plant and a fùzzy controller, the
second one is to give the condition of applying Iinecu regdation theory in the nodinar
system that consists of each local Iinear system by using the fupy methodology.
Chapter 7 displays the switching aigorithm both in the simulation and in the
experiment since the mode1 of the Pendubot in the simulation is different from the actual
model. These ciifferences display not only in the parameter adjusting but aiso in the
controller combining. This chapter wiIl point out ail these detaüs.
Chapter 8 is the simuIation of the whole control process using the SIMULINK. 1 start
h m the Pendubot mode1 founding, and then buiId the swing-up controller and balancing
controiier respectively, haliy comect them with the switching controUer. In this chapter,
I also e.xpIain the tuning of controllers and give the simulation results for bath
continuou-tirne and discrete-time systems.
Chapter 9 presents the implementai method and resuits. I design a digital controller
according to the fuzzy controt scheme (given in the above chapters) using Mimsofi C
7.0 Ianguage. 1 present the design ciue through flow chart and give the implementai
results using digitai photopphs and the response of joints.
Surnmary, coaclusions, the recommendations for future work, and reference are
presented in the next parts. Fmaily, Appendk A gives the linearization equations used in
Chapter 6.
2.4 Contributions
The approach in this thesis is partiy sirniIar to the work of [1][16][14], but there are
significant diierences as well, which are exactiy my contributions.
1) A simpiifïed Tsukamoto's reasoning method and quasi-Iinear-mean aggregating
opentors are used to derive and anaiyze the swing-up control input-output
rnappings. I appiy this fuzzy controi scheme to swing up the Pendubot h m the
rest position (q ,= -812 , q,=O) to the unstable top position
(4, q* =O)-
2) According to the Pendubot's joints states and fuzy control rule, 1 design another
fuzzy controller to balance the Pendubot at the top position. Through a l o g i d
svitching algorithm, 1 combine the swing-up controller with this baiancing
controiler.
3) Based on the deveIoped T-S fuzzy trajectory tracking scheme on the baiancing
Pendubot, 1 give the stability analysis of this TakagiSugeno fuzzy scheme;
4) 1 have combined the fuPy swing-up controlIer with the T-S fuzzy trajectory-
tracking controller to generate a novel control scherne. 1 implemented it in the
real tirne Pendubot;
5) Al1 of the above are impternented in the Pendubot Mode1 P-3 in our laboratory,
and the simulations of 1) and 2) are achieved using SIMLILIPX.
Chapter 2
Basic KnowIedge
2.1 Introduction of Robot
As many books reIated to robots are introduced robots are basicalIy positionhg and
hancilhg devices [34]. A usefd robot is one that is able to control its movement and the
force it applies to its environment [35]. Presentiy dif3erent aspects of robotics research
are cmied out by e.qerts in various fields that are r n e c ~ c a i manipulation, locomotion.
cornputer contml, and artifïciai intelIigence. The major devant fieIds are rnechanics,
control theory, and cornputer science. Ornitting the accessorid parts, robot actuaiiy is the
mdti-Iink mechanics device. Thus, my resemh object is limited to this device and how
to contml it.
To controi robot requires the knowledge of a mathematicai model and of sorne sort of
intelligence to act on the model. The mathematicai model is obrained h m the basic
physicd laws governing the robot's dynamics. intelligence requires sensory capabiiities
and means for acting and teacting to the sensed variables, Therefore, there are two main
steps for simple induda1 robot: the 6rst step is about the mechanics of mechanical
manipuIators and its dynamics; the second step is to appiy the control theory to moriift
the actions and reactions of the robot to different stimuli. The partidar controiier used
wiii depend on the complexity of the mathematical model, the application at tan& the
availabie resources, and a host of other criteria
Step 1: Modeiing
For servo-control design purpom, and to design better con~ollers, it is necessary to
reveal the dynarnic behavior of the robot via a mathematicai model obtained from basic
physicai Iaws. I begin the development with the generd Lapnge equations of motion
[38]. Consider then Lagrange's equations for a conservative system as given by
where q is an n-vector of genenlized coordinates q,, r is an n-vector of generalized
force r,, and the Lagrangian L is the diffe~nce between the kinetic and potentid
energies
L = K - P (2.2)
It can then be show [34] that the robot dynamics are given by
D(q)q + C(q, 4) + + eh) + rd = f (2.3)
where D(q) is a symmetric, positive-dennite inertia matrix, C(q,q) is a vector
containing the effects of the Coriolis and centripetai toque, G(q) is an n-vector of
grave toques, F(q) represents fiiction, ana rd represents extemai disturbances.
Step 2: Control
A usefiil robot is one whose üajectory in its workspace may be specified, and the
forces it exerts on its environment may be controtled, Looking back at equation (2.3), my
control objectives wiI1 d l y fdl into one of the foilowing categories:
1. Motion Con~o l . Given a desired trajectory, specified by the vector time functions
qd ( t ) and q, (t) , design and implement a controlIer whose output s(t) wiU drive the
a d ûajectory { q(t), q(t ) ) to { q, (t) , qd ( t ) } asymptoticdly. Note tbat the desired
üajectory is usually specified in the task space and some ~reprocessing is required to
obtain a desired joint space tnjectory. The alternative wodd be to obtain the
dynamics of the robot in the task space where the desired üajectoty is specified- The
Fine motion control is then accomplished using precision movements of the end-
effector.
2. Force Conrrol. Whén the robot cornes in contact with its environ ment^ the contact
forces and reactions of the robot need to be reguiated. The force control requkments
are specifTed by a desired force vector &(t) in the task space. ï h s force vector is
the üajectory in the force space that the endeffector should follow, when a force
controik is propaly designed.
3. Motion and Force Conh-ol. In some cases, the robot is required to follow a desired
motion trajectory while exerting a certain force on i t . environment. In this case, both
previous control objectives are combined to design a suitable controller.
2.2 Review of Robotic Control
From equation (2.3), 1 know the dynamic mode1 of a robot is described as a set of
hi-dy nonlinear md coupled differential equation. That mems the robot system is a
compiicated n o f i e u system. There are many control methods for such a nodinear
system. I wiI1 discuss them as following.
Firstly, a common approach is to linearize the dyamics and apply linear conml
theol. However. the operating region of a linearized design is limitecl; so the method of
partial feedback linearization applying to the nonlinear systems is very limited [1][2]p9].
Secondly, the deveiopments in the theory of geometric nonhem control provide
powef i methods for controuer design for a Iarge cIass of noniinear qstems [29][40].
However, it requires the exact knowiedge of the system, which is seldom met for mbotic
system. W l y , to overcome this drawback, the adaptive control schemes have k e n
used for the robotic systems [41][42]. The adaptive control approach is only applicable to
the fidi-actuated robots, but for the under-actuated dynamic systems [G], it remains an
open problem. Fourthiy, with development of the fuzzy IoPjc and fuzzy conmI, more and
more cesearchers would- Like to apply this control method to ded wiîh the uncertain
nonlinear systw. For exampIe, Marcio developed a genetic algorithm to coatrol the
under-actuated dynamic systerns [f 11; Edgar proposeci a fiizzy PD scheme to swing-up
the Pendubot [151; Edgar and Ofelia ais0 developed a nodinea. systern trajectocy
tncking scheme [14]; Micheal [473 extended the ciassicd Lyapunov synthesis method to
the domain of computing with words to fonn a adaptive fiizzy controiler.
From the above survey on the robotic control systern, particularly for the under-
actuated robot or dynamic systems, we can see bar the fmy controI approach may be
more suitabte for the cornplex uncertain nonlinear systems. Next, 1 will introduce the
fuzzy Io& and fuzzy control.
The ability to control a system in uncertainty or h o w n environments is one of the
most important chancteristics of any interligent controt system. Fuzzy Uiference
procedures are becoming, therefore, inçreasingiy crucial to the process of managing
uncenaiaty. Fuzzy sets theory provides a qstematic fiamework for deaihg with different
mes of unceTtainty within a singe conceptuai h e w o r k [Ml.
A fuu_v controller works simila- to conventionai controllers [4q. Tt takes a set of
input values, performs some caiculations, and generates a set of output vaiues. Figure 2.1
illustrates a typicd fiizzy system. According to this fi_preII 1 wiU iutroduce the steps of
SSX(se, rse) = psSEN(se) i (1 - ps)RSEN(rse) (4.15)
where the weighting parameter ps E [0,1] is dram ikom the unit interval. It is used to
&e more or less importance to one of the two variables. These two des, having - preconditions that cover any range of sensor readings, are given the same meaning: the
more m e the precondition the more positive (resp. negative) the conclusion. Therefore,
accordiig to the equation (4.1)-(4.2) in section 4.1, we use the foIIowing output fuzn
sets as the system output:
where is related to the apptied force, r , by a scaling factor G, such that r = G,C , and
a slight modification of the reasoning method orïginaiiy proposed by Tsukamoto [2O] the