1 Introduction

Compared with serial robots, parallel industrial robots have a series of advantages, such as compact structure, high stiffness, fast pickup and placing operation, high repetitive positioning accuracy, strong load-bearing capacity, etc. [1, 2]. Therefore, under the application of high-speed and high-precision, it must be widely concerned. Now it is widely used in the assembly line of food packaging, food packaging, and electronic products grabbing, which implement mass quantities, repeatability, fast grabbing, sorting, assembly and other operations. The researches show that the trajectory and motion law of the robot end effector in motion process will affect the dynamic accuracy, running time, energy consumption and life of the mechanism, therefore effective trajectory planning is very important. Common motion laws include polynomial function [3, 4], B-spline curve [3,4,5], Bezier curve [6,7,8], etc. Polynomial interpolation function is often used in robot trajectory planning because of its simple calculation. The piecewise polynomials with successive angular displacement, angular velocity and angular acceleration and the minimum degree polynomial are combined into cubic spline interpolation. The trajectory planning of Delta robot mainly carries out point-to-point pickup and placing operation (PPO). The trajectory planning of Delta robot should have reasonable obstacle avoidance height. Generally, it is a “gate” trajectory. The main interpolation methods of “gate” trajectory are 3–3-3 interpolation and 3–5-3 polynomial. Formula interpolation and 4–3-4 polynomial interpolation are studied in [9, 10]. In consideration of the amount of interpolation calculation and the instability caused by high-speed polynomial interpolation, in this paper, the key points are added and the motion rules are interpolated by 4–3–3-4 degree polynomials to establish the mapping relationship between the motion features in operation space and those in joint space. On the premise of guaranteeing smoothness and constraints of angular displacement, angular velocity, angular acceleration smoothness and each joint and improving the motion speed of the robot, a particle swarm optimization algorithm for time optimal trajectory planning is proposed. Simulation results show that the algorithm is well applied in the time optimal trajectory planning of robots, and the search accuracy is significantly improved, which shows the effectiveness of the model and algorithm.

2 Kinematics analysis of parallel robot

The Delta parallel robot studied in this paper is composed of fixed platform, three active arms, three parallel quadrilateral driven arms, mobile platform and other basic parts. Three closed chains (O-Ai-Ci-Bi-P-O) are composed through rotary pair connections between the parts. The active arm receives the rotating input of three servo motors at the same time and generates end-mobile platform of robot along x axis, y axis and z axis. The base and the active arm are connected by rotating pairs, the active arm and the driven arm are connected by spherical hinges, and the driven arm and the mobile platform are also connected by spherical hinges [11].

The structure sketch of Delta parallel robot is depicted in Fig. 1. A1A2A3 is a fixed platform, B1B2B3 is a mobile platform, Ai is a rotating joint, Bi and Ci are spherical joints, AiCi is an active arm and CiBi is a driven arm, i = 1, 2, 3. O is the center of the fixed platform and P is the center of the mobile platform. R is the outer circle radius of the fixed platform, and r is the outer circle radius of the mobile platform. Both A1A2A3 and B1B2B3 are regular triangles.

Fig. 1
figure 1

Mechanism sketch of three-degree-of-freedom Delta robot

2.1 Establishing coordinate system

