How to export ligament length from opensim directly?
- tang yunqi
- Posts: 1
- Joined: Mon Oct 09, 2017 7:12 pm
How to export ligament length from opensim directly?
Hello, everyone. I have add some custom ligaments in the foot model. Now I want to get ligament length to calculate ligament strain during one gait cycle. However, I don't know how to export ligament length from opensim.Is there anyone can you help me? Thanks a lot.
- Attachments
-
- foot ligaments.jpg (47.57 KiB) Viewed 621 times
Tags:
- Colin Smith
- Posts: 53
- Joined: Fri Feb 24, 2012 11:50 am
Re: How to export ligament length from opensim directly?
https://simtk.org/frs/?group_id=91
If you install the OpenSim 4.2 beta, there is a new component called the Blankevoort1991Ligament. This component has an output called "length"
You can find an example of the xml structure here (or in Help->XML Browser in OpenSim 4.2 GUI):
https://github.com/clnsmith/opensim-jam ... sim#L10444
Here is a doxygen page since I don't think there is one published online for 4.2 yet.
https://github.com/clnsmith/opensim-jam ... oxygen.pdf
If you install the OpenSim 4.2 beta, there is a new component called the Blankevoort1991Ligament. This component has an output called "length"
You can find an example of the xml structure here (or in Help->XML Browser in OpenSim 4.2 GUI):
https://github.com/clnsmith/opensim-jam ... sim#L10444
Here is a doxygen page since I don't think there is one published online for 4.2 yet.
https://github.com/clnsmith/opensim-jam ... oxygen.pdf
- Colin Smith
- Posts: 53
- Joined: Fri Feb 24, 2012 11:50 am
Re: How to export ligament length from opensim directly?
If you are using the existing Ligament component, you can use the getLength (const SimTK::State &s) function.
https://simtk.org/api_docs/opensim/api_ ... ament.html
https://simtk.org/api_docs/opensim/api_ ... ament.html