Distilling Contact Planning for Fast Trajectory Optimization in Robot Air Hockey

Julius Jankowski, Ante Marić, Puze Liu, Davide Tateo, Jan Peters, Sylvain Calinon

Abstract

Robot control through contact is challenging as it requires reasoning over long horizons and discontinuous system dynamics. Highly dynamic tasks such as Air Hockey additionally require agile behavior, making the corresponding optimal control problems intractable for planning in real-time. Learning-based approaches address this issue by shifting computationally expensive reasoning through contacts to an offline learning phase. However, learning low-level motor policies subject to kinematic and dynamic constraints can be challenging if operating in proximity to such constraints is desired. This paper explores the combination of distilling a stochastic optimal control policy for high-level contact planning and online model-predictive control for low-level constrained motion planning. Our system learns to balance shooting accuracy and resulting puck speed by leveraging bank shots and the robot's kinematic structure. We show that the proposed framework outperforms purely control-based and purely learning-based techniques in both simulated and real-world games of Robot Air Hockey.

Introduction

Robot air hockey represents a "nightmare" scenario for traditional robotics. It requires agile behavior (high speed), long-horizon reasoning (planning bank shots), and managing discontinuous dynamics (the sudden impact between mallet and puck). Current approaches usually fall into two camps: pure control-based methods, which are precise but computationally slow for complex contact interactions, and pure learning-based methods, which often struggle to respect physical limits like joint constraints and singularities.

This paper proposes a hybrid solution: a robot that plans winning shots in milliseconds while ensuring the arm operates safely within its physical bounds by separating strategic planning from low-level execution.

Methodology

The proposed architecture consists of three primary components that bridge the gap between high-level strategy and low-level motor control.

The hybrid control architecture: Puck state estimation feeds into a distilled contact planner, which provides targets for a low-level MPC.

1. Stochastic Contact Model

Puck dynamics are modeled as a Mixture of Linear-Gaussian (MLG) modes. This accounts for three distinct states: the puck sliding freely, hitting a wall, or being struck by the mallet. This allows the robot to predict not just where the puck will go, but the uncertainty of that prediction, enabling "chance-constrained" planning.

2. Policy Distillation via Energy-Based Models (EBMs)

Offline, the system solves thousands of optimal control problems that balance scoring probability against puck speed. These solutions are distilled into an Energy-Based Model. Unlike standard neural networks that output a single action, an EBM learns an "energy landscape" where low energy corresponds to high-quality shooting angles. This is crucial for air hockey, which is multi-modal—there might be multiple equally good ways to hit a puck, such as a direct shot or a bank shot.

3. Online Model Predictive Control

At runtime, the robot uses the EBM to quickly pick a target contact point. A sampling-based Model Predictive Controller (MPC) then calculates the exact joint trajectories needed to hit that point while respecting safety constraints and robot kinematics.

Key Insights and Strategic Behavior

A significant finding was the system's ability to exploit the robot's kinematic structure. The model learned that bank shots allow the robot to strike the puck at angles where the arm's mechanical advantage is higher, resulting in faster shots than a direct hit might allow.

The robot executing a complex bank shot, leveraging wall reflections to score while maintaining high puck velocity.

Experimental Results

The framework was evaluated in both MuJoCo simulations and on a physical KUKA iiwa14 LBR robot arm. In real-world tests, the proposed framework demonstrated superior performance:

  • Scoring Accuracy: The "Accuracy-focused" policy achieved a 78% score rate, significantly higher than the control-based baseline (49%) and the RL baseline (13%).
  • Puck Speed: The "Aggressive" version achieved average puck speeds of 2.37 m/s, nearly double the speed of the baselines.
  • Sim-to-Real: The distilled policy transferred robustly to the physical robot without additional fine-tuning, a common failure point for pure RL approaches.

Conclusion

By combining the strategic reasoning of high-level contact planning with the precision of low-level MPC, this framework achieves real-time, agile performance in a challenging robotic task. Future work includes accounting for airborne pucks and integrating active opponents into the energy-based planning landscape.

Summary updated

BibTeX
@misc{jankowski2024distilling,
  author = {Julius Jankowski and Ante Marić and Puze Liu and Davide Tateo and Jan Peters and Sylvain Calinon},
  title = {{Distilling Contact Planning for Fast Trajectory Optimization in Robot Air Hockey}},
  year = {2024},
  eprint = {2407.03705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.03705},
}
Figure