Simulation environments for basic manipulation tasks.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mujoco_robot_environments-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5ea2804dd7d557d4ecac268b5e2f5d0a7cabfc8a542dd1b9a4100256aa20bd8 |
|
MD5 | f0c6da1cb68b1c69fb5cb0f7cae3869f |
|
BLAKE2b-256 | fa3cf8bdf452660cf146fc90ec60d6f316bd6dd4ea359272cfedf764ee524981 |
Hashes for mujoco_robot_environments-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e06868c8c5e2d0b4b0dfddef0eb0bdee2c187f35a50e7b42e84f6e1855d01d0 |
|
MD5 | cc21bb1fb0632db0c0a31ea7a7a515f2 |
|
BLAKE2b-256 | 02e7ecd3b73dd19a829f96a79547d6f3a5e97fa4322a7ec412d4ee9113aa60a6 |