.mat to .mot file for use in object to inverse kinematics plugin

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Divyansh Gupta
Posts: 9
Joined: Fri Aug 09, 2019 4:31 am

.mat to .mot file for use in object to inverse kinematics plugin

Post by Divyansh Gupta » Sat Feb 01, 2020 12:06 am

I am using a basic MPU9250 IMU for my project and the data generated through this is saved in CSV format. I have generated the quaternions after filtering the IMU data using MATLAB and stored them in .mat file as N*4 matrix.
Now, I want to generate the .mot file for further use in object to inverse kinematics plugin. I am new to OpenSim, may I know how can I convert .mat to .mot. If not then how should I proceed to use this data in OpenSim for Inverse Kinematics?

Tags:

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

Re: .mat to .mot file for use in object to inverse kinematics plugin

Post by Ayman Habib » Mon Feb 03, 2020 12:18 pm

Hello,

There's no conversion from .mat (Matlab internal format) format to our format, however you can populate a TimeSeriesTable with the data and write it to the format of your choice (.csv, .sto etc.) as described here
https://simtk-confluence.stanford.edu/d ... ith+Matlab

Hope this helps,
-Ayman

User avatar
Divyansh Gupta
Posts: 9
Joined: Fri Aug 09, 2019 4:31 am

Re: .mat to .mot file for use in object to inverse kinematics plugin

Post by Divyansh Gupta » Fri Feb 07, 2020 10:34 pm

Thank you

User avatar
Divyansh Gupta
Posts: 9
Joined: Fri Aug 09, 2019 4:31 am

Re: .mat to .mot file for use in object to inverse kinematics plugin

Post by Divyansh Gupta » Tue Feb 11, 2020 7:03 am

Sir, I have one more question regarding the Reference Frame for the Orientation Quaternions used as input in OpenSense. Whether the orientations have to be in Local Reference Frame (NED) or Device Reference Frame(Like in phone; positive y along the portrait side, z pointing downward away from the screen)?

POST REPLY