obtain the information of models

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Wang Xingyue
Posts: 7
Joined: Wed Nov 25, 2020 1:30 am

obtain the information of models

Post by Wang Xingyue » Wed Feb 22, 2023 8:54 am

Hi guys,

I want to get all the information of one model, such as mass of each segment. Can I use the python code to gain this data quickly and how I acheive it. Hoping anyone can give me some advice or examples because I am not very fimilar about using python to solve problems in OpenSim.

Best wishes,
Wang

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: obtain the information of models

Post by Ayman Habib » Thu Feb 23, 2023 12:21 pm

Hello,

There're example snippets of iterating through a model to find details about its components, these are described here
https://simtk-confluence.stanford.edu/d ... tsofanySet
The methods you can invoke are available through the API documentation here
https://simtk.org/api_docs/opensim/api_docs/index.html
If you need more help please let us know.

Hope this helps, and if you end-up with a script that you think is useful to the community, please post here or let us know so you can help other members as well.

Best regards,
-Ayman

POST REPLY