Module 9 : Robot Dynamics & controls
Lecture 32 : General procedure for dynamics equation forming and introduction to control
We clearly see that to use Lagrange method to get dynamical equations for a robotic manipulator first we need to get expression for K.E. & P.E. of Robot manipulator.
  To get the enrgy we need to know linear velocity of c.g. & angular velocity of each link of Robotic manipulator. we have seen in the modules Kinematics of Robot how to get these velocities expressed in the global co-ordinate reference frame. Explained below is general preocedure to be followed to carry out Lagrange formulation for a Robotic manipulator.
  Following that we will see use of Lagrange method to obtain equations of dynamics for 2-R manipulator.
  General procedure for formulation of robot dynamics
  STEP 1
  Perform kinematic analysis to. find out velocities of c.g.'s of robot links.
  STEP 2
Find the kinetic energy
 
  Note Ii is in the link reference frame &
  STEP 3
  Now we will express K.E. as so that we will get D(q) matrix. Refer kinematic analysis modules for details.
 
STEP 4
 

The Potential energy is where g = gravity vector in base coordinate system.

  STEP 5
  Now we will apply Lagrange equation (simplified version) to get the robot equation.
 
  Note that generalized force may contain damping terms.
  The equation is 2nd order ordinary differential equation in general nonlinear . It can be solved for q's, given the torques applied. Its numerical solution can be found out by using MATLAB.
   
2