Whole-body control computes coordinated joint efforts for the robot's current state. Model predictive control plans feasible forces or motion over a horizon. A learned locomotion policy uses a fitted mapping from observations to actions and may work with either layer. An engineering comparison is meaningful when controllers share the same hardware, actuator limits, state estimates and test conditions.
- Separate current-state task coordination, future-horizon planning and the learned action interface.
- Choose observations and actions that match the actual estimator, motor API and transport delay.
- Use a common test protocol to compare task completion, falls, electrical energy and stoppage behavior.
- Characterize the supervisor and fallback independently before testing controller transitions.
1. Compare interfaces before controller families
A biped controller must estimate base motion and joint state, decide where to make contact, coordinate forces across the robot, and issue a command the motor drive can realize. Separate these responsibilities in the architecture diagram. A learned policy can select foot placements, joint position targets or torques. These choices allocate computation differently and expose different failure modes at the hardware interface.
Set up a common observation contract before changing controllers. It should specify axis signs, physical units, out-of-order data handling, estimator initialization and the age of each signal at action time. Define who owns joint torque and velocity limits. For a policy that produces joint positions, retain the actual low-level servo and its saturations in every comparison. Log measured actuator output where available, since two controllers can request similar motion while producing very different joint loads.
| Architecture | Online computation | Evidence to demand |
|---|---|---|
| Whole-body inverse dynamics | Choose feasible accelerations, contact loads and torques for current tasks and contact state. | Show task errors, contact residuals, active constraints and joint torque margins. |
| Reduced-order MPC with whole-body tracking | Forecast forces or foot placements over a horizon, then track references using the fuller robot model. | Report plan age, solve deadline misses, stance mismatches and feasibility after tracking. |
| Learned locomotion policy | Evaluate a trained policy from available observations and apply its action through the configured actuator interface. | Document training bounds, input normalization, latency, action saturation and held-out hardware behavior. |
| Hybrid policy and optimizer | Use learned footstep proposals, residual corrections or contact-conditioned actions with explicit dynamic constraints where appropriate. | Test each interface separately, including what happens when the learned input is stale or infeasible. |
2. Formulate contact and priorities in whole-body control
Inverse dynamics relates the robot's acceleration and gravity loads to actuated joint efforts and contact forces. A whole-body solver can prioritize feasible support forces and actuator constraints ahead of posture tracking and swing-foot accuracy. Priorities can be strict, as in a hierarchy of quadratic programs, or weighted. State the implementation because a high weight can still permit a task error when the optimizer trades it against another objective.
Register the force and torque sensor frame to the foot before comparing measured and estimated contact loads. Account for the sensor's position relative to the contact surface. At touchdown, rigid no-slip constraints approximate rather than reproduce pad compression, impact and slip. Declaring a foot fixed before the contact is established can pull the controller toward a physically inconsistent solution.
M(q) v̇ + h(q,v) = Sᵀτ + J꜀(q)ᵀ f꜀
- q is configuration and v is generalized velocity.
- M is the generalized inertia, h collects bias forces, and S selects the actuated degrees of freedom.
- τ contains joint torques and J꜀ᵀ f꜀ maps contact wrenches into generalized forces.
3. Make the MPC horizon and contact assumptions explicit
At each update, MPC solves for a sequence of predicted states and actions, applies the first action or tracking reference, and replans using new measurements. Many implementations simplify the robot to center-of-mass dynamics or a rigid body and use a planned contact sequence. Di Carlo and colleagues illustrate this approach on the quadrupedal Cheetah 3. The method motivates a biped design, but the reported quadruped timing and contact patterns do not establish biped limits.
Publish the planning step, horizon and constraint model. The real-time performance metric is solution age at application, including transport and scheduling. Measure the failure path as well as median solve time. When contact changes earlier or later than the plan expects, a previous solution may violate support assumptions even before it expires. Set a state-dependent validity check and test how the downstream controller behaves when that check rejects a plan.
min Σ(k = 0…H − 1) ℓ(x_k, u_k) + V_T(x_H), subject to x_(k+1) = F(x_k, u_k)
- H is the number of prediction steps and F is the discrete dynamics model.
- ℓ and Vₜ are stage and terminal costs.
- Include the chosen contact, torque and state constraints in the optimization.
4. Design the learned policy around hardware observations
Learned policies can exploit observations that are difficult to use in a small convex planner. Training often uses many simulated episodes and rewards related to motion tracking, stability and effort. Those choices bias the resulting behavior. If the robot cannot observe a contact flag, friction coefficient or perfect base velocity on hardware, keep that signal out of the deployed actor or explicitly replace it with a validated estimator input.
Berkeley Humanoid gives a biped example of co-design between hardware and learning. The current-feedback study on HRP-5P shows why a learned controller may need measured drive behavior when torque tracking differs from the nominal model. Both studies are platform-specific. Use independent test surfaces and payloads, and retain firmware-limit checks and explicit action validity criteria around learned control. Two policies with the same mean tracking error may differ substantially in recovery and intervention frequency.
aₖ = πθ(oₖ₋ₘ:ₖ), τcmd = G(aₖ,q,v)
- πθ is the fitted policy and oₖ₋ₘ:ₖ is an optional observation history.
- G is the actuator interface, such as a bounded joint servo or validated torque mapping.
- Treat πθ and G as distinct versioned elements in the test report.
5. Run a paired validation program
Start with replay and guarded hardware fixtures. Test state initialization, stale observations, estimator resets and the behavior that follows a missed inference or optimization deadline before permitting walking. A preselected stable transition or controlled stop is feasible only within certain states. Validate that envelope on the actual hardware. Use a separately engineered restraint and a verified independent stop for early walking trials.
Use identical command traces, terrain condition labels and payload cases across controllers. Randomize test order where the fixture permits. Report the number of runs and stops, electrical energy over completed courses, and the result of failed or shortened runs separately. Review logs of contact timing, swing clearance, support load residuals, body pitch, torque saturation and bus voltage. Keep the untouched traces for peer review and use recurring failure modes to prioritize the next change.
| Validation condition | Primary measurements | Review before expanding scope |
|---|---|---|
| Guarded standing and weight shifts | Base estimate age, foot force balance, joint effort and constraint residuals. | Verify state signs and independent stop behavior. |
| Repeated straight and turning courses | Completion and interventions by trial, tracking error and electrical energy over the route. | Normalize for speed, payload and distance. Show incomplete trials. |
| Representative contact changes | Unexpected touchdown timing, slip, torque saturation and peak body attitude. | Group results by measured surface and load. |
| Stale plan or action injection in replay | Watchdog detection time, transition behavior and command validity. | Exercise branch logic in the fixture before testing transitions during motion. |