Introduction

To use model based (non-linear) control, you need a dynamic model of the robot. You can derive robot dynamics from the Lagrange equation of motion, which uses the energies of the mechanical system. The model is the base of Computed Torque Control.

Lagrange equation

The Lagrangian is kinetic energy minus potential energy:

This is Newton's law, , written with energies.

The mass is at the end of a link of length .

This is non-linear. The moment of inertia is , and there is a gravity torque from the load.

Joint 1 is revolute () and joint 2 is prismatic (). The mass is at the end of the link.

With and , the Lagrange equation gives:

In vector form:

General form

For a robot with degrees of freedom:

  • is the vector of joint positions, and is the vector of joint inputs
  • is the manipulator mass matrix. It is always symmetric and positive definite, so it is always invertible
  • has all the terms that depend on joint velocity. A term like comes from centrifugal force (square of one joint velocity). A term like comes from Coriolis force (product of two different joint velocities)
  • has all the terms with the gravity constant

Each robot has a different model. For a two link planar robot (both joints revolute), with , , :

Note

This slide writes the first entry as . A later slide (dual rate computed torque) writes it as . The later form is the correct one, and this note uses it.