Page 1 of 1

Question in tutorial

Posted: Thu Mar 06, 2025 12:38 am
by vinegar_it_is
Dear Forum,

I have issues regarding the questions in the tutorial "https://opensimconfluence.atlassian.net ... ntoOpenSim":

a. "Use the Coordinates panel to view the degrees of freedom of the model. How many degrees of freedom, in total, does the model have? List the degrees of freedom of the right leg."
--- is there a way of counting the DOF instead of counting each joint motion manually?

b. "All models are approximations. Compare the degrees of freedom in the model to the degrees of freedom in your lower limbs. Give an example of a joint motion in the model that has been simplified. Give an example of a motion that is not included in this model"
--- Is there a more smart way of identifying which joint motion has been simplified rather than searching for it with my eyes?

a. "How many muscles are in the model?"
--- Is there a way of counting muscles instead of counting them one by one?

I thank you very much in advance for your assistance.
Kind regards,
Masaya Hayashikawa

Re: Question in tutorial

Posted: Sun Mar 09, 2025 1:04 pm
by tkuchida
(a) "Use the Coordinates panel" implies that they should be counted by looking at the Coordinates panel. You could also use the "getNumCoordinates()" method (https://simtk.org/api_docs/opensim/api_ ... af2c43be6d) in the GUI's scripting shell (https://opensimconfluence.atlassian.net ... g+Commands) to ask the model for the total number of coordinates.
(b) This is a comprehension question.
(c) The muscles can be counted in the Navigator window (https://opensimconfluence.atlassian.net ... atorWindow) or using the scripting shell to report the size of the model's set of muscles.