Mass, Center of Mass, and Inertia Tensors
If you've ever swung a hammer while holding the wooden grip versus flipping it around and swinging it from the heavy steel head, you already understand rotational inertia in your bones. The total weight in your hand didn't change by a single gram, yet one way feels effortless and the other feels like wrestling a crowbar.
Core ideas covered in this module
- Center of mass & lever arms
- Rotational inertia (mr²)
- Actuator placement & proximal mass design
Mass vs. center of mass vs. r-squared
For straight-line motion, F = m·a tells the whole story: twice the mass takes twice the push. For spinning joints, distance from the pivot matters far more than raw mass alone. A point mass m sitting at radius r from a hinge has rotational inertia I = m·r².
Notice that squared r. Move a 2 kg motor twice as far down a robot arm, and its rotational inertia doesn't double — it quadruples. Meanwhile, the arm's Center of Mass (CoM) shifts outward too, lengthening the lever arm that gravity pulls on every time the shoulder lifts.
Why engineers hide heavy motors near the shoulder
Think about how a human arm is built. Your shoulder and upper arm carry thick muscles; your forearm tapers down; your fingers are light tendons driven remotely from the forearm. Robot designers copy that exact trick for the exact same physics reason.
If you bolt a heavy wrist actuator straight out at the end of a long link, the shoulder motor now has to accelerate both the payload and that wrist motor through a huge radius r. Put the elbow and wrist motors back near the shoulder instead — driving the outer joints through belts, pushrods, or cable transmissions — and the outer links stay feather-light.
Interactive lab
Mass & Rotational Inertia Slider Lab
MuJoCo WASM· LiveFrom a single scalar I to a 3D inertia tensor
In 2D around a single hinge pin, inertia is just one number I. Once a rigid link tumbles in 3D space, how hard it is to spin depends on which axis you twist around — spinning a broomstick along its long axis is trivial compared to cartwheeling it end-over-end.
We pack those directional resistances into a 3×3 symmetric matrix called the inertia tensor, alongside the link's center of mass offset. In every URDF or MJCF robot description file, each rigid body carries those exact numbers: mass, center-of-mass XYZ, and the 3×3 inertia matrix.
Point-mass rotational inertia
I = Σ mᵢ · rᵢ² and τ_accel = I · α
Because radius r is squared, mass near the tip dominates rotational inertia and forces the base actuator to burn far more torque for the same angular acceleration α.
You move a 2 kg elbow actuator from 0.25 m away from the shoulder out to 0.75 m away (3× farther). By what factor does that motor's contribution to shoulder rotational inertia grow?
Legged robots like Spot, Unitree quadrupeds, and modern humanoids obsessively cluster knee and ankle actuators up in the hip or thigh, using linkages or belts below so legs can swing rapidly without bruising impact inertia.
Hands-On Python Notebook
03 · Mass Distribution, CoM & Rotational Inertia
Compute composite center of mass and parallel-axis inertia tensors as motor mass slides from wrist to shoulder.
Try this on your own inside the notebook
- Compare peak swing torque for wrist-mounted vs. cable-driven shoulder motors
- Compute the 3×3 inertia tensor of a rectangular link + gripper payload
In Google Colab, use File → Save a copy in Drive to keep your own edits and notes. Or download the files directly:
uvx marimo edit --sandbox notebooks/course-4/03_mass_com_inertia_tensors.pyWrap up this module
Saved automatically in your browser profile so you can pick up right where you left off.