# Lecture 03 — Rigid-Body Dynamics, Mass & Inertia

## 01 | Correct geometry is not correct dynamics

Now that we have normalized geometry and coordinate frames, we can ask how an object moves when a force or torque is applied. A rigid-body simulation uses a mass, a center of mass, and a rotational inertia description to predict motion. If those properties are wrong, a beautifully modeled robot can accelerate, tip, rotate, or settle in ways no physical robot would. The common mistake is to tune a contact or motor parameter to conceal a mass-distribution error.

Picture two tools that have the same external shape and total mass. One has a heavy motor near its center. The other has heavy components near the ends. A straight-line push through the center of mass may produce similar linear acceleration, but a twisting impulse about the central axis produces different angular accelerations. The outlines match, the masses match, and the dynamics differ because the rotational inertia differs.

This lecture develops a diagnostic workflow rather than asking you to memorize formulas in isolation. We will separate translation from rotation, derive the relevant inertia quantities, examine frame transformations, and compare simulated motion against reproducible experiments. We will treat the rigid assumption as a model that can fail for soft fingertips, flexible cables, and impact deformation, not as a guarantee of physical truth.

Our illustrations use idealized objects with known dimensions. They are teaching examples, not fabricated laboratory measurements. By the end we will have a script that calculates inertia from simple geometry, performs consistency checks, and predicts an angular response. We'll also design measurements that can reveal where the rigid-body approximation stops being sufficient.

## 02 | Translation: force, mass, and acceleration

For a body of constant mass, Newton's second law relates net force to linear acceleration of the center of mass. In a simple inertial frame, force equals mass times acceleration. That doesn't mean every observed force is a known actuator input. Gravity, normal reactions, friction, cable tension, impacts, and aerodynamic drag can all contribute. Draw the full force diagram before using the equation.

Consider a two-kilogram block on a nearly frictionless horizontal guide. If a net horizontal force of four newtons acts on it, the ideal acceleration is two meters per second squared. If the same net force acts on a four-kilogram block, the acceleration is one meter per second squared. If the guide has friction, the applied actuator force is not necessarily the net force. We must subtract modeled resistance and account for transient contacts before inferring mass.

The center of mass follows the resultant force. A force applied away from the center of mass can cause translation and rotation simultaneously. That is a key reason a pushing experiment becomes confusing when a robot finger contacts an edge rather than the middle of a block. Do not infer incorrect mass from a measured trajectory before checking whether the body also rotates and interacts with the floor differently.

A useful validation experiment changes one force level at a time while retaining the same initial state and recording acceleration and uncertainty. Plot measured acceleration against net force. The simplest model predicts a straight line whose slope is reciprocal mass. A nonzero intercept, hysteresis, or force-dependent residual points to unmodeled drag, static friction, controller bias, or sensor calibration. Begin with the cleanest experiment the hardware allows.

## 03 | Torque and rotational acceleration

Force explains translation, but where the force acts determines its rotational effect. The torque about a chosen point is the cross product of the lever arm from that point to the application location and the applied force. Its magnitude is lever-arm length times force times the sine of the angle between them. A force through the center of mass produces no torque about that center; the same force at an offset can create a large twist.

For rotation about a fixed principal axis, the simple relationship is torque equals moment of inertia times angular acceleration. But for a freely rotating three-dimensional body, the more general Euler equation includes the rate of angular momentum and the cross product between angular velocity and inertia-weighted angular velocity. Rotational dynamics become coupled when the body spins about axes that are not principal axes. That is why a single scalar inertia is insufficient for general robot parts.

Imagine a wrench being pushed at its end. Moving the push point twice as far from the axis doubles the torque for the same perpendicular force. Increasing inertia by the same factor halves the initial angular acceleration, provided other torques and initial angular velocity are controlled. In a grasp experiment, the effective lever arm depends on actual contact location and surface normal, so torque errors can originate in geometry rather than inertia alone.

Test rotations in isolation first. Suspend or support a known body so contact effects are minimized, apply repeatable angular inputs, and record orientation and angular velocity. If the simulator predicts the wrong yaw response, check the torque direction, reference frame, inertia tensor and controller latency before adjusting friction. The observed spin is a consequence of all those assumptions.

## 04 | Moment of inertia depends on shape

Rotational inertia describes how mass is distributed relative to an axis. For point masses, each contribution is mass times squared perpendicular distance from the axis. Material farther from the axis matters disproportionately. We can calculate exact inertias for idealized shapes and use them as unit tests for imported robot components.

