Professional Documents
Culture Documents
Trajectory Planning
for Industrial Manipulators
along Specified Paths
䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇 䢇
D. Constantinescu,* E. A. Croft
Industrial Automation Laboratory,
Department of Mechanical Engineering,
University of British Columbia,
Vancouver, BC, Canada V6T 1Z4
e-mail: daniela@mech.ubc.ca
This article presents a method for determining smooth and time-optimal path con-
strained trajectories for robotic manipulators and investigates the performance of
these trajectories both through simulations and experiments. The desired smoothness
of the trajectory is imposed through limits on the torque rates. The third derivative of
the path parameter with respect to time, the pseudo-jerk, is the controlled input. The
limits on the actuator torques translate into state-dependent limits on the pseudo-
acceleration. The time-optimal control objective is cast as an optimization problem by
using cubic splines to parametrize the state space trajectory. The optimization problem
is solved using the flexible tolerance method. The experimental results presented
show that the planned smooth trajectories provide superior feasible time-optimal
motion. 䊚 2000 John Wiley & Sons, Inc.
At the trajectory planning level, a number of smooth, an initial guess is generated using splines
different techniques have been devised to address and the optimal path is found through an uncon-
the problem of discontinuous actuator torques. A strained parameter optimization. The cost function
modified cost function, such as time-joint torques 2 is composed of the motion time along the path plus
or time-square of joint torques,6 can be used to penalty terms corresponding to obstacles and joint
smooth the controls and improve the tracking accu- limits.
racy, at the expense of motion time.
Another way of smoothing the controls is to
parametrize the path by using functions that are at 2. SMOOTH PATH-CONSTRAINED
least C 2 continuous, i.e., continuous in acceleration. TIME-OPTIMAL MOTIONS
Cubic splines used for path parametrization with
time as the cost function7 result in trajectories that 2.1. Problem Formulation
have continuous joint accelerations. However, the
The problem of SPCTOM planning can be stated as
limits on the joint variables are very conservative,
since they remain constant over the entire work tf
space. Incorporating the actuator dynamics in this min J s H0 1 dt , Ž1.
problem formulation8 transforms the actuator volt- ˙
Tg⍀
In the above formulation, the torque rates repre- The matrices dMrds and dGrds and the third-order
sent the bounded controls. Since the Lagrangian tensor dCrds are robot dependent.
form of the robot dynamics incorporates only the As shown in Section 2.3, the torque rate bounds
actuator torques, the third-order dynamics is re- provide constraints on the admissible states for the
quired. Differentiation of Ž2. with respect to time robot. However, the torque bounds derived in refs.
results in 3 and 11 are still required, since, as the torque rate
bounds become very large, the torque bounds be-
M Ž q .ᠮ ˙ Žq. q
qqM ¨qq ˙yq
¨ T C Žq. q ˙ Žq. q
˙T C ˙ come the limiting constraint. For infinite torque
qq ˙ Žq. s T.
¨qG
˙ T C Žq. q ˙ Ž7. rates, the problem returns to PCTOM.
Following ref. 3, the actuator torque bounds for
Equation Ž7. is taken as the dynamics of the the reduced order system are obtained substituting
system, with T ˙ representing the n-dimensional the path constraints Ž4. and Eq. Ž2. into Eq. Ž5.:
bounded controls.
Tmin F A Ž s . ⭈ ¨
s q BŽ s . ⭈ ˙
s 2 q C Ž s . F Tmax , Ž 16.
2.2. Path Constraints
The dynamic system described by Eq. Ž7. has 3n where
degrees of freedom. However, the path constraints
Ž4. parametrize the end-effector tip position by a An= 1Ž s . s M ⭈ q⬘⬘ , Ž 17.
single parameter s, reducing the order of the system
to 3. Bn= 1Ž s . s M ⭈ q⬙⬙ q qXT ⭈ C ⭈ q⬘⬘ , Ž 18 .
To obtain the torque rate bounds for the re- Cn= 1Ž s . s G. Ž 19.
duced order system, the joint jerk is computed as
ᠮ
q s qZ ˙ ss q q⬘⬘ ᠮ
s 3 q 3 ⭈ q Y ⭈ ˙¨ s, Ž8.
2.3. Torque Limits
where
As discussed in ref. 3, for each value of the path
d 2J dJ parameter s, the actuator torque bounds Ž16. trans-
q Z s Jy1 ⭈ r Z y ⭈ qX y 2 ⭈ ⭈ qY ,
ž ds 2 ds / Ž9.
late into a polygonal feasible region in the ˙ s 2 ᎐s¨
plane. Such a region is shown schematically in Fig-
Z
d 2J dJ ure 1 for a 3-dof manipulator. Analytically, the
r s 2
⭈ qX q 2 ⭈ ⭈ qY q J ⭈ qZ , Ž 10.
ds ds actuator torque bounds translate into limits on the
with r being the end-effector position and orienta- pseudo-velocity and the pseudo-acceleration:
tion, J being the Jacobian of the forward kinematics
map, and ⬘ denoting the derivative with respect to ˙s F ˙sma x , T Ž s . Ž 20 .
the path parameter. Substituting Eqs. Ž7. and Ž8.
into Eq. Ž6. yields
¨smin, T Ž s, ˙s . F ¨s F ¨smax , T Ž s, ˙s . . Ž 21.
˙min F a Ž s . ⭈ ᠮs q b Ž s . ⭈ ˙s ⭈ ¨s q c Ž s . ⭈ ˙s 3 q d Ž s . ⭈ ˙s F T
T ˙max ,
Ž 11 .
where
a n= 1Ž s . s M ⭈ q⬘⬘ , Ž 12.
dM
b n= 1Ž s . s 3 ⭈ M ⭈ q⬙⬙ q ⭈ q⬘⬘ q 2 ⭈ qXT ⭈ C ⭈ q⬘⬘ , Ž 13 .
ds
dM
q
c n= 1Ž s . s M ⭈ q ⭈ q⬙⬙ q qY T ⭈ C ⭈ q X
ds
dC
q qXT ⭈ ⭈ q⬘⬘ q qXT ⭈ C ⭈ q⬙⬙ , Ž 14.
ds
dG
d n= 1Ž s . s ⭈˙
s. Ž 15 .
ds s 2 ᎐s¨ plane, after ref. 3.
Figure 1. Admissible region in the ˙
10974563, 2000, 5, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1097-4563(200005)17:5<233::AID-ROB1>3.0.CO;2-Y by Orta Dogu Teknik Universitesi, Wiley Online Library on [30/11/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
236 䢇
Journal of Robotic Systems—2000
i s 1, . . . , n, Ž 26 .
ref. 3.
T˙i y cUi y bUi s̈
2.4. Torque Rate Limits
ᠮsma x Ž s, ˙s, ¨s . s min max
i ½ ž Ṫi ai /5 ,
yᠮs space i , j s 1, . . . , n, Ž 29 .
s᎐sᠮ plane.
Figure 2. Admissible region in the ¨ ˙s F min ˙sma x , T Ž s . , ˙smax , J Ž s .4 , Ž 30.
10974563, 2000, 5, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1097-4563(200005)17:5<233::AID-ROB1>3.0.CO;2-Y by Orta Dogu Teknik Universitesi, Wiley Online Library on [30/11/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Constantinescu and Croft: Smooth and Time-Optimal Trajectory Planning 䢇
237
max ¨
smin, T Ž s . , ¨
smin, J Ž s .4
F¨
s F min ¨
sma x , T Ž s . , ¨
smax , J Ž s .4 . Ž 31 .
˙ ¨ space.
Figure 3. Admissible states in the s᎐s᎐s T1 s 10 T˙11 s 1000 T˙12 s 100 T˙13 s 10
T2 s 10 T˙21 s 1000 T˙22 s 100 T˙23 s 10
T3 s 10 T˙31 s 1000 T˙32 s 100 T˙33 s 10
10974563, 2000, 5, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1097-4563(200005)17:5<233::AID-ROB1>3.0.CO;2-Y by Orta Dogu Teknik Universitesi, Wiley Online Library on [30/11/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
238 䢇
Journal of Robotic Systems—2000
the state inequality constraints Ž30. and Ž31., and the where s0 and s f are the initial and the final values
state-dependent control inequality constraints Ž23.. of the path parameter, respectively. Therefore, the
This reformulation shows that the SPCTOM SPCTOM in the s᎐s˙ phase plane is the smooth
problem is a time-optimal control ŽTOC. problem curve that minimizes t Ž s . over the curve while not
for a first-order linear system with nonlinear state violating actuator torque andror torque rate limits.
and control inequality constraints and preimposed In view of the above, the optimal motion is
initial and final states. Moreover, Equations Ž23., determined by an optimization of a base trajectory.
Ž30., and Ž31. emphasize that the state and control A set of cubic splines with preselected knot-point
constraints are independently active, since the con- locations are chosen as the base trajectory for the
trols are limited only by the torque rates, while the optimization. Cubic polynomials have been selected
states are limited by both the torque rates and the to approximate the SPCTOM because they are the
actuator torques. lowest degree polynomials that result in a smooth
10974563, 2000, 5, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1097-4563(200005)17:5<233::AID-ROB1>3.0.CO;2-Y by Orta Dogu Teknik Universitesi, Wiley Online Library on [30/11/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Constantinescu and Croft: Smooth and Time-Optimal Trajectory Planning 䢇
239
curve, i.e., continuous and differentiable every- in the phase plane., the shorter the motion time. On
where. The location of the knots along the path have the other hand, the end slopes control the speed at
been chosen to be the same as the location of the which the actuator torques leave or approach their
switching points of the PCTOM ŽFig. 5.. Since the static equilibrium values. Therefore, steeper slopes
PCTOM represents the limit for SPCTOM, these also result in faster motion.
switching points are, in the limit, the same for Thus, the vector of optimization variables, x, is
SPCTOM and provide a reasonable estimate for the defined as the parameter set,
location of the SPCTOM switching points along the
parametrized path. T
ds˙ ds˙
Extra knot-points could be chosen; however, the
ž / ž /
number of the PCTOM trajectory switching points
could be high and the addition of extra knots would
significantly increase the number of optimization
variables. Therefore, extra knots will be inserted
only when the corresponding PCTOM trajectory has
xs
ds
ž ˙/
ds
ds
0
m, 0
˙s1
˙sm , 1
⭈⭈⭈
˙s p
˙sm , p
0 , Ž 36 .
one single switching point. In this case the increase the limiting PCTOM Žthe dotted line in Fig. 5.,
in computational time is negligible while a trajec- while the other values correspond to the splined
tory parametrization by only two splines could be trajectory Žthe solid line.. These variables are nor-
inadequate. malized since the end slopes vary over a much
This strategy is supported by simulations which wider range than the pseudo-velocities.
have shown that doubling the number of knots The optimal trajectory results from splining cu-
improves the SPCTOM motion time by around bic polynomials in the s᎐s˙ phase plane based on the
3᎐6% for trajectories with five switching points and optimized parameters x*. The trajectory must be
by 10᎐17% for trajectories with only one switching within actuator torque and torque rate limits and
point. The larger decrease in motion time is for take minimum time. The actuator torque and torque
trajectories with larger jerks.14 rate constraints in Eqs. Ž16. and Ž11. thus become
The variables of the optimization are the end-
effector pseudo-velocities at the preselected knot- Ti
points along the path and the slopes of the trajec- g 4Ž iy1.q1Ž x . s 1 y max , Ž 37.
˙s Ž s . Tma x i
tory in the s᎐s˙ phase plane at the path end-points.
These variables control the motion time: the higher Ti
the knot-points over the whole trajectory Žas located g 4Ž iy1.q2 Ž x . s 1 y max , Ž 38.
˙s Ž s . Tmin i
Ṫi
g 4Ž iy1.q3 Ž x . s 1 y max , Ž 39.
˙s Ž s . T˙ma x , i
Ṫi
g 4Ž iy1.q4 Ž x . s 1 y max , Ž 40.
˙s Ž s . T˙min, i
sible region and can find a minimum that lies ex- The resulting optimal trajectories for the differ-
actly on the boundary. The details of the FTM are ent limits on the torque rates are shown in Figures
discussed in the Appendix and further details on its 7, 8, and 9, respectively, by solid lines. The dashed
implementation for solving the SPCTOM problem lines represent the time-optimal trajectory consider-
are presented in ref. 14. ing only torque limits ŽPCTOM.. The dotted lines
are the smooth motion velocity limit curves
ŽSMVLC., i.e., the velocity limit curves determined
4. SIMULATIONS considering both torque and torque rate limits. The
corresponding actuator torques and torque rates are
The method for determining optimal SPCTOM has also plotted in these figures.
been implemented in MATLAB16 and simulations While the PCTOM takes 0.59 s, the SPCTOM
are performed considering only the positional dof of takes 0.7 s in the first example. Here, the limits on
the SCORBOT ER VII robot in the Industrial Au- the torque rates were very high Žinfeasible. and the
tomation Laboratory ŽIAL. at the University of trajectory is determined by the limits on the actua-
British Columbia ŽUBC. ŽFig. 6.. Thus, for the simu- tor torques. In the ideal case, both trajectories should
lations performed here, the robot is an elbow ma- yield the same motion times; however, there are
nipulator with the DH parameters and the esti- two reasons for the increase in motion time for
mated masses and inertias given in Table I. SPCTOM: Ži. the limited parametrization chosen in
The actuator torque limits are the same for all the s᎐s˙ phase plane and Žii. the significant decrease
the three examples given in this paper, while the in peak torque rates for SPCTOM Žsolid lines. com-
limits on the torque rates are different, as succes- pared to PCTOM Ždotted lines., as shown in the
sively shown in Table II. semi-log-scale plot in Figure 10.
In examples 2 and 3, the more feasible limits on
4.1. Planning Performance the torque rates predominate. Therefore, the torque
constraints are not approached. The optimal motion
To determine the influence of the trajectory smooth- times for these examples are higher, 0.735 s and
ness on the motion time, a straight line in the robot 1.5 s, respectively.
work space is chosen as the preimposed path. In The optimal trajectories determined through the
parametric form, the path is given as proposed method are not bang-bang in the controls.
This is a consequence of the parametrization in the
x Ž s . s 0.4 phase plane. However, as seen from the first exam-
y Ž s . s 0.3s y 0.1 ple presented, the chosen parametrization alone
Ž 41. causes a comparatively small increase in the motion
z Ž s . s 0.2 s q 0.3 time.
s s 0, . . . , 1. As expected, the more restrictive the limits on
torque rates are, the higher the motion time is. The
planning simulations, however, give no indication
of the relationship between trajectory smoothness
and the tracking performance of the controller. To
establish tracking performance five simulations, fol-
lowed by five experiments were performed.
Figure 14. Desired and simulated torques for the Figure 15. Desired and simulated torques for the quintic
SPCTOM trajectory Žexample 3—torque rate limits of trajectory.
10 Nmrs..
control loop at the controller frequency. The axis torque rates result in increased tracking errors,
control cards and the ORTS were developed by the which, in turn, activate the controller, saturating the
Manufacturing Automation Laboratory ŽMAL., actuators. Whenever this happens, the end-effector
UBC. For the purpose of the experiments reported leaves the path. Such a trajectory is an infeasible
here, only the positional degrees of freedom of the trajectory. For the case of the SCORBOT ER VII
robot are considered, thus the robot is treated as a manipulator, torque rate limits less than one order
3-dof elbow manipulator with the kinematic and of magnitude higher than the actuator torque limits
dynamic parameters given in Table I. A tuned, are required to ensure that the end-effector follows
discrete PID algorithm is used to provide the con- the planned path. While this result is more restric-
trol law. This setup simulates typical conditions in tive for the torque rate limits than predicted by the
industry, where the robot is equipped with a closed simulations, it is not totally unexpected. Due to the
architecture discrete PID independent joint con- large errors involved in modelling the system, one
troller. would expect that the simulation results would
The results of the experiments are plotted in overestimate the system capabilities.
Figures 16᎐19, and summarized in Table IV. The experimental performance of the SPCTOM
These experimental results support the simula- trajectory corresponding to the low torque rate lim-
tion results. Namely, for high torque rate limits, the its, i.e., 10 Nmrs, is similar to its simulated perfor-
controller cannot keep the end-effector on the path. mance. Thus, while being tracked by the controller
Figures 16, and 17 show that trajectories with high with similar accuracy and effort as the quintic tra-
Table III. Simulated results for the PCTOM, SPCTOM, and quintic trajectories.
Maximum RMS
Torque rate Motion tracking tracking error
limits time error joint 1 Joint 2 joint 3
Trajectory w Nmrsx w sx w cmx w ⬚x w ⬚x w ⬚x
Table IV. Experimental results for the PCTOM, SPCTOM, and quintic trajectories under independent
joint PID control.
Maximum RMS
Torque rate Motion tracking tracking error
limits time error joint 1 joint 2 joint 3
Trajectory w Nmrsx w sx w cmx w ⬚x w ⬚x w ⬚x
jectory, it results in reduced motion time Ž1.5 s final, and knot-point conditions derived from PC-
compared to 2 s.. This indicates that torque rate TOM without torque rate limits. Thus, the optimal
limits are preferable when determining smooth time motion is obtained through an optimization of this
optimal motions over global velocity and accelera- base trajectory, subject to actuator torque and torque
tion limits. rate limits.
Experiments were also carried out using pro- In planning simulations, the trajectory smooth-
portional-derivative ŽPD. plus gravity compensa- ness has a negative impact on the motion time,
tion control. The results are summarized in Table V lower torque rate limits resulting in higher motion
and show the same correlation between the tracking time. However, both controller simulations and ex-
accuracy and the torque rates along the trajectory. periments have shown that, in practice, trajectory
smoothness has a positive effect on both the track-
ing performance of the controller and the actual
motion time. Moreover, a smoothly planned tra-
6. CONCLUSIONS
jectory can compensate for a poorly modeled
A method has been presented for determining robot system, which is often the case in industrial
smooth and time-optimal path-constrained trajecto- practice.
ries for robotic manipulators. The dynamics of the Compared to a quintic polynomial trajectory
manipulator together with limits on the actuator with velocity and acceleration limits, the SPCTOM
torques and torque rates are considered. A base trajectory results in a faster motion for similar track-
trajectory is constructed in the s᎐s˙ phase plane ing performance. Thus, torque rate limits are prefer-
using parametrized cubic splines and a set of initial, able when imposing a desired degree of trajectory
Table V. Experimental results for the PCTOM, SPCTOM, and quintic trajectories under PD plus
gravity compensation control.
Maximum RMS
Torque rate Motion tracking tracking error
limits time error joint 1 joint 2 joint 3
Trajectory w Nmrsx w sx w cmx w ⬚x w ⬚x w ⬚x
and
rq1 REFERENCES
⌽ Žk.
s min ⌽ ½ Ž ky1.
; Ý
is1
5 x iŽ k . q x centr
Žk. 5
5 Ž A5.
1. J.E. Bobrow, S. Dubowsky, and J.S. Gibson, Time-opti-
mal control of robotic manipulators along specified
paths. Int J Robotics Res 4 Ž1985., 3᎐17.
with a constant. 2. F. Pfeiffer and R. Johanni, A concept for manipulator
The tolerance criterion is used to classify points trajectory planning, IEEE J Robotics Automat RA-3
in R n. At the k th step of the optimization, a point Ž1987., 115᎐123.
10974563, 2000, 5, Downloaded from https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1097-4563(200005)17:5<233::AID-ROB1>3.0.CO;2-Y by Orta Dogu Teknik Universitesi, Wiley Online Library on [30/11/2023]. See the Terms and Conditions (https://onlinelibrary.wiley.com/terms-and-conditions) on Wiley Online Library for rules of use; OA articles are governed by the applicable Creative Commons License
Constantinescu and Croft: Smooth and Time-Optimal Trajectory Planning 䢇
249
3. Z. Shiller and H.H. Lu, Computation of path con- gripper, and payload constraints, Int J Robot Res 8
strained time optimal motions with dynamic singular- Ž1989., 3᎐18.
ities, ASME J Dyn Syst Meas Control 114 Ž1992., 11. K.G. Shin and N.D. McKay, A dynamic programming
34᎐40. approach to trajectory planning of robotic manipula-
4. Y. Chen and A.A. Desrochers, Structure of minimum- tors, IEEE Trans Automat Contr AC-31 1986, 491᎐500.
time control law for robotic manipulators with con- 12. H.G. Bock and K.-J. Plitt, A multiple shooting algo-
strained paths, in IEEE Int Conf Robot Automat 1989, rithm for direct solution of optimal control problems,
pp. 971᎐976. in 9th IFAC World Congress 1984, pp. 1853᎐1858.
5. J. Li, R.W. Longman, V.H. Schultz, and H.G. Bock, 13. G. Leitman, The calculus of variations and optimal
Implementing time optimal robot maneuvers using control, Plenum Press, New York and London, 1981.
realistic actuator constraints and learning control, As- 14. D. Constantinescu, Smooth time optimal trajectory
trodynamics 1998, RA-3 Ž1998., 115᎐123. planning for industrial manipulators, Master’s thesis,
6. Z. Shiller, Time-energy optimal control of articulated
University of British Columbia, 1998.
systems with geometric path constraints, in IEEE Int
15. D.M. Himmelblau, Applied Nonlinear Programming,
Conf Robot Automat 1994, pp. 2680᎐2685.
7. C.S. Lin, P.R. Chang, and J.Y.S. Luh, Formulation and McGraw-Hill, 1989.
optimization of cubic polynomial joint trajectories for 16. The MathWorks, Natwik, Massachusetts, Matlab
industrial robots. IEEE Trans Automat Contr AC-28 User’s Guide, 1995.
Ž1983., 1066᎐1074. 17. The MathWorks, Natwik, Massachusetts, Simulink
8. M. Tarkiainen and Z. Shiller, Time optimal motions of Toolbox User’s Guide, 1995.
manipulators with actuator dynamics, in IEEE Int 18. N.A. Erol and Y. Altintas, Open architecture modular
Conf Robot Autom 1993, pp. 725᎐730. tool kit for motion and process control, in ASME
9. Z. Shiller, On singular time-optimal control along International Mechanical Engineering Congress and
specified paths, IEEE Trans Robot Automat 10 Ž1994., Exposition, ASME Publication MED, Dallas, Texas,
561᎐571. 1997, pp. 15᎐22.
10. Z. Shiller and S. Dubowsky, Time optimal path plan- 19. J.A. Nelder and R. Mead, A simplex method for
ning for robotic manipulators with obstacles, actuator, function minimization, Comput J 4 Ž1964., 308᎐313.