# Module 4.3: Mass, Center of Mass, and Inertia Tensors

- Course: [Course 4: Feedback Control & Robot Dynamics](https://roboticsconcepts.dev/courses/feedback-control-robot-dynamics.md)
- HTML Page: https://roboticsconcepts.dev/courses/feedback-control-robot-dynamics/mass-center-of-mass-inertia-tensors/
- Key Concepts: Center of mass & lever arms, Rotational inertia (mr²), Actuator placement & proximal mass design

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.

## 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 Sandbox: Mass & Rotational Inertia Slider Lab

Drag the motor placement slider from 0.05 L (right at the shoulder) out to 0.95 L (near the wrist), and watch how both rotational inertia I and the required shoulder torque bar shoot up quadratically.

## From 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

```text
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 α.

## Check Your Intuition

**Question:** 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?

- [ ] 3× — it scales linearly with distance
- [ ] 6× — distance doubles the lever arm twice
- [✓] 9× — rotational inertia scales with r²

**Explanation:** Since I = m·r², tripling the distance r multiplies inertia by 3² = 9×, which is why proximal actuator placement makes arms dramatically faster and lighter.

## Where You'll See This in Modern Robotics

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.

## Companion 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.

- Open in molab (WASM): https://molab.marimo.io/github/alchemicduncan/robotics-concepts-dev/blob/main/notebooks/course-4/03_mass_com_inertia_tensors.py/wasm
- Open in Google Colab: https://colab.research.google.com/github/alchemicduncan/robotics-concepts-dev/blob/main/notebooks/colab/course-4/03_mass_com_inertia_tensors.ipynb
- Download .py: https://roboticsconcepts.dev/downloads/notebooks/course-4/03_mass_com_inertia_tensors.py
- Download .ipynb: https://roboticsconcepts.dev/downloads/notebooks/colab/course-4/03_mass_com_inertia_tensors.ipynb
- Run locally: `uvx marimo edit --sandbox notebooks/course-4/03_mass_com_inertia_tensors.py`
