Software
Gymnasium-Robotics
By Farama Foundation, from github.com/Farama-Foundation/Gymnasium-Robotics (opens in a new tab)
- Humanoids and robot learning
- Library
- MIT
A Python library of reinforcement learning robot environments built on the Gymnasium API and the MuJoCo physics engine, covering manipulation, dexterous hands, multi-agent and maze tasks.
Facts
- GitHub stars
- 1,938read on 28 Nov 2026
- Last update
- 23 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
- Hardware it needs, as the project states it
- It states no GPU or memory requirements.
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit b013fad (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides Fetch arm manipulation tasks such as reach, push, slide and pick and place.
- Offers Shadow Dexterous Hand environments for object manipulation with cube, egg-object or pen, some with touch sensors.
- Includes MaMuJoCo multi-agent factorizations of Gymnasium MuJoCo environments using the PettingZoo ParallelEnv API.
- Adds refactored D4RL environments: maze navigation, Adroit Arm tasks and the Franka Kitchen multitask setting.
- Uses a multi-goal API (GoalEnv) with dictionary observations and reward, terminated and truncated functions that can be recomputed with substituted goals, useful for Hindsight Experience Replay.
- Installs with pip; the older mujoco-py based versions are available through an optional extra.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 23 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/Farama-Foundation/Gymnasium-Robotics (opens in a new tab)
- The version Robotheca readb013fad (opens in a new tab)
- Latest release1.4.2 (2 Jan 2026)
Robotheca read the repository at two versions: the summary at b8da02a and the facts and the README at b013fad (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Farama Foundation, at commit b013fad, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
This library contains a collection of Reinforcement Learning robotic environments that use the Gymnasium (opens in a new tab) API. The environments run with the MuJoCo (opens in a new tab) physics engine and the maintained mujoco python bindings (opens in a new tab).
The documentation website is at robotics.farama.org (opens in a new tab), and we have a public discord server (which we also use to coordinate development work) that you can join here: https://discord.gg/YymmHrvS (opens in a new tab)
Installation
To install the Gymnasium-Robotics environments use pip install gymnasium-robotics
These environments also require the MuJoCo engine from Deepmind to be installed. Instructions to install the physics engine can be found at the MuJoCo website (opens in a new tab) and the MuJoCo Github repository (opens in a new tab).
Note that the latest environment versions use the latest mujoco python bindings maintained by the MuJoCo team. If you wish to use the old versions of the environments that depend on mujoco-py (opens in a new tab), please install this library with pip install gymnasium-robotics[mujoco-py]
We support and test for Linux and macOS. We will accept PRs related to Windows, but do not officially support it.
Environments
Gymnasium-Robotics includes the following groups of environments:
- Fetch (opens in a new tab) - A collection of environments with a 7-DoF robot arm that has to perform manipulation tasks such as Reach, Push, Slide or Pick and Place.
- Shadow Dexterous Hand (opens in a new tab) - A collection of environments with a 24-DoF anthropomorphic robotic hand that has to perform object manipulation tasks with a cube, egg-object, or pen. There are variations of these environments that also include data from 92 touch sensors in the observation space.
- MaMuJoCo (opens in a new tab) - A collection of multi agent factorizations of the Gymnasium/MuJoCo (opens in a new tab) environments and a framework for factorizing robotic environments, uses the pettingzoo.ParallelEnv (opens in a new tab) API.
The D4RL (opens in a new tab) environments are now available. These environments have been refactored and may not have the same action/observation spaces as the original, please read their documentation:
- Maze Environments (opens in a new tab) - An agent has to navigate through a maze to reach certain goal position. Two different agents can be used: a 2-DoF force-controlled ball, or the classic
Antagent from the Gymnasium MuJoCo environments (opens in a new tab). The environment can be initialized with a variety of maze shapes with increasing levels of difficulty. - Adroit Arm (opens in a new tab) - A collection of environments that use the Shadow Dexterous Hand with additional degrees of freedom for the arm movement. The different tasks involve hammering a nail, opening a door, twirling a pen, or picking up and moving a ball.
- Franka Kitchen (opens in a new tab) - Multitask environment in which a 9-DoF Franka robot is placed in a kitchen containing several common household items. The goal of each task is to interact with the items in order to reach a desired goal configuration.
WIP: generate new D4RL environment datasets with Minari (opens in a new tab).
Multi-goal API
The robotic environments use an extension of the core Gymnasium API by inheriting from GoalEnv (opens in a new tab) class. The new API forces the environments to have a dictionary observation space that contains 3 keys:
observation- The actual observation of the environmentdesired_goal- The goal that the agent has to achievedachieved_goal- The goal that the agent has currently achieved instead. The objective of the environments is for this value to be close todesired_goal
This API also exposes the function of the reward, as well as the terminated and truncated signals to re-compute their values with different goals. This functionality is useful for algorithms that use Hindsight Experience Replay (HER).
The following example demonstrates how the exposed reward, terminated, and truncated functions can be used to re-compute the values with substituted goals. The info dictionary can be used to store additional information that may be necessary to re-compute the reward, but that is independent of the goal, e.g. state derived from the simulation.
import gymnasium as gym
import gymnasium_robotics
gym.register_envs(gymnasium_robotics)
env = gym.make("FetchReach-v4")
env.reset()
obs, reward, terminated, truncated, info = env.step(env.action_space.sample())
# The following always has to hold:
assert reward == env.compute_reward(obs["achieved_goal"], obs["desired_goal"], info)
assert truncated == env.compute_truncated(obs["achieved_goal"], obs["desired_goal"], info)
assert terminated == env.compute_terminated(obs["achieved_goal"], obs["desired_goal"], info)
# However goals can also be substituted:
substitute_goal = obs["achieved_goal"].copy()
substitute_reward = env.compute_reward(obs["achieved_goal"], substitute_goal, info)
substitute_terminated = env.compute_terminated(obs["achieved_goal"], substitute_goal, info)
substitute_truncated = env.compute_truncated(obs["achieved_goal"], substitute_goal, info)
The GoalEnv class can also be used for custom environments.
Project Maintainer
Kallinteris Andreas (opens in a new tab)
Maintenance for this project is also contributed by the broader Farama team: farama.org/team (opens in a new tab).
Citation
If you use this in your research, please cite:
@software{gymnasium_robotics2023github,
author = {Rodrigo de Lazcano and Kallinteris Andreas and Jun Jet Tai and Seungjae Ryan Lee and Jordan Terry},
title = {Gymnasium Robotics},
url = {http://github.com/Farama-Foundation/Gymnasium-Robotics},
version = {1.4.0},
year = {2024},
}
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.
