Unified robot environment framework supporting multiple tensor and simulation backends
Project description
UniEnvPy
TLDR: Gymnasium Library replacement with support for multiple tensor backends
Provides an universal interface for single / parallel state-based or function-based environments. Also contains a set of utilities (such as replay buffers, wrappers, etc.) to facilitate the training of reinforcement learning agents.
Cross-backend Support
UniEnvPy supports multiple tensor backends with zero-copy translation layers through the DLPack protocol, and allows you to use the same abstract compute backend interface to write custom data transformation layers, environment wrappers and other utilities. This is powered by the xbarray package, which builts on top of the Array API Standard, and supports the following backends:
- numpy
- pytorch
- jax
We also support diverse simulation environments and real robots, built on top of the abstract environment / world interface. This allows you to reuse code across different sim and real robots.
Current supported simulation environments:
- Any Environment defined in Gymnasium interface
- Mujoco (New code will be added in the future, but I'm currently working on refractoring World based environments)
- MJX based on Mujoco-Playground
- ManiSkill 3
Current supported real robots:
- Franka Research 3 + RobotiQ Gripper in Droid Setup
- OyMotion OHand
Installation
Install the package with pip
pip install unienv
You can install optional dependencies such as gymnasium, mjx, maniskill, video by running
pip install unienv[gymnasium,mjx,maniskill,video]
Acknowledgements
The idea of this project is inspired by Gymnasium and its predecessor OpenAI Gym. This library is impossible without the great work of DataAPIs Consortium and their work on the Array API Standard. The zero-copy translation layers are powered by the DLPack project.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unienv-0.0.1b2.tar.gz.
File metadata
- Download URL: unienv-0.0.1b2.tar.gz
- Upload date:
- Size: 76.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3756faf24332a863fa2b97f83cab4b698a1f4113bd766ac825476ddf73beb6a2
|
|
| MD5 |
368fb001636bba47790adfc44c127281
|
|
| BLAKE2b-256 |
b274259a030ce3a4ef45d30bec38117f1bc7005c9179e6d935396e073f43379d
|
File details
Details for the file unienv-0.0.1b2-py3-none-any.whl.
File metadata
- Download URL: unienv-0.0.1b2-py3-none-any.whl
- Upload date:
- Size: 117.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0b99cd81a31396468ce2c1cf45054aac4e969574412a284225637ef7e805c39
|
|
| MD5 |
2e5a9c1c01e0995727439458d88dbc61
|
|
| BLAKE2b-256 |
4472ce7937585954fc6dc8896c4e622926fc1e2ca54cf447e2627368535a167e
|