Dynamics

Lagrangian formulation

The Lagrangian formulation is a way of working out a robot's equations of motion by bookkeeping its energy, rather than by drawing every force and twist acting on every part. Instead of asking "what is pushing on this link, and that one, and the joint between them?", it asks a far simpler question: how much energy of motion does the whole robot have, and how much stored energy of position? You write down those two quantities, turn a mathematical crank, and the equations of motion fall out — torques, couplings, and all.

The heart of it is one quantity called the Lagrangian: the robot's kinetic energy (the energy it has by moving) minus its potential energy (the energy stored by being lifted up against gravity). The magic is that energy is a single number, not a tangle of directional forces, so you never have to track which way each internal push points or worry about the constraint forces the joints quietly exert on each other. Those drop out automatically. For a multi-joint arm where forces criss-cross in confusing ways, this is a huge relief — you describe the robot once, in terms of its joint angles, and the method handles the rest.

Because it is so systematic and tidy, the Lagrangian approach is a favorite for deriving the dynamics of complex robots on paper or in symbolic-math software, and it makes the structure of the result easy to see and reason about. It gives the very same equation of motion you would get the harder way, force by force — it is just a cleaner road to the same destination. Its trade-off is that, in its basic form, it is less suited to the fast, repetitive number-crunching a robot does live; for that, recursive force-balance methods are often quicker.

To derive the dynamics of a two-link pendulum arm, an engineer writes down only its kinetic and potential energy in terms of the two joint angles, then lets the Lagrangian method spit out the full equation of motion — no need to chase each internal joint force by hand.

Energy bookkeeping turns a messy force problem into a clean, systematic derivation.

It is named after Joseph-Louis Lagrange and reaches the same equations of motion as the Newton–Euler approach — energy bookkeeping versus force balance are two roads to one result.

Also called
Lagrangian dynamics拉格朗日力学能量法