A solid rectangular box with mass m and side lengths a, b and c has inertia about its center aligned with principal axes. The component about X is m times b squared plus c squared, divided by twelve. About Y use a squared plus c squared; about Z use a squared plus b squared. The formula depends on dimension definitions and the axis alignment. An alternative is a homogeneous solid sphere: its inertia about any diameter equals two fifths of mass times radius squared.

Consider two objects with the same mass and similar outer radius. A thin ring concentrates mass far from its center and has an inertia of mass times radius squared about its central axis. A solid disk of the same radius and mass has half that value. For the same torque, the disk initially accelerates about twice as quickly as the ring. This difference appears even though a casual visual inspection might consider them nearly identical.

Compute textbook values before trusting a physics engine import. Check kilograms and meters; inertia has units of kilogram meters squared. If you enter centimeter dimensions as meters, inertia can be wildly wrong. If inertia was calculated from a CAD model with a density assumption, record it. If you hand-entered a scalar into a three-axis tensor, verify that the simplification actually fits the shape.

## 05 | Center of mass and the parallel-axis theorem

Most real robot links are assemblies. We need a systematic way to combine multiple component masses. The aggregate center of mass is a mass-weighted average of the component centers. If a motor is moved farther along a robotic forearm, the total mass may remain constant while the center of mass shifts toward the motor. That changes both gravity torques and how the link responds to impacts.

Once we know each component's inertia about its own center of mass, we must express it about a common point and orientation. The parallel-axis theorem handles translation: add the mass times the quantity d squared times the identity matrix minus the outer product of d with itself. Rotation into a common coordinate frame uses R times the inertia matrix times R transpose. Add the transformed tensors to obtain the assembly inertia. Those operations are not interchangeable with simply adding scalar values around unrelated axes.

Picture two identical compact weights fixed near the center of a bar. Move the same weights toward the ends while holding total mass fixed. The center of mass may remain in the middle if placement is symmetric, but inertia about the central perpendicular axis increases. Center of mass alone therefore does not tell us rotational inertia. Measure the actual distribution rather than assuming a central mass with the right total weight is sufficient.

A practical assembly audit lists each component, its mass, its center location, orientation, and its local inertia. Then it computes the aggregate center and tensor and compares the result to the simulator's compiled body values. Even if the visual CAD assembly looks correct, an inertial transform may have been omitted or applied twice. Testing a simple two-weight assembly catches mistakes before they contaminate a complex articulated robot.

## 06 | The inertia tensor and principal axes

An inertia tensor is a symmetric three-by-three matrix. Its diagonal elements describe inertia about the chosen axes, while its off-diagonal elements capture products of inertia that couple rotations. It should not be replaced by a diagonal matrix arbitrarily if the axes are not principal axes. In the correct center-of-mass frame and principal orientation, the tensor is diagonal. In another frame, it may not be.

For any physically nondegenerate rigid body, the tensor should be symmetric and positive definite; idealized degenerate point or line distributions can yield zero moments about certain axes. Check eigenvalues and triangle inequalities for physically realizable principal moments. A negative principal moment is not a clever parameter to compensate for solver behavior. It is evidence of bad data or an invalid model.

Visualize a long thin rod. It rotates easily about its length compared with an axis perpendicular to the rod. Now tilt the rod relative to the global X, Y, Z axes. The physical inertia has not changed, but the matrix components expressed in world axes have. Transforming the tensor correctly as the body rotates is part of dynamics. The magnitude of a single diagonal entry is not an intrinsic property independent of coordinate choice.

This matters during debugging. A robot part that spins strangely may have its inertia tensor expressed in CAD coordinates but attached to a different simulation frame. Inspect the inertial frame explicitly. Verify orthonormal rotations and determinant plus one, check tensor symmetry, and compare the principal moments with a simple geometric estimate. If the values differ by orders of magnitude, fix the pipeline before tuning controllers.

## 07 | Gravity, tipping, and support

Gravity acts at the center of mass. Whether a supported object remains upright depends on the position of that center relative to the support region, external forces, and motion. In the simplest quasi-static test on a level surface, the vertical projection of the center of mass staying within the support polygon is a useful stability condition. Near an edge, small disturbances can produce tipping. But dynamic systems can still topple before or after a static geometric threshold due to momentum, acceleration and changing contacts.

Imagine a tall equipment enclosure on a narrow base. Move a heavy battery from the bottom to the top while keeping the total mass constant. The center of mass rises, and a lateral acceleration may produce a larger overturning tendency relative to resisting support geometry. Move the battery horizontally toward one edge and the static margin becomes smaller. A simulator that assumes uniform density may predict a comfortable margin while the physical object is near instability.

For a simple free-body diagram, mark gravity through the center of mass, ground reactions at contacts, and any actuator force. Compare moments about a candidate tipping edge. On a ramp, account for the direction of gravity relative to the contact plane and the possible onset of slip before tipping. Sliding and tipping are competing failure modes; the lower threshold can govern.

