Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

myoBack and myoBack-exosuit model #28

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The models present in the library are:
| **MyoLeg** <br> - 20 Degree of Freedom (DoF) <br> - 80 muscles | <img src="https://user-images.githubusercontent.com/12837145/236839645-e34eab3f-0358-4ca8-8ae0-68a5c08585e4.png" width="200">|
| **MyoArm** <br> - 27 Degree of Freedom (DoF) <br> - 63 muscles | <img src="https://github.com/MyoHub/myo_sim/assets/23240128/1f57c639-b7de-4bbb-a3c2-d2c29716e6c8" width="200">|
| **MyoOSL** <br> - 19 Degree of Freedom (DoF) <br> - 54 muscles, 2 torque actuators | <img src="https://github.com/elladyr/myo_sim/assets/5383997/ec9dfc65-94ba-457f-8375-594c0e3a89b5" width="200">|
| **MyoBack** <br> - 18 Degree of Freedom (DoF) <br> - 210 muscles | <img src="https://github.com/cherylwang20/myo_sim/blob/cec3ce211a516a8798ed2edf9486a0814a0965da/MyoBack.png?raw=true" width="200">|

Description of the models can be found [here](https://myosuite.readthedocs.io/en/latest/suite.html#models).

Expand Down
31 changes: 31 additions & 0 deletions back/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# MyoBack 0.1

## General:

The myoBack mujoco musculoskeletal (MSK) model is generated from: Constrained Lumbar Spine model - 210 [https://simtk.org/projects/lumbarspine] from Opensim.

This generated mujoco MSK model has almost identical kinematics, and very similar muscle kinematics (moment arms) and kinetic (forces) properties.

The model have 210 actuators and 18 joints. The model can be controlled by 3 "virtual joints": Flexion extension, lateral bending, and axial rotation, that maps onto the real joints.

## Conversion process:

The myoBack model was generated using our developed automatic conversion pipeline (released on June 2023).

Three Conversion steps were taken to generate the myoLeg models from the reference Osim model:

1. Basic element conversion [bone meshes, joint definitions, muscle paths, wrapping objects]
2. Moment arm optimization [matching the moment arm of each muscle by optimizing how muscles wrap over wrapping objects]
3. Muscle force optimizaiton [matching the muscle force-length relationship by optimizing muscle parameters]

After the conversion, a manual adjusting process is done to correct the abnormal results.

## Maunal adjustment:
- Adjustments post conversion to optimize for kinematic and dynamic behaviors

## Contact Geometries:
- Manually designed with references
- Contact properties optimized for contact rich behaviors

## Issues:
- N/A
1,321 changes: 1,321 additions & 0 deletions back/assets/myoback_assets.xml

Large diffs are not rendered by default.

1,324 changes: 1,324 additions & 0 deletions back/assets/myoback_assets_exosuit.xml

Large diffs are not rendered by default.

713 changes: 713 additions & 0 deletions back/assets/myoback_body.xml

Large diffs are not rendered by default.

727 changes: 727 additions & 0 deletions back/assets/myoback_body_exosuit.xml

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions back/myoback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<mujoco model="MyoBack_v0.01">
<!-- =================================================
Copyright 2024
Model :: MyoBack (MuJoCoV2.0)
Author :: Vikash Kumar ([email protected]), Vittorio Caggiano, Rohan Walia,
Morgane Billot, Kevin Garzon-Aguirre, Swathika Subramanian, Huiyi Wang,
Mohamed Irfan Refai, Guillaume Durandau
source :: https://github.com/vikashplus
License :: Under Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
====================================================== -->

<include file="assets/myoback_assets.xml"/>
<include file="../scene/myosuite_scene.xml"/>
<compiler meshdir=".." texturedir=".."/>


<worldbody>
<body name="full_body" pos="-.025 0.1 0">
<include file="assets/myoback_body.xml"/>
</body>
</worldbody>

<keyframe>
<key name="default-pose"/>
</keyframe>
</mujoco>
38 changes: 38 additions & 0 deletions back/myoback_exosuit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<mujoco model="MyoBack_v0.02">
<!-- This model has been converted from an OpenSim model. Model conversion by MyoConverter https://github.com/MyoHub/myoconverter. This model is licensed under Apache 2.0. -->

<include file="assets/myoback_assets_exosuit.xml"/>
<include file="../scene/myosuite_scene.xml"/>
<compiler meshdir=".." texturedir=".."/>

<worldbody>
<body name="full_body" pos="-.025 0.1 0">
<include file="assets/myoback_body_exosuit.xml"/>
</body>
</worldbody>

<tendon>
<spatial name="Exo_LS_RL" stiffness="515.5998876" springlength="0 0.378820941018748" group="1" rgba="0.2 0.2 0.2 1">
<site site="Exo_RightShoulder"/>
<geom geom="Exo_cylinder" sidesite="Exo_sidesite"/>
<site site="Exo_LeftLeg"/>
</spatial>
<spatial name="Exo_RS_LL" stiffness="515.5998876" springlength="0 0.378820941018748" group="1" rgba="0.2 0.2 0.2 1">
<site site="Exo_LeftShoulder"/>
<geom geom="Exo_cylinder" sidesite="Exo_sidesite"/>
<site site="Exo_RightLeg"/>
</spatial>
<spatial name="Lower_Exo_Left" stiffness="0" group="1" rgba="0.4 0.4 0.4 1">
<site site="Lower_Exo_Left_Belt"/>
<site site="Lower_Exo_Left_Leg"/>
</spatial>
<spatial name="Lower_Exo_Right" stiffness="0" group="1" rgba="0.4 0.4 0.4 1">
<site site="Lower_Exo_Right_Belt"/>
<site site="Lower_Exo_Right_Leg"/>
</spatial>
</tendon>

<keyframe>
<key name="default-pose" qpos='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/>
</keyframe>
</mujoco>
Binary file added meshes/LowerExo.stl
Binary file not shown.
Binary file added meshes/LowerExoBelt.stl
Binary file not shown.
Binary file added meshes/LowerExoLeftLeg.stl
Binary file not shown.
Binary file added meshes/LowerExoLegs.stl
Binary file not shown.
Binary file added meshes/LowerExoRightLeg.stl
Binary file not shown.
Binary file added meshes/LowerExo_old.stl
Binary file not shown.
Binary file added meshes/UpperExo.stl
Binary file not shown.
Binary file added meshes/lumbar1.stl
Binary file not shown.
Binary file added meshes/lumbar2.stl
Binary file not shown.
Binary file added meshes/lumbar3.stl
Binary file not shown.
Binary file added meshes/lumbar4.stl
Binary file not shown.
Binary file added meshes/lumbar5.stl
Binary file not shown.
Binary file added meshes/ribcage_s.stl
Binary file not shown.
Binary file added meshes/thoracic10_s.stl
Binary file not shown.
Binary file added meshes/thoracic11_s.stl
Binary file not shown.
Binary file added meshes/thoracic12_s.stl
Binary file not shown.
Binary file added meshes/thoracic1_s.stl
Binary file not shown.
Binary file added meshes/thoracic2_s.stl
Binary file not shown.
Binary file added meshes/thoracic3_s.stl
Binary file not shown.
Binary file added meshes/thoracic4_s.stl
Binary file not shown.
Binary file added meshes/thoracic5_s.stl
Binary file not shown.
Binary file added meshes/thoracic6_s.stl
Binary file not shown.
Binary file added meshes/thoracic7_s.stl
Binary file not shown.
Binary file added meshes/thoracic8_s.stl
Binary file not shown.
Binary file added meshes/thoracic9_s.stl
Binary file not shown.