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
OpenColab OpenSim-Models
- Hossein Mokhtarzadeh
- Posts: 37
- Joined: Sun Dec 13, 2009 9:44 pm
Re: OpenColab OpenSim-Models
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
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
- Fernando García-Avello
- Posts: 2
- Joined: Thu Mar 03, 2022 5:10 am
Re: OpenColab OpenSim-Models
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
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
- Hossein Mokhtarzadeh
- Posts: 37
- Joined: Sun Dec 13, 2009 9:44 pm
Re: OpenColab OpenSim-Models
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
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