Multi-Goal Reinforcement Learning environments for simulated Franka Emika Panda robot

Quentin Gallouédec, Nicolas Cazin, Emmanuel Dellandréa, Liming Chen

Abstract

This paper presents panda-gym, a set of Reinforcement Learning (RL) environments for the Franka Emika Panda robot integrated with OpenAI Gym. Five tasks are included: reach, push, slide, pick & place and stack. They all follow a Multi-Goal RL framework, allowing to use goal-oriented RL algorithms. To foster open-research, we chose to use the open-source physics engine PyBullet. The implementation chosen for this package allows to define very easily new tasks or new robots. This paper also presents a baseline of results obtained with state-of-the-art model-free off-policy algorithms. panda-gym is open-source and freely available at https://github.com/qgallouedec/panda-gym.

Introduction

Reinforcement learning (RL) holds immense promise for robotics, but training in the real world is often slow, expensive, and dangerous. While simulation offers a solution, many existing environments rely on proprietary engines or lack modularity. panda-gym addresses these gaps by providing an open-source suite of goal-conditioned RL environments for the Franka Emika Panda robot, built on the PyBullet physics engine. It offers a standardized, modular playground for developing multi-goal RL algorithms across five tasks of varying difficulty, specifically designed to handle the "sparse reward" problem common in robotics.

Methodology

The panda-gym framework is built using the PyBullet physics engine, selected for its open-source nature and high performance. The core architecture strictly separates the Robot (the physical agent) from the Task (the objective), facilitating modularity.

Key technical features include:

  • OpenAI Gym Integration: Adherence to the gym.GoalEnv API ensures compatibility with modern RL libraries.
  • Multi-Goal Framework: Observations include desired_goal and achieved_goal, enabling techniques like Hindsight Experience Replay (HER).
  • Modular Design: The RobotTaskEnv class allows researchers to easily swap robots or define new tasks.
  • Control Scheme: The default setup utilizes Cartesian gripper control (3D movement and gripper state), with both sparse and dense reward variants available.

Benchmarks

The paper introduces five primary environments that scale in difficulty:

  1. PandaReach-v1: Moving the gripper to a target 3D position.
  2. PandaPush-v1: Pushing a cube to a 2D target on a table.
  3. PandaSlide-v1: Sliding a puck to a target outside the robot's direct reach.
  4. PandaPickAndPlace-v1: Lifting and moving a cube to a 3D target.
  5. PandaStack-v1: Stacking one cube on top of another at a specific location.
The five robotic manipulation tasks in panda-gym: (a) Reach, (b) Push, (c) Slide, (d) Pick And Place, and (e) Stack.

Results and Discussion

Benchmarking was performed using state-of-the-art off-policy algorithms—DDPG, SAC, and TD3—combined with HER.

  • Performance: DDPG + HER achieved a 100% success rate on Reach and Push tasks within $3 \times 10^4$ timesteps. Slide and Pick & Place reached approximately 50% success after 1 million timesteps, while the Stacking task remained unsolved, serving as a robust challenge for future research.
  • Efficiency: panda-gym is approximately 9.2% faster than equivalent MuJoCo-based environments, offering a significant advantage for large-scale parallel simulations.
  • Algorithmic Insights: Interestingly, the "clipped double-Q trick" typically used in TD3 and SAC to prevent overestimation was found to be counterproductive in some panda-gym tasks. The authors suggest that sparse rewards might naturally mitigate overestimation, making the trick unnecessary.

Limitations and Future Work

Current limitations include the reliance on Cartesian control and "perfect" state information. Future developments will focus on:

  • Joint-Value Control: Forcing agents to learn complex internal robot dynamics.
  • Sensory Modalities: Adding support for RGB cameras, depth sensors, and tactile feedback.
  • Task Expansion: Introducing more complex tasks like "peg-in-hole" insertion and "cube flipping."

panda-gym is available at: https://github.com/qgallouedec/panda-gym.

Summary updated

BibTeX
@misc{gallouedec2021multi,
  author = {Quentin Gallouédec and Nicolas Cazin and Emmanuel Dellandréa and Liming Chen},
  title = {{Multi-Goal Reinforcement Learning environments for simulated Franka Emika Panda robot}},
  year = {2021},
  eprint = {2106.13687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.13687},
}
Figure