Chapter Two

Inverse kinematics analysis of 7-degree of freedom welding and drilling robot using artificial intelligence techniques

Swet Chandan1, Jyoti Shah1, Tarun Pratap Singh2, Rabindra Nath Shaw3 and Ankush Ghosh4,    1Galgotias University, Greater Noida, India,    2Aligarh College of Engineering, Aligarh, India,    3Department of Electrical, Electronics & Communication Engineering, Galgotias University, Greater Noida, India,    4School of Engineering and Applied Sciences, The Neotia University, Kolkata, India

Abstract

Robots are becoming ubiquitous: from industrial application to high-precision robotic surgery. One of the most challenging issues to grapple with regarding the deployment of these robots is how to accurately place the end effectors to the target in the minimum time. Further end effector position is decided by how joints are oriented. In the textbooks, we find analytical solutions for these robots but there are very limited numbers of robots for which analytical solutions can be obtained. In this chapter, we have analyzed a 7-degree of freedom robotic manipulator with the help of D-H convention by establishing different parameters of robotic manipulators. Further, we have used Catia V5 Pro software for modeling and positioning different end-effector and manipulator position. We have taken a number of end effectors positions (target) to calculate the joint angles. We have employed two swarm optimization: Particle Swarm Optimization and Firefly Algorithm to find the joint angels for a given target. With the selection of random points in the workspace we have run the simulation to achieve the predetermined accuracy.

Keywords

Inverse kinematics; DOF (degree of freedom); transformation; DH convention; robotic arm; PSO; firefly

2.1 Introduction

Industrial robots are playing a vital role in the manufacturing industry. They are generally used as payloader, welding, painting, assembly, packaging, and other important applications. These types of robots are automated, programmable as well as can move in all three dimensional axes. The end effector of an industrial robot is one of the vital parts of the robot which is used by the robot to communicate with the environment. Therefore to place the end effector in the right position at the right time is the most challenging job for an industrial robot. The classical method to find the position of an end effector is by solving the inverse kinematics. Generally, massive numerical calculations need to be solved to get the answer for the position of the end effector. However, with the evolution of computing, solving the calculations has become easier as well as quicker. But, for an automated industrial robot, speed is a significant parameter of operation. Researchers are trying to develop faster robots to manufacture more commodities in shorter time periods. Recent developments in the field of Artificial Intelligence and machine learning allow deriving faster calculation and consequently developing faster robots. Therefore this opens a new era in robotics with the applications of Artificial Intelligence and machine learning.

In this chapter, we have analyzed a 7-degree of freedom (DOF) robotic manipulator with the help of D-H convention by establishing different parameters of robotic manipulators. Further, we have used Catia V5 Pro software for modeling and positioning different end-effector and manipulator positions. We have taken a number of end effectors positions (target) to calculate the joint angles. We have employed two swarm optimization: Particle Swarm Optimization (PSO) and Firefly Algorithm (FA) to find the joint angels for a given target. With the selection of random points in the workspace we have run the simulation to achieve the predetermined accuracy.

2.2 Literature review

Finding the location of the joints for the given end effector position, that is, inverse kinematics problems is a classical problem in the robotics [1,2]. As the end effector position can be written as a function of the location of the joint position, finding the inverse solution involves trigonometrical and nonlinear function, and getting the solution for a multiple DOF system becomes increasingly difficult. This problem can be solved with the help of numerical or computational methods. Classical optimization techniques were being used for solving such problems but they don’t lead to the desired accuracy.

In the last 20 years many metaheuristics methods including the Cuckoo search method [3] have evolved and are being implemented for solving industrial problems. The Cuckoo search method is based on the assumption that each cuckoo will lay an egg in one nest and the best egg will be used as the new solution and rest will be discarded. This method is very helpful for providing the best solution.

In the literature [46] we find neural network, bee algorithm, and genetic algorithm being used to solve inverse kinematics problems. Similarly, PSO [7] and FA [8] were used to get the joint parameters for the given end effector positions.

Apart from inverse kinematics problems there are numerous other applications of robotics, such as navigation and control [9], energy minimization [10] during movement, and trajectory planning [11], where metaheuristic optimizations are being implemented to solve the problems. Recently, artificial intelligence-based optimization has also been used [1215].

2.3 Modeling and design

For the analysis of a robot, first the workspace, link length, joint angle, etc. are to be defined. Using forward kinematics with the use of mathematical equations the end effector position is determined. As we increase the number of DOFs the mathematical complexity increases and solving inverse kinematics becomes challenging. Many algorithms are being used to solve such problems but still for higher DOF problem inverse kinematics is not a done deal.

We have started with the assigning of D-H parameters for the model. For modeling the 7-DOF robot we have employed CATIA modeling software, and using different features we have accurately shown the link and end effector position, as depicted in Figs. 2.12.3.

