Abstract
RobocupGym is an open-source reinforcement learning (RL) benchmark designed to bridge the gap between simulated environments and real-world robotics. By providing a Gymnasium-compatible interface for the RoboCup 3D simulation league, it offers a standardized, high-dimensional continuous control platform. This paper details the architecture of RobocupGym, its integration with modern RL libraries, and baseline results using PPO and SAC algorithms.
Introduction
While reinforcement learning (RL) has achieved significant milestones in games, its application to robotics is often hindered by the complexity of real-world constraints and the lack of diverse, high-fidelity benchmarks. The RoboCup 3D simulation league, featuring teams of simulated Nao robots, presents a rich environment for low-level continuous control research. However, the technical barrier—specifically the rcssserver3d communication protocol—has historically limited accessibility.
RobocupGym addresses this by "Gym-ifying" the simulation, allowing researchers to focus on algorithmic development rather than infrastructure. It provides a standardized platform for testing agents in a complex, physics-based environment.
System Architecture and Methods
RobocupGym wraps the SimSpark (rcssserver3d) simulator into a standard Gymnasium interface. The architecture involves spawning a soccer server process for each environment instance, parsing server messages into structured observations, and translating agent actions into joint velocities.
The observation space includes joint states, ball position, foot pressure sensors, and IMU data. The action space provides control over 22 joints. This setup enables seamless integration with libraries like Stable Baselines 3, facilitating the use of state-of-the-art algorithms such as Proximal Policy Optimization (PPO) and Soft Actor-Critic (SAC) with minimal configuration.
Benchmark Tasks
The framework introduces two primary tasks for benchmarking:
- SimpleKick: A sparse-reward task where agents are evaluated on the distance the ball travels after a set period.
- VelocityKick: A dense-reward variant where rewards are based on immediate ball velocity and position post-contact, with penalties for lateral deviation to encourage precision.
Results and Discussion
Experimental results highlight the importance of parallelization in this CPU-based environment. Scaling to 128 parallel processes reduced training time for 5 million timesteps from 60 hours to just 3 hours. Furthermore, PPO was found to be more suitable for this high-dimensional domain than SAC, showing better scalability with parallel workers and higher average rewards.
Reward engineering also proved critical; the VelocityKick task led to significantly faster convergence compared to SimpleKick by providing more immediate feedback to the agent, demonstrating how immediate velocity rewards can optimize simulation time.
Conclusion
RobocupGym provides a robust, accessible platform for continuous control research. While currently focused on single-agent tasks like kicking, future work will expand the framework to support multi-agent and hierarchical RL, as well as more diverse tasks such as complex locomotion and defensive maneuvers to further challenge the RL community.
Summary updated