Page 1 of 1
MSK model creation scripts
Posted: Tue Jan 21, 2020 9:32 am
by rodmateus
Hi there!
I am currently creating a musculoskeletal model and I am having some difficulty in writing the script to certain said model.
The scripts given by the OpenSim group are great but I would like to ask if there are more matlab scripts which create complete musculoskeletal models with more details.
Thank you in advance!
Rodrigo
Re: MSK model creation scripts
Posted: Tue Jan 21, 2020 9:56 am
by aymanh
Thanks for your note Rodrigo,
Can you be more specific as to what you need to include in your model? Most test cases in our code repository/source create models programmatically. They're typically written in C++ but the translation to Matlab should be straightforward. Please let us know if you run into problems translating these scripts to Matlab, or better if you are willing to convert/contribute these Scripts to help the OpenSim/Matlab user community.
Best regards,
-Ayman
Re: MSK model creation scripts
Posted: Tue Jan 21, 2020 12:06 pm
by rodmateus
Hi Ayman,
Thank you so much for the quick reply. I am creating a sheep hindlimb model with the hip as a ball and socket joint, the knee with only flex/ext dof and ankle as joints with translations and rotations in the sagittal plane and the phalangeal joints a a revolute joint.
I was already able to insert the rigid bodies, but I am having a lot of difficulties in implementing the joints with matlab code. Also when I try to insert a physical offset frame and wrapping cylinders to characterize the rigid body, I get this error when I try to open the model in opensim, as you can see below.
- sheep.png (131.99 KiB) Viewed 200 times
From the examples available, I am not able to depict where the source of error is or how to correct it, and my inexperience on creating msk models does not help...