image
Figure 2.1 Modeling of 7-DOF robots using Catia V5 Pro. DOF, Degree of freedom.
image
Figure 2.2 7-DOF robot with different orientation. DOF, Degree of freedom.
image
Figure 2.3 Part modeling of 7-DOF drilling and welding robot. DOF, Degree of freedom.

2.3.1 Fitness function

The aim of this work is to reach the desired position of the end effector from the initial input. We reduced the problem to an optimization problem with given fitness function. Essentially our approach here is to formulate the problem as an optimization problem with the target of minimizing the fitness function. We set the target to minimize the error iteratively.

F=(XTX)2+(YTY)2+(ZTZ)2

image

In the above expression F is chosen to be fitness function; XT is the target position of the end effector in the x direction; YT is the target position of the end effector in the y direction; and ZT is the target position of the end effector in the z direction. Here we have chosen the fitness function as the Euclidian distance between the target location and the present location of the end effector.

2.3.2 Particle swarm optimization

The PSO method was first proposed in 1995 by Kennedy [16]. The optimization technique is governed by personal best and global best.

In this algorithm first we define swarm size, and then we decide about the search space number of iteration etc. Further we place the position of the particle randomly and define the position too. The fitness function is calculated each time. Then the personal and global best of the fitness function is updated. Then the velocity and position of the particle is determined using the given equation each time. Finally stopping criteria is checked after running each iteration.

The updated position (xi(t+1)) of the particle is a function of the last position (xi(t)) of the particle and the velocity at the current location:

xi(t+1)=xi(t)+vi(t+1)

image

And the updated velocity of the particle is given by:

vij(t=1)=wvij(t)+c1r1(pbestxij(t))+c2r2(gbestxij(t))

image

where r1 and r2 are random numbers, and w is inertia weight.

The algorithm can be stated as followed. First, create a collection of the swarm on a random basis. Then evaluate the value of the fitness function for each particle, then iterate and update velocity. Further, update the position. Then, select the best solution (position) by calculating and updating the position and velocity. Finally, check accuracy and stop if the criteria are met.

The fitness function is chosen as the Eulerian square of the difference between the actual angles and calculated angles.

2.3.3 Firefly algorithm

The firefly optimization technique is another algorithm inspired by nature. Yang [3] proposed a method of optimization which mimics the behavior of fireflies. FA is being implemented nowadays to solve some of the most complex problems of mathematics, supply chains, and finance. The method is statistical and uses random variables. Fireflies of a particular type flash lights to attract another butterfly for mating, as potential prey, or other purposes.

The assumption in the fireflies algorithm is as follows: the firefly with lower intensity moves toward the brighter intensity and it decreases with the distance. The calculation of the fitness function is an indicator of the brightness.

The light intensity can be presented as:

I=I0eγr

image

The measure of attractiveness can be written as:

β=β0eγr

image

Movement of the firefly can be expressed as:

xi=xi+β0eγr2(xjxi)+αεi

image

where β0image is the attractiveness when r=0; no of fireflies is 50; light absorption coefficient (γimage) is 0.8; attraction coefficient base value is 0.25; mutation coefficient is 0.2; mutation coefficient damping ratio is 0.997; and uniform mutation range is 0.8.

2.3.4 Proposed algorithm

In this work a new algorithm has been proposed. The new algorithm is explained in the following statements. At the beginning, D-H parameters with boundary conditions are to be defined. Then we have to start with the random solution within the workspace. We also need to define different parameters for the PSO optimization, for example, swarm size, weight, c1, c2, etc. From that calculate the fitness value for the given parameters. We also need to calculate the personal best (pb) and global best solution (gb). Following which, we update the velocity as well as update the current position. Finally, we compare the fitness value with the stopping criteria. If the stopping criteria matches we can exit, otherwise go to the step to calculate the fitness value for the given parameters.

The following parameters were chosen to run the PSO algorithm here in this work.

Population size=50

Inertia weight=2

Inertia weight damping=0.95

Personal Learning Coefficient=2

Global Learning Coefficient=2.

2.4 Results and discussions

The coding was done for PSO and FA in MATLAB [17]. The initial population for the swarm was taken randomly inside the workspace of the robotic system.

The parameters for the two algorithms were taken as per data provided in the earlier sections. The fitness function has been selected as the Euler’s distance between the target position and the latest position of the end effector.

Our aim here was to minimize the error and converge to an optimal solution for each joint position. The related parameters were updated each time and checked for the convergence.

The accuracy for the simulation was selected as 10−4.

The result is shown in the plot [4] generated through the MATLAB coding. From the plot it can be seen that PSO algorithm gives accuracy of over 10−8 comparison in just 40 iterations, whereas the FA gives an accuracy of 10−4 after 110 iterations Fig. 2.4.

