Granthaalayah
TIME-OPTIMAL PATH PLANNING MODEL USING GENETIC ALGORITHM IN RRR ROBOT

TIME-OPTIMAL PATH PLANNING MODEL USING GENETIC ALGORITHM IN RRR ROBOT


Ortaköy Vocational School, Aksaray University, Turrkey
Department of Computer Engineering, Konya Food and Agriculture University, Turkey
Aksaray University, Department of Electrical and Electronics Engineering, Turkey

How to cite this article (APA): Demir, H, Tolun, MR, & Sari, F (2021). Time-optimal path planning model using genetic algorithm in rrr robot. International Journal of Engineering Technologies and Management Research, 8(5), 9. doi: 10.29121/ijetmr.v8.i5.2021.938

Abstract

The mathematical expression of the kinematic equations of each joint is utilized for the path planning using a quantic polynomial in joint space. In this study, a time optimization model for path planning using genetic algorithms with a variety of crossover fraction and mutation rates is investigated. The optimization process is performed with MATLAB. Optimization using boundary conditions is performed with MATLAB. The result of the simulation, smooth speed graphs, angular position graphs, and the time when joint movements will complete the orbit as soon as possible are obtained. As a result of this study, a path planning model that can be applied to any robot is developed in joint space based on time optimization and can be used to shorten the task time, especially in task-based robots.

Keywords

Path Planning, Genetic Algorithm, Time Optimization

INTRODUCTION

Trajectory planning is an important research topic in robot applications, and many research papers are published on this subject (Duque, Prieto, & Hoyos, 2017), (Markus, Agee, & Jimoh, 2013), (Ragaglia, Zanchettin, & Rocco, 2018). Robot trajectory planning means that the end-effector passing through specific points reaches the target point from the starting point. Each joint angle varies depending on the time in trajectory planning. The primary purpose of trajectory planning is to automatically create a collision-free trajectory for the robot by making a motion plan in an environment with obstacles. Trajectory planning can be done in Cartesian space or in Joint space. Trajectory planning in joint space is more straightforward than in Cartesian space. To make trajectory planning in joint space, the points given in Cartesian space must be found in the joint space using inverse kinematics. Robot trajectory planning research analyzes the velocity and acceleration of each joint. The mechanical properties of the robots determine the limits of the velocity and acceleration of the joints. For this reason, research is done on improving trajectory planning (Haiek, Aboulissane, Bakkali, & Bahaoui, 2019), (Jin, Kang, Zhang, & Yang, 2016), (Tan & Hu, 2002), (Zhang, Meng, Feng, & Shen, 2018).

The purpose of the methods generally used in trajectory planning is to avoid complex geometric processes (Abu-Dakka, Rubio, Valero, & Mata, 2013), (Machmudah, Parman, Zainuddin, & Chacko, 2013), (Mineo, Pierce, Nicholson, & Cooper, 2016), to reduce the processing time, to make the shortest trajectory planning (Cao, Jiang, & Yue, 2017), (Chen, Fang, Sun, & Qian, 2015), (Gasparetto & Zanotto, 2010), (Gu, Cai, Hu, Zhang, & Chen, 2019), (Kim & Kim, 2011), (Ko, Ryuh, Kim, Suprem, & Mahalik, 2015), (Xu, Xie, Zhuang, & Wang, 2010), and to optimize using different algorithms (Garrido, Yu, & Li, 2016), (Lara-Molina, Koroishi, & Dumur, 2015), (Švejda & Čechura, 0411). The most researched subject among these topics is to improve trajectory planning parameters using optimization techniques. The studies conducted in trajectory planning are mostly done in joint space because it is intuitive and straightforward. In addition, trajectory planning is carried out using polynomial interpolation algorithms in the joint space because these algorithms are not problematic for computing (Cao et al., 2017). The movements of the robot must be smooth and continuous without vibration. For this reason, the B-spline curve is generally used in interpolation methods, and optimum processing time and angular displacement, velocity, and acceleration graphs for each joint are found in trajectory planning studies (Gasparetto et al., 2010).

In this study, a trajectory planning model is created for the RRR robot arm based on time optimization. Since the first three joints affect Cartesian space's position, the robot arm in the RRR structure was preferred. Trajectory planning is done with quintic interpolation in the joint space, and time optimization is performed for each joint using a genetic algorithm. Attention has been paid to make the movements of the joints smooth and continuous.

MATERIALS AND METHODS

Today, robots with six degrees of freedom (DOF) illustrated in Figure 1 are used in the industry because of their speed and flexibility. Mathematical models of robot arms contain highly nonlinear equations. The most common method for controlling robots is by looking at the look-up tables (Deshpande & George, 2014). The robot arms consist of interconnected links. Connections consist of revolute or prismatic joints. The relationship between the joints is defined by 4x4 transformation matrices. By multiplying these matrices, the matrix containing the final orientation and position obtained, and this process is called forward kinematics (Craig, 2004). Forward kinematic equations are simple and do not have complex equations (Schilling, 1990). It is passed from Cartesian space to joint space with the forward kinematic, while the inverse kinematic provides the transition from the joint space to the Cartesian space. The solution for going from point A to point B in Cartesian space is found with inverse kinematics. There are two methods for solving inverse kinematics which is the numerical solution and the closed-form. The closed-form is more preferred because it runs faster (Küçük, Kocaeli, & Bingül, 2004). There is only one general method to solve robot kinematics which is Denativ-Hartenberg (D-H) (Huang, Wang, Liu, & Cui, 2012), (Li, Cao, Guo, & Huang, 2015), (Redondo & LeSar, 2004).

