SlideShare a Scribd company logo
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
DOI : 10.5121/ijsc.2011.2406 59
Solution of Inverse Kinematics for SCARA
Manipulator Using Adaptive Neuro-Fuzzy
Network
Wesam Mohammed Jasim
College of Computer, University of Anbar, Iraq
Wmj_r@yahoo.com
ABSTRAT
Solution of inverse kinematic equations is complex problem, the complexity comes from the nonlinearity of
joint space and Cartesian space mapping and having multiple solution. In this work, four adaptive neuro-
fuzzy networks ANFIS are implemented to solve the inverse kinematics of 4-DOF SCARA manipulator. The
implementation of ANFIS is easy, and the simulation of it shows that it is very fast and give acceptable
error.
KEYWORDS
Inverse Kinematics, Adaptive Neuro-Fuzzy, SCARA Manipulator.
1.INTRODUCTION
A robot manipulator is consisted of a set of links connected together by joints. The joints can
either be very simple , such as a revolute joint or a prismatic joint, or they can be more complex,
such as a ball and socket joint. A revolute joint is similar to a hinge and allows a relative rotation
about a single axis, and a prismatic joint permits a linear motion a long a single axis, namely an
extension or retraction. The difference between the two situations is that, in the first evidence, the
joint has only a single degree-of-freedom of motion; the angle of rotation in the case of a revolute
joint, and the value of linear displacement in the case of a prismatic joint. In contrast, a ball and
socket joint has two degree-of-freedom.
A robot manipulator with n joints have n+1 links, since each joint connects two links. The joints
are numbered from 1 to n, and links from 0 to n, starting from the base. By this convection, joint i
connects link i-1 to link i. With the ith joint, a joint variable denoted by qi. In the case of a
revolute joint, qi is the angle of rotation, and in the case of a prismatic joint, qi is the joint
displacement:
‫ݍ‬
௜ ୀ ൜
ఏ೔೔೑ೕ೚೔೙೟೔೔ೞೝ೐ೡ೚೗ೠ೟೐
ௗ೔௜௙௝௢௜௡௧௜௜௦௣௥௜௦௠௔௧௜௖
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
60
The problem of kinematic is to demonstrate the motion of the manipulator without consideration
of the forces and torques causing the motion. There are two main kinematic problems. First one is
forward kinematic problem, which is to determine the position and orientation of the end effector
given the values for the joint variables of the robot. The second one is inverse kinematic problem
is to determine the amounts of the joint variables given the end effector’s position and orientation
[1]. At least 6 parameters are needed to describe the motion of the rigid body. Three parameters
are for position, three parameters are for orientation. Several methods are used in robot kinematic.
The most common method is Denavit and HartenbergDH notation for definition of special
mechanism. This method is based on point transformation approach and it is used 4 x 4
homogeneous transformation matrix which is introduced by Maxwell. Maxwell used
homogeneous coordinate systems to represent points and homogeneous transformation matrices
to represent the transformation of points. The coordinate systems are described with respect to
previous one. For the base point an arbitrary base coordinate system is used. Hence some
singularity problems may occur because of this coordinate systems description. And also in this
method 16 parameters are used to represent the transformation of rigid body while just 6
parameters are needed[2].
The inverse kinematics determines the joint variables that would result in a desired position of the
end-effector of the manipulator with respect to a reference coordinate system. The inverse
kinematics solution is difficult since the mapping between the joint space and Cartesian space is
non-linear and involves transcendental equations having multiple solutions. A unique solution
may be obtained in such cases if a performance criterion, like total joint displacement
minimization, is incorporated in the solution scheme[3].
There are several methods for solving Inverse Kinematics problems, YangshengXu, andMichael
C. Nechgba, discusses the automatic genexafion of the Fuzzy Inverse Kinematic Mapping
(FIKM) from specification of the DH parameters, the efficiency of the scheme in comparison to
conventional aPlYroaches, and the implementation results for both redundant and nonredundant
robots [4]. Ramakrishnan M. present a novel single-pass algorithm that is fast and eliminates
problems related with improper and large angle rotations [5]. E. Sariyildiz, and H. Temeltas,
present a formulation based on screw theory with dual-quaterninons for both forward and inverse
kinematic equations [2]. P. Kalra and etc. use real-coded genetic algorithms to obtain the inverse
kinematics solution of an articulated robotic manipulator [3].Samual R. Buss discuss the solution
of inverse kinematic with jacobian transpose, pseudoinverse and damped least squares methods
[7].Takehiko Ogawa and Hajime Kanada, propose a network inversion as a methodfor solving
inverse kinematics problem of a robot arm with multiple joints, where the joint angles are
conjectured from the givenend-effector coordinates [8]. Panchanand J., apply an artificial
neural network models to solve both the direct and indirect kinematics of robot
manipulator motion [9].
In this paper a Neuro-fuzzy structure is presented to solve the inverse kinematics of the SCARA (
Selective Compliant Articulated Robot for Assembly ) manipulator, which, as its name suggests,
is tailored for assembly operations.
2.SCARA MANIPULATOR
The SCARA manipulator has an (Revolute, Revolute, Prismatic) RRP structure, it is have a
kinematics of four degrees of freedom 4-DOF, the four degrees manipulator is different to others.
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
61
SCARA manipulator so different from the spherical manipulator in both appearance and in its
range of applications[6].
A 4-DOF SCARA manipulator has parallel shoulder, elbow, and wrist rotary joints, and a linear
vertical axis through the center of rotation of the wrist. This type of manipulator is very common
in light-duty applications such as electronic assembly, figure 1 shows the shape of SCARA
manipulator and its framework, and the DH joint parameters are given in Table (1) [1].
And the A-matrices are as follows.
‫ܣ‬ଵ = ൦
ܿଵ −‫ݏ‬ଵ
‫ݏ‬ଵ ܿଵ
0 ܽଵܿଵ
0 ܽଵ‫ݏ‬ଵ
0 0
0 0
1 0
0 1
൪ (1)
Link ai αi di θi
1
2
3
4
a1
a2
0
0
0
180
0
0
0
0
d*
d4
θ*
θ*
0
θ*
Table 1. DH Joint parameters for SCARA
Figure 1. DH coordinate frame assignment forthe SCARA manipulator.
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
62
‫ܣ‬ଶ = ൦
ܿଶ ‫ݏ‬ଶ
‫ݏ‬ଶ −ܿଶ
0 ܽଶܿଶ
0 ܽଶ‫ݏ‬ଶ
0 0
0 0
−1 0
0 1
൪ (2)
‫ܣ‬ଷ = ቎
1 0
0 1
0 0
0 0
0 0
0 0
1 ݀ଷ
0 1
቏ (3)
‫ܣ‬ସ = ቎
ܿସ −‫ݏ‬ସ
‫ݏ‬ସ ܿସ
0 0
0 0
0 0
0 0
1 ݀ସ
0 1
቏ (4)
ܶସ
଴
= ‫ܣ‬ଵ … . ‫ܣ‬ସ = ቂ
ܴ 0
0 1
ቃ (5)
The inverse kinematic equations are:
ߠଵ = ܽ‫2݊ܽݐ‬൫ܱ௫ , ܱ௬൯ − ܽ‫ܽ(2݊ܽݐ‬ଵ + ܽଶܿଶ , ܽଶ‫ݏ‬ଶ) (6)
ߠଶ = ܽ‫ܿ(2݊ܽݐ‬ଶ , ±ඥ1 − ܿଶ (7)
ߠସ = ߠଵ + ߠଶ − ܽ‫,11ݎ(2݊ܽݐ‬ ‫)21ݎ‬ (8)
݀ଷ = ܱ௭ − ݀ସ (9)
ܿଶ =
ܱ௫
ଶ
+ ܱ௬
ଶ
− ܽଵ
ଶ
− ܽଶ
ଶ
2ܽଵܽଶ
(10)
Where,ܽଵ = 20 ܿ݉(݈݁݊݃‫ݐ‬ℎ‫݈݂݇݊݅݋‬ 1) , ܽଶ = 15 ܿ݉(݈݁݊݃‫ݐ‬ℎ‫݈݂݇݊݅݋‬ 2) , ܿଵ = ܿ‫ߠݏ݋‬ଵ,ܿଶ =
ܿ‫ߠݏ݋‬ଶ,‫ݏ‬ଵ = ‫ߠ݊݅ݏ‬ଵ, ‫ݏ‬ଶ = ‫ߠ݊݅ݏ‬ଶ, and ݀ସ = 10 ܿ݉ .
3. NEURO-FUZZY STRUCTURE
A typical architecture of an ANFIS is shown in figure 2, in which a circle indicates a fixed node,
whereas a square indicates an adaptive node. The end-effecter position (X, Y, Z) are the inputs
and the outputs are the joint variables ( θ1, θ2, d3, θ4). Among FIS models, the Sugeno fuzzy
model is applied because its high interpretability and computational efficiency.The learning
algorithm tunes the membership functions using the training input-output data.implementation of
a representative fuzzy inference system using a BP neural network-like structure.The fuzzy if-
then rules expressed as:
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
63
If x is A and y is B and z is C then K= px + qy + sz + r
Where A, B and C are the fuzzy sets in the antecedent, and p, q, s and r are the design parameters
that are determined during the training process.
As in figure 2, the ANFIS comprises of five layers.The role of each layer is briefly presented as
follows:
letܱ௜
௟
denote the output of node i in layer l, and xi is the ith input of the ANFIS,
i = 1;2;…..; p [10].
Layer1:
Every node i in employ a node function R given by:
ܱ௜
ଵ
= ܴ௜(‫ݔ‬௜)
Where ܴ௜ can adopt any fuzzy membership function (MF).
Layer 2:
Every node calculates the firing strength of a rule via multiplication:
ܱ௜
ଶ
= ‫ݓ‬௜ = min (ܴ௜)
Where ‫ݓ‬௜ represent the activation level of a rule.
Layer 3:
Fixed node i in this layer calculate the ratio of the i-th rules activation level to the total of
all activation level:
ܱ௜
ଷ
= ‫ݓ‬పതതത =
‫ݓ‬௜
∑ ‫ݓ‬௜௜
Where ‫ݓ‬పതതത is referred to as the normalized firing strengths.
Layer 4:
Every node i has the following function:
ܱ௜
ସ
= ‫ݓ‬పതതത‫ܭ‬௜ = ‫ݓ‬పതതത(‫݌‬௜‫ݔ‬ + ‫ݍ‬௜‫ݕ‬ + ‫ݏ‬௜‫ݖ‬ + ‫ݎ‬௜)
Where ‫ݓ‬పതതത is the output of layer 3, and ( pi ,qi,si,ri ) is the parameter set. The parameters in
this layer are referred to as the consequence parameters.
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
64
Layer 5:
The single node in this layer computes the overall output as the summation of all incoming
signals, which is expressed as:
ܱ௜
ହ
= ‫ݓ‬పതതത‫ܭ‬௜ =
∑ ‫ݓ‬௜‫ܭ‬௜௜
∑ ‫ݓ‬௜௜
4. COMPUTER SIMULATION AND RESULTS
Four different ANFIS are designed for the computer simulation, for solving the inverse
kinematics parameters of 4-DOF SCARA manipulator θ1, θ2, d3 and θ4 respectively, each one
have three Gaussian membership functions in each input and 27 rules in second layer.
The adaptation process of the parameters of the ANFIS has two steps. For the first step of the
consequent parameters training, the Least Squares method is used, because the outcome of the
ANFIS is a linear integration of the consequent parameters.
The premise parameters are static at this step. After the consequent parameters have been
regulated, the approximation error is back-propagated through every layer to update the premise
parameters as the second step. This part of the adaptation procedure is based on the gradient
descent principle, which is similar to the training of the Back-Propagation BP neural network.
A MATLAB package 7.8.0 R2009a is used to implement the simulation code.
Figure.2 .Neuro-fuzzy (ANFIS) architecture.
A1
A2
A3
B1
B2
B3
C1
C2
C3
Π
Π
Π
Π
Π
Π
Σ
N
N
NX3
X1
X2
●
●
●
●
●
●
●
●
●
●
●
●
Layer 1 Layer 2 Layer 3 Layer 4 Layer 5
K
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
65
Figure 3 shows the error of θ1, θ2 and θ4, figure 4 shows the error of d3, figure 5,figure6, figure 7
and figure 8, shows the testing data of four ANFIS networks for θ1, θ2, d3 and θ4 respectively.
Figure 3. Error of Theta 1 , 2 and 4. Figure 5.Test of Theta 1
Figure 4.Error of d3. Figure 6.Test of Theta 2
Figure 7. Test of d3. Figure 8.Test of Theta 4.
.
International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011
66
5. CONCLUSIONS
This work demonstrate that is possible to use Simulated ANFIS in order to present a very good
and reliable solution to the Inverse kinematics problem. The results of used ANFIS shows that it
have good and acceptable training error and small number of epoch in training all inverse
kinematic parameters of 4-DOF SCARA manipulator. At the same time, is important to say that
this technique is easy because its very simple to implement and calculating. Then use of ANFIS
give fast and acceptable solution of inverse kinematic parameters.
6. REFERENCES
[1] Mark W. Spong, Seth Hutchinson, and M. Vidyasagar, 2006, “ Robot Modeling and Control “ John
Wiley & Sons, New York.
[2] E. Sariyildiz, and H. Temeltas, 14-17 July, 2009, “ Solution of Inverse Kinematic Problem for Serial
Robot Using Dual Quaterninons and Plucker Coordinates “ IEEE/ASME, Singapore, pp.338-343.
[3] P. Kalra, P.B. Mahapatra, and D.K. Aggarwal, 2003, “ On the Solution of Multimodel Robot Inverse
Kinematic Functions using Real-coded Genetic Algorithms “ IEEE, pp. 1840-1845.
[4] YangshengXu and Michael C. Nechgba, 1993,“ Fuzzy Inverse Kinematic Mapping “ IROS
Conference.
[5] RamakrishnanMukundan, , 2008, “ A Fast Inverse Kinematics Solution for an n-link Joint Chain”
ICITA, pp. 349-354.
[6] Victor H. and etc., October 2010,“ Kinematics for the SCARA and the Cylindrical Manipulators “
ICIC, Vol. 4, No. 5, pp. 1-6.
[7] Samuel R. Buss, October, 2009, “ Introduction to inverse Kinematics with Jacobian Transpose,
Pseudoinverse and Damped Least Squares methods “ University of California press, pp. 1-19.
[8] Takehiko O. and H. Canada, 2010, “Solution for Ill-Posed Inverse Kinematics of Robot
ArmbyNetwork Inversion “ Hindawi Publishing Corporation, Journal of Robotics, Volume 2010,
doi:10.1155/2010/870923.
[9] Panchanand J., 2009, “Novel Artificial Neural Network Application for Prediction of Inverse
Kinematics of Manipulator” M.Sc. Thesis, National Institute of Technology, India.
[10] Dr. Bob John “Adaptive Network Based Fuzzy Inference Systems (ANFIS)
“.www.cse.dmu.ac.uk/~hseker/ANFISnotes.doc
Author
Wesam Mohammed Jasim is presently working as deputy dean in Computer
College, University of Anbar, Ramadi, Iraq, and completed B.Sc. and M.Sc.
in Electrical and Electronic Engineering/Control at 1996 and 2002
respectively, Al-Rasheed College for Engineering and Science, University of
Technology, Baghdad, Iraq.

More Related Content

PDF
2013年度春学期 画像情報処理 第13回「CTスキャナ ― 投影からの画像の再構成/Radon変換と投影定理」
PDF
Solution of Inverse Kinematics for SCARA Manipulator Using Adaptive Neuro-Fuz...
PDF
Identification and Control of Three-Links Electrically Driven Robot Arm Using...
PDF
Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...
PDF
Dynamics and control of a robotic arm having four links
PDF
Hierarchical algorithms of quasi linear ARX Neural Networks for Identificatio...
PDF
Termpaper ai
PDF
Power system transient stability margin estimation using artificial neural ne...
2013年度春学期 画像情報処理 第13回「CTスキャナ ― 投影からの画像の再構成/Radon変換と投影定理」
Solution of Inverse Kinematics for SCARA Manipulator Using Adaptive Neuro-Fuz...
Identification and Control of Three-Links Electrically Driven Robot Arm Using...
Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...
Dynamics and control of a robotic arm having four links
Hierarchical algorithms of quasi linear ARX Neural Networks for Identificatio...
Termpaper ai
Power system transient stability margin estimation using artificial neural ne...

Similar to Solution of Inverse Kinematics for SCARA Manipulator Using Adaptive Neuro-Fuzzy Network (20)

PDF
Bg2420212027
PDF
PSO APPLIED TO DESIGN OPTIMAL PD CONTROL FOR A UNICYCLE MOBILE ROBOT
PDF
CPREDICTION OF INVERSE KINEMATICS SOLUTION OF A REDUNDANT MANIPULATOR USING A...
PDF
Adaptive Fuzzy-Neural Control Utilizing Sliding Mode Based Learning Algorithm...
PDF
Research Inventy : International Journal of Engineering and Science
PDF
Radial basis function neural network control for parallel spatial robot
PDF
A fuzzy logic controllerfora two link functional manipulator
PDF
Optimal neural network models for wind speed prediction
PDF
Optimal neural network models for wind speed prediction
PDF
Optimal neural network models for wind speed prediction
PPTX
Kane/DeAlbert dynamics for multibody system
PDF
Kinematics Modeling of a 4-DOF Robotic Arm
PDF
Kinematic Model of Anthropomorphic Robotics Finger Mechanisms
PDF
A New Method For Solving Kinematics Model Of An RA-02
PDF
Inverse Kinematics Analysis for Manipulator Robot with Wrist Offset Based On ...
PDF
A comparative study of controllers for stabilizing a rotary inverted pendulum
PDF
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
PDF
Jd3416591661
PDF
Kane’s Method for Robotic Arm Dynamics: a Novel Approach
Bg2420212027
PSO APPLIED TO DESIGN OPTIMAL PD CONTROL FOR A UNICYCLE MOBILE ROBOT
CPREDICTION OF INVERSE KINEMATICS SOLUTION OF A REDUNDANT MANIPULATOR USING A...
Adaptive Fuzzy-Neural Control Utilizing Sliding Mode Based Learning Algorithm...
Research Inventy : International Journal of Engineering and Science
Radial basis function neural network control for parallel spatial robot
A fuzzy logic controllerfora two link functional manipulator
Optimal neural network models for wind speed prediction
Optimal neural network models for wind speed prediction
Optimal neural network models for wind speed prediction
Kane/DeAlbert dynamics for multibody system
Kinematics Modeling of a 4-DOF Robotic Arm
Kinematic Model of Anthropomorphic Robotics Finger Mechanisms
A New Method For Solving Kinematics Model Of An RA-02
Inverse Kinematics Analysis for Manipulator Robot with Wrist Offset Based On ...
A comparative study of controllers for stabilizing a rotary inverted pendulum
A Comparative study of controllers for stabilizing a Rotary Inverted Pendulum
Jd3416591661
Kane’s Method for Robotic Arm Dynamics: a Novel Approach
Ad

Recently uploaded (20)

PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Well-logging-methods_new................
PDF
composite construction of structures.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Welding lecture in detail for understanding
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Project quality management in manufacturing
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
additive manufacturing of ss316l using mig welding
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
UNIT 4 Total Quality Management .pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Well-logging-methods_new................
composite construction of structures.pdf
Lecture Notes Electrical Wiring System Components
R24 SURVEYING LAB MANUAL for civil enggi
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Sustainable Sites - Green Building Construction
Embodied AI: Ushering in the Next Era of Intelligent Systems
Welding lecture in detail for understanding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Project quality management in manufacturing
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
additive manufacturing of ss316l using mig welding
Automation-in-Manufacturing-Chapter-Introduction.pdf
Ad

Solution of Inverse Kinematics for SCARA Manipulator Using Adaptive Neuro-Fuzzy Network

  • 1. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 DOI : 10.5121/ijsc.2011.2406 59 Solution of Inverse Kinematics for SCARA Manipulator Using Adaptive Neuro-Fuzzy Network Wesam Mohammed Jasim College of Computer, University of Anbar, Iraq Wmj_r@yahoo.com ABSTRAT Solution of inverse kinematic equations is complex problem, the complexity comes from the nonlinearity of joint space and Cartesian space mapping and having multiple solution. In this work, four adaptive neuro- fuzzy networks ANFIS are implemented to solve the inverse kinematics of 4-DOF SCARA manipulator. The implementation of ANFIS is easy, and the simulation of it shows that it is very fast and give acceptable error. KEYWORDS Inverse Kinematics, Adaptive Neuro-Fuzzy, SCARA Manipulator. 1.INTRODUCTION A robot manipulator is consisted of a set of links connected together by joints. The joints can either be very simple , such as a revolute joint or a prismatic joint, or they can be more complex, such as a ball and socket joint. A revolute joint is similar to a hinge and allows a relative rotation about a single axis, and a prismatic joint permits a linear motion a long a single axis, namely an extension or retraction. The difference between the two situations is that, in the first evidence, the joint has only a single degree-of-freedom of motion; the angle of rotation in the case of a revolute joint, and the value of linear displacement in the case of a prismatic joint. In contrast, a ball and socket joint has two degree-of-freedom. A robot manipulator with n joints have n+1 links, since each joint connects two links. The joints are numbered from 1 to n, and links from 0 to n, starting from the base. By this convection, joint i connects link i-1 to link i. With the ith joint, a joint variable denoted by qi. In the case of a revolute joint, qi is the angle of rotation, and in the case of a prismatic joint, qi is the joint displacement: ‫ݍ‬ ௜ ୀ ൜ ఏ೔೔೑ೕ೚೔೙೟೔೔ೞೝ೐ೡ೚೗ೠ೟೐ ௗ೔௜௙௝௢௜௡௧௜௜௦௣௥௜௦௠௔௧௜௖
  • 2. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 60 The problem of kinematic is to demonstrate the motion of the manipulator without consideration of the forces and torques causing the motion. There are two main kinematic problems. First one is forward kinematic problem, which is to determine the position and orientation of the end effector given the values for the joint variables of the robot. The second one is inverse kinematic problem is to determine the amounts of the joint variables given the end effector’s position and orientation [1]. At least 6 parameters are needed to describe the motion of the rigid body. Three parameters are for position, three parameters are for orientation. Several methods are used in robot kinematic. The most common method is Denavit and HartenbergDH notation for definition of special mechanism. This method is based on point transformation approach and it is used 4 x 4 homogeneous transformation matrix which is introduced by Maxwell. Maxwell used homogeneous coordinate systems to represent points and homogeneous transformation matrices to represent the transformation of points. The coordinate systems are described with respect to previous one. For the base point an arbitrary base coordinate system is used. Hence some singularity problems may occur because of this coordinate systems description. And also in this method 16 parameters are used to represent the transformation of rigid body while just 6 parameters are needed[2]. The inverse kinematics determines the joint variables that would result in a desired position of the end-effector of the manipulator with respect to a reference coordinate system. The inverse kinematics solution is difficult since the mapping between the joint space and Cartesian space is non-linear and involves transcendental equations having multiple solutions. A unique solution may be obtained in such cases if a performance criterion, like total joint displacement minimization, is incorporated in the solution scheme[3]. There are several methods for solving Inverse Kinematics problems, YangshengXu, andMichael C. Nechgba, discusses the automatic genexafion of the Fuzzy Inverse Kinematic Mapping (FIKM) from specification of the DH parameters, the efficiency of the scheme in comparison to conventional aPlYroaches, and the implementation results for both redundant and nonredundant robots [4]. Ramakrishnan M. present a novel single-pass algorithm that is fast and eliminates problems related with improper and large angle rotations [5]. E. Sariyildiz, and H. Temeltas, present a formulation based on screw theory with dual-quaterninons for both forward and inverse kinematic equations [2]. P. Kalra and etc. use real-coded genetic algorithms to obtain the inverse kinematics solution of an articulated robotic manipulator [3].Samual R. Buss discuss the solution of inverse kinematic with jacobian transpose, pseudoinverse and damped least squares methods [7].Takehiko Ogawa and Hajime Kanada, propose a network inversion as a methodfor solving inverse kinematics problem of a robot arm with multiple joints, where the joint angles are conjectured from the givenend-effector coordinates [8]. Panchanand J., apply an artificial neural network models to solve both the direct and indirect kinematics of robot manipulator motion [9]. In this paper a Neuro-fuzzy structure is presented to solve the inverse kinematics of the SCARA ( Selective Compliant Articulated Robot for Assembly ) manipulator, which, as its name suggests, is tailored for assembly operations. 2.SCARA MANIPULATOR The SCARA manipulator has an (Revolute, Revolute, Prismatic) RRP structure, it is have a kinematics of four degrees of freedom 4-DOF, the four degrees manipulator is different to others.
  • 3. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 61 SCARA manipulator so different from the spherical manipulator in both appearance and in its range of applications[6]. A 4-DOF SCARA manipulator has parallel shoulder, elbow, and wrist rotary joints, and a linear vertical axis through the center of rotation of the wrist. This type of manipulator is very common in light-duty applications such as electronic assembly, figure 1 shows the shape of SCARA manipulator and its framework, and the DH joint parameters are given in Table (1) [1]. And the A-matrices are as follows. ‫ܣ‬ଵ = ൦ ܿଵ −‫ݏ‬ଵ ‫ݏ‬ଵ ܿଵ 0 ܽଵܿଵ 0 ܽଵ‫ݏ‬ଵ 0 0 0 0 1 0 0 1 ൪ (1) Link ai αi di θi 1 2 3 4 a1 a2 0 0 0 180 0 0 0 0 d* d4 θ* θ* 0 θ* Table 1. DH Joint parameters for SCARA Figure 1. DH coordinate frame assignment forthe SCARA manipulator.
  • 4. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 62 ‫ܣ‬ଶ = ൦ ܿଶ ‫ݏ‬ଶ ‫ݏ‬ଶ −ܿଶ 0 ܽଶܿଶ 0 ܽଶ‫ݏ‬ଶ 0 0 0 0 −1 0 0 1 ൪ (2) ‫ܣ‬ଷ = ቎ 1 0 0 1 0 0 0 0 0 0 0 0 1 ݀ଷ 0 1 ቏ (3) ‫ܣ‬ସ = ቎ ܿସ −‫ݏ‬ସ ‫ݏ‬ସ ܿସ 0 0 0 0 0 0 0 0 1 ݀ସ 0 1 ቏ (4) ܶସ ଴ = ‫ܣ‬ଵ … . ‫ܣ‬ସ = ቂ ܴ 0 0 1 ቃ (5) The inverse kinematic equations are: ߠଵ = ܽ‫2݊ܽݐ‬൫ܱ௫ , ܱ௬൯ − ܽ‫ܽ(2݊ܽݐ‬ଵ + ܽଶܿଶ , ܽଶ‫ݏ‬ଶ) (6) ߠଶ = ܽ‫ܿ(2݊ܽݐ‬ଶ , ±ඥ1 − ܿଶ (7) ߠସ = ߠଵ + ߠଶ − ܽ‫,11ݎ(2݊ܽݐ‬ ‫)21ݎ‬ (8) ݀ଷ = ܱ௭ − ݀ସ (9) ܿଶ = ܱ௫ ଶ + ܱ௬ ଶ − ܽଵ ଶ − ܽଶ ଶ 2ܽଵܽଶ (10) Where,ܽଵ = 20 ܿ݉(݈݁݊݃‫ݐ‬ℎ‫݈݂݇݊݅݋‬ 1) , ܽଶ = 15 ܿ݉(݈݁݊݃‫ݐ‬ℎ‫݈݂݇݊݅݋‬ 2) , ܿଵ = ܿ‫ߠݏ݋‬ଵ,ܿଶ = ܿ‫ߠݏ݋‬ଶ,‫ݏ‬ଵ = ‫ߠ݊݅ݏ‬ଵ, ‫ݏ‬ଶ = ‫ߠ݊݅ݏ‬ଶ, and ݀ସ = 10 ܿ݉ . 3. NEURO-FUZZY STRUCTURE A typical architecture of an ANFIS is shown in figure 2, in which a circle indicates a fixed node, whereas a square indicates an adaptive node. The end-effecter position (X, Y, Z) are the inputs and the outputs are the joint variables ( θ1, θ2, d3, θ4). Among FIS models, the Sugeno fuzzy model is applied because its high interpretability and computational efficiency.The learning algorithm tunes the membership functions using the training input-output data.implementation of a representative fuzzy inference system using a BP neural network-like structure.The fuzzy if- then rules expressed as:
  • 5. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 63 If x is A and y is B and z is C then K= px + qy + sz + r Where A, B and C are the fuzzy sets in the antecedent, and p, q, s and r are the design parameters that are determined during the training process. As in figure 2, the ANFIS comprises of five layers.The role of each layer is briefly presented as follows: letܱ௜ ௟ denote the output of node i in layer l, and xi is the ith input of the ANFIS, i = 1;2;…..; p [10]. Layer1: Every node i in employ a node function R given by: ܱ௜ ଵ = ܴ௜(‫ݔ‬௜) Where ܴ௜ can adopt any fuzzy membership function (MF). Layer 2: Every node calculates the firing strength of a rule via multiplication: ܱ௜ ଶ = ‫ݓ‬௜ = min (ܴ௜) Where ‫ݓ‬௜ represent the activation level of a rule. Layer 3: Fixed node i in this layer calculate the ratio of the i-th rules activation level to the total of all activation level: ܱ௜ ଷ = ‫ݓ‬పതതത = ‫ݓ‬௜ ∑ ‫ݓ‬௜௜ Where ‫ݓ‬పതതത is referred to as the normalized firing strengths. Layer 4: Every node i has the following function: ܱ௜ ସ = ‫ݓ‬పതതത‫ܭ‬௜ = ‫ݓ‬పതതത(‫݌‬௜‫ݔ‬ + ‫ݍ‬௜‫ݕ‬ + ‫ݏ‬௜‫ݖ‬ + ‫ݎ‬௜) Where ‫ݓ‬పതതത is the output of layer 3, and ( pi ,qi,si,ri ) is the parameter set. The parameters in this layer are referred to as the consequence parameters.
  • 6. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 64 Layer 5: The single node in this layer computes the overall output as the summation of all incoming signals, which is expressed as: ܱ௜ ହ = ‫ݓ‬పതതത‫ܭ‬௜ = ∑ ‫ݓ‬௜‫ܭ‬௜௜ ∑ ‫ݓ‬௜௜ 4. COMPUTER SIMULATION AND RESULTS Four different ANFIS are designed for the computer simulation, for solving the inverse kinematics parameters of 4-DOF SCARA manipulator θ1, θ2, d3 and θ4 respectively, each one have three Gaussian membership functions in each input and 27 rules in second layer. The adaptation process of the parameters of the ANFIS has two steps. For the first step of the consequent parameters training, the Least Squares method is used, because the outcome of the ANFIS is a linear integration of the consequent parameters. The premise parameters are static at this step. After the consequent parameters have been regulated, the approximation error is back-propagated through every layer to update the premise parameters as the second step. This part of the adaptation procedure is based on the gradient descent principle, which is similar to the training of the Back-Propagation BP neural network. A MATLAB package 7.8.0 R2009a is used to implement the simulation code. Figure.2 .Neuro-fuzzy (ANFIS) architecture. A1 A2 A3 B1 B2 B3 C1 C2 C3 Π Π Π Π Π Π Σ N N NX3 X1 X2 ● ● ● ● ● ● ● ● ● ● ● ● Layer 1 Layer 2 Layer 3 Layer 4 Layer 5 K
  • 7. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 65 Figure 3 shows the error of θ1, θ2 and θ4, figure 4 shows the error of d3, figure 5,figure6, figure 7 and figure 8, shows the testing data of four ANFIS networks for θ1, θ2, d3 and θ4 respectively. Figure 3. Error of Theta 1 , 2 and 4. Figure 5.Test of Theta 1 Figure 4.Error of d3. Figure 6.Test of Theta 2 Figure 7. Test of d3. Figure 8.Test of Theta 4. .
  • 8. International Journal on Soft Computing ( IJSC ) Vol.2, No.4, November 2011 66 5. CONCLUSIONS This work demonstrate that is possible to use Simulated ANFIS in order to present a very good and reliable solution to the Inverse kinematics problem. The results of used ANFIS shows that it have good and acceptable training error and small number of epoch in training all inverse kinematic parameters of 4-DOF SCARA manipulator. At the same time, is important to say that this technique is easy because its very simple to implement and calculating. Then use of ANFIS give fast and acceptable solution of inverse kinematic parameters. 6. REFERENCES [1] Mark W. Spong, Seth Hutchinson, and M. Vidyasagar, 2006, “ Robot Modeling and Control “ John Wiley & Sons, New York. [2] E. Sariyildiz, and H. Temeltas, 14-17 July, 2009, “ Solution of Inverse Kinematic Problem for Serial Robot Using Dual Quaterninons and Plucker Coordinates “ IEEE/ASME, Singapore, pp.338-343. [3] P. Kalra, P.B. Mahapatra, and D.K. Aggarwal, 2003, “ On the Solution of Multimodel Robot Inverse Kinematic Functions using Real-coded Genetic Algorithms “ IEEE, pp. 1840-1845. [4] YangshengXu and Michael C. Nechgba, 1993,“ Fuzzy Inverse Kinematic Mapping “ IROS Conference. [5] RamakrishnanMukundan, , 2008, “ A Fast Inverse Kinematics Solution for an n-link Joint Chain” ICITA, pp. 349-354. [6] Victor H. and etc., October 2010,“ Kinematics for the SCARA and the Cylindrical Manipulators “ ICIC, Vol. 4, No. 5, pp. 1-6. [7] Samuel R. Buss, October, 2009, “ Introduction to inverse Kinematics with Jacobian Transpose, Pseudoinverse and Damped Least Squares methods “ University of California press, pp. 1-19. [8] Takehiko O. and H. Canada, 2010, “Solution for Ill-Posed Inverse Kinematics of Robot ArmbyNetwork Inversion “ Hindawi Publishing Corporation, Journal of Robotics, Volume 2010, doi:10.1155/2010/870923. [9] Panchanand J., 2009, “Novel Artificial Neural Network Application for Prediction of Inverse Kinematics of Manipulator” M.Sc. Thesis, National Institute of Technology, India. [10] Dr. Bob John “Adaptive Network Based Fuzzy Inference Systems (ANFIS) “.www.cse.dmu.ac.uk/~hseker/ANFISnotes.doc Author Wesam Mohammed Jasim is presently working as deputy dean in Computer College, University of Anbar, Ramadi, Iraq, and completed B.Sc. and M.Sc. in Electrical and Electronic Engineering/Control at 1996 and 2002 respectively, Al-Rasheed College for Engineering and Science, University of Technology, Baghdad, Iraq.