Skip to main content
QUICK REVIEW

[Paper Review] Extending the OpenAI Gym for robotics: a toolkit for reinforcement learning using ROS and Gazebo

Iker Zamora, Nestor Gonzalez Lopez|arXiv (Cornell University)|Aug 19, 2016
Reinforcement Learning in RoboticsComputer Science2 references90 citations
TL;DR

This paper extends OpenAI Gym with ROS and Gazebo to create a benchmarking toolkit for reinforcement learning in robotics, enabling simulation-based training of agents using Q-Learning and Sarsa. It achieves stable navigation with cumulative rewards up to 3,500 in Sarsa and 2,500 in Q-Learning after 3,000 episodes, demonstrating faster learning with Q-Learning and smoother, safer behavior with Sarsa.

ABSTRACT

This paper presents an extension of the OpenAI Gym for robotics using the Robot Operating System (ROS) and the Gazebo simulator. The content discusses the software architecture proposed and the results obtained by using two Reinforcement Learning techniques: Q-Learning and Sarsa. Ultimately, the output of this work presents a benchmarking system for robotics that allows different techniques and algorithms to be compared using the same virtual conditions.

Motivation & Objective

  • To address the lack of standardized benchmarking environments for robot reinforcement learning.
  • To integrate OpenAI Gym with ROS and Gazebo for scalable, safe, and repeatable RL training in simulation.
  • To enable comparison of RL algorithms under identical virtual conditions using standardized robot environments.
  • To support transfer of trained policies from simulation to real-world robotic systems.
  • To reduce the cost, time, and risk of real-world RL training through simulation-based 'mental rehearsal'.

Proposed method

  • Extends OpenAI Gym's API to support robotic environments using ROS as the middleware for communication between Gym and Gazebo.
  • Uses Gazebo as a physics-enabled 3D simulator with support for robot models defined via URDF and ROS packages.
  • Implements six distinct environments for three robots: Turtlebot, Erle-Rover, and Erle-Copter, each with unique sensor and world configurations.
  • Applies Q-Learning and Sarsa algorithms with hyperparameters α=0.2, γ=0.9, and ε=0.9 with ε-decay to learn navigation policies.
  • Uses LIDAR sensor data discretized into five integer values from a 270° field of view to reduce state space complexity.
  • Employs a reward shaping scheme where positive rewards are given for progress and negative rewards for collisions or wall proximity.

Experimental results

Research questions

  • RQ1Can a standardized, simulation-based benchmarking environment be created for robot reinforcement learning using OpenAI Gym, ROS, and Gazebo?
  • RQ2How do Q-Learning and Sarsa compare in terms of learning speed, stability, and final performance in a simulated robotic navigation task?
  • RQ3To what extent can a simple LIDAR-based observation space enable effective navigation policy learning in a discretized environment?
  • RQ4Does the use of Sarsa, as an on-policy algorithm, lead to safer and more exploitative behavior compared to Q-Learning in a real-world transfer scenario?
  • RQ5Can the integration of ROS and Gazebo enable efficient and scalable RL training that reduces the need for costly real-world trials?

Key findings

  • Sarsa achieved higher maximum cumulative rewards (up to 3,500) compared to Q-Learning (around 2,500) after 3,000 episodes, indicating better policy performance in the tested environment.
  • Q-Learning demonstrated faster learning convergence, with average rewards exceeding 700 by episode 2,400, while Sarsa reached similar levels only after 2,600 episodes.
  • Sarsa exhibited smoother and more conservative behavior, avoiding risky maneuvers near walls, whereas Q-Learning showed more aggressive and erratic actions.
  • The average reward over 200-episode intervals showed that Sarsa achieved a mean of 698 in the 2,400–2,600 episode window, compared to 776 for Q-Learning in the 2,400–2,600 window, indicating strong performance in both.
  • Despite high variance in individual episode rewards, the averaged reward curves and table data confirm that both algorithms successfully learned obstacle-avoidance policies.
  • The use of discretized LIDAR inputs (five values) enabled effective learning without excessive computation, validating the approach for real-time application.

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.