# KlaskTron: An Open-Source Platform for Physical Adversarial Multi-Agent RL

Robotics.world

> A $2,500 desktop KLASK rig with dual CoreXY gantries and open hardware lets any lab study physical adversarial multi-agent RL without building an arena.

**arXiv**: 2611.03138

**Published**: 2026-11-02

**Authors**: Aswin Ramachandran, Jona Schulz, Maurus Derungs, Carlo Angelini, Tobias Meier, Raffaello D'Andrea

## In plain words

Physical multi-agent reinforcement learning is held back less by algorithms than by infrastructure: competitive multi-robot testbeds tend to be either industrial-grade and expensive or limited to single-agent tasks, and they rarely ship with the designs needed to reproduce them.

## AI summary

## Overview

**Research area:** Robot learning / physical multi-agent reinforcement learning (MARL), with an emphasis on sim-to-real transfer and open-source benchmark hardware.

**Technical level:** Advanced. The paper assumes familiarity with PPO, self-play, domain randomization, system identification, Kalman filtering, and CoreXY gantry mechanics, though the platform itself is described in enough mechanical detail to be built by a capable lab.

**Scope (one sentence):** The paper introduces KlaskTron, a sub-$2500 open-source dual-gantry robot that plays the tabletop game KLASK, together with an Isaac Lab digital twin and a PPO plus learned-actuator-model baseline that transfers zero-shot from simulation to hardware.

## What This Paper Is About

Physical multi-agent reinforcement learning is held back less by algorithms than by infrastructure: competitive multi-robot testbeds tend to be either industrial-grade and expensive or limited to single-agent tasks, and they rarely ship with the designs needed to reproduce them. The authors build a complete, low-cost, desktop-scale robotic testbed for adversarial play based on KLASK (a fast two-player magnetic tabletop game), and pair it with a GPU-parallel simulator and a reference training pipeline. The goal is not a new algorithm but a validated, reproducible substrate on which other researchers can study high-speed, contact-rich adversarial learning.

## Key Contributions

