Manipulator Basics · Theory · Module 09 of 14
09 — Manipulator Dynamics
Kinematics says where the arm goes; dynamics says what torques it takes. Derive the equation of motion M(q)q̈ + C(q, q̇)q̇ + g(q) = τ for a 2R arm, compute gravity and inertia torques with real numbers, and see what a payload changes.
Every motor torque a robot produces goes to one of four things: accelerating the links, the speed-dependent Coriolis and centrifugal effects, holding the links up against gravity, and overcoming friction. Knowing which dominates tells you how to size motors and design controllers.
Learning objectives
After this module you should be able to:
- Write the manipulator equation of motion and explain each term.
- Derive the 2R dynamics with the Euler–Lagrange method.
- Describe the recursive Newton–Euler algorithm and when it is used.
- Compute gravity, inertia and Coriolis torques for given states, and the effect of a payload.
- State the limitations of a simplified rigid-body model compared with a real industrial robot.
Conceptual explanation
A manipulator's dynamics relate joint torques to joint motion :
- Inertia : the mass matrix is symmetric, positive definite and configuration-dependent. A stretched arm is harder to swing than a folded one. Off-diagonal terms couple the joints: accelerating the elbow pushes back on the shoulder.
- Coriolis and centrifugal : quadratic in the velocities. They are small at low speed and significant in fast motions.
- Gravity : the torques needed to hold the arm still. For slow industrial motions this is usually the largest term.
- Friction : viscous, Coulomb and stiction in gears and bearings. On geared robots it is large and hard to model.
Two questions use the same equation. Inverse dynamics asks what torque produces a desired motion; it is used for feedforward control and motor sizing. Forward dynamics asks what motion a given torque produces; it is used for simulation.
Two ways to derive it
Euler–Lagrange works with energies: write the kinetic energy and potential energy as functions of and , then differentiate. It is systematic and gives the closed-form structure, which is ideal for analysis and for small arms. Newton–Euler applies and link by link. A forward pass propagates velocities and accelerations from the base out; a backward pass propagates forces and torques from the tool in. It runs in time and is what real-time controllers and simulators use.
About the model used here. The examples and the interactive figure use a 2R arm moving in a vertical plane: two rigid uniform rods, viscous friction only, an optional point payload. It shows the structure of manipulator dynamics faithfully. It is not an identified model of an industrial robot, which would add gear ratios and rotor inertia, Coulomb and Stribeck friction, joint elasticity, motor and drive limits, and cable forces. Identified parameters can differ from CAD values by tens of percent.
Mathematical formulation
Euler–Lagrange:
The Lagrangian: kinetic minus potential energy.
One equation per joint; τi is the generalised (non-conservative) force at joint i.
Christoffel symbols give C so that Ṁ − 2C is skew-symmetric, a property used in stability proofs.
The 2R arm in a vertical plane (link masses , centres of mass at , inertias about the centres of mass):
A payload of mass at the tool is folded into link 2: its mass becomes and its centre of mass and inertia shift by the parallel-axis theorem.
Diagrams
Worked examples
The parameters
| L₁ | L₂ | m₁ | m₂ | lc1 | lc2 | I₁, I₂ | friction |
|---|---|---|---|---|---|---|---|
| 0.4 m | 0.3 m | 2 kg | 1.2 kg | 0.2 m | 0.15 m | mL²/12 (uniform rods) | b = 0.05 N·m·s/rad |
Example 1: holding the arm horizontal
With both links horizontal () the arm is still, so only gravity acts:
With a 1 kg payload at the tool the holding torques rise to N·m, an increase of 66% at the shoulder and 167% at the elbow. Pointing the arm straight up () drops the gravity torques to : the weight then passes through the joints.
Example 2: the mass matrix depends on the pose
| q₂ | M₁₁ (kg·m²) | M₁₂ | M₂₂ |
|---|---|---|---|
| 0° | 0.4787 | 0.1080 | 0.0360 |
| 90° | 0.3347 | 0.0360 | 0.0360 |
| 180° | 0.1907 | -0.0360 | 0.0360 |
The shoulder's effective inertia at (stretched) is about 2.5 times its value at (folded). A fixed-gain controller tuned in one pose behaves differently in another. does not depend on .
Example 3: inverse dynamics of a fast start
Starting from rest at with rad/s²:
Even this brisk acceleration adds only about 9% to the shoulder torque; gravity dominates. The elbow torque also rises although its joint does not accelerate: that is the inertial coupling .
Example 4: Coriolis and centrifugal torques
At with the shoulder spinning at rad/s and the elbow still, N·m. The centrifugal effect on link 2 is felt at the elbow. It grows with the square of speed: at 4 rad/s it is four times larger.
Example 5: checking the model with energy
Simulating a frictionless fall from horizontal for 2 s with fourth-order Runge–Kutta at 1 ms, the total energy stays within J of its initial value while the kinetic energy peaks at 10.37 J. An energy test like this catches sign errors in or at once.
Interactive experiment
Interactive gravity torque of a 2R arm (needs JavaScript).
Real-world applications
- Gravity compensation: controllers add as feedforward so position loops do not need large integral action (Module 11).
- Computed-torque control uses the full model to linearise the arm.
- Motor and gearbox sizing uses inverse dynamics over the worst-case trajectories and payloads.
- Collision detection on collaborative robots compares measured motor current with the torque the model predicts. A large difference means unexpected contact.
- Simulation: forward dynamics drives physics engines and digital twins.
See the model working in Lab 08.
Common mistakes
Ignoring the coupling terms
M is not diagonal: moving one joint creates torque at the others. Independent joint controllers must reject this as a disturbance.
Assuming the mass matrix is constant
M(q) changes with the pose (Example 2). Gains tuned in one pose may be too soft or too aggressive in another.
Forgetting the payload
A payload changes link 2's mass, centre of mass and inertia. Industrial controllers require the payload to be entered, and wrong values give poor tracking and false collision alarms.
Trusting a CAD-based model for precise control
Friction, gear inertia and elasticity are missing from CAD. Precise feedforward needs parameter identification on the real robot.
Key takeaways
- M(q)q̈ + C(q, q̇)q̇ + g(q) + τf = τ: inertia, velocity effects, gravity and friction.
- Euler–Lagrange gives the structure; recursive Newton–Euler computes it in O(n) for control and simulation.
- M(q) is symmetric, positive definite and pose-dependent; gravity often dominates in slow motions.
- The 2R model here is a teaching model; industrial models add friction, drives and elasticity, and are identified on the robot.
Knowledge check
Write an answer to each question, then reveal the explanation. Your answers stay in your browser.
Question 1
Which term of the equation of motion remains when the arm is held still?
Explanation
Gravity g(q) (plus any static friction). With q̇ = q̈ = 0, the inertia and Coriolis terms vanish.
Question 2
Why is the shoulder's effective inertia larger when the arm is stretched?
Explanation
Link 2's mass is further from the shoulder axis: the m₂·2L₁lc2cos q₂ term in M₁₁ is largest at q₂ = 0.
Question 3
Name one property of M(q) and what it guarantees.
Explanation
Symmetric positive definite: the kinetic energy ½q̇ᵀMq̇ is positive for any motion, and M is always invertible, so forward dynamics is well defined.
Question 4
When is Newton–Euler preferred over Euler–Lagrange?
Explanation
For numerical, real-time computation on arms with many joints: its recursive form is O(n) and does not need the symbolic M, C and g.
Question 5
A 1 kg payload raised the shoulder holding torque from about 10.4 to 17.3 N·m. Why so much?
Explanation
The payload sits at the tool, 0.7 m from the shoulder: 1 kg × 9.81 × 0.7 ≈ 6.9 N·m extra, which is a large lever arm for a small mass.
Practise it in the labs
Then test yourself in practice exercises and challenge mode.
References and further reading
- J. Y. S. Luh, M. W. Walker and R. P. C. Paul, "On-line computational scheme for mechanical manipulators", ASME Journal of Dynamic Systems, Measurement and Control, 102, 1980 (recursive Newton–Euler).
- R. Featherstone, Rigid Body Dynamics Algorithms, Springer, 2008.
- M. W. Spong, S. Hutchinson and M. Vidyasagar, Robot Modeling and Control, 2nd ed., Wiley, 2020, chapter 6.