Techniqueintro
Euler-Lagrange dynamics of a manipulator
Also called Lagrangian dynamics of manipulators.
Derives the manipulator equation from energy. Write the kinetic energy (1/2) q'^T M(q) q' and the potential P(q), then the Euler-Lagrange equations give M, the Coriolis matrix C and gravity g.
Euler-Lagrange manipulator dynamics is the method that derives the equation of motion of a robot arm from its energy. You write the kinetic energy of the links as and their potential energy , and you apply the Euler-Lagrange equation to each joint. The result is the manipulator equation , with built from the derivatives of and the gradient of . The method needs no internal forces between the links, which is how it differs from the Newton-Euler equations used link by link.
In plain words
A robot arm stores energy in two ways. Moving links have kinetic energy, and links that are lifted have potential energy. If you can write both as functions of the joint angles and their rates, one fixed recipe turns them into the torque that each motor must give. The recipe takes derivatives only. You never need the forces that one link puts on the next, because those forces do no net work. The price is algebra: for an arm with many joints, the expressions become long, so the method is best for small arms, for symbolic models and for proofs about the structure of the equations.
When it applies
- The robot is a set of rigid bodies joined by joints, in a serial chain or a tree, so that the joint variables are independent generalized coordinates. Closed chains and contacts need extra constraints (see Variations).
- The reference frame is inertial. Gravity is m/s in , with up.
- The applied forces are gravity, which has a potential, and other forces that enter as generalized forces: the joint torques , external wrenches through , and friction.
- It is the method of choice when you want the equation in closed form, for a control proof such as skew symmetry or linearity in the parameters, or for an arm with two or three joints. For numerical work on long chains, the recursive Newton-Euler algorithm is faster.
The template
- Choose the joint variables and the forward kinematics of each link: the center of mass in and the orientation of a frame at the center of mass.
- Compute the Jacobians with and with , the angular velocity in coordinates.
- Form the joint-space inertia matrix , so that .
- Form the potential energy , where is the height of the center of mass.
- Write the Lagrangian and the equations for .
- Expand them into with
The numbers are the Christoffel symbols of the first kind. Lynch and Park write them as with the row index first (Section 8.1.2); the values are the same.
Why step 6 is right. From we get , so
The sum does not change if and swap, so it equals . Subtracting gives , which is the claimed form.
Terms with in are centripetal terms, and terms with are Coriolis terms.
Classic examples
A single link. One revolute joint, a link of mass with its center of mass at distance and inertia about it, in a vertical plane, with measured from the horizontal. Then and , so . There is no velocity term, because is constant.
The planar 2R arm with point masses. Take m, point masses of 1 kg at the link ends, in a vertical plane with heights measured upward and from the horizontal. Write , , and .
Steps 1 to 3. The masses are at and . Their speeds are and . Collecting the terms of :
Step 4. .
Step 6. Only and depend on , with and . The nonzero symbols are and . So
The torques are
Numbers. At , rad/s and , without gravity, , so N m. The arm needs these torques just to keep its joint rates constant. With gravity, and N m. At rest in the stretched horizontal pose , N m: the holding torques are N times the horizontal lever arms, m for joint 1 and m for joint 2.
The 2R arm with general links. With center-of-mass distances , and inertias , , the same steps give with the entries , and , where , and , and is the matrix above with replaced by . Gravity is with and . The torque is linear in ; this is the linearity in the dynamic parameters.
A Cartesian gantry. Three prismatic joints along , and , each stage carrying the next. is constant, so , and only the vertical joint feels gravity: . Each joint is a mass driven by a force.
Variations
- Closed form with Jacobians. Lynch and Park (Section 8.4) stack the link twists and write and a matching expression for , with block matrices built from the screw axes and the link inertias. This gives the same equation without symbolic differentiation.
- Recursive Lagrangian. Hollerbach (1980) organized the Lagrangian computation recursively along the chain and showed that it can be made to grow linearly in , like the Newton-Euler recursion.
- Constraints. If the robot closes a loop or touches the world, the constraints add a force with multipliers : (Lynch and Park, Section 8.7). See Pfaffian constraint and the Gauss principle of least constraint.
- Nonconservative forces. Friction torques and external wrenches enter on the right side as generalized forces, . They do not go into the Lagrangian.
- Motor inertia. A motor with rotor inertia and gear ratio adds about to the diagonal entry of its joint (Lynch and Park, Section 8.9).
- Floating base. A legged robot or a humanoid adds six coordinates for the pose of its base; see floating-base dynamics.
Pitfalls
- Velocity of the wrong point. needs the velocity of the center of mass of each link, not of the origin of the link frame. If you use another point, you must add the cross term of the spatial inertia.
- Frames of and . The rotational energy needs both in the same frame. In body coordinates is constant; in it is and changes with .
- Angles. In a planar arm with relative angles, link turns at , not at .
- Many matrices . Any with gives the same equation of motion. Only the Christoffel choice of step 6 makes skew-symmetric, which many control proofs need.
- Signs of gravity. appears on the left side. A sign error here makes gravity compensation push the arm down.
- Cost. Expanding the symbols by hand or with computer algebra grows quickly with . Hollerbach (1980) compared the operation counts of the formulations; the direct Lagrangian evaluation (the Uicker and Kahn form) grows as about , and the recursive forms grow as . Use the closed form for analysis and a recursive algorithm for simulation and control.
Exercises
- A link of mass 2 kg has its center of mass at m from the joint and kg m about it. Find the torque at , and rad/s. Answer: N m.
- For the point-mass 2R arm, find at rad, rad/s and rad/s with gravity. Answer: N m.
- Show that gives for the 2R arm, and that is not skew-symmetric at , .
- Show that the gantry has for all indices, and explain why a constant always gives .
- Show that for any arm. This is the energy balance that the skew symmetry property expresses.
References
- Kevin M. Lynch and Frank C. Park, Modern Robotics, Mechanics, Planning, and Control, Cambridge University Press, 2017, Chapter 8, Section 8.1 (Lagrangian formulation): 8.1.1 basic concepts and motivating examples, 8.1.2 general formulation (the Christoffel symbols and the Coriolis matrix), 8.1.4 Lagrangian versus Newton-Euler dynamics; Section 8.7 (constrained dynamics)
- Mark W. Spong, Seth Hutchinson and M. Vidyasagar, Robot Modeling and Control, second edition, Wiley, 2020, Chapter 6, Section 6.1 (the Euler-Lagrange equations), Section 6.2 (kinetic and potential energy), Section 6.3 (equations of motion) and Section 6.4 (some common configurations)
- Bruno Siciliano, Lorenzo Sciavicco, Luigi Villani and Giuseppe Oriolo, Robotics, Modelling, Planning and Control, Springer, 2009, Chapter 7 (the Lagrange formulation of manipulator dynamics)
- John M. Hollerbach, A recursive Lagrangian formulation of manipulator dynamics and a comparative study of dynamics formulation complexity, IEEE Transactions on Systems, Man, and Cybernetics 10(11), 730-736, 1980, the whole paper (the recursive Lagrangian form and the comparison of operation counts)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag AFJK9B Edit this page History Report an error Markdown