Delta robot coordinate system is established as depicted in Fig. 2. the sketch of three-dimensional coordinate system is on the left side of Fig. 2, and the analysis and modeling of a single connecting rod on the XOZ plane is on the right side of Fig. 2.The mechanism parameters of the Delta robot system are as follows: the distance between the center point of the active arm and the center point of the coordinate system is R (205 mm), the length of the active arm is L1 (400 mm), the length of the driven arm is L2 (1000 mm), the distance between the center point of the mobile platform and the center point of the driven arm is r (50 mm), the angle between the active arm and the X axis is θ, and\( {L}_2^{\hbox{'}} \)is the projection of the driven arm on the cross section of the arm, and it is perpendicular to y of the mobile platform at the end.

Fig. 2
figure 2

Establishment of Delta Robot Coordinate System

2.2 Inverse kinematics analysis

As can be seen from Fig. 2, the geometric modeling can be solved by using the end position of parallel mechanism. For driven arm L2 can be expressed as:

$$ {d}_1^2+{d}_2^2={L}_2^2 $$
(1)

At the same time, L2is projected to \( {L}_2^{\hbox{'}} \) on the cross section of the active arm to form a right triangle, L2 can be expressed on the Y axis of the coordinate system as follow:

$$ {L}_2^{\hbox{'}}+{y}^2={L}_2^2 $$
(2)

The geometric relation can be expressed on the X-axis direction as follow:

$$ \left| OA\right|+{L}_1\cos \left({\theta}_1\right)=-x+\left| DC\right|+{d}_1 $$
(3)

From formula (1) to (3), d1d1 can be calculated as follow:

$$ {d}_1=T+{L}_1\cos \left({\theta}_1\right) $$
(4)

Here, T = |OA| + x − |DC|.

On the Z-axis direction of the coordinate system, there is the geometric relation as follow:

$$ {d}_2=z+{L}_1\sin \left({\theta}_1\right) $$
(5)

Formulas (2), (4) and (5) are introduced into Formula (1) which is simplified as follow:

$$ 2{TL}_1\cos \left({\theta}_1\right)+2{zL}_1\sin \left({\theta}_1\right)=K $$
(6)

Here, \( K={L}_1^2-{L}_2^2-{x}_0^2-{z}^2-{T}^2 \).

By using the property formula of triangular identity expressed as Formula (7), the Formula (6) is solved and an independent variable t is constructed, the quadratic equation of t is expressed in Formula (8).

$$ \left\{\begin{array}{c}\cos \left({\theta}_1\right)=\frac{1-{t}^2}{1+{t}^2}\\ {}\sin \left({\theta}_1\right)=\frac{2t}{1+{t}^2}\\ {}t=\tan \left(\frac{\theta_1}{2}\right)\end{array}\right. $$
(7)
$$ {e}_1{t}^2+{e}_2t+{e}_3=0 $$
(8)

Here, e1 = 2T1L + K,e2 =  − 4zL1,e3 =  − 2T1L + K.

By solving the quadratic equation of Formula (8), the expression of θ1 can be obtained as follow:

$$ {\theta}_1=2\arctan \left(\frac{-{e}_2\pm \sqrt{e_2^2-4{e}_1{e}_3}}{2{e}_1}\right) $$
(9)

In the Formula (9), the joint angle of the first active arm can be obtained asθ1 = f(x, y, z).

According to the above formulas, when the position coordinates of the moving platform are given, the angles of the three active arms can be obtained. Since each equation has two solutions, consequently, there are eight sets of inverse solutions. Delta robot will be limited by the motion angle in the process of running, so not all solutions meet the requirements. The value in’ ± 'is chosen according to the actual situation, that is, the final inverse solution.

3 Trajectory planning

The trajectory planning of parallel robots should include the following contents: (1) describing the robot’s motion path and joint space trajectory according to the task; (2) calculating the trajectory parameters of three joints in the process of rotation in real time; (3) acquiring the real-time values of the position, angular velocity and angular acceleration of the robot’s joints.

3.1 Description of the operating space path

In the fields of grasping and sorting, Delta Robot mainly performs point-to-point picking and placing (PPO). Gate-shaped trajectory is often used in pickup and placing operations, which includes pickup part, handling part and placing part. As shown in Fig. 3, a complete set of tasks of the mobile platform of the robot is carried out through two processes, namely, going (grab) and backing (place). In each grapping movement process, the robot manipulator act the ascending segment h0 ~ h1, the horizontal segment h1 ~ h2, and the descending segments h2 ~ h3 in turn; in each placing movement process, the robot manipulator act the ascending segment h3 ~ h2, the horizontal segment h2 ~ h1, and the descending segments h1 ~ h0 in turn. From Fig. 3, it can be seen that on the one hand, a sudden change in the direction of motion at the corner can easily result in jerk of the robot manipulator and affect the accuracy; on the other hand, it also affects the working speed of the robot. Therefore, the arc transition should be set between point h1 and point h2, the corresponding trajectory is depicted in red dot line in Fig. 3.

Fig. 3
figure 3

Trajectory of end of the robot manipulator

3.2 Piecewise polynomial interpolation in joint space

In trajectory planning, the joint displacement curve can be expressed by polynomial spline function, the first derivative of polynomial spline function curve represents angular velocity curve, and the second derivative represents angular acceleration curve. Firstly, this paper uses 4–3-4 interpolation spline to solve the arc transition should be set between point h1 and point h2. According to the parameters of joint operation space of Delta robot, in Cartesian coordinate system, the starting point h0 (−400, −300,750)mm and the terminal point h3 (200,200,750)mm of the space coordinates are set up, and then two interpolation points, h1 (−400,-300,800) and h2 (200,200,800)mm are respectively obtained. Through resolving inverse kinematics equation Corresponding joint angel, corresponding joint angles are respectively obtained as:βj0(45.79, 17.36, −35.15), βj1(49.48, 23.06, −26.16),βj2(−17.48, −4.79, 27.27) and βj3(−26.5, −12.75, 22.34). The simulation is conducted to obtain space trajectory of 4–3-4 interpolation spline as shown in Fig. 4. It is obvious that only two key point h1 and h2 are added between picking point h0 and grabbing point h3 so that the trajectory of the handling section is uncontrollable especially the height of obstacle avoidance is up to 930 mm, as well as running time cannot be optimal. In line with the principle of reducing energy consumption and optimal running time, one key point h4 (−100,-50,850)mm is added as shown in Fig. 5.the entire trajectory is divided 4 segments. Setting t1, t2, t3 and t4 corresponds to the segment h0~h1, the segment h1~h4, the segment h4~h2 and the segment h2~h3, respectively. Therefore, this paper proposes 4–3–3-4 degree polynomial to carry out interpolation of these four segments, which can be expressed with Formula (10).

Fig. 4
figure 4

Space trajectory of 4–3-4 interpolation spline

Fig. 5
figure 5

Trajectory of end of the robot manipulator after inserting one key point

$$ \left\{\begin{array}{l}{h}_{j1}\left(\mathrm{t}\right)={a}_{j14}{t}_1^4+{a}_{j13}{t}_1^3+{a}_{j12}{t}_1^2+{a}_{j11}{t}_1^1+{a}_{j10}\\ {}{h}_{j2}\left(\mathrm{t}\right)={a}_{j23}{t}_2^3+{a}_{j22}{t}_2^2+{a}_{j21}{t}_2^1+{a}_{j20}\\ {}{h}_{j3}\left(\mathrm{t}\right)={a}_{j33}{t}_3^3+{a}_{j32}{t}_3^2+{a}_{j31}{t}_2^1+{a}_{j30}\\ {}{h}_{j4}\left(\mathrm{t}\right)={a}_{j44}{t}_4^4+{a}_{j43}{t}_4^3+{a}_{j42}{t}_4^2+{a}_{j41}{t}_4^1+{a}_{j40}\end{array}\right. $$
(10)

Here, the coefficients, aj1i, aj2i, aj3i, aj4i are the ith coefficients of the spline interpolation functions of the first, second, third and fourth segments of the jth joint trajectory, HJ0 (t) is the starting point of the object grabbing, hj1(t), hj2(t) and hj3(t) is the key point of the path, and hj4(t) is the placement point of the object.

According to the zero velocity and acceleration of the starting and terminal points, and the continuity of velocity and acceleration of the intermediate points, the constraints can be obtained through Formula (11).

$$ \left\{\begin{array}{l}{h}_{j1}(0)={\beta}_{j0}\kern0.5em {\dot{h}}_{j1}(0)=0\kern0.5em {\ddot{h}}_{j1}(0)=0\\ {}{h}_{j2}(0)={h}_{j1}\left({t}_1\right)={\beta}_{j1}\begin{array}{cc}& \end{array}{\dot{h}}_{j2}(0)={\dot{h}}_{j1}\left({t}_1\right)\begin{array}{cc}& \end{array}{\ddot{h}}_{j2}(0)={\ddot{h}}_{j1}\left({t}_1\right)\\ {}{h}_{j3}(0)={h}_{j2}\left({t}_2\right)={\beta}_{j2}\begin{array}{cc}& \end{array}{\dot{h}}_{j3}(0)={\dot{h}}_{j2}\left({t}_2\right)\begin{array}{cc}& \end{array}{\ddot{h}}_{j3}(0)={\ddot{h}}_{j2}\left({t}_2\right)\\ {}{h}_{j3}(0)={\ddot{h}}_{j2}\left({t}_3\right)={\beta}_{j3}\begin{array}{cc}& \end{array}{\dot{h}}_{j3}(0)={\dot{h}}_{j2}\left({t}_3\right)\begin{array}{cc}& \end{array}{\ddot{h}}_{j3}(0)={\ddot{h}}_{j2}\left({t}_3\right)\\ {}{h}_{j4}\left({t}_4\right)={\beta}_{j4}\begin{array}{cc}& \end{array}{\dot{h}}_{j4}\left({t}_4\right)=0\begin{array}{cc}& \end{array}{\ddot{h}}_{j4}\left({t}_4\right)=0\end{array}\right. $$
(11)

Matrix expression A and b of 4–3–3-4 polynomials can be constructed by deducing Formulas 10 and 11.

$$ A=\left[\begin{array}{cccccccccccccccccc}{t}_1^4& {t}_1^3& {t}_1^2& {t}_1& 1& 0& 0& 0& -1& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}4{t}_1^3& 3{t}_1^2& 2{t}_1& 1& 0& 0& 0& -1& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}12{t}_1^2& 6{t}_1& 2& 0& 0& 0& -2& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& {t}_2^3& {t}_2^2& {t}_2& 1& 0& 0& 0& -1& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& 3{t}_2^2& 2{t}_2& 1& 0& 0& 0& -1& 0& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& 6{t}_2& 2& 0& 0& 0& -2& 0& 0& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& {t}_3^3& {t}_3^2& {t}_3& 1& 0& 0& 0& 0& -1\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 3{t}_3^2& 2{t}_3& 1& 0& 0& 0& 0& -1& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 6{t}_3& 2& 0& 0& 0& 0& -2& 0& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& {t}_4^4& {t}_4^3& {t}_4^2& {t}_4& 1\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 4{t}_4^3& 3{t}_4^2& 2{t}_4& 1& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 12{t}_4^2& 6{t}_4& 2& 0& 0\\ {}0& 0& 0& 0& 1& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}0& 0& 0& 1& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}0& 0& 1& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 1\\ {}0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 0& 1& 0& 0& 0& 0& 0\\ {}0& 0& 0& 0& 0& 0& 0& 0& 1& 0& 0& 0& 0& 0& 0& 0& 0& 0\end{array}\right] $$
(12)
$$ b={\left[\begin{array}{cccc}0& 0& 0& 0\end{array}\kern0.5em 0\kern0.5em 0\kern0.5em 0\kern0.5em 0\kern0.5em 0\kern0.5em {\beta}_{j4}\kern0.5em 0\kern0.5em 0\kern0.5em {\beta}_{j0}\kern0.5em 0\kern0.5em \begin{array}{cc}0& {\beta}_{j3}\end{array}\kern0.5em {\beta}_{j2}\kern0.5em {\beta}_{j1}\right]}^T $$
(13)

βj0,βj1,βj2,βj3 and βj4 respectively corresponding to the rotation angle of jth joint at starting point, two middle key points and placement point,which can be obtained by inverse kinematics equation,respectively.

Coefficients of Formula (10) can be obtained through Formulas (12) and (13).

$$ a={A}^{-1}b $$
(14)

Set t1 = 0.5 s, t2 = 0.5 s, t3 = 0.5 s, t4 = 0.5 s, the total time is 2 s. Modeling 4–3–3-4 degree polynomial interpolation in Matlab, Angular displacement curve, angular velocity curve and angular acceleration curve are shown in Figs. 6, Fig. 7 and Fig. 8, respectively. Comparison between space trajectory of 4–3-4 degree polynomial interpolation and space trajectory 4–3–3-4 degree polynomial interpolation is shown in Fig. 9. It is obvious that 4–3–3-4 degree polynomial interpolation can well control space trajectory and height of obstacle avoidance.

Fig. 6
figure 6

Angular displacement of 4–3–3-4 degree polynomial interpolation

Fig. 7
figure 7

Velocity of 4–3–3-4 degree polynomial interpolation

Fig. 8
figure 8

Acceleration of 4–3–3-4 degree polynomial interpolation

Fig. 9
figure 9

Space trajectory comparison

4 An improved particle swarm optimization trajectory

In order to carry out the time optimal trajectory planning of Delta robot, this paper proposes an improved particle swarm to optimize space trajectory 4–3–3-4 degree polynomial interpolation, particle parameters need be optimized to derive the optimal solution of each particle, so as to obtain the optimal solution of the optimization process. In the case of space trajectory 4–3–3-4 degree polynomial interpolation, the running time of Delta robot three joints passing through each interval is t1, t2, t3 and t4, respectively. Formula (15) shows that θ(t) is a function of time particle parameters:

$$ \theta (t)=\min \left(t1+t2+t3+t4\right) $$
(15)
$$ \left\{\begin{array}{l}\max \left|{\dot{\theta}}_{j1},{\dot{\theta}}_{j2},{\dot{\theta}}_{j3,}{\dot{\theta}}_{j4}\right|\le {v}_{\mathrm{max}}\\ {}\max \left|{\ddot{\theta}}_{j1},{\ddot{\theta}}_{j2},{\ddot{\theta}}_{j3,}{\ddot{\theta}}_{j4}\right|\le {a}_{\mathrm{max}}\end{array}\right. $$
(16)

Velocity and acceleration constraints are provided by Formula (16), j = 1, 2, 3 that respectively indicate three joints of Delta robot.

The fitness of each group of time particle parameters can be calculated by the time particle parameter function in Formula (15). The local and global optimal solutions of time particle parameters need to be calculated and compared by Formulas (7) ~ (21) and (15):

$$ {V}_{id}={wV}_{id}+{c}_1{r}_1\left({P}_{id}-{X}_{id}\right)+{c}_2{r}_2\left({P}_{gd}-{X}_{id}\right) $$
(17)
$$ {X}_{id}={X}_{id}+\alpha {V}_{id} $$
(18)
$$ w={w}_{\mathrm{max}}-\left({w}_{\mathrm{max}}-{w}_{\mathrm{min}}\right)\left(\frac{n}{N}\right) $$
(19)
$$ {c}_1=2{\sin}^2\left[\frac{\pi }{2}\left(1-\frac{1}{N}\right)\right] $$
(20)
$$ {c}_2=2{\sin}^2\left[\frac{\pi n}{2N}\right] $$
(21)

In Formulas (17) and (18), i = 1, 2, 3,…indicates the number of particles, d = 1, 2, 3 indicates the number of dimensions;windicates the inertia weight whose the range of values is non-negative which can be obtained in Formula (19), wmax is maximum inertia weight,wmin is minimum inertia weight, n is current iteration times of run, N is total iteration times. The larger w has better global convergence ability, while the smaller w has stronger local convergence ability. Therefore, as the number of iterations increases, the inertia weight w should be reduced continuously, so that the PSO algorithm has a strong global convergence ability in the initial stage, and a strong local convergence ability in the late stage. c1 and c2 are the acceleration constant whose the range of values is non-negative, they can be calculated by using Formulas (20) and (21);r1 and r2are random numbers in the range of 0 ~ 1; And αis the constraint factor that is used to control the weight of speed.

In this algorithm, dynamic change learning factor is used, and the learning factor is determined by using formula (20) and formula (21). The global learning factor decreases with the increase of search times, while the local learning factor increases with the increase of search times. The dynamic change learning factor makes the search reach global optimum quickly in the early stage and local optimum quickly in the later stage, which improves the search efficiency and the result shows that the local optimum solution is insufficient.

Detailed steps for the time trajectory planning of the jth joint of Delta robot optimized by PSO are as follows:

Step 1. Set ‘popsize’ as the size of the population that usually is 20. In the 3-dimensional search space of interpolation time, ‘popsize’ particles are randomly generated to form the initial population, and the position and velocity of the particles are initialized.

Step 2. The unknown coefficients of 4–3–3-4 degree polynomials are obtained by ‘popsize’ dimensional t1, t2, t3 and t4 substituted into Formulas (11) ~(14).

Step 3. By introducing coefficients of 4–3–3-4 degree polynomials into Formula (10) and deriving the time, the joint angular velocity can be obtained and the real-time velocity and acceleration can be judged to satisfy Formula (16).

Step 4. Calculate the fitness of each particle. The results of step 3 are screened. If the real-time velocity and acceleration of any segment in the four segments does not meet the Formula (16), the fitness value of the particle is set to a great constant. When searching for the optimal particle, the particle with larger fitness value will be excluded and not screened as the optimal particle by comparing the fitness values. And the particle itself will gradually move closer to the optimal value until it meets the velocity constraints of Formula (16). If the real-time maximum velocity and acceleration of the four segments is in accordance with the Formula (16), then the fitness function is formulated as Formula (15), and the objective of particle swarm optimization iteration is to obtain the minimum interpolation time.

Step 5. For each particle, its fitness value is compared with the fitness value of the best position Pid it has experienced. If it is better, it is replaced by the current best positionPid.

Step 6. Comparing the fitness value of the best position of each particle at present, the best overall particle at present is selected, and then compared with the best global position Pgd experienced by the population. If Pid is better, it replacesPgd.

Step 7. According to Formulas (17) and (18), the velocity and position of particles are changed, and a new population is reconstituted by the number of ‘popsize’ particles, and Steps 2,3 and 4 are repeated.

Step 8. If the termination condition is satisfied (usually a sufficiently good fitness value or a preset maximum number of iterations), the algorithm ends, otherwise step 2 is returned.

5 Modeling and simulation for Delta robot

The model of three-degree-of-freedom high-speed parallel manipulator of Delta robot is established by programming, the range of each arm joint variable is determined according to the manipulator structure, as summarized in Table 1.

Table 1 Range of rotation angle of joint

According to assumed starting point h0, terminal point h3 and three key points h1, h2, and h4 in section .32, corresponding rotation angle of three joints can be obtained by solving inverse kinematics equations, they are summarized in Table 2.

Table 2 Optimization results

In this paper, popsize of 20 is set up; the maximum velocity of a particle is in range of [−2, 2]. The iteration times N is set up 200. The range of t1, t2, t3 and t4 corresponding to each segment of space trajectory 4–3–3-4 degree polynomial interpolation are set up from [0.01 s, 0.01 s, 0.01 s, 0.01 s] to [0.1 s, 0.1 s, 0.1 s, 0.1 s], [0.1 s, 0.1 s, 0.1 s, 0.1 s] as upper limit of t1, t2, t3 and t4 is assumed smaller values, as well as is verified by manual testing, which is reasonable under the constraints of maximum velocity and maximum acceleration. And then one least set t1, t2, t3 and t4 is searched through the improved PSO. Because the coefficients of degree polynomial interpolation are determined by time (particles), the angular velocity changes with each particle renewal in the process of particle swarm optimization, which result in that the combination of time optimum is not unique. Consequently, 5 optimizations in Table 3 are selected out as optimal trajectory planning time after a certain number of optimization operations have been conducted. Figure 10 depict iteration curve of fitness of one optimum time set (t1 = 0.05 s, t2 = 0.0873 s, t3 = 0.075 s, t4 = 0.05 s).

Table 3 Optimization results
Fig. 10
figure 10

Fitness curve

Space trajectory corresponding to (t1 = 0.05 s, t2 = 0.0873 s, t3 = 0.075 s, t4 = 0.05 s) and Space trajectory corresponding to (t1 = 0.1 s, t2 = 0.1 s, t3 = 0.1 s, t4 = 0.1 s) are shown in Fig. 11. By calculating, the time has been reduced by ((0.4–0.2631)/0.4)*100% = 34.23% compared with the before the optimized time.

Fig. 11
figure 11

Comparison of space trajectories before and after time optimization

6 4. Conclusion

This paper firstly presented the 4–3–3-4 degree polynomial interpolation to achieved trajectory planning of Delta Robot, simulations results indicate that compared with the 4–3-4 degree polynomial interpolation, the 4–3–3-4 degree polynomial interpolation have better performances in optimizing time path and adjusting obstacle avoidance height flexibly. And then, in order to further optimizing trajectory planning time the 4–3–3-4 degree polynomial interpolation under the constraints of maximum velocity and maximum acceleration, an improved particle swarm optimization algorithm for time-optimal trajectory planning of delta robot is put forward, simulation results show that compared with before and after time optimization, space trajectory time of the 4–3–3-4 degree polynomial interpolation for Delta robot can be greatly shortened which will further increase production efficiency. The follow-up issues to be taken into account such as jerk phenomenon of 3–3 degree polynomial interpolation in 4–3–3-4 degree polynomial interpolation, trajectory planning of 4–4–4-4 or 4–5–5-4 degree polynomial for Delta robot interpolation should be taken into consideration in the future.