NeuronsGym: A Hybrid Framework and Benchmark for Robot Tasks with Sim2Real Policy Learning

Haoran Li, Shasha Liu, Mingjun Ma, Guangzheng Hu, Yaran Chen, Dongbin Zhao

TL;DR

NeuronsGym is a new hybrid framework combining a high-fidelity Unity3D simulation with an agile physical robot platform to bridge the sim2real gap in high-speed mobile navigation. To address the shortcomings of standard evaluation metrics that ignore safety, the authors introduce Safety-weighted Path Length (SFPL), a novel metric that accurately quantifies navigation safety—especially during continuous wall-sliding collisions.

What Problem Does This Paper Address?

Deploying reinforcement learning (RL) policies trained in simulation onto physical robots (Sim2Real transfer) is notoriously difficult due to mismatches in dynamics and sensor noise. Most existing indoor navigation platforms rely on slow-moving, differential-drive robots (typically capped under 0.5 m/s). While sufficient for basic testing, these low speeds mask complex dynamic discrepancies like wheel slippage, motor saturation, and control latency.

Furthermore, standard evaluation metrics like Success Rate (SR) and Success weighted by Path Length (SPL) focus entirely on efficiency, ignoring safety. When safety is measured, papers usually rely on simple collision counts. This approach fails to differentiate between a brief, harmless bump and a catastrophic failure where a robot continuously scrapes along a wall—a behavior common in RL policies.

Methods

The authors introduce NeuronsGym, a hybrid benchmarking architecture consisting of two main components:

  1. The Simulation Platform: Built on Unity3D, it models an agile omnidirectional robot based on the RoboMaster EP infantry robot. To accurately replicate real-world physics, the authors implemented a detailed friction force model for Mecanum wheels that accounts for both sliding and rolling friction components, alongside a Proportional-Integral-Derivative (PID) controller model.
  2. The Physical Platform: A matching 5m × 8m physical arena containing identical obstacle layouts and a real RoboMaster EP robot equipped with an RPLiDAR S2 and an NVIDIA Jetson NX.
Fig. 1: Overview of the hybrid framework - NeuronsGym. The framework is composed of simulation and physical systems. Agents can interact with simulation systems or physical systems through communication protocols to achieve agent training or evaluation. The agent policy can access the parameter manager to adjust the parameters of the robot model or environment in the simulation system. In addition, the same scenario and task are set in each system to study the sim2real of the robot policy.

Modeling Sensor Noise

To prevent policies from overfitting to perfect simulation data, the authors modeled LiDAR noise using a Gaussian distribution for ranging errors and a Poisson distribution to simulate anomalous missing data points caused by low reflectivity or awkward incidence angles.

A Better Safety Metric: SFPL

To properly evaluate safety, the paper proposes Safety-weighted Path Length (SFPL):

$$\text{SFPL} = \frac{1}{N} \sum_{i=1}^N \frac{\sum_{t=1}^T (1 - \alpha_{i,t})\delta_{i,t}}{p_i}$$

Where $\alpha_{i,t}$ is a binary collision indicator at time $t$, $\delta_{i,t}$ is the step distance, and $p_i$ is the total path length. Instead of counting collisions, SFPL penalizes the distance traveled while colliding, making it highly sensitive to dangerous wall-sliding behaviors.

Datasets and Benchmarks

NeuronsGym introduces a navigation benchmark where the robot must navigate from a random starting pose to activate 5 physical target blocks in alphabetical order (A to E).

The authors define three difficulty levels based on the placement of these targets relative to "blocking zones" (areas tightly constrained by fixed obstacles):

  • Level 1: All goals are outside blocking zones.
  • Level 2: 1 goal is randomly generated inside a blocking zone.
  • Level 3: 3 goals are randomly generated inside blocking zones.
Fig. 5: Blocking zones and evaluation scenarios. The green squares are the blocking zones. From left to right are the samples of the evaluation scenarios from Level 1, Level 2, and Level 3.

Using this benchmark, they evaluate 5 mainstream Sim2Real algorithms trained via Soft Actor-Critic (SAC): Naive Transfer (None), Uniform Domain Randomization (UDR), DROID, SimOpt, and Grounded Action Transformation (GAT).

Key Insights and Ideas

  • Collision Counts Lie: In baseline tests, a robot that continuously scraped against a wall scored a low collision count but was highly unsafe. SFPL successfully exposed this behavior by heavily penalizing the trajectory, proving to be a much more reliable metric for physical deployments.
  • Speed Demolishes Adaptive Methods: At standard speeds (1.0 m/s), adaptive domain randomization methods like SimOpt and GAT successfully minimized the sim2real gap. However, when maximum speeds were pushed to an agile 1.5 m/s, their performance degraded rapidly. High speeds amplify unmodeled non-linearities like wheel slippage and motor saturation, causing the action-transformer models to fail.
  • LiDAR Noise Dominates Low-Speed Gaps: An ablation study revealed that omitting realistic LiDAR noise models caused a more severe performance drop during Sim2Real transfer than omitting the advanced wheel friction models, highlighting that sensor fidelity is just as critical as dynamic fidelity for basic navigation.

Key Results

  • Friction Model Accuracy: The proposed Mecanum friction model closely matched the non-linear velocity changes observed on the real robot, significantly outperforming simplified friction models.
  • LiDAR Anomaly Fidelity: The Poisson-based anomaly model achieved an incredibly low KL divergence of $-0.0051$ compared to real-world anomalous LiDAR data.
  • Sim2Real Benchmark: While most algorithms maintained a 1.0 Success Rate in reality, their efficiency and safety dropped sharply. For example, under Naive Transfer in Level 1 scenarios, SFPL dropped from 0.85 in simulation to 0.38 in the real world.
  • UDR and DROID Resilience: At high speeds (1.5 m/s), simpler randomization techniques like UDR and DROID proved more robust, maintaining more stable SPL and SFPL metrics than complex adaptive methods.

Limitations and Future Work

The primary limitation of the current framework is its fixed environment layout, which prevents testing an agent's ability to generalize to entirely unseen architectural spaces.

To address this, the authors plan to introduce a procedural random layout generation plugin in future versions. They also aim to scale up the environment by exploring larger arenas, introducing dynamic obstacles (such as moving humans), and expanding the framework to support multi-robot collaborative policy learning and confrontation tasks.

Summary updated

BibTeX
@misc{li2023neuronsgym,
  author = {Haoran Li and Shasha Liu and Mingjun Ma and Guangzheng Hu and Yaran Chen and Dongbin Zhao},
  title = {{NeuronsGym: A Hybrid Framework and Benchmark for Robot Tasks with Sim2Real Policy Learning}},
  year = {2023},
  eprint = {2302.03385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.03385},
}
Figure