Page 1 of 1
Opensense: Custom IMUs
Posted: Thu Jun 17, 2021 8:10 am
by dpar99
How do you create a new IMU mappings file for custom IMUs and not XSens IMUs? I am confused on where to start since I am using 10 sensors versus the 8 IMUs seen in the Opensense example provided with the source code for Python.
Re: Opensense: Custom IMUs
Posted: Fri Jun 18, 2021 3:02 pm
by aymanh
Hello,
The mapping file is not specific to XSens, it's tied to the format. If you use your own IMUs but create XSens format files then you should be good to go.
The mapping file itself maps names from data-collection to names on model so you can edit/create one as needed with names proper to your situation.
Hope this helps,
-Ayman
Re: Opensense: Custom IMUs
Posted: Tue Jun 22, 2021 1:45 pm
by dpar99
Thank you! Yes this really helps, I was confused as to whether or not the mapping file was tied with the XSens IMUs or just the format of the input data.
Re: Opensense: Custom IMUs
Posted: Thu Jun 24, 2021 6:47 pm
by no_one
Hi! I have the same problem as you. Do you solve the problem?
I don't know how to convert the file format. Do you know the structure file of XSens and APDM?
Re: Opensense: Custom IMUs
Posted: Wed Jun 30, 2021 2:00 pm
by dpar99
Hi Yau!
So I circumvented the whole XSens and APDM file format issue by simply using my orientation data which was already in the quaternion format into a Time Series Quaternion Table (which I found through the OpenSim and Simbody documentation online) and then converting it to the STO orientations file as seen in the IMUDataConverter.py file example provided for the XSens data for Python.
Not sure if this helps, but I found it much easier than trying to get my custom IMU data into the right file format and you also don't have to use the XSensDataReader or the mappings file!
Dhyey Parikh
Re: Opensense: Custom IMUs
Posted: Thu Jul 01, 2021 12:07 am
by no_one
Hi Dhyey!
Thank you for answering! I'm going to try this next.
Good luck for you!
Yau Junking
Re: Opensense: Custom IMUs
Posted: Wed Sep 01, 2021 9:11 am
by michelagardi
Hi,
could you please advice if I can consider using any IMU in Open-sense and if so, what are the best steps to have data read into openSim?
Re: Opensense: Custom IMUs
Posted: Wed Sep 01, 2021 5:05 pm
by aymanh
Hi Michela,
As described above what OpenSense cares about is what data is available rather than the specific IMU. We need Quaternions which you can use directly programmatically if you have them (as Dhyey described), or if using files to write these files using the same format/layout as one of the supported formats (XSens or APDM).
Hope this helps,
-Ayman