AiRLIHockey: Highly Reactive Contact Control and Stochastic Optimal Shooting

Julius Jankowski, Ante Maric, Sylvain CalinonarXiv 2024 · DOI

Abstract

Air hockey presents a formidable challenge for robotics, requiring millisecond-level reactivity combined with long-term strategic planning under high stochasticity. We present AiRLIHockey, a hierarchical control framework that enables a KUKA iiwa robot to compete at a professional level. By decoupling contact planning from trajectory optimization and utilizing Energy-Based Models (EBMs) for fast strategic shooting, our agent achieved a perfect match record to secure first place in the NeurIPS 2023 Robot Air-Hockey challenge.

Introduction

Air hockey is characterized by high-speed dynamics and complex contact interactions between the puck, walls, and mallet. Effective play requires a robot to reason about these dynamics in real-time, balancing the need for optimal strategic shots with the computational constraints of high-frequency reactive control. Traditional stochastic optimal control methods often fail to meet the 50Hz update rates required for fluid gameplay on standard hardware. AiRLIHockey addresses this by distilling complex offline optimizations into efficient online policies.

Methodology

The AiRLIHockey framework is organized into a hierarchical architecture that separates high-level strategy from low-level motor control across four distinct layers:

  1. Puck State Estimation: An Extended Kalman Filter (EKF) tracks the puck's state, modeling dynamics as piecewise linear across three modes: free motion, wall contact, and mallet contact.
  2. Stochastic Shooting Planner: This layer determines the optimal contact point and velocity to score. To maintain speed, the system uses an Energy-Based Model (EBM) trained via Implicit Behavioral Cloning on thousands of offline-optimized scenarios.
  3. Mallet-level MPC: A sampling-based Model Predictive Control (MPC) approach, specifically Vp-sto, optimizes low-dimensional trajectory representations. This ensures the mallet reaches the planned contact point while respecting table boundaries.
  4. Joint-level Control: A Quadratic Programming (QP) solver translates mallet trajectories into joint-level motor commands for the KUKA robot, ensuring all physical limits are respected.
The hierarchical control framework of AiRLIHockey, illustrating the flow from puck estimation to joint-level control.

Key Insights: Energy-Based Models for Real-Time Strategy

A core innovation of AiRLIHockey is the use of Energy-Based Models to bypass expensive real-time optimization. By mapping puck states and potential shooting actions to an energy surface, the robot can identify the most promising shooting angles (e.g., distinguishing between a bank shot and a straight shot) through simple iterative sampling. This approach allows the robot to maintain a 50Hz refresh rate, ensuring it can react instantly to perturbations or changes in the puck's trajectory.

Energy surface visualization showing the optimization of shooting angles, where the lowest energy corresponds to the most optimal action.

Furthermore, the use of basis functions to represent trajectories in the MPC layer significantly reduces the search space. This decoupling of the contact state from the mallet trajectory ensures the system remains robust even when the puck's path is slightly perturbed after the initial plan is formulated.

Experimental Results

AiRLIHockey was evaluated during the Robot Air-Hockey challenge at NeurIPS 2023. The agent demonstrated exceptional dominance, ranking 1st out of 7 participants and winning every match in a double-round robin tournament. The system successfully showcased complex behaviors, including defensive maneuvering, direct shooting, and "preparing" the puck by bouncing it off walls to create better offensive opportunities.

Conclusion and Future Work

AiRLIHockey demonstrates that hierarchical decoupling combined with neural distillation of optimal plans can overcome the computational hurdles of high-speed robotic sports. While highly successful in simulation, future work will focus on narrowing the sim-to-real gap, specifically addressing the non-linear friction and latency inherent in physical hardware. Additionally, replacing the current heuristic state machine with a learned high-level strategy could further enhance the agent's tactical sophistication.

Summary updated

BibTeX
@misc{jankowski2024airlihockey,
  author = {Julius Jankowski and Ante Maric and Sylvain Calinon},
  title = {{AiRLIHockey: Highly Reactive Contact Control and Stochastic Optimal Shooting}},
  year = {2024},
  eprint = {2401.14964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.14964},
}
Figure