Page 1 of 1

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

Posted: Sat Feb 01, 2020 12:06 am
by divg2504
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?

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

Posted: Mon Feb 03, 2020 12:18 pm
by aymanh
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

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

Posted: Fri Feb 07, 2020 10:34 pm
by divg2504
Thank you

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

Posted: Tue Feb 11, 2020 7:03 am
by divg2504
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)?