Skip to main content

Supporting MyoChallenge Support Ukraine PyPI Documentation Status PyPI - License PRs Welcome Downloads Open In Colab Slack

MyoSuite is a collection of musculoskeletal environments and tasks simulated with the MuJoCo physics engine and wrapped in the OpenAI gym API to enable the application of Machine Learning to bio-mechanic control problems.

Full task details | Baselines | Documentation | Tutorials | 🔥🆕 NeurIPS-MyoChallenge 2022

Below is an overview of the tasks in the MyoSuite.

TasksALL

Getting Started

You will need Python 3.7.1 or later versions. At this moment, the library has been tested only on MacOs and Linux with MuJoCo v2.1.0.

It is recommended to use Miniconda and to create a separate environment with:

conda create --name myosuite python=3.7.1
conda activate myosuite

It is possible to install MyoSuite with:

pip install -U myosuite

for advanced installation, see here.

Test your installation using the following command (this will return also a list of all the current environments):

python -m myosuite.tests.test_myo

You can also visualize the environments with random controls using the command below:

python -m myosuite.utils.examine_env --env_name myoElbowPose1D6MRandom-v0

NOTE: If the visualization results in a GLFW error, this is because mujoco-py does not see some graphics drivers correctly. This can usually be fixed by explicitly loading the correct drivers before running the python script. See this page for details.

Examples

It is possible to create and interface with MyoSuite environments just like any other OpenAI gym environments. For example, to use the myoElbowPose1D6MRandom-v0 environment, it is possible simply to run: Open In Colab

import myosuite
import gym
env = gym.make('myoElbowPose1D6MRandom-v0')
env.reset()
for _ in range(1000):
  env.sim.render(mode='window')
  env.step(env.action_space.sample()) # take a random action
env.close()

You can find tutorials on how to load MyoSuite models/tasks, train them, and visualize their outcome. Also, you can find baselines to test some pre-trained policies.

License

MyoSuite is licensed under the Apache License.

Citation

If you find this repository useful in your research, please consider giving a star ⭐ and cite our arXiv paper by using the following BibTeX entrys.

@Misc{MyoSuite2022,
  author =       {Vittorio, Caggiano AND Huawei, Wang AND Guillaume, Durandau AND Massimo, Sartori AND Vikash, Kumar},
  title =        {MyoSuite -- A contact-rich simulation suite for musculoskeletal motor control},
  publisher = {arXiv},
  year = {2022},
  howpublished = {\url{https://github.com/facebookresearch/myosuite}},
  year =         {2022}
  doi = {10.48550/ARXIV.2205.13600},
  url = {https://arxiv.org/abs/2205.13600},
}

Download files

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

Source Distribution

MyoSuite-1.4.2.tar.gz (15.4 MB view details)

Uploaded Source

Built Distributions

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

MyoSuite-1.4.2-py3-none-any.whl (15.3 MB view details)

Uploaded Python 3

MyoSuite-1.4.2-py2.py3-none-any.whl (32.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file MyoSuite-1.4.2.tar.gz.

File metadata

  • Download URL: MyoSuite-1.4.2.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MyoSuite-1.4.2.tar.gz
Algorithm Hash digest
SHA256 fc7b77fba73762852dec1e17614fce6a081e0a8e5d17d54488caaf82ffed633d
MD5 ff3603d36ed8d705e384a47e44886fec
BLAKE2b-256 a5a07b46f1de791da33939255d90b89fc3aff81a5c5e664074fa521c63f8484f

See more details on using hashes here.

File details

Details for the file MyoSuite-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: MyoSuite-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for MyoSuite-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7368f60846b9577e32e1d62c0c8d07308797f4aa8c060feb3def08041eaf85ad
MD5 e0f117db7aa5e4aba76baa3d83e886cd
BLAKE2b-256 3a45d1d986f0724b5c6a3f988a28c0e31495c32c6320fe47f525fb4f76d8e294

See more details on using hashes here.

File details

Details for the file MyoSuite-1.4.2-py2.py3-none-any.whl.

File metadata

  • Download URL: MyoSuite-1.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for MyoSuite-1.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e88b720e86dc4b50d07818905faea26863617eed7169a8aeb62916fdea2c95f4
MD5 33ee199740dcc9e041d43c95fdf675b6
BLAKE2b-256 cc85fef100319a4cf30e1abf2cb725e1f980f6dc4c50138d1c5e60bac390d6ed

See more details on using hashes here.

Release history Release notifications | RSS feed

2.12.2

2 files

2.12.1

2 files

2.12.0

2 files

2.11.6

2 files

2.11.5

2 files

2.11.4

2 files

2.11.3

2 files

2.10.3

2 files

2.10.0

2 files

2.9.0

2 files

2.8.6

2 files

2.8.5

2 files

2.8.4

2 files

2.8.3

2 files

2.8.2

2 files

2.8.1

2 files

2.8.0

2 files

2.7.0

2 files

2.5.0

2 files

2.4.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.5

2 files

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.7.1

2 files

1.7.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.3

1 file

This release

1.4.2 This release

3 files

1.3.0

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.1

1 file

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