Build a test with a measured object and adjustable inclination. Increase the angle slowly and record first slip and first tip separately. Replicate the same setup in simulation, including actual support shape and contact surfaces. Report the result as a distribution over repeated trials, not as one dramatic video. Friction can affect which failure appears first, but center-of-mass location and geometry still have to be right.

## 08 | Impacts, energy, and solver effects

Rigid-body dynamics become more challenging at collision. The simulation must approximate an abrupt change in momentum while preventing excessive penetration. A restitution parameter often represents how much normal relative velocity is recovered after impact, but it is not a universal material constant across all speeds and geometries. Compliance, contact duration, friction, angular motion and numerical settings influence observed rebound.

In an ideal isolated impact, linear and angular momentum are constrained by external impulses. Kinetic energy need not be conserved when an impact dissipates energy. For a freely moving body, translational kinetic energy is one half mass times speed squared, while rotational kinetic energy is one half angular velocity transpose times inertia times angular velocity. This distinction helps track whether an unexpected spin appears at impact and whether contact impulses are physically plausible.

Imagine dropping a box onto a rigid plane from a known height. First compare the fall trajectory before impact; that checks gravity and initial state. Then compare impact timing, peak force only where a sufficiently fast force sensor is available, rebound height, lateral slip and final rest orientation. Do not tune restitution to match rebound height while ignoring an obvious sideways collision or incorrect inertia.

Repeat the simulation with smaller timesteps and controlled solver settings. If the peak force grows without convergence as the contact becomes stiffer or the timestep changes, focus on robust observables such as integrated impulse and post-impact velocity rather than a misleading instantaneous force spike. The goal is not to claim a perfectly resolved microscopic impact using a rigid solver. It is to define a useful operating envelope and measure error within it.

## 09 | Identifying mass properties from experiments

CAD calculations provide initial estimates; experimental identification asks whether those estimates agree with motion. Begin with the most directly measurable parameter, total mass, using a scale. Estimate the center of mass through balance, suspension, or geometry-based calculations with documented assumptions. For moments of inertia, controlled oscillation or angular-response tests can reveal rotational behavior when friction, actuator torque, and damping are sufficiently understood.

Identification has limits. If you only observe a body translating along one axis, you will not recover the full three-dimensional inertia tensor. Several combinations of inertia and unmodeled damping may produce similar observed trajectories. We call this an identifiability problem. Design multiple independent excitations and measured outputs that distinguish candidate parameter values rather than optimizing a large vector against one curve.

A useful objective compares recorded positions, orientations, angular velocities and possibly measured forces with the corresponding simulation output. Keep an original baseline, fit on a designated calibration set, and hold out different initial conditions or input magnitudes for validation. Weight error terms based on measurement precision and intended use. Do not allow highly sampled video positions to drown out a critical but less frequent contact event solely because there are more samples.

Inspect residual patterns after fitting. An angular error that grows with input speed might involve damping or actuator limits, not inertia alone. An error isolated to impacts may involve contact geometry or solver assumptions. A systematic bias in one orientation may reveal a frame mistake. The central test is prediction on new trials, not minimizing loss on the measurements that selected the parameters.

## 10 | A defensible dynamics model card

Our final deliverable is a dynamics model card with units, frame definitions, geometry provenance, total mass, center of mass, inertia tensor, measurement methods, fitted quantities, solver settings, and independent validation results. Include the specific task and operating conditions where the model is useful. Don't describe an engine as universally physically accurate. Instead, state the motions and measurable tolerances it has demonstrated.

A critical reviewer might ask why the model rotates too quickly around one axis. The answer should start with the applied torque, center-of-mass frame, inertia about that axis, and initial angular velocity. It should then address contacts, controller update rates, and numerical stability. Increasing damping may improve one trajectory without explaining the real discrepancy. An engineering explanation distinguishes what has been measured, what was inferred, and what remains unknown.

For the hands-on exercise, calculate a box inertia tensor, combine two offset masses with the parallel-axis theorem, and predict the angular acceleration under a known torque. Then move the masses outward, hold the total mass fixed, and observe the change in angular response. Compare the numerical results to a built-in unit test and explain which dimensions and assumptions control the outcome.

The larger lesson is that credible simulation depends on traceable physical parameters. A measured mass is evidence. A CAD-derived inertia is an estimate under a density model. A parameter fitted to motion is an inference that needs independent validation. Keep those categories separate, show failure cases, and save the exact scene and code versions. With these foundations we are ready to study friction and contact calibration without disguising a geometric or inertial mistake as a friction problem.
