Rigid-Body Dynamics of Quadrupeds
The Model
A quadruped is modeled as a single rigid body with mass and inertia tensor , supported at four point contacts. The body state comprises:
- Position: (center of mass in world frame)
- Orientation: (rotation matrix, or Euler angles )
- Linear velocity:
- Angular velocity:
Equations of Motion
The Newton-Euler equations for a rigid body under gravity and contact forces:
where:
- is gravitational acceleration
- is the ground-reaction force at foot
- is the foot position in world frame
- The cross product operator represents rotational dynamics
Contact Constraints
For a foot in contact with the ground (foot in stance):
-
Kinematic constraint: No foot penetration
-
Friction cone: Forces must satisfy Coulomb friction where is the coefficient of friction, and is the horizontal component.
-
No negative normal force:
For a foot in swing (no contact):
Simplification: Single Rigid Body
The single-rigid-body (SRB) model makes several assumptions:
- No joint compliance: Legs are perfectly rigid (actually satisfied by stiff actuators)
- Instantaneous force transmission: Contact forces propagate to body immediately
- All legs support single point: We neglect the spatial extent of the body
- Fixed contact schedule: Stance/swing transitions occur at predetermined times (addressed in gait scheduling)
Despite these approximations, the SRB model is remarkably accurate for quadrupeds at trotting speeds because:
- Leg mass is small relative to body mass (typically 10-15% per leg)
- Leg stiffness dominates, so compliance errors are negligible
- Contact forces dominate the dynamics compared to leg inertia
Reference Dynamics
The MPC will track reference trajectories for position and orientation. We define:
- Reference velocity: (commanded, saturated)
- Reference position: (integrated reference)
- Reference heading: (from )
- Reference body height: (fixed or modulated)
The controller solves for ground-reaction forces that minimize:
subject to:
- Linearized dynamics at each timestep
- Friction cone and force bounds
- Contact schedule constraints from the fixed-timing gait
Why This Works
The key insight is that ground-reaction forces are the decision variables, not joint torques:
- Direct: We optimize directly for what the world constrains (contact forces)
- Convex: Friction cones are convex sets; force tracking cost is quadratic
- Real-time: The resulting QP is small enough to solve in 5 ms at 40 Hz
- Robust: No explicit modeling of leg dynamics (which is complex and robot-specific)
Next: Part 2 derives the discrete-time linear state-space form.