Torque Control in Discrete Time: Zero-Order Hold and Inertia-Aware Damping

Why a PD controller with gravity feedforward can saturate in simulation despite ample motor headroom: stale zero-order-hold torque and damping gains that ignore joint inertia.

In this article

  • What a zero-order hold is
  • Intuition: steering with stale information
  • How to tell the controller is the problem
  • The fix: recompute every physics substep
  • The second bug: damping that assumes unit inertia
  • Results
  • A related trap: the gravity readout
  • Practical considerations