The last three joints that make up the wrist structure are identical, but the first three joints that affect the position are different in industrial robots. The first three joints' joint properties are essential to classify the robots according to DOF (Bingül & Küçük, 2009). The first three joints determine the robot's position in Cartesian space, while the last three joints (Euler's wrist) define the robot's orientation, and the Euler's wrist is illustrated in Figure 2 .

https://www.granthaalayahpublication.org/journals-html-galley/html-images/c127ddcb-4d62-494f-8751-43eaf6872e10image1.png
Figure 1: 6-DOF industrial robot arm (Hasan, 2010)

The D-H table of the Euler's wrist is given in Table 1 , and the D-H parameters are the same for industrial robots.

https://www.granthaalayahpublication.org/journals-html-galley/html-images/c127ddcb-4d62-494f-8751-43eaf6872e10image2.png
Figure 2: Euler wrist (Hasan, 2010)
Table 1: The D-H table of the Euler wrist (Bingül et al., 2009)

i

αi-1

a i-1

d i

θ i

1

0

0

0

θ 4

2

90

0

0

θ 5

3

-90

0

0

θ 6

In this study, three rotary joints are used in the robot configuration. This configuration is the basis of most industrial robots because they have a vast working space, and they are very flexible and fast. But their kinematic equations have very complicated. The robot configuration and the coordinate frames which are shown in Figure 3 has the three-rotary joint.

https://typeset-prod-media-server.s3.amazonaws.com/article_uploads/c40d7f75-9d35-45bd-b2c9-3c633d2552d7/image/2ec9de3f-8dd3-4246-b0b0-0cf36e4cacca-uimage.png
Figure 3: a) Therobot configuration, b) The coordinate frames

D-H method uses four main variables, which are the bond length between two axes ( a i - 1 ), the bond angle between axes (i-1) and i ( α i - 1 ), the joint misalignment between overlapping bonds ( d i ), and the joint angle between two bonds ( θ i ). The D-H variables for our design are shown in Table 2 .

Table 2: D-H variables for the robot

Number of axes

D-H variables

Joint variables

i

α i - 1

a i - 1

d i

θ i

d i  or  θ i

1

0

0

D1

θ 1

θ 1

2

-90

0

L1

θ 2

θ 2

3

0

L2

0

θ 3

θ 3

4

0

L3

0

0

0

The transformation matrix of a joint is obtained by using Equation 1 .

T i - 1 i = c θ i - s θ i 0 a i - 1 s θ i c α i - 1 c θ i c α i - 1 - s α i - 1 - s α i - 1 d i s θ i s α i - 1 c θ i s α i - 1 c α i - 1 c α i - 1 d i 0 0 0 1

The transformation matrices for each joint are given by:

0 T 1 = c 1 - s 1 0 0 s 1 c 1 0 0 0 0 1 d 1 0 0 0 1
1 T 2 = c 2 - s 2 0 0 0 0 1 l 1 - s 2 - c 2 0 0 0 0 0 1
2 T 3 = c 3 - s 3 0 l 2 s 3 c 3 0 0 0 0 1 0 0 0 0 1
3 T 4 = 1 0 0 l 3 0 1 0 0 0 0 1 0 0 0 0 1

The forward kinematic matrix is obtained by multiplying the transformation matrices.

T 4 0 = T 1 0 T 2 1 T 3 2 T 4 3 T 4 0 = r 11 r 12 r 13 p x r 21 r 22 r 23 p y r 31 r 32 r 33 p z 0 0 0 1

The analytical solution approach is used for inverse kinematic solution. In this solution, rij is the rotation, and px, py, pz is the position specifying elements.

The forward kinematic matrix is written in Equation 6 as symbolically. Both sides of the equation are multiplied by T 1 0 - 1 .

T 4 0 T 1 0 - 1 = T 1 0 - 1 T 1 0 T 2 1 T 3 2 T 4 3 T 4 0 T 1 0 - 1 = T 2 1 T 3 2 T 4 3

When Equation 7 is solved, the joint variables are found.

θ 1 = A t a n 2 ( - p x , p y ) + A t a n 2 ( p x 2 + p y 2 - l 1 2 , l 1 )
θ 3 = A t a n 2 ( 1 - p x 2 + p y 2 + ( p z - d 1 ) 2 - l 3 2 - l 2 2 2 l 3 l 2 2 , p x 2 + p y 2 + ( p z - d 1 ) 2 - l 3 2 - l 2 2 2 l 3 l 2 )
θ 2 = A t a n 2 ( - l 3 c o s ( θ 3 ) - l 2 , - l 3 s i n ( θ 3 ) )                             . . . A t a n 2 ( l 3 2 + l 2 2 + 2 l 3 l 2 c o s ( θ 3 ) - ( p z - d 1 ) 2 , p z - d 1 )

