Skip to main content

MuJoCo Robotics Environments 🤖

Software for creating and experimenting with robot workspaces in MuJoCo.

Installation

PyPI

Install from package from PyPI with:

pip install mujoco_robot_environments

Local Development

Clone this GitHub repository and ensure you have python version 3.10.6 using pyenv. Following this install the python virtual environment for this project with poetry through running:

poetry install 

Activate the virtual environment with the following command:

poetry shell

Example Usage

Instantiating shipped environments

from mujoco_robot_environments.tasks.rearrangement import RearrangementEnv

env = RearrangementEnv(viewer=True)
env.reset()
...

Overriding Environment Configurations

Most environments ship with a default set of logic for scene initialization and other settings you may wish to override/customise. In order to override the default config you need use the hydra override and follow the hierarchical structure of the configuration files seen shipped with the repository. As an example to change the sampling settings for the RearrangementEnv one can follow the below syntax:

 # clear hydra global state to avoid conflicts with other hydra instances
hydra.core.global_hydra.GlobalHydra.instance().clear()

# read hydra config
initialize(version_base=None, config_path=<relative path to config yaml files>, job_name="rearrangement")

# add task configs
COLOR_SEPARATING_CONFIG = compose(
        config_name="rearrangement",
        overrides=[
            "arena/props=colour_splitter",
            ]
            )

# instantiate color separation task
env = RearrangementEnv(viewer=True, cfg=COLOR_SEPARATING_CONFIG) 

# expert demonstration
_, _, _, obs = env.reset()

Where in the above example <relative path to config yaml files> points towards a directory of yaml files of the same structure as those shipped with this repository but containing your custom configuration files.

Task Environments

Colour Sorting Task Environment

An toy environment for reasoning about visual semantics through rearranging objects of varying shapes/colours into target locations.

Screencast from 05-10-2024 11:45:47 AM.webm

Metadata

Release files for mujoco_robot_environments 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mujoco_robot_environments 0.1.0
File Size Uploaded
mujoco_robot_environments-0.1.0.tar.gz 29.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mujoco_robot_environments 0.1.0
File Interpreter ABI Platform
mujoco_robot_environments-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.4 MB

Release files / mujoco_robot_environments-0.1.0.tar.gz

Download URL mujoco_robot_environments-0.1.0.tar.gz
Size 29.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f3a21af1f49e626bfc8aa391881ff208468c0b404809d0d6ceeeec296405cf98
BLAKE2b-256 checksum
How to use checksums
a96e5b0a2b518d3a7bc6688ac9571a29d4daa5dbdebe4e85a27257aed91d996f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release files / mujoco_robot_environments-0.1.0-py3-none-any.whl

Download URL mujoco_robot_environments-0.1.0-py3-none-any.whl
Size 29.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
84c059d84dc4a989b0f1e63ea7727525423a44abe4f7dc3a6ffb036b64f77a4d
BLAKE2b-256 checksum
How to use checksums
d1760e404f02f8b60c83a7bb0118330084cb3f97660db885fa133f0ba1615f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page