Whole Body Model Predictive Control for Spin-Aware Quadrupedal Table Tennis

David Nguyen, Zulfiqar Zaidi, Kevin Karol, Jessica K. Hodgins, Zhaoming XiearXiv 2025 · DOI

Introduction

Table tennis represents a "grand challenge" for robotics, demanding split-second perception, precise timing, and extreme agility. While robotic arms on fixed bases have previously demonstrated proficiency, legged robots introduce significant complexity: they must maintain dynamic balance while lunging and swinging. Furthermore, competitive table tennis involves high-velocity ball spin (up to 600 rad/s), which drastically alters flight paths via the Magnus effect. Without accounting for spin, a robot cannot accurately predict a ball's trajectory or execute a successful return. This research presents a system enabling a Boston Dynamics Spot quadruped to play table tennis by integrating high-speed vision, hybrid physics-neural prediction, and a novel whole-body Model Predictive Control (MPC) framework.

Methods

The system operates through a four-stage pipeline designed for low latency and high precision.

The experimental setup for quadrupedal table tennis, including high-speed cameras, a human opponent, and the robot's strike plane.
  1. High-Speed Perception: Two 165 fps overhead cameras track the ball. To minimize latency (~4ms), the system uses background subtraction to identify moving regions, followed by a fine-tuned YOLO CNN operating only on these small "patches."
  2. Spin-Aware Prediction: A standard physical model accounting for gravity, drag, and the Magnus effect is augmented with a learned residual neural network. This network analyzes errors in the physical model to estimate spin from observed trajectory curvature.
  3. Strike Aiming: A Sequential Quadratic Programming (SQP) optimizer determines the ideal paddle position, velocity, and angle required to return the ball to a target location with a specific outgoing spin.
  4. Whole-Body MPC: The robot's movement is governed by a kinematic planner using parametric Bezier curves. This allows for continuous-time strike constraints, enabling the robot to optimize the exact moment of impact. A low-level Whole-Body Controller (WBC) translates these plans into joint torques, coordinating the legs and arm for balanced, high-speed movement.

Key Insights

A central finding of this work is the effectiveness of hybrid modeling. Purely analytical models often fail to capture complex aerodynamic effects. By incorporating a small residual neural network, the researchers improved spin prediction accuracy (R²) from 0.42 to 0.70.

Comparison of spin prediction accuracy between a purely physics-based model and the hybrid residual model.

Additionally, the use of Bezier curves in the MPC framework addresses the limitations of discrete-time planning. By treating the strike time as a continuous variable, the optimizer produces smoother, more accurate hits. Interestingly, complex table tennis maneuvers like "loops" and "chops" emerged naturally from the MPC as efficient solutions to the aiming requirements, rather than being explicitly programmed.

Key Results

The system was rigorously evaluated through 650 unique ball trajectories for training and 150 real-world trials.

  • Perception: Achieved a median localization error of less than 1 cm.
  • Spin Handling: Successfully returned balls with incoming spins up to 280 rad/s and imparted outgoing spins up to 200 rad/s.
  • Reliability: Demonstrated a 90.1% return rate when aiming at specific targets.
  • Human Interaction: Capable of sustaining rallies exceeding 10 hits with human players.
  • Performance: The entire optimization loop runs at 100 Hz, with swing planning taking only a few milliseconds.

Limitations and Future Work

Current limitations include reliance on external cameras; moving perception on-board is challenging due to body vibrations. While the robot uses its whole body to swing, it remains stationary; future work will integrate "contact-implicit" optimization to allow stepping during rallies. Additionally, the system is currently reactive; future iterations could incorporate strategic game logic and opponent modeling (e.g., watching an opponent's paddle) to improve reaction times and competitive performance.

Summary updated

BibTeX
@misc{nguyen2025whole,
  author = {David Nguyen and Zulfiqar Zaidi and Kevin Karol and Jessica K. Hodgins and Zhaoming Xie},
  title = {{Whole Body Model Predictive Control for Spin-Aware Quadrupedal Table Tennis}},
  year = {2025},
  eprint = {2510.08754},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08754},
}
Figure