Professional Documents
Culture Documents
Dynamic model can be found for any manipulator from this Lagrange function L using the
relation
( )
̇
Where is the joint displacement and ̇ is the joint velocity of the ith joint.
4.3 Dynamic Model of a 2 DOF Manipulator based on Lagrangian Mechanics
For Link1
The potential energy is given by:
Where,
̇
̇
( ̇ ) ( ) ̇
̇ ̇
̇ ̇
For Link2
The potential energy is given by:
For Link2, the Cartesian position coordinates (x2, y2) of the center of mass of link are:
̇ ̇ ( ̇ ̇ )
̇ ̇ ( ̇ ̇ )
The velocity at the end of the link 2 can be found using the relation
̇ ( ̇ ̇ )
̇ ( ̇ ̇ ) ̇
( ̇ ̇ ) ̇ ( ̇ ̇ )
̇ ( ̇ ̇ ) [ ]
̇ ( ̇ ̇ )[ ]
̇ ( ̇ ̇ ) ̇ ( ̇ ̇ )
̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )
Where,
̇ ̇
{ ̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )}
( )( ̇ ̇ )
̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )
( ̇ ̇ )
̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )
Calculation of Lagrangian
̇ ̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )
( ) ̇ ( ̇ ̇ ) ( ̇ ̇ ̇ )
( )
The torque can be found from the Lagrange function using the relation
( )
̇
From (9),
( )
( ) ̇ ( ̇ ̇ ) ( ̇ ̇ )
̇
( ) {( ) ̇ ( ̇ ̇ ) ( ̇ ̇ )}
̇
[( ) ] ̈ [ ] ̈
̇ ̇ ̇
[( ) ] ̈ [ ] ̈
( ̇ ̇ ) ̇ ( )
Similarly,
[ ] ̈ ̈ ̇
(13) and (14) represent the equations of motion (dynamic model) of a 2-DOF manipulator
arm. It can be observed that this technique is complex just for a simple 2-DOF manipulator.
Finding the dynamic model for higher DOF manipulator arm would be even more complex.
Hence a generalized approach called Lagrange Euler Formulation is followed.
Step 2: Obtain the link transformation matrix for each link and from these matrices
compute product matrices and so on using the formula
Step 3: Define a 4X4 matrix Qj depending on whether the joint is revolute or prismatic as
follows:
[ ]
[ ]
Step 4: For each link i, determine the inertia tensor Ii w.r.to frame {i} using the relation
[ ]
Step 5: compute dij for i, j = 1, 2, 3, …….n using the relation
Step 6: Compute the inertia coefficients Mij for for i, j = 1, 2, 3, …….n using the relation
∑ [ ]
Step 7: Compute the velocity coupling coefficients hijk for for i, j,k = 1, 2, 3, …….n using the
relations
( )
∑ * +
( )
{
Step 8: Compute gravity loading terms Gi for each link i = 1, 2, 3, …….n using the relation
Step 9: Substitute all the coefficients in below equation to formulate the ith equation for
torque τi.
∑ ̈ ∑∑ ̇ ̇
Desired Task
(Position & Orientation
of end effector)
Actuator
Commands
𝑞
τ 𝑞̇
Manipulator
Trajectory 𝑞̇
Planner Control System Manipulator 𝑞 Actual Joint /
𝑞̈ end-effector
location,
𝑞̇ 𝑞 velocity etc.
Control set-points Feedback
The manipulator control can be open loop or closed loop. If the dotted section (feedback) is
removed from the fig.2, it becomes open loop control. In presence of dotted line (feedback),
the control is closed loop.
In case of open loop manipulator control, depending on the desired task, the trajectory
planner gives the position, velocity and acceleration set-points to the manipulator control
system. The manipulator control system gives commands to actuators of manipulator to
achieve the desired task.
In case of closed loop manipulator control, depending on the desired task, the trajectory
planner gives the position, velocity and acceleration set-points to the manipulator control
system. The actual manipulator parameters like position, velocity and acceleration are also
fed back via the feedback element to the manipulator control system. The manipulator control
system then gives commands to actuators of manipulator to achieve the desired task.
Typical robot control architecture for n-DOF manipulator is shown in fig.3.
Joint 1 Manipulator 𝑞 𝑞̇
Controller Joint 1 model
Joint 2 Manipulator 𝑞 𝑞̇
Joint Control Controller Joint 2 model
System
.
.
.
Power
Comparator Controller Actuator Manipulator Sensors
Amplifier
Feedback
Elements
The manipulator parameters (position, velocity and acceleration) are measured by sensors and
fed back to the input side by the feedback elements. The actual manipulator parameters are
compared with the set values of parameters in the comparator. The error is given to the
controller, which decides action to be taken. The control action from the controller is
amplified using a power amplifier and fed to the actuator. The actuator causes changes in
manipulator to bring the parameters close to set values. This process is repeated until the set
and actual values of manipulator are equal.
Servo-based Model-based
𝜏𝑎 𝑠 𝜏𝑎 𝑠 𝜃𝑎 𝑠
𝐼𝑒𝑓𝑓
𝑆 𝐼𝑒𝑓𝑓 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐾𝑑 𝑆 𝐾𝑝 𝐵𝑒𝑓𝑓 𝑆
𝐸 𝑠
𝜃𝑑 𝑠
[ ]
(3) represents a system with unit inertia. Thus the model based portion is reduced to unit
inertia system. The servo portion is based on error, which is given by:
( )
( )
( )
( ) ( )
( )
√ (7)
Also,
But √
(8)
√
Thus it can be observed that with proper choice of Kp and Kd, any desired response of the
system can be obtained.
From (7),
(9)
It is generally desired that the system should be critically damped, for which substitute
in (8)
(10)
Servo-based Model-based
𝜏𝑑𝑖𝑠𝑡 𝑠
𝜏𝑎 𝑠 𝜃𝑎 𝑠
𝐼𝑒𝑓𝑓 𝜏𝑎 𝑠
𝑆 𝐼𝑒𝑓𝑓 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐾𝑑 𝑆 𝐾𝑝 𝐵𝑒𝑓𝑓 𝑆
𝐸 𝑠
𝜃𝑑 𝑠
( )
Let us assume that the disturbance is a step function of magnitude K, for which
( )
( )
( )
( )
( )
( )
For the steady state error to be zero, the gain Kp should be infinite, which is impossible. So in
the presence of disturbance, the manipulator does not exactly reach the desired position.
Hence to ensure that the effect of disturbance is minimum on the system, the steady state
error ess should be very small, which is possible by setting a high value of Kp. The value of Kp
should be increased to a limit such that it does not cause oscillation of the system.
Servo-based Model-based
𝜏𝑎 𝑠 𝜏𝑎 𝑠 𝜃𝑎 𝑠
𝐼𝑒𝑓𝑓
𝑆 𝐼𝑒𝑓𝑓 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐾𝑑 𝑆 𝐾𝑝 𝐾𝑖 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐸 𝑠
𝜃𝑑 𝑠
[ ]
(3) represents a system with unit inertia. Thus the model based portion is reduced to unit
inertia system. The servo portion is based on error, which is given by:
( )
( )
( )
( ) ( )
Servo-based Model-based
𝜏𝑑𝑖𝑠𝑡 𝑠
𝜏𝑎 𝑠 𝜃𝑎 𝑠
𝐼𝑒𝑓𝑓 𝜏𝑎 𝑠
𝑆 𝐼𝑒𝑓𝑓 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐾𝑑 𝑆 𝐾𝑝 𝐾𝑖 𝑆 𝐵𝑒𝑓𝑓 𝑆
𝐸 𝑠
𝜃𝑑 𝑠
Let us assume that the disturbance is a step function of magnitude K, for which
( )
( )
( )
( )
( )
Hence the PPID controller eliminates the error completely. Hence the manipulator reaches
the desired target position even in the presence of disturbance.
End of unit-4