1212-ArticleText-1921-1-10-20191031
1212-ArticleText-1921-1-10-20191031
1212-ArticleText-1921-1-10-20191031
net/publication/336956363
CITATIONS READS
24 2,679
2 authors:
All content following this page was uploaded by Abdel-Nasser Sharkawy on 01 November 2019.
Abstract
In this paper, the dynamics of the 2-DOF manipulators are presented. The mathematical analysis
for these dynamics for two cases is carried out: in the first case, the manipulator is moving without
any collision (external forces) with its environment, whereas the second case the manipulator is
collided. The Computed-Torque Controlis usedfor these dynamic of the manipulator. A simulation
study is executed using a sinusoidal motion commanded simultaneously to the two joints of the
manipulator. The actual and desired signals of the joints’positions, velocities, accelerations and
torques of the 2-DOF robotare compared whether there is a collision or no.The results prove that the
computed-torque control is effectivelyminimizing the error between the actual signals and the desired
signals. In addition, the dynamic coupling between the joints is presented from the results.
1. Introduction
The robot manipulators are highly nonlinear, dynamically coupled and time-varying systems which
are used extensively in industrial applications [1].The benefit of the dynamic model of the
manipulator is to compute the torque and force required in order to execute the typical work cycle and
to give vital information for the design of the links, the joints, the drives, and the actuators as well as
for the control scheme. The manipulator dynamic behaviour gives a relationship between the joint
actuator torques and the links motion for simulation and design of control algorithms. Dynamics
analysis of robot manipulatoris investigated by many researchers in[2]–[5] and the dynamic coupling
between the joints of the manipulator is investigated experimentally in [6].
Computed-Torque Control is an effective motion control strategy for robotic manipulator
systems[7]. Computed Torque Control [8] is worth noting because of the easiness to be understood
and of its good performances.Computed Torque Control is a method for linearizing and decoupling
the robotic dynamics by using perfect dynamical models of robotic manipulator systems in order to
each joint motion can individually be controlled using other well-developed linear control
strategies[7].Computed-Torque controller was proposed by many researchersfor a parallel
manipulator[9],for a master-slave robot manipulator system[10], andstable computed-torque control
was proposed in [11] of robot manipulators via fuzzy self-tuning.
In this paper, the mathematical analysisfor the dynamics of 2-DOF Manipulator is presented.The
computed-torque control law is used for these dynamics.The dynamic coupling between the
manipulator joints is investigated and presented.Indeed, the main benefit from this procedure is that
the dynamic coupling between the joints should be taken into account during the design and the
implementation of the human-robot collision detection method and the collided link identification
which contribute to the safety of the human-robot interaction.
+ 𝑟2
𝜃2
𝐿1
Joint 2 (A5)
𝑟1
𝑦
𝜃1
𝑥
Joint 1 (A3)
(a) (b)
Figure 1. Kuka LWR manipulator. (a) The all joints of the kuka robot.(b) Motion of Joint A3 and A5
(The black spot means the center of mass) in a horizontal plane.
The second-order vector differential equation for the motion of the manipulator as a function of the
applied joint torques when there is no external forces (collisions) affecting on the end-effector or the
link between the two joints is given by [12]
𝑀 𝜃 𝜃 + 𝐶 𝜃, 𝜃 𝜃 = 𝜏 (1)
where
𝛽 = 𝑚2 𝐿1 𝑟2
𝛿 = 𝐼𝑧2 + 𝑚2 𝑟22
where𝜃𝑖 , 𝜃𝑖 , 𝜃𝑖 is the actual angular position of the center of mass for the ith link and their
corresponding time derivatives.𝑟𝑖 is the distance from the joint 𝑖 to the center of mass for link𝑖.𝐼𝑧𝑖 is
the moment of inertia about the z-axes of the ith link frame.𝑀 𝜃 ∈ 𝑅 2×2 is the inertia matrix that
depends on thevariable𝜃, and𝐶 𝜃, 𝜃 ∈ 𝑅 2×2 is the matrix containing the Coriolis and centrifugal
terms.𝐺 𝜃 ∈ 𝑅 2 = 0.0is the gravity vector and it is equal to zero due to that the motion in horizontal
plane. 𝜏𝑖 ∈ 𝑅 2 is the joint torque for ith joint.𝑚𝑖 is the mass of ith link, 𝐿𝑖 is the length of ith link,
𝑠𝑖 = 𝑠𝑖𝑛𝜃𝑖 , 𝑐𝑖 = 𝑐𝑜𝑠𝜃𝑖 , 𝑠𝑖𝑗 = 𝑠𝑖𝑛(𝜃𝑖 + 𝜃𝑗 ), and 𝑐𝑖𝑗 = 𝑐𝑜𝑠(𝜃𝑖 + 𝜃𝑗 ).
From (2), it is easy to derive the torque at joint1 and 2 as the following equations
If there is an external force exerted perpendicularly on the link 1 as shown in Fig. 2, the dynamic
equation is derived by the following steps,
𝐹 + 𝑟2
𝑟1 𝜃2
𝑑𝜃1
𝜃1 𝐿1
Joint 2
𝐹
𝑟1
𝑦
𝜃1
𝑥 𝐹
Joint 1
(a) (b)
Figure 2. Effect of external force (collision) on the joints torque.(a) Link after rotating by the effect of
the external force. (b) External perpendicular force (collision) on link 1.
𝜕𝑉 𝜕𝑉
𝜕𝜃1
= 𝐹𝑟1 , 𝜕𝜃2
= 0(7)
So the equation for the motion of the manipulator is converted from (2) into the following equation
It is noted from (8) that the torque at joint 1 is more affected than the torque at joint 2.
In case of the perpendicular external force on link 2 as shown in Fig. 3, the dynamic equation is
derived as the following steps,
𝑟2 𝜃2
𝐹
𝑎 Joint 2
𝑦
𝜃1
𝑥
Joint 1
𝑟1
𝐿1
where
𝑑 𝜃1 + 𝜃2 = 𝜃1 + 𝜃2 𝑎𝑓𝑡𝑒𝑟 𝑟𝑜𝑡𝑎𝑡𝑖𝑛𝑔 𝑡𝑒 𝑙𝑖𝑛𝑘 − 𝜃1 + 𝜃2 𝑏𝑒𝑓𝑜𝑟𝑒 𝑟𝑜𝑡𝑎𝑡𝑖𝑛𝑔 𝑡𝑒 𝑙𝑖𝑛𝑘
𝑑𝑊2 = 𝐹 𝑟2 + 𝑎 𝑑 𝜃1 + 𝜃2 = 𝐹 𝑟2 + 𝐿1 cos 𝜃2 𝑑 𝜃1 + 𝜃2
𝜕𝑉 𝜕𝑉
𝜕𝜃1
= 2𝐹𝑟2 + 𝐹𝐿1 cos 𝜃2 , 𝜕𝜃2
= 2𝐹𝑟2 + 𝐹𝐿1 cos 𝜃2 − 𝐹𝐿1 sin 𝜃2 𝑑 𝜃1 + 𝜃2 13)
So the dynamic equation for the motion of the manipulator is converted from (2) into the following
equation
(14)
It is noted from eq. (14) that the torque at joint 1 is more affected than joint 2 because of the
higher lever-arm.
Note: To derive the dynamic equation when there is an external force on link 1 and in the same time
another force on link 2, the same previous steps can be followed.
If the desired trajectory 𝜃𝑑 (𝑡) is selected for the arm manipulation so the tracking error is
𝑒 𝑡 = 𝜃𝑑 𝑡 − 𝜃(𝑡)(15)
𝑒 = 𝜃𝑑 − 𝜃 , 𝑒 = 𝜃𝑑 − 𝜃 (16)
𝜃 = 𝑀(𝜃)−1 𝜏 − 𝐶 𝜃, 𝜃 𝜃 (17)
𝑒 = 𝜃𝑑 + 𝑀(𝜃)−1 𝐶 𝜃, 𝜃 𝜃 − 𝜏 (18)
𝑢 = 𝑒 = 𝜃𝑑 + 𝑀(𝜃)−1 𝐶 𝜃, 𝜃 𝜃 − 𝜏 (19)
𝜏 = 𝑀 𝜃 𝜃𝑑 − 𝑢 + 𝐶 𝜃, 𝜃 𝜃(20)
𝑢 = −𝐾𝑑 𝑒 − 𝐾𝑝 𝑒(21)
By substituting (21) into (20), the computed joint torque which is the robot arm input becomes
𝜏 = 𝑀 𝜃 𝜃𝑑 + 𝐾𝑑 𝑒 + 𝐾𝑝 𝑒 + 𝐶 𝜃, 𝜃 𝜃(22)
Which called the computed-Torque Control law. The PD gains are usually selected for critical
damping𝜉 = 1[15], [16]. In this case:
𝐾𝑑2
𝐾𝑑 = 2 𝐾𝑝 and 𝐾𝑝 = 4
(23)
The computed-torque control depends on the inversion of the robot dynamics, and indeed is called
inverse dynamics control and it results the real joint acceleration vector after calculating 𝜏 from eq.
(22) and substituting its value in eq. (17).
The equation for the entire system can be derived from (1) and (22) by
𝑀 𝜃 𝜃 + 𝐶 𝜃, 𝜃 𝜃 = 𝑀 𝜃 𝜃𝑑 + 𝐾𝑑 𝑒 + 𝐾𝑝 𝑒 + 𝐶 𝜃, 𝜃 𝜃
𝜃 = 𝜃𝑑 + 𝐾𝑑 𝑒 + 𝐾𝑝 𝑒
Therefore,
𝑒 + 𝐾𝑑 𝑒 + 𝐾𝑝 𝑒 = 0.0(24)
Equation (24) means that there is not any external disturbance. The block diagram of the computed–
torque control is shown in Fig. 4
Figure 4. Computed-torque control scheme. In our case,𝐺 𝜃 = 0.0 because of the motion is in
horizontal plane.
The torque from the PD-controller based on Fig. 4 is given by the following equation
𝑒1 + 𝐾𝑑1 𝑒1 + 𝐾𝑝1 𝑒1 −1
𝛼 + 2𝛽𝑐2 𝛿 + 𝛽𝑐2 𝐹𝑟1
=− (29)
𝑒2 + 𝐾𝑑2 𝑒2 + 𝐾𝑝2 𝑒2 𝛿 + 𝛽𝑐2 𝛿 0
4. Simulation Study
A program in Matlab is implemented based on the computed torque control for the multiple joints
motion to simulate the reality and show the differences between the actual and the reference positions,
velocities, accelerations, and torques of the two joints whether there is external force or no.
The parameters used during the simulation are real data and collected from the KUKA LWR robot
datasheet [17]as shown in table I. A sinusoidal motion is commanded to the two joints as
𝜃𝑑 𝑡 = 𝐴 − 𝐴𝑐𝑜𝑠(2𝜋𝑓𝑡)(33)
𝜋
where 𝐴 is therange of the sinusoidal motion in radians= 4 ,
Using Zeigler-Nichols rules, the PD gains that give the best performance are given as
𝐾𝑝1 = 4,𝐾𝑑1 = 4, 𝐾𝑝2 = 4, 𝐾𝑑2 = 4
Parameter Value
𝐿1 0.39 𝑚
𝑟1 0.195 𝑚
𝑟2 0.078 𝑚
𝑚1 3.3 𝑘𝑔
𝑚2 0.3 𝑘𝑔
2
𝐼𝑧1 𝑚1 𝑟1 ≈ 0.1255 𝑘𝑔. 𝑚2
𝐼𝑧2 𝑚2 𝑟22 ≈ 0.00183 𝑘𝑔. 𝑚2
The diagrams of the actual and desired joints positions, velocities, accelerations and the computed
joint torques 𝜏1 and 𝜏2 whether there is external force or no are shown from Fig. 5 to Fig. 7.
As shown from the resultsthe actual joint position, velocity and acceleration are approximately
coincide with the desired (reference) signals (Fig. 5) because of using the PD-controller. The errors
between theactual signals and desired ones are very small (neglected), therefore, we can conclude that
the PD-controller works very well and is a robust controller.
When there is external force or disturbance, the actual signal is affected by this force at the time
when the force exerts on the link (time = 5 s in Fig.6 and Fig. 7) then the PD-controller tries to
coincide again the actual signalwith the desired signal after the force effect finishes.
The dynamic coupling between the joints of the manipulators are presented from the figures (Fig. 6
and Fig. 7) and discussed as following:
When there is external force (or in another words collision) whether on link 1 or link 2, these
variables; position, velocity and acceleration of joint 2 are more affected than of joint 1.
When the force exerts on link 2 the effect of this force on these variables is more than when it
exerts on link 1 and this is observed also from the mathematical calculations.
The computed torque of joint 1 is higher than of joint 2 in any case whether there is collision
or no. In the case where the force is perpendicular to link 1, there is no change on the
computed torque of joint 2 (Fig. 6b) whereas the computed torque of joint 1 is affected at the
time when the force exerts on the link (Fig. 6a). When the collision on link 2, both the
computed torques are affected at the time when the force exerts on the link whereas the
computed torque of joint 1 is affected more than of joint 2 because of the higher lever-arm
(Fig. 7).
5. Conclusions
In this paper, themathematical modelling of the 2-DOF manipulator dynamics is presented. The
analysis is presented in two cases; the first onewithout collisions applied to the links of the
manipulator, whereas the second one is the collided applied case. The Computed-Torque Control is
also presented and a simulation study is executed using a sinusoidal motion commanded
simultaneously to the two joints of the manipulator. The results prove that the computed-torque
control is effectively minimizing the error between the actual signals and the desired signals of the
joints’ positions, velocities, accelerations and torques of the manipulator. Moreover, the dynamic
coupling between the joints is presented. The dynamic coupling between the manipulator joints
should be considered during the design and implementing the human-robot collision detection method
and collided link identification which contribute to the safety of the human-robot interaction.
References
[1] J. Shah, S. S. Rattan, and B. C. Nakra, “DYNAMIC ANALYSIS OF TWO LINK ROBOT
MANIPULATOR FOR CONTROL DESIGN USING COMPUTED TORQUE CONTROL,” Int. J. Res.
Comput. Appl. Robot., vol. 3, no. 1, pp. 52–59, 2015.
[2] R. Di Gregorio, “Dynamic model and performances of 2-DOF manipulators,” Robotica, vol. 24, no.
2006, pp. 51–60, 2019.
[3] D. Naderi, A. Meghdari, and M. Durali, “Dynamic modeling and analysis of a two d . o . f . mobile
manipulator,” Robotica, vol. 19, pp. 177–185, 2001.
[4] H. Høifødt, “Dynamic Modeling and Simulation of Robot Manipulators,” Norwegian University of
Science and Technology Department, 2011.
[5] M. Shahab, 2DOF Robotic Manipulator: Control Design & Simulation, vol. 20, December. 2008.
[6] A. Sharkawy, P. N. Koustoumpardis, and N. Aspragathos, “Human – robot collisions detection for safe
human – robot interaction using one multi-input – output neural network,” Soft Comput., vol. 7, 2019.
[7] Z. Song, J. Yi, D. Zhao, and X. Li, “A computed torque controller for uncertain robotic manipulator
systems : Fuzzy approach,” Fuzzy Sets Syst., vol. 154, pp. 208–226, 2005.
[8] R. H. MIDDLETON and G. C. GOODW1N, “Adaptive computed torque control for rigid link
manipulations,” Syst. Control Lett., vol. 10, pp. 9–16, 1988.
[9] Z. Yang, J. Wu, J. Mei, J. Gao, and T. Huang, “Mechatronic Model Based Computed Torque Control of
a Parallel Manipulator,” Int. J. Adv. Robot. Syst., vol. 5, no. 1, pp. 123–128, 2008.
[10] O. O. Obadina, M. Thaha, K. Althoefer, and M. H. Shaheed, “A Modified Computed Torque Control
Approach for a Master-Slave Robot Manipulator System,” in Towards Autonomous Robotic Systems.
TAROS 2018. Lecture Notes in Computer Science, vol. vol 10965, M. Giuliani, T. Assaf, and M.
Giannaccini, Eds. Springer, Cham, 2018, pp. 28–39.
[11] M. A. Llama, R. Kelly, and V. Santibañez, “Stable Computed-Torque Control of Robot Manipulators
via Fuzzy Self-Tuning,” IEEE Trans. Syst. MAN, Cybern. B, vol. 30, no. 1, pp. 143–150, 2000.
[12] R. M. Murray, Z. Li, and S. S. Sastry, A Mathematical Introduction to Robotic Manipulation. CRC
Press, 1994.
[13] L. R. HUNT, R. SU, and G. MEYER, “Global Transformations of Nonlinear Systems,” IEEE
TRAMACTIONS Autom. Control, vol. AC-28, no. I, pp. 24–31, 1983.
[14] E. G. Gilbert and I. J. HA, “An Approach to Nonlinear Feedback Control with Applications to
Robotics,” IEEE Trans. ONSYSTEMS, MAN, Cybern., vol. SMc-14, no. 6, pp. 879–884, 1984.
[15] F. L. LEWIS, D. M. Dawson, and C. T. Abdallah, Manipulator Control Theory and Practice. NEW
YORK • BASEL: MARCEL DEKKER, INC., 2004.
[16] D. Receanu, “Modeling and Simulation of the Nonlinear Computed Torque Control in Simulink /
MATLAB for an Industrial Robot,” SL, vol. 10, no. 2, pp. 95–106, 2013.
[17] KUKA Roboter GmbH, Lightweight Robot 4+, Specification. D-86165 Augsburg, Germany, 2010.