OpenColab OpenSim-Models

This project aims to make life of a researcher easy in dealing with Bio-mechanical models.
If you are new to modelling, or even expert in computational and human/animal movement science, you may have to deal with installation of several packages, setup
POST REPLY
User avatar
Fernando García-Avello
Posts: 2
Joined: Thu Mar 03, 2022 5:10 am

OpenColab OpenSim-Models

Post by Fernando García-Avello » Fri Mar 18, 2022 4:44 am

Hello, first of all thanks for all the work and tutorials. I think merging colab with openSim has tremendous potential. My question is simple, I am just trying to import other OpenSim Models besides the one you have in the colab example (Gait2354) but I am having trouble with that. Particularly I would like to use one of the upper extremety models such as the scapulothoracic model ( https:(slash)simtk.org(slash)projects (slash) scapulothoracic ) or maybe a simple full body model with both upper and lower extremities.

Thanks in advance

User avatar
Hossein Mokhtarzadeh
Posts: 37
Joined: Sun Dec 13, 2009 9:44 pm

Re: OpenColab OpenSim-Models

Post by Hossein Mokhtarzadeh » Tue Mar 22, 2022 11:48 pm

Hi Fernando,

Thanks for your question. Could you share your piece of script that you try to load the model? In general the process should be quite similar to what we have shown in tutorials.
Hossein

User avatar
Fernando García-Avello
Posts: 2
Joined: Thu Mar 03, 2022 5:10 am

Re: OpenColab OpenSim-Models

Post by Fernando García-Avello » Mon Apr 04, 2022 5:11 am

Hi Hossein, sure. What I am doing is the following:
In the following lines:
#@title OpenSim model details e.g. joints, bodies, muscles
from opensim import Model
a = Model("/content/opensim-models/Pipelines/Gait2354_Simbody/gait2354_simbody.osim")

I am just substituing "Gait_2354" for the corresponding name of the model obtained from here: https://simtk-confluence.stanford.edu:8 ... QuickLinks.
But as can be expected the model is not found in this way.
I am seeing now these lines:
#@title Step 2: Let's import dataset from 5 GitHub URLs
# OpenSim models etc from github
!git clone https://github.com/opensim-org/opensim-models.git # models needed
!git clone https://github.com/HernandezVincent/OpenSim.git # models needed
!cp /content/opensim-models/Models/Gait2354_Simbody/* /content/opensim-models/Pipelines/Gait2354_Simbody


Maybe I do need to import the aforementioned models in these lines also, right ?
Would it be the same procedure if I want to import the Scapulothoracic Joint model? which is not in the above quicklinks neither is it here: https://github.com/opensim-org/opensim- ... ter/Models

User avatar
Hossein Mokhtarzadeh
Posts: 37
Joined: Sun Dec 13, 2009 9:44 pm

Re: OpenColab OpenSim-Models

Post by Hossein Mokhtarzadeh » Tue Apr 12, 2022 7:23 pm

Hello,

well I cannot tell from the links you sent but if you upload the .osim files properly, you should be able to double click on it on Colab and see the details properly on the right hand side. If this is not the case, you have not uploaded it properly. Another suggestion is that you download your osim file and see if GUI can properly show the details. Then just simply upload it via your PC to make sure all is fine.

Let me know how you go. You can simply put these in Colab so that I can see it better what you do and share that Colab link.

Cheers,
Hossein

POST REPLY