File Converter for IMU (OpenSense)

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

File Converter for IMU (OpenSense)

Post by Divyansh Gupta » Sat Oct 12, 2019 6:09 am

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?

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: File Converter for IMU (OpenSense)

Post by jimmy d » Sat Nov 09, 2019 4:01 pm

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

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

Re: File Converter for IMU (OpenSense)

Post by Divyansh Gupta » Sat Nov 09, 2019 11:44 pm

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.

User avatar
Thomas Uchida
Posts: 1798
Joined: Wed May 16, 2012 11:40 am

Re: File Converter for IMU (OpenSense)

Post by Thomas Uchida » Sun Nov 10, 2019 6:58 am

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)?

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: File Converter for IMU (OpenSense)

Post by jimmy d » Mon Nov 11, 2019 7:12 am

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.

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

Re: File Converter for IMU (OpenSense)

Post by Divyansh Gupta » Tue Nov 12, 2019 4:41 am

Thank You

POST REPLY