File Converter for IMU (OpenSense)
- Divyansh Gupta
- Posts: 9
- Joined: Fri Aug 09, 2019 4:31 am
File Converter for IMU (OpenSense)
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:
Re: File Converter for IMU (OpenSense)
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
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
- Divyansh Gupta
- Posts: 9
- Joined: Fri Aug 09, 2019 4:31 am
Re: File Converter for IMU (OpenSense)
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.
- Thomas Uchida
- Posts: 1798
- Joined: Wed May 16, 2012 11:40 am
Re: File Converter for IMU (OpenSense)
Perhaps the setRotationFromQuaternion() method (https://simbody.github.io/simbody-3.6-d ... fb72830874)?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)
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.
- Divyansh Gupta
- Posts: 9
- Joined: Fri Aug 09, 2019 4:31 am
Re: File Converter for IMU (OpenSense)
Thank You