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?
.mat to .mot file for use in object to inverse kinematics plugin
- Divyansh Gupta
- Posts: 9
- Joined: Fri Aug 09, 2019 4:31 am
- 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
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
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
- Divyansh Gupta
- Posts: 9
- Joined: Fri Aug 09, 2019 4:31 am
- 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
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)?