TRAJECTORY PLANNING

The trajectory planning is performed with three or higher-order polynomials in joint space. The inverse kinematic solution gives the initial and target positions of the end effector. A quantic (5-degree) polynomial is needed to obtain smoothing the path curve, shown in Equation 11 (Tan et al., 2002).

θ ( t ) = s 0 + s 1 t + s 2 t 2 + s 3 t 3 + s 4 t 4 + s 5 t 5

At the start and endpoint, the velocity, acceleration, and displacement limits are given by:

θ ( 0 ) = θ 0 θ ( f ) = θ f
θ ' ( 0 ) = θ 0 ' θ ' ( f ) = θ f '
θ ( 0 ) = θ 0 θ ( f ) = θ f

The velocity polynomial is obtained from the derivation of Equation 11. It is possible to find the acceleration equation by taking the derivation of the velocity polynomial. The coefficients of the angular position equation can be determined by:

s 0 = θ 0
s 1 = θ 0 '
s 5 = 12 ( θ f - θ 0 ) - 6 ( θ f ' + θ 0 ' ) t f - ( θ 0 - θ f ) t f 2 2 t f 5
s 2 = θ 0 2
s 3 = 20 ( θ f - θ 0 ) - ( 8 θ f ' + 12 θ 0 ' ) t f - ( θ f - 3 θ 0 ) t f 2 2 t f 3
s 4 = 30 ( θ f - θ 0 ) - ( 14 θ f ' + 16 θ 0 ' ) t f + ( 3 θ 0 - 2 θ f ) t f 2 2 t f 4

SIMULATION USING GENETIC ALGORITHMS

The technical characteristics of the electric motors used in the joints directly affect the path planning. Genetic algorithms are used for optimal path planning using the limits of electric motors.

Each robot arm reaches its target point by passing through n points. Therefore, the motion of each joint should be examined separately. If one of the joints completes its motion in ti time, the total motion time is expressed in Equation 16.

T = t i

The evolutionary Genetic Algorithm (G.A.) has been used to optimize the motion time. The objective function used in experimental studies to complete a certain movement as soon as possible is given in Equation 17.

Objective Function:  T = t i

hows the constraint conditions of the objective function. The constraint conditions determine the technical characteristics of the servo motors used in the joints.

Table 3: The constraint conditions

Joint

Velocity  θ ' ( t )

Acceleration  θ ( t )

1

300 θ ( t ) 600

50 θ ( t ) 200

2

300 θ ( t ) 600

50 θ ( t ) 200

3

400 θ ( t ) 750

40 θ ( t ) 300

In the optimization, selection mechanisms have determined scholastic uniformly. The population size is chosen as 200. Optimization was performed at different mutation rates and crossover fractions to achieve the best objective function. The crossover fraction is selected as 0.2, 0.5, and 0.8. Mutation rates are chosen as 0.01 and 0.02.P0 (X0 = 155.28, Y0 = 0, Z0 = 164.14) to P1 (X1 = 135.65, Y1 = 23.92, Z1 = 99.12)[HD1] In the simulation, the robot arm was moved from

Table 4: The result of optimizations with different mutation rates and different crossover fractions.

Crossover Fraction

Mutation Rate of the First Joint

Mutation Rate of the Second Joint

Mutation Rate of the Third Joint

0.01

0.02

0.01

0.02

0.01

0.02

0.2

4.24358 sec

4.24654 sec

5.21699 sec

5.20255 sec

4.90852 sec

4.92415 sec

0.5

4.2516 sec

4.28907 sec

5.27448 sec

5.19656 sec

4.94927 sec

4.94372 sec

0.8

4.24369 sec

4.28733 sec

5.20639 sec

5.19776 sec

4.91203 sec

4.94527 sec

Considering that the joints move sequentially, the robot completes the arm movement in 14.346 seconds. This period is sufficient for the robot to perform its movement smoothly as it is calculated as the shortest time in tests.

CONCLUSIONS

In this study, the path planning for a specific movement in the joint space of a robot with RRR joint structure is considered. Since the first three joints in 6 joint industrial robots determine the position in Cartesian space, the robot structure in this study consists of three joints. The quintic path polynomial is created for the specified motion. Time optimization is realized with G.A. The constraint conditions used in optimization were velocity and acceleration, and the movements are provided to be smooth. The best objective function is found by diversifying the optimization parameters. In reference (Zhang et al., 2018), the path planning method in joint space is defined using genetic algorithms for PUMA 560 robot model. Optimization studies were made for a robot model. In this study, a time optimization model is developed using G.A. for industrial robot arms. The shortest working time of each joint is found for the specified movement. The time optimization model developed can reduce task time for robot structures designed to work fast, such as delta robots. The algorithm developed can be used to increase product output by shortening the task times of task-based robots.

Creative Commons Licence This work is licensed under a: Creative Commons Attribution 4.0 International License

© Granthaalayah 2014-2021. All Rights Reserved.