https://github.com/myohub/myosuite

MyoSuite is a collection of environments/tasks to be solved by musculoskeletal models simulated with the MuJoCo physics engine and wrapped in the OpenAI gym API.

https://github.com/myohub/myosuite

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.3%) to scientific vocabulary

Keywords

machine-learning motor-control mujoco musculoskeletal
Last synced: 6 months ago · JSON representation

Repository

MyoSuite is a collection of environments/tasks to be solved by musculoskeletal models simulated with the MuJoCo physics engine and wrapped in the OpenAI gym API.

Basic Info
Statistics
  • Stars: 1,013
  • Watchers: 28
  • Forks: 139
  • Open Issues: 42
  • Releases: 12
Topics
machine-learning motor-control mujoco musculoskeletal
Created over 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Support Ukraine PyPI Documentation Status PyPI - License PRs Welcome Downloads Open In Colab Slack Twitter Follow

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.

Documentation | Tutorials | Task specifications

Below is an overview of the tasks in the MyoSuite.

TasksALL

Installations

You will need Python 3.9 or later versions.

It is recommended to use Miniconda and to create a separate environment with: bash conda create --name myosuite python=3.9 conda activate myosuite

It is possible to install MyoSuite with: bash 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): bash python -m myosuite.tests.test_myo

You can also visualize the environments with random controls using the command below: bash python -m myosuite.utils.examine_env --env_name myoElbowPose1D6MRandom-v0 NOTE: On MacOS, we moved to mujoco native launch_passive which requires that the Python script be run under mjpython: bash mjpython -m myosuite.utils.examine_env --env_name myoElbowPose1D6MRandom-v0

It is possible to take advantage of the latest MyoSkeleton. Once added (follow the instructions prompted by python -m myosuite_init), run: bash python -m myosuite.utils.examine_sim -s myosuite/simhive/myo_model/myoskeleton/myoskeleton.xml

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

python from myosuite.utils import gym env = gym.make('myoElbowPose1D6MRandom-v0') env.reset() for _ in range(1000): env.mj_render() env.step(env.action_space.sample()) # take a random action env.close()

You can find our tutorials on the general features and the ICRA2023 Colab Tutorial Open In Colab ICRA2024 Colab Tutorial Open In Colab 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.

BibTeX @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/myohub/myosuite}}, year = {2022} doi = {10.48550/ARXIV.2205.13600}, url = {https://arxiv.org/abs/2205.13600}, }

Owner

  • Name: MyoHub
  • Login: MyoHub
  • Kind: organization

GitHub Events

Total
  • Create event: 15
  • Release event: 4
  • Issues event: 30
  • Watch event: 150
  • Delete event: 6
  • Member event: 1
  • Issue comment event: 80
  • Push event: 47
  • Pull request review event: 107
  • Pull request review comment event: 89
  • Pull request event: 60
  • Fork event: 36
Last Year
  • Create event: 15
  • Release event: 4
  • Issues event: 30
  • Watch event: 150
  • Delete event: 6
  • Member event: 1
  • Issue comment event: 80
  • Push event: 47
  • Pull request review event: 107
  • Pull request review comment event: 89
  • Pull request event: 60
  • Fork event: 36

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 15
  • Total pull requests: 26
  • Average time to close issues: 3 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 12
  • Total pull request authors: 7
  • Average comments per issue: 1.2
  • Average comments per pull request: 0.62
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 14
  • Pull requests: 26
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 6 days
  • Issue authors: 11
  • Pull request authors: 7
  • Average comments per issue: 1.29
  • Average comments per pull request: 0.62
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Vittorio-Caggiano (6)
  • andreh1111 (5)
  • XiaobenLi00 (5)
  • vikashplus (4)
  • P-Schumacher (4)
  • Ming-Start (3)
  • llll111111 (2)
  • LoFull (2)
  • JudyYe (2)
  • YusseffRuiz (2)
  • abhishekpatil32 (2)
  • Baliencasia (2)
  • ViktorM (2)
  • LyesBesylex (2)
  • anjugopinath (2)
Pull Request Authors
  • Vittorio-Caggiano (30)
  • elladyr (11)
  • cherylwang20 (11)
  • vikashplus (9)
  • fl0fischer (6)
  • P-Schumacher (5)
  • raku-slyu (4)
  • Balint-H (3)
  • siyuan-liu-casia (3)
  • jamesheald (3)
  • Yingfan99327 (2)
  • andreh1111 (1)
  • kywch (1)
  • v9joshi (1)
Top Labels
Issue Labels
bug (5) enhancement (1) documentation (1)
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 825 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 116
  • Total maintainers: 1
proxy.golang.org: github.com/myohub/myosuite
  • Versions: 36
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
proxy.golang.org: github.com/MyoHub/myosuite
  • Versions: 36
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
pypi.org: myosuite

Musculoskeletal environments simulated in MuJoCo

  • Versions: 44
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 825 Last month
Rankings
Downloads: 7.8%
Dependent packages count: 10.1%
Average: 13.2%
Dependent repos count: 21.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/pipy_release.yml actions
  • actions/checkout main composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish master composite
docs/requirements.txt pypi
  • sphinx ==4.0.2
  • sphinx-autobuild *
  • sphinx-rtd-theme ==0.5.2
myosuite/agents/requirements_train.txt pypi
  • hydra-core *
  • hydra-submitit-launcher *
  • matplotlib *
  • six *
  • tabulate *
  • torch *
.github/workflows/python-app.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • conda-incubator/setup-miniconda v2 composite
requirements.txt pypi
  • Pillow *
  • click *
  • dm-control ==1.0.14
  • flatten_dict *
  • gym ==0.13
  • h5py *
  • mujoco ==2.3.7
  • numpy *
  • pink-noise-rl *
  • sk-video *
  • termcolor *
setup.py pypi