Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unienv-0.0.1b2.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unienv-0.0.1b2-py3-none-any.whl (117.7 kB view details)

Uploaded Python 3

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

Hashes for unienv-0.0.1b2.tar.gz
Algorithm Hash digest
SHA256 3756faf24332a863fa2b97f83cab4b698a1f4113bd766ac825476ddf73beb6a2
MD5 368fb001636bba47790adfc44c127281
BLAKE2b-256 b274259a030ce3a4ef45d30bec38117f1bc7005c9179e6d935396e073f43379d

See more details on using hashes here.

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

Hashes for unienv-0.0.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b99cd81a31396468ce2c1cf45054aac4e969574412a284225637ef7e805c39
MD5 2e5a9c1c01e0995727439458d88dbc61
BLAKE2b-256 4472ce7937585954fc6dc8896c4e622926fc1e2ca54cf447e2627368535a167e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page