Skip to main content
QUICK REVIEW

[Paper Review] Comparing Popular Simulation Environments in the Scope of Robotics and Reinforcement Learning

Marian Körber, Johann Lange|arXiv (Cornell University)|Mar 8, 2021
Reinforcement Learning in RoboticsComputer Science16 references41 citations
TL;DR

This paper benchmarks four popular robotics/RL simulators (Gazebo, MuJoCo, PyBullet, Webots) across two scenarios on multiple hardware configurations, focusing on stability, speed (RTF), and hardware utilization to guide RL practitioners in selecting suitable environments.

ABSTRACT

This letter compares the performance of four different, popular simulation environments for robotics and reinforcement learning (RL) through a series of benchmarks. The benchmarked scenarios are designed carefully with current industrial applications in mind. Given the need to run simulations as fast as possible to reduce the real-world training time of the RL agents, the comparison includes not only different simulation environments but also different hardware configurations, ranging from an entry-level notebook up to a dual CPU high performance server. We show that the chosen simulation environments benefit the most from single core performance. Yet, using a multi core system, multiple simulations could be run in parallel to increase the performance.

Motivation & Objective

  • Facilitate the selection of simulation environments for RL by evaluating stability, speed, and hardware utilization.
  • Assess how each simulator performs in robotics-oriented benchmarks designed for industrial use cases.
  • Provide practical recommendations and trade-offs for RL researchers and practitioners with varying expertise.

Proposed method

  • Define two RL-oriented benchmark scenarios around industrial robotics tasks (UR10e with Robotiq gripper; 216 spheres) to test precision and contact handling.
  • Compare four simulators (Gazebo, MuJoCo, PyBullet, Webots) using Python-based APIs in headless mode across time steps from 1 ms to 64 ms.
  • Measure real-time factor (RTF) as simulated time per real time, and classify validity of results per time step (e.g., valid up to 1 ms for Gazebo; 3 ms for MuJoCo; 7 ms for PyBullet; 48 ms for Webots).
  • Evaluate hardware utilization (CPU load) across three systems (server, mobile workstation, notebook) and monitor with separate instrumentation; employ Docker for reproducibility.
  • Run benchmarks in a controlled sequence with 5 repetitions per configuration, ensuring thermal considerations and consistent initial perturbations.

Experimental results

Research questions

  • RQ1Which simulator yields the highest valid RTF for each scenario at increasing time steps?
  • RQ2How does simulation stability degrade with larger time steps across Gazebo, MuJoCo, PyBullet, and Webots?
  • RQ3How do CPU and, where applicable, GPU resources usage differ between simulators and hardware configurations?
  • RQ4What practical recommendations can be made for RL researchers choosing a simulator based on task type and available hardware?

Key findings

  • Webots showed surprisingly good stability up to a time step of 48 ms with high RTF, across both scenarios.
  • MuJoCo achieved valid results up to 3 ms in the robot scenario and 3 ms in the sphere scenario, with high RTF but stability dropping at low time steps.
  • PyBullet achieved valid results up to 7 ms in the robot scenario (with an outlier at 4 ms) and maintained moderate RT F; overall, it is easy to learn and use.
  • Gazebo produced valid results only at 1 ms time steps for the robot scenario due to stabilization issues with the Robotiq gripper control, and its multi-threading behavior differs from the other engines.
  • All engines were evaluated headless; GPUs were not utilized for the core simulations, and single-core performance dominated the RT factor across environments.
  • The study recommends parallelizing RL simulations (rather than simply increasing time steps) and notes Webots as a favorable option for novices due to out-of-the-box parameters and GUI-based model setup.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.