Rotate Experimental Data Through Python API

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Aaron Henry
Posts: 32
Joined: Tue Dec 03, 2019 8:47 am

Rotate Experimental Data Through Python API

Post by Aaron Henry » Tue Jul 13, 2021 7:55 am

Hello,
I have quite a few .trc files that I would like to rotate such that they properly align with the OpenSim global coordinate system. I am aware that I can load experimental data into the GUI and manually transform that data such that it aligns with the GCS. I am wondering if there are any functions in the API that I could use to rotate multiple .trc files rather than rotating them manually in the GUI. I did some digging in the Doxygen documentation but did not find any functions.
Thanks,

Tags:

User avatar
Aaron Henry
Posts: 32
Joined: Tue Dec 03, 2019 8:47 am

Re: Rotate Experimental Data Through Python API

Post by Aaron Henry » Wed Jul 14, 2021 8:14 am

Update: I ended up just writing a custom script to rotate my trc files.

User avatar
Radhakrishnan Vignesh
Posts: 104
Joined: Tue Jun 01, 2021 8:09 am

Re: Rotate Experimental Data Through Python API

Post by Radhakrishnan Vignesh » Wed Dec 08, 2021 4:32 pm

Hello Aaron,

Hope you are well. Sorry but did you use any OpenSim functions to rotate the trc file? If alright with you, would you be able to share how you did it?

Thanks,
Vignesh

POST REPLY