Page 1 of 1

File Converter for IMU (OpenSense)

Posted: Sat Oct 12, 2019 6:09 am
by divg2504
I have got the Rotation Matrix and time stamp for My IMU data file. I am having difficulty in understanding how to build the converter to convert my data into .sto file. Can anyone suggest where to start?

Re: File Converter for IMU (OpenSense)

Posted: Sat Nov 09, 2019 4:01 pm
by jimmy
Hi, Divyanish-

Do you have a set of quaternions at each time or a Rotation Matices? InverseKinematicsStudy() tracks a SimTK::Rotation object, so you will have to convert either your quaternions or the rotation Matrix into a SimTK Rotation object (which is accessible through Matlab and Python. Let me know if you are still working on this and I can share some code.

-j

Re: File Converter for IMU (OpenSense)

Posted: Sat Nov 09, 2019 11:44 pm
by divg2504
Thank you for the reply. Yes I have got the quaternions at each time. It would be really helpful if you could share the the code or approach to convert the quaternion/rotation matrices to SimTK rotation object.

Re: File Converter for IMU (OpenSense)

Posted: Sun Nov 10, 2019 6:58 am
by tkuchida
It would be really helpful if you could share the the code or approach to convert the quaternion/rotation matrices to SimTK rotation object.
Perhaps the setRotationFromQuaternion() method (https://simbody.github.io/simbody-3.6-d ... fb72830874)?

Re: File Converter for IMU (OpenSense)

Posted: Mon Nov 11, 2019 7:12 am
by jimmy
Thomas is correct. There will also be an updated version of the OpenSense utilities (including quaternion/rotation conversion) released before the end of the year, so subscribe to the OpenSim email newsletter to be notified of that.

Re: File Converter for IMU (OpenSense)

Posted: Tue Nov 12, 2019 4:41 am
by divg2504
Thank You