image
Figure 2.4 Change in %Error with increasing number of iterations

2.5 Conclusions and future work

In the present work, we have used optimization techniques to find the joint angles of the robot for a 7-DOF robot for end effector position. We started with randomly selecting 100 points in the robotic workspace and ran the simulation in two different optimization algorithms: PSO and FA. After running the simulations, it was found that PSO outperformed FA as PSO took just 40 iterations to achieve the accuracy of 10−8 compared to firefly which took 110 iterations to achieve just 10−4 accuracy.

In future the present work can be extended for even more DOFs and some other newly developed metaheuristic algorithms can be employed to get better solution with even fewer iterations. Some real-time data can help to find the efficacy of the present method. Furthermore, two or more optimization methods can be employed and a hybrid method can be employed to get better accuracy.

References

1. S. Kucuk, Z. Bingul, The inverse kinematics solutions of industrial robot manipulators, in: Proceedings of the IEEE International Conference on Mechatronics, ICM04 (2004) 274–279.

2. Singh TP, Suresh P, Chandan S. Forward and inverse kinematic analysis of robotic manipulators. IRJET. 2017;4(2):1459–1468.

3. X.S. Yang, Nature-Inspired Metaheuristic Algorithms, Luniver Press, (2008).

4. Z. Bingul, H.M. Ertunc, C. Oysu, Comparison of inverse kinematics solutions using neural network for 6R robot manipulator with offset, in: Proceedings of the 2005 ICSC Congress on Computational Intelligence Methods and Applications (2005).

5. D.T. Pham, M. Castellani, A.A. Fahmy, Learning the inverse kinematics of a robot manipulator using the bees algorithm, in: Proceedings of the 6th IEEE International Conference on Industrial Informatics, INDIN 2008 (2008) 493–498.

6. Y. Yang, G. Peng, Y. Wang, H. Zhang, A new solution for inverse kinematics of 7-DOF manipulator based on genetic algorithm, in: Proceedings of the IEEE International Conference on Automation and Logistics (2007) 1947–1951.

7. H. Huang, C. Chen, P. Wang, Particle swarm optimization for solving the inverse kinematics of 7-DOF robotic manipulators, in: Proceedings of the 2012 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Seoul (2012) 3105–3110.

8. S. Dereli, R. Köker, Calculation of the inverse kinematics solution of the 7-DOF redundant robot manipulator by the firefly algorithm and statistical analysis of the results in terms of speed and accuracy, in: Inverse Problems in Science and Engineering, Taylor and Francis, 2019.

9. Ni J, Wu L, Fan X, et al. Bioinspired intelligent algorithm and its applications for mobile robot control: a survey. Comput Intell Neurosci. 2016;2016:1–16.

10. Kucuk S. Energy minimization for 3-RRR fully planar parallel manipulator using particle swarm optimization. Mech Mach Theory. 2013;62:129–149.

11. Savsani PV, Jhala RL. Optimal motion planning for a robot arm by using artificial bee colony(ABC) algorithm. Int J Mod Eng Res (IJMER). 2012;2:4434–4438.

12. Kumar M, Shenbagaraman VM, Ghosh A. Predictive data analysis for energy management of a smart factory leading to sustainability. Book Chapter [ISBN 978-981-15-4691-4] In: Favorskaya MN, Mekhilef S, Pandey RK, Singh N, eds. Innovations in Electrical and Electronic Engineering. Springer 2020;765–773.

13. S. Mandal, S. Biswas, V.E. Balas, R.N. Shaw, A. Ghosh, Motion prediction for autonomous vehicles from lyft dataset using deep learning, in: Proceedings of the 2020 IEEE 5th International Conference on Computing Communication and Automation (ICCCA) 30–31 Oct (2020), 768–773. Available from: https://doi.org/10.1109/ICCCA49541.2020.9250790.

14. Y. Belkhier, A. Achour, R.N. Shaw, Fuzzy passivity-based voltage controller strategy of grid-connected PMSG-based wind renewable energy system, in: Proceedings of the 2020 IEEE 5th International Conference on Computing Communication and Automation (ICCCA), Greater Noida, India (2020) 210–214. Available from: https://doi.org/10.1109/ICCCA49541.2020.9250838.

15. S. Mandal, V.E. Balas, R.N. Shaw, A. Ghosh, Prediction analysis of idiopathic pulmonary fibrosis progression from OSIC dataset, in: Proceedings of the Communication Technologies (GUCON), 2–4 Oct. (2020) 861–865. Available from: https://doi.org/10.1109/GUCON48875.2020.9231239.

16. J. Kennedy, R.C. Eberhart, Particle swarm optimization, in: Proceedings of IEEE International Conference on Neural Networks, November (1995) 1942–1948.

17. www.mathworks.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.184.117