1. **Mechanisms and designs:** Complete CAD files, bill of materials, and assembly instructions for a dual-gantry robotic system costing under $2500 USD, with an estimated build time of 20 hours.
2. **GPU-native digital twin:** A component for NVIDIA Isaac Lab that runs thousands of parallel KLASK environments and processes 20M PPO steps in roughly 12 minutes on a single RTX 4090.
3. **An engineered sim-to-real baseline:** A reproducible PPO reference agent combining shaped-reward curriculum design, Enhanced Self-Play, and a learned neural actuator model, achieving zero-shot transfer to hardware; trained weights and the full pipeline are released.
4. **Full open-source release:** Hardware (https://github.com/IDSCETHZurich/klask_hardware), inference stack (https://github.com/IDSCETHZurich/klask_software), and simulation/MARL setup (https://github.com/IDSCETHZurich/klask_rl), plus a formalised benchmark protocol reporting scoring rate, episode length, and contact frequency.

## Main Findings

- **Actuator modelling, not domain randomization, drove transfer.** Initial attempts using idealized Proportional–Derivative controllers with domain randomization failed to transfer: simulated and physical command responses diverged so badly that the hardware could not execute the commanded signals and the policy failed immediately. Adding the learned neural actuator model enabled zero-shot transfer — and did so with domain randomization *disabled* for the best-performing policy.
- **The actuator model is accurate and compact.** A three-hidden-layer MLP (64 units each) with a 10-timestep history of commands and velocities achieved a global validation RMSE of 0.013 m/s, with peak errors of 0.032 m/s in x and 0.049 m/s in y on representative high-frequency trajectories. Results were stable across 8 training seeds. Ablations over {1, 5, 10}-step histories and {32, 64, 128}-unit widths selected the 10-step / 3×64 configuration.
- **Hardware tracking performance matched the model.** Measured closed-loop velocity tracking error was also 0.013 m/s RMSE, with mean accelerations of 6.25 m/s².
- **Emergent adversarial behaviour appeared.** Transferred policies showed differentiated offense/defense (autonomous switching between defensive positioning and offensive strikes), goal-directed scoring against stationary and random opponents, reactive goal-tending, and use of board geometry for defensive bank shots.
- **Human–robot benchmark:** Over a 10-game series the agent achieved a 10% win rate (one win, game 3, 42 s). Average episode duration was 31.3 s with 7.4 defensive blocks and 5.0 offensive strikes per game (12.4 dynamic contacts on average), 1.8 goal-directed hits, and 43.6% possession.
- **The residual gap is characterised, not hidden.** The 0.5–1.5 cm offensive misses in human–robot play are attributed to policy and perception artefacts rather than hardware failure: the dominant physical effect is magnetic coupling lag of approximately 0.4 cm during direction changes. Decelerating the peg from its peak of 0.5 m/s to standstill consumes 77 ms and 2 cm, while re-accelerating to the same speed in the opposite direction takes 111 ms and 7 cm.
- **Reliability held over extended play.** Across more than 30 consecutive games there were no hardware-level failures (defined as motor connection error, camera dropout, EKF divergence, peg decoupling, or ball leaving the board). Software-level resets occurred and were logged without corrupting the protocol.
- **Reproducibility evidence:** Two students independently retrained the baseline on different days using the released pipeline and both reached comparable competitive levels in physical play.
- **Curriculum mattered for Elo.** The dense ball-to-goal curriculum reached approximately 1283 Elo in round-robin tournaments, versus approximately 1240 for sparse-only and approximately 1220 for collision-only. Sparse-only rewards produced passive policies.
- **Self-play variants compared.** Enhanced Self-Play (opponent pool sampled with geometric decay) and random pool sampling produced comparable competent policies; best-opponent-only sampling proved unstable due to insufficient opponent diversity.
- **State estimation used adaptive noise.** An Extended Kalman Filter with process noise covariance that increases near boundaries and strikers converged rapidly to post-collision trajectories.

## Methodology in Plain English

The game is KLASK: two players move magnetic strikers under a board to hit a ball into the opponent's goal while defending their own. The authors built two opposing CoreXY gantries beneath a standard board, keeping the brushless DC motors stationary to minimize moving inertia. Strikers couple magnetically through the board to carriages underneath, so there is no physical penetration. A single overhead camera observes the game, and an Extended Kalman Filter turns those images into ball and striker positions and velocities. The filter's process noise is deliberately raised in regions near walls and strikers, where collisions break the smooth physics model, so the filter trusts measurements more exactly where sudden changes occur.

Training happens entirely in a GPU-parallel Isaac Lab simulation of the same game, using PPO with two opponents playing each other. Because idealized simulation controllers produce commands real motors cannot follow, the authors recorded time-series data of real command-to-velocity responses and trained a small neural network to predict the next velocity from the last ten command/velocity pairs. That network replaces the idealized actuator inside simulation, so the simulated robot inherits real behaviour: friction, the motors' torque–speed limits, and latency. The trained policy is then frozen and deployed directly on hardware, with actions at ±0.4 m/s and a 50 Hz control loop.

Rewards start dense and decay over time — signals for pushing the ball toward the opponent's goal, positioning defensively, and staying near the ball — before giving way to sparse win/lose terms. The agent trains against a pool of its own past checkpoints, favouring recent ones, so that opponents keep improving alongside it.

## Why This Matters

**Impact on research.** The paper's argument is infrastructural: the bottleneck in embodied MARL is not a shortage of algorithms but a shortage of affordable, reproducible, genuinely adversarial physical environments. By releasing hardware designs, a digital twin, a training pipeline, and reliability statistics together, it gives the community a shared reference point where transfer methods can be compared under distribution shifts that static manipulation tasks do not produce.

**Real-world applications:**

- **Benchmarking sim-to-real methods** — learned actuator models, domain randomization strategies, and system identification can be compared on a demanding but affordable task.
- **Adversarial and game-theoretic control** — studying coordinated attacks, defensive strategies, and approximations of Nash equilibria in physical settings.
- **Educational and low-cost robotics labs** — a sub-$2500, 20-hour-build platform with a familiar game ruleset lowers the entry barrier for teaching and outreach.
- **Safe multi-agent control validation** — reproducible physical environments for testing theoretical robustness guarantees.

**Industry relevance.** The learned-actuator-model finding is directly applicable to any high-speed motion system where idealized controllers fail: the result that precise system identification beat broad parameter randomization for this platform is a concrete, transferable lesson for teams deploying learned policies on real actuators. The open design also serves as a template for how robotics papers can ship reproducible artifacts rather than descriptions.

## Future Directions

- **Reintroduce the magnetic biscuit obstacles** omitted from the baseline simulation, creating a non-convex landscape that demands multi-dimensional strategy rather than direct ball-striking.
- **Extend to four-agent play** via the commercially available round-KLASK variant, enabling team-based MARL on the same hardware.
- **Replace hand-engineered observation features** with autonomous representation learning, moving past the striker-to-ball vector and goal-angle features used in the baseline.
- **Integrate game-theoretic methods** that approximate Nash equilibria in competitive physical environments, and close the offensive gap — the 0.5–1.5 cm miss that currently caps the agent's win rate.

## Target Audience

Researchers and graduate students in robot learning, MARL, and sim-to-real transfer who need a physical testbed they can actually afford and rebuild; roboticists interested in open hardware and high-speed motion system design; and instructors seeking a compact, well-documented platform for teaching reinforcement learning end to end. Readers looking for a novel RL algorithm will not find one here — the paper is explicit that it characterises a platform and offers a reproducible starting point.

*Note on internal consistency:* the main text reports 37,500 actuator-training samples (approximately 12.5 minutes at 50 Hz), while Appendix C1 reports 69,669 samples (approximately 23.2 minutes); the paper does not reconcile these two figures. Similarly, the camera is described as operating at 120 Hz, while the surrounding sentence refers to observations at 50 Hz, matching the stated control loop rate.

## Authors’ abstract

Progress in robot learning, particularly physical multi-agent reinforcement learning (MARL), is currently challenged by a limited availability of accessible, standardized benchmarks. While simulation-based MARL has produced remarkable emergent behaviors, from coordinated team play to complex tool use, translating these advances to physical systems remains difficult. A key barrier is infrastructural: physical platforms are often prohibitively expensive, require specialized…

[The full abstract on arXiv](https://arxiv.org/abs/2611.03138)

[Read the original paper](https://arxiv.org/abs/2611.03138)

## Related papers

- [KlaskTron-IL: A Contact-Rich Adversarial Imitation Learning Benchmark with a Validated Sim-to-Real Bridge](https://robotics.world/paper/klasktron-il-a-contact-rich-adversarial-imitation-learning-benchmark-2611.03091) 2026-11-02 · cs.RO · Also by Aswin Ramachandran, Raffaello D'Andrea
- [OpenRoIS: A Community-Driven Open-Source Middleware Implementing the Robotic Interaction Service (RoIS) Framework for Physical Robots and Virtual Agents](https://robotics.world/paper/openrois-a-community-driven-open-source-middleware-implementing-the-2609.21178) 2026-09-18 · cs.RO · Key terms of the title in common
- [BRIDGE: An Open-Source Humanoid Platform via Morphology-Control Co-Design for Physical AI](https://robotics.world/paper/bridge-an-open-source-humanoid-platform-via-morphology-control-co-2609.03497) 2026-09-03 · cs.RO · Key terms of the title in common
- [Agibot: An Open-Source Modular Swerve-Drive Robot Platform for Agricultural Robotics Research and Education](https://robotics.world/paper/agibot-an-open-source-modular-swerve-drive-robot-platform-for-2611.10235) 2026-11-06 · cs.RO · Key terms of the title in common
- [MATE: Multi-Agent Virtual Teleoperation Platform for Humanoid Collaboration Data Collection](https://robotics.world/paper/mate-multi-agent-virtual-teleoperation-platform-for-humanoid-2609.26520) 2026-09-22 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/klasktron-an-open-source-platform-for-physical-adversarial-multi-agent-2611.03138
