High-speed parallel robots have been extensively utilized in the light industry. However, the influence of the nonlinear dynamic characteristics of high-speed parallel robots on system’s dynamic response and stable operation cannot be ignored during the high-speed reciprocating motion. Thus, trajectory planning is essential for efficiency and stability from pick-and-place (PAP) actions. This paper presents a method for planning the equal-height pick-and-place trajectory considering velocity constraints to improve the PAP efficiency and stability of high-speed parallel robots. The velocity constraints in the start-and-end points can reduce vibration from picking and placing, making the trajectory more suitable to complex beltline situations. Based on velocity constraints, trajectory optimization includes trajectory smoothness and joint torque to optimize cycle time is carried out. This paper proposes an online trajectory optimization solution. By using back propagation (BP) neural networks, the solution is simplified and can be solved in real-time. Simulation and experiments were carried out on the SR4 parallel robot. The results show that the proposed method improves the efficiency, smoothness, and stability of the robot. This paper proposes an online trajectory planning method which is velocity constraints based and can improve the efficiency and stability of high-speed parallel robots. The work of this research is conducive to finely applying high-speed parallel robots.
In current years, high-speed parallel robots have been extensively utilized. They play an essential role in many fields, for example, food, electronics, and the light industry [1, 2]. In order to achieve efficiency and stability of production, pick-and-place (PAP) robots with excellent performance are increasingly required [3‐5]. The motion information input to the robot dramatically affects the performance of the robot [6‐8]. Through trajectory planning, motion information such as position, velocity, and acceleration can be generated to provide to the control system of the robot. Accordingly, it is vital to study the trajectory planning method for high-speed parallel PAP robots.
Commonly, one of the leading research concerns in trajectory planning is constructing smooth parametric movement laws [9]. Many scholars have carried out relevant research on trajectory planning in PAP [10‐13]. A time-optimal planning algorithm was proposed by Zhang [14]. Moreover, the elliptical path and improved sinusoidal velocity planning were used by the algorithm for the Delta robot. Xie et al. [15] proposed a Lamé curve algorithm to study the trajectory planning problem for high-speed parallel robots. Using quantic B-spline, a global G3 continuity toolpath smoothing method was proposed by Xie et al. [16, 17] for five degrees of freedom PMRs. By polynomials [18, 19], Bézier curves [20], Cubic spline curves [21‐25], B-spline curves [9, 16, 26‐28], etc., many scholars constructed the robot movement law. As well as robot efficiency and stability are required in the industrial, the high-order spline curves are increasingly used to construct the movement law, such as quintic B-spline curves [9, 16, 28] or the quintic Bézier curves [20].
Advertisement
The robot end-effector motion can be obtained from constructed parametric movement law by giving the cycle time, the trajectory planning parameters, and the target path point information. In order to enhance the performance, it is essential to optimize cycle time and trajectory planning parameters for trajectory planning study [9]. There are many trajectory planning methods that were proposed with the goal of minimizing cycle time to improve operation efficiency [25, 29‐31]. According to Ref. [28], a trajectory planning method was proposed, which used the smoothness of trajectory as the optimization objective, based on quintic B-spline curves, and applied on high-speed PAP parallel robots. Furthermore, this method provided a generic smoothness index in a Cartesian coordinate system by optimizing the trajectory parameters with a combined optimization goal - acceleration and jerk. In Croft's study on trajectory planning [25], a time-optimal method was proposed, which was constrained by torques and the derivatives of joint torques. In Han's research on trajectory planning method [9], motor drive capability and tracking error were used as constraints. In addition, the method used BP neural network to achieve online optimization, which provides a general idea to realize an algorithm run in real-time.
In general, studying the velocity constraints based approach of trajectory planning is necessary for the fast infeed situation. Most PAP trajectory planning didn’t consider the velocity constraints at the start-and-end points because of the limitation of the complexity and computational efficiency in the optimization problem. Nevertheless, the velocity constraint can facilitate the accuracy of PAP on the conveyor from experience. Furthermore, the approach should make the trajectories, which are based on velocity constraints, without losing stability and efficiency by combining the parallel robot’s dynamic properties and anisotropic kinematic.
In summary, this paper will propose a velocity constraints based approach for online trajectory planning of high-speed parallel robots. This work proposed the space equal-height pick-and-place trajectory, which is based on the quintic B-spline, in the approach. There are trajectory parameters such as geometric offset and time are defined. Then, with smoothness and time as the goal of optimization, two optimization problems are proposed respectively. The BP neural network method not only simplifies the optimization problem but also implements our approach's algorithm in real-time. What’s more, a flow chart of trajectory planning, which can be extensively used to high-speed parallel robots in PAP, is given.
2 Velocity Constraints Based Approach for Online Trajectory Planning
2.1 Description of 5-th B-spline Curve
Firstly, the basic principle of constructing uniaxial motion law based on B-spline is briefly introduced: according to Refs. [27, 32], the displacement s with path point coordinates of \(s_{0} \ldots s_{f}\) can be expressed by using p-order B-spline as a function of time t.
where \(Q_{i}\) is n + 1 control points, and \(N_{i,p} \left( t \right)\) is the basis function of the B-spline of degree p. The De-Boor recursive algorithm was satisfied in the construction of basis function:
where \(t_{i} \left( {i = 0, \ldots ,m} \right)\) is m + 1 nodes, constituting the node sequence of \(s(t)\). The node sequence satisfies the following relationship to constrain the start-and-end position, velocity, and acceleration:
The relationship between the number of nodes m + 1 and the number of control points n + 1 and p is m = n + p + 1.
The size of basis function \(N_{i,p} \left( t \right)\) can be calculated according to Eqs. (2) and (3), as the time interval of the control node in Eq. (4) is given. Furthermore, the motion law of single-axis displacement is obtained if the control points \(Q_{i}\) are given.
In order to make the target trajectory of the robot pass through the set path points and meet the constraints such as speed and acceleration at the start-and-end points, it is necessary to establish the relationship between the control points \(Q_{i}\) and the above constraints and path points.
Because of \(t_{0} \ldots t_{p} = 0\), the basis function satisfies \(N_{0,0} \left( t \right) \ldots N_{p - 1,0} \left( t \right) = 0\), \(N_{p,0} (t) = \left\{ {\begin{array}{*{20}l} {1, \, t_{p} \le t < t_{p + 1} } \\ {0,{\text{ otherwise}}} \\ \end{array} } \right.\). Then,
The node repetition at the start and end of the node sequence is p + 1 to ensure that the coordinates of the first and last control points coincide with the start and end of path points.
If there are f + 1 path points in total, it is necessary to determine two virtual nodes, \(t_{p + 1}\) and \(t_{n}\), to control the acceleration of the start-and-end points. Therefore, the node sequence is as Eq. (7).
where \(s_{1} \ldots s_{f-1}\) corresponds to \(t_{p + 2} \ldots t_{n - 1}\) one by one, there is \(n - p - 2 = f - 1\). To obtain \(C^{4}\) continuous spline curve, the parameter p is set to 5. Then, f + 1 interpolation constraint equations can be obtained since the trajectory passes through f + 1 path points \(s_{0} \ldots s_{f}\):
The r-order derivative of \(s\left( t \right)\) composed of B-spline can also be expressed in the form of \(p - r\) B-spline according to the properties of B-spline:
After that, six boundary constraint equations can be obtained according to the velocity, acceleration, and jerk constraints of the start-and-end points:
where \({\boldsymbol{B}}_{1}\) represents the sequence of f+ 1 path points, and \({\boldsymbol{B}}_{2}\) represents the speed, acceleration, and jerk of the start-and-end points of single-axis motion, so B is 6 × 1, \({\boldsymbol{B}}_{1}\) and \({\boldsymbol{B}}_{2}\) are further expressed as:
where \({\boldsymbol{A}}_{2}\) is the matrix of size 6 × (n + 1), and the matrix elements are derived from the coefficients of the control points \(Q_{i}\) in the boundary constraint equation, expressed as Eq. (21).
where the time T for robot motion, and the path points \(s_{0} \ldots s_{f}\) passed by the single axis, the control points \(Q_{i}\) can be obtained, and then the functions of displacement, velocity, acceleration, and jerk of the single-axis with time can be calculated according to Eqs. (1), (9)–(11). So far, the parametric motion law of the single-axis is constructed.
2.2 Geometric Trajectory Generation
The pick-and-place (PAP) trajectory is typical in manufacturing. When the robot performs the PAP operation, it has high requirements for the accuracy of start-and-end points and the stability during operation, but it does not have high requirements for the contour accuracy of trajectory, which corresponds to fewer path points. To ensure smooth picking and placing, it is necessary to carry out moving up and moving down actions above the start-and-end points. Thus, two intermediate path points \(s_{1}\) and \(s_{f - 1}\) need to be set. For considering the path symmetry, the path midpoint \(s_{2}\) needs to be set. There are five path points, i.e., f = 4. The trajectory can be called the equal-height pick-and-place (PAP) trajectory since the start-and-end points are equal height. The PAP trajectory is spatial with velocity constraints, rather than planar. In Figure 1, a space equal-height PAP trajectory was shown. By controlling 5 path points and velocity on the start-and-end points, a trajectory curve can be defined.
×
The m + 1(m + 1 = f + 2p + 3 = 17) nodes was contained in node sequence:
Due to the existence of velocity at the starting and ending points, the path points \(s_{0} \ldots s_{f}\) needs to be offset to obtain a smooth trajectory. The offset is based on the product of velocity and time, and adjustable offset parameters \(\left( {\lambda_{1} ,\lambda_{2} ,\lambda_{3} } \right)\) are introduced. The following relations was satisfied by the path points:
where the offset parameters of the trajectory are \(\left( {\lambda_{1} ,\lambda_{2} ,\lambda_{3} } \right)\). The height of the trajectory is \(\Delta z\). The height coefficient of the path points \({\varvec{s}}_{1}\) and \({\varvec{s}}_{3}\) is \(\eta\). Displacement can be obtained as:
2.3.1 The Optimization Problem of Trajectory Smoothness
In the Cartesian coordinate system, the evaluation index of trajectory smoothness is defined by acceleration maximum and jerk maximum of the trajectory, which are function of \(\left( {\tau_{6} ,\tau_{7} ,\tau_{{9}} ,\tau_{{{10}}} ,\lambda_{1} ,\lambda_{2} ,\lambda_{3} } \right)\).
Note that the height \(\Delta z\) and height coefficient \(\eta\) are not included in the optimized parameters. This is because they only affect the motion on the z-axis in the Cartesian coordinate system, and have little effect on the final trajectory. Therefore, they are not considered in the optimization problem.
For given sequence of nodes, Figure 2 shows that \(\lambda_{i} \left( {i = 1,2,3} \right)\) is convex. In addition, when \(a_{\max }\) and \(j_{\max }\) take the minimum values, \(\lambda_{i} \left( {i = 1,2,3} \right)\) has different values, respectively, which helps us construct the optimization objective by combining \(a_{\max }\) and \(j_{\max }\).
×
Ref. [28] proved the convexity of the distributions of \(a_{\max }\) and \(j_{\max }\) with \(\tau_{i} (i = 6,7,9,10)\). Therefore, it can be considered that the distribution of \(a_{\max }\) and \(j_{\max }\) with \(\tau_{i} (i = 6,7,9,10)\) and \(\lambda_{i} \left( {i = 1,2,3} \right)\) is convex.
The parameters \(\left( {\tau_{6} ,\tau_{7} ,\tau_{{9}} ,\tau_{{{10}}} ,\lambda_{1} ,\lambda_{2} ,\lambda_{3} } \right)\) have different values when \(a_{\max }\) and \(j_{\max }\) take the minimum values. Therefore, the objective function is constructed by normalizing \(a_{\max }\) and \(j_{\max }\):
Based on the previous derivation, F is convex because it and its gradient are continuous in the feasible region. There is a global optimal solution to the optimization problem. Therefore, based on MATLAB® The fmincon function in the optimization toolbox, namely the interior point method, can easily solve the optimization problem.
Through experience, parameters \(\tau_{i} (i = 6,7,9,10)\) and \(\lambda_{i} \left( {i = 1,2,3} \right)\) can converge faster with (0.01, 0.21, 0.79, 0.99, 0.21, 0.50, 0.21) as the initial value of iteration. Figure 3 shows the parameters iteration process and the trajectory result of an example. In this example, trajectory starts at (0, 0, 0) and ends at (280 mm, − 200 mm, 0) with 40 mm height, 0.250 s trajectory time, and 200 mm/s start-and-end velocity.
×
This example was chosen because it represents a typical situation on a production line: an object moves along a conveyor belt at a constant speed into the robot workspace and is subsequently picked up and placed in the target position on another conveyor belt.
2.3.2 The Optimization Problem of Trajectory Time
The anisotropy of parallel robot dynamics is also a factor worthy of consideration in parallel robot trajectory planning. Through the rigid body dynamic model of the robot, the following optimization problems can be obtained under the constraints of joint torque and its derivative:
Based on the given trajectory start-and-end kinematics parameters, the trajectory time T can be obtained by solving the optimization problem. However, in order to meet the constraint of \(F = F_{\max }\), the optimization problem in the previous section needs to be solved (multiple times), which will significantly increase the solution time of the optimization problem of trajectory time.
2.3.3 Optimization Procedure
An online solution method based on BP neural network is proposed to realize the online solution of optimization problems. Figure 4 shows the flow chart of trajectory planning method.
×
First step is randomly generating start-and-end kinematic trajectory parameters \(\Delta x\), \(\Delta y\), \(\Delta z\), \(v_{y0}\), \(v_{y1}\), T. In order to make the network have less input and better universality, the input of the network contains relative span rather than absolute coordinates. For consideration of the symmetry, only the velocity in the y-axis direction is considered here.
Next, the training set of trajectory parameters is obtained by trajectory smoothing optimization. Figure 5 shows the structure and input and output of the network. Based on the training experience, the network has two hidden layers, and the number of nodes is (12, 12). Because the network size is small, the activation function is sigmoid function. One thousand data groups were generated in the experiment, where 70% were used as the training set, 15% as the verification set, and 15% as the test set. The results on the test set show that the R value is 0.98964. The optimization problem corresponding to Eq. (37) can be solved in real-time through the network. The operation essence of the BP network is equivalent to matrix multiplication. Due to the small scale of network structure, the calculation time on CPU Intel i5-4400e is far less than 1 ms, which meets the operation requirements of control system. Through calculation and experiment, using interior point method to solve this optimization problem generally takes more than 2 min.
×
Secondly, multiple groups of trajectory parameters (\(x_{0}\), \(x_{1}\), \(y_{0}\), \(y_{1}\), \(z_{0}\), \(\Delta z\), \(v_{y0}\), \(v_{y1}\)) in workspace are generated randomly. The input velocity value is only in the y-axis direction by the actual working conditions and the complexity of the network. Since Eq. (38) relates to the dynamic model of a particular robot, these sets should cover all PAP positions in the robot workspace as much as possible. Based on the neural network of trajectory smoothness, the \(F = F_{\max }\) constraint in Eq. (38) can be easily realized. Therefore, the optimization problem of Eq. (38) can be easily and quickly solved.
Similarly, the neural network of trajectory time is generated by generating the data set of trajectory time. Figure 6 shows the input, output and size of the neural network for trajectory time. The network has two hidden layers, and the number of nodes is (20, 20). The activation function is also sigmoid function. Four thousand data groups were generated in the experiment, of which 70% were used as the training set, 15% as the verification set, and other 15% as the test set. The results on the test set show that the R value is 0.99183. The network enables the trajectory time optimization problem of Eq. (38) to be solved in real-time. The calculation time on CPU Intel i5-4400e is far less than 1 ms, which meets the operation requirements of control system. Through experiment, using interior point method to solve the optimization problem generally takes more than 10 minutes.
×
By combining the two neural networks, the trajectory parameters \((\tau_{i} ,\lambda_{j} )\) and trajectory time T can be calculated in real-time according to the given PAP situation, so as to generate PAP trajectory.
3 Verification
In order to verify the velocity constraints based approach for online trajectory planning, simulation and experiment are carried out with SR4 parallel robot as an example. The simulation verification is carried out based on MATLAB. In Figure 7, a 3D view of the overall and moving platform structure of the SR4 robot is shown. The movement of SR4 mechanism [33] includes three translational movements and rotation of z-axis. Through the bevel gear and crank-rocker between the two platforms, the relative vertical motion of the upper and lower moving sub-platforms is transformed into the rotational motion of the z-axis.
×
In the simulation, the moving trajectory of the robot is the industry-standard “Adept cycle” with velocity constraints. The industry-standard “Adept cycle” is a standard PAP trajectory commonly used to test the performance of robots. Generally, its span is 305 mm, and its height is 25 mm. Figure 8 shows the trajectory used for the simulation. The starting point of the track is \(( - {{305} \mathord{\left/ {\vphantom {{305} {2\sqrt 2 }}} \right. \kern-\nulldelimiterspace} {2\sqrt 2 }},{{305} \mathord{\left/ {\vphantom {{305} {2\sqrt 2 }}} \right. \kern-\nulldelimiterspace} {2\sqrt 2 }}, - 650)\), the ending point is \(({{305} \mathord{\left/ {\vphantom {{305} {2\sqrt 2 }}} \right. \kern-\nulldelimiterspace} {2\sqrt 2 }}, - {{305} \mathord{\left/ {\vphantom {{305} {2\sqrt 2 }}} \right. \kern-\nulldelimiterspace} {2\sqrt 2 }}, - 650)\), and the height is 25 mm. The height coefficient \(\eta\) is 0.5. The velocity of the start and end points is 200 mm/s, and the direction is along the y-axis. The maximum torque \(\tau_{\max }\) is \(0.6{\text{ N}} \cdot {\text{m}}\). The maximum derivative of torque \(\tau^{\prime}_{\max }\) is 30 N·m/s. Based on the above experimental parameters, the target trajectory time is 0.213 s by the trajectory time neural network. Therefore, 0.213 s will be used as the trajectory time in the comparison.
×
In Figure 9, the joint jerk of the robot is shown. Comparing Figure 9(a) and (b), through optimization, the peak and peak values of joint jerk are reduced by 26.68%, especially the values of joint 2, 3, and 4 at the start-and-end points are significantly reduced.
×
In Figure 10, the joint torque derivative of the robot is shown. Comparing Figure 10(a) and (b), through optimization, the peak and peak values of joint torque derivative are reduced by 11.39%.
×
The simulation results show that the joint jerk and torque derivative are effectively improved after parameter optimization, which reflects the stability of the robot motion.
Experiments were carried out on the TH-SR4 parallel robot shown in Figure 11. Endevco’s three-axis integrated circuit piezoelectric accelerometer was used to measure the acceleration of x-axis and y-axis. Figure 12 shows the change of acceleration in x-axis and y-axis before and after optimization. After optimization, the acceleration on the x-axis changes little, but the peak acceleration on the y-axis decreases by 26.37%. The acceleration experiment result shows that, after parameter optimization, the acceleration in the y-axis is effectively improved, which means that the robot's performance has been improved on the proposed space equal-height pick-and-place trajectory with velocity constraints.
×
×
Figure 13 shows the change of driver current in active joints before and after optimization. The driving current is proportional to the joint torque, and its unit is the thousandth ratio of the rated current. It can be directly seen from Figure 13 that after optimization, the torque of joints 2 and 4 decreases significantly, reflecting the decrease of acceleration in the y-axis direction in the robot coordinate system, which is consistent with the acceleration measurement results in Figure 12.
×
Figure 14 shows the pick-and-place (PAP) experiment, which compares the two cases of trajectory with and without velocity constraints (Additional file 1). In Figure 14, the left frames are the placement time. Two yellow lines stand for the edge parallel lines of the object at the placement time. In right frames, yellow dotted lines stand for the edge parallel lines of the ideal position of the object. Red lines stand for the edge parallel lines of the object’s actual position. It can be found that vibration occurs without velocity constraints. By using the proposed velocity constraints based approach, the vibration of picking and placing objects is effectively reduced. It can also be seen that in the case of velocity constraints, even after placing the object, the end effector can still follow the object and conveyor, which provides robustness for the application of the end effector soft gripper. In addition, after optimizing trajectory parameters, the proposed trajectory planning method can also make the robot pick and place with a faster cycle time because the trajectory time optimization is based on the constraints of torque and its derivative, which brings the performance of the joint motors.
×
The results of PAP experiment show that the proposed velocity constraints based approach for trajectory planning is helpful to the improvement of efficiency, smoothness, and stability in PAP operations.
4 Conclusions
The presented velocity constraints in the start-and-end points can reduce vibration from picking and placing, making the trajectory more suitable to complex beltline situations. This paper proposed a velocity constraints based approach, which is for online trajectory planning and can be applied on high-speed parallel robots for picking and placing, especially for fast infeed situations. The proposed trajectory and its parameters, which are of the trajectory planning method, are based on quintic B-spline curves. On this basis, BP neural networks are trained to simplify and solve two optimization problems, i.e., the improvement of trajectory smoothness and the reduction of cycle time. Moreover, the algorithm can solve the solution in real-time, which meets the requirements of the robot control system. Finally, on the SR4 high-speed parallel robot, the proposed method is validated. The adopted test trajectory in verification is the industry-standard “Adept cycle” with start-and-end velocity constraints. The simulation and experimental results show that the proposed velocity constraints based approach for trajectory planning is helpful to achieve trajectory smoothing for PAP operations and improve the motion stability of the robot. The proposed method can be applied to other high-speed parallel robots for trajectory planning. In addition, the presented trajectory smoothness optimization solution with the neural network can also be used for other serial PAP robots.
Acknowledgements
Not applicable.
Competing Interests
The authors declare no competing financial interests.
Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.