MultiRoboLearn: An open-source Framework for Multi-robot Deep Reinforcement Learning

Junfeng Chen, Fuqin Deng, Yuan Gao, Junjie Hu, Xiyue Guo, Guanqi Liang, Tin Lun Lam

TL;DR

MultiRoboLearn is an open-source framework designed to bridge the gap between Multi-Agent Deep Reinforcement Learning (MADRL) research and real-world robotic deployment. By providing a unified pipeline that links Gazebo simulations with physical hardware via ROS, it allows researchers to train complex collaborative behaviors in simulation and deploy them to robot swarms with minimal code changes.

What Problem Does This Paper Address?

While Reinforcement Learning (RL) has seen massive success in single-robot tasks (like teaching quadrupeds to walk), scaling these successes to multi-robot systems (MRS) remains a significant challenge.

Most existing frameworks suffer from one of three issues:

  1. Theoretical Isolation: They focus on "grid-world" or game-like environments (e.g., PettingZoo) that don't translate to physical physics.
  2. Single-Robot Bias: They lack the networking and namespace infrastructure required to manage multiple agents simultaneously.
  3. The Sim-to-Real Gap: There is often no clear path to move a trained policy from a simulator to a physical robot without a complete rewrite of the communication stack.

MultiRoboLearn addresses these by providing a standardized, easy-to-use "bridge" that handles the messy realities of multi-robot communication, synchronization, and hardware deployment.

Methods

The framework is built on four main pillars:

  • Master Manager (mManager): A central controller that automates the "boring" parts of robotics—setting up ROS namespaces, configuring static IPs for a fleet, and managing the transition between simulation and hardware modes.
  • Algorithm Environment: This inherits the familiar OpenAI Gym interface, making it compatible with most existing RL libraries (like Stable Baselines or Ray RLLib).
  • Real-Robot Environment: To handle the transition to reality, the authors implemented Emitter and Receiver Replay Buffers. These buffers discretize continuous real-world signals into "cycles," ensuring that the RL algorithm receives states and sends actions at a frequency it can handle, which maintains control consistency.
  • Algorithm Library: The framework is agnostic to the underlying DL library, supporting PyTorch, TensorFlow, and Keras.

Datasets & Benchmarks

The paper doesn't use a static dataset; instead, it introduces a benchmarking system with standardized simulated scenarios in Gazebo:

  • Scenario 1 (Obstacle-free): Three SPARK robots must navigate to goal areas without colliding.
  • Scenario 2 (Obstacles): The same task, but with static obstacles (boxes) added to the environment.
  • Hardware: The authors validated the framework using a fleet of SPARK robots (differential drive mobile robots) and even integrated a Laikago quadruped for collaborative "chase" scenarios.

Key Insights and Ideas

  • The "Cycle" Concept: The most critical technical insight is the use of a synchronized "cycle" for real-world deployment. By using buffers to package joint states and actions, the framework forces the asynchronous real world to behave like a synchronous MDP (Markov Decision Process), which is what RL algorithms expect.
  • Decoupling is Key: By decoupling the algorithmic environment from the physical hardware management, researchers can focus entirely on reward shaping and network architecture without needing to be ROS experts.
  • Continuous vs. Discrete: The experiments highlight that continuous action spaces (using SAC) generally transfer better from simulation to reality than discrete ones (using DQN), likely due to the smoother velocity commands generated by continuous policies.

Key Results

The authors tested the framework using Soft Actor-Critic (SAC) for continuous control and Multi-agent DQN for discrete control.

  • SAC Performance:
    • Simulation: ~91.5% success rate.
  • Real-World: 82.0% success rate in obstacle-free zones and 75.0% with obstacles.
  • DQN Performance:
    • Simulation: ~80% success rate.
  • Real-World: Significantly lower (~40-52%), illustrating the difficulty of deploying "snappy" discrete commands to physical motors with inertia.

The results demonstrate that while a performance gap still exists, the framework allows for a direct, "zero-shot" deployment of policies from simulation to a physical robot fleet.

Limitations and Future Work

  • The Sim-to-Real Gap: While the framework makes deployment easier, it doesn't solve the underlying physics mismatch. Success rates dropped by roughly 10-30% when moving to hardware.
  • Task Complexity: The current benchmarks focus on navigation. The authors aim to expand this to more complex collaborative tasks like search and rescue or group formation.
  • Scaling: While the framework is designed for scalability, the paper primarily demonstrates results with three robots. Testing the limits with much larger swarms (e.g., 20+ robots) remains a future objective.

Source Code: https://github.com/JunfengChen-robotics/MultiRoboLearn

Summary updated

BibTeX
@inproceedings{chen2023multirobolearn,
  author = {Junfeng Chen and Fuqin Deng and Yuan Gao and Junjie Hu and Xiyue Guo and Guanqi Liang and Tin Lun Lam},
  title = {{MultiRoboLearn: An open-source Framework for Multi-robot Deep Reinforcement Learning}},
  booktitle = {ROBIO},
  year = {2023},
  url = {https://openreview.net/forum?id=m0jQB6zrNS},
}
Figure