C3D export

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Mohammadreza Rezaie
Posts: 390
Joined: Fri Nov 24, 2017 12:48 am

Re: C3D export

Post by Mohammadreza Rezaie » Sat Feb 15, 2020 4:55 pm

Hi Thomas,

Would you please tell me how?

Regards

Tags:

User avatar
Thomas Uchida
Posts: 1787
Joined: Wed May 16, 2012 11:40 am

Re: C3D export

Post by Thomas Uchida » Sat Feb 15, 2020 8:02 pm

With a very small number of exceptions, the same OpenSim methods are available in Matlab and Python, so the translation should be fairly straightforward. Additional information can be found in the doxygen documentation (https://simtk.org/api_docs/opensim/api_docs40/) and User's Guide (e.g., see the "Common Scripting Commands" https://simtk-confluence.stanford.edu/d ... g+Commands and "Scripting in Python" https://simtk-confluence.stanford.edu/d ... +in+Python pages). Specific questions/issues can be posted to the Forum.

User avatar
Josh Carter
Posts: 2
Joined: Mon Nov 04, 2019 4:07 pm

Re: C3D export

Post by Josh Carter » Wed Sep 15, 2021 9:40 am

Hi Mohammadreza Rezaie,

were you able to implement an equivalent convertMillimeters2Meters function within Python eventually?

I have tried to re-create the function within python without success. I am having difficulties trying to recreate the .get and .set functionality in python. Would you be able to provide any guidance on how you went about this?

Thanks

User avatar
Mohammadreza Rezaie
Posts: 390
Joined: Fri Nov 24, 2017 12:48 am

Re: C3D export

Post by Mohammadreza Rezaie » Wed Sep 15, 2021 1:18 pm

Hi Josh,

I used a function by Dr. Stanev as follows. Modifications may be required for later OpenSim versions.

https://github.com/mitkof6/opensim_auto ... sim.py#L69

https://github.com/mitkof6/opensim_auto ... ls.py#L138

I hope this helps you and all the best.
Mohammadreza

POST REPLY