Opensense: Custom IMUs

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Dhyey Parikh
Posts: 8
Joined: Wed Jun 02, 2021 8:25 am

Opensense: Custom IMUs

Post by Dhyey Parikh » Thu Jun 17, 2021 8:10 am

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.

Tags:

User avatar
Ayman Habib
Posts: 2236
Joined: Fri Apr 01, 2005 12:24 pm

Re: Opensense: Custom IMUs

Post by Ayman Habib » Fri Jun 18, 2021 3:02 pm

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

User avatar
Dhyey Parikh
Posts: 8
Joined: Wed Jun 02, 2021 8:25 am

Re: Opensense: Custom IMUs

Post by Dhyey Parikh » Tue Jun 22, 2021 1:45 pm

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.

User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Re: Opensense: Custom IMUs

Post by Yau JunKing » Thu Jun 24, 2021 6:47 pm

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?

User avatar
Dhyey Parikh
Posts: 8
Joined: Wed Jun 02, 2021 8:25 am

Re: Opensense: Custom IMUs

Post by Dhyey Parikh » Wed Jun 30, 2021 2:00 pm

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

User avatar
Yau JunKing
Posts: 7
Joined: Sat Jun 19, 2021 8:23 pm

Re: Opensense: Custom IMUs

Post by Yau JunKing » Thu Jul 01, 2021 12:07 am

Hi Dhyey!
Thank you for answering! I'm going to try this next.
Good luck for you!
Yau Junking

User avatar
michela gardi
Posts: 9
Joined: Wed Aug 25, 2021 5:14 am

Re: Opensense: Custom IMUs

Post by michela gardi » Wed Sep 01, 2021 9:11 am

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?

User avatar
Ayman Habib
Posts: 2236
Joined: Fri Apr 01, 2005 12:24 pm

Re: Opensense: Custom IMUs

Post by Ayman Habib » Wed Sep 01, 2021 5:05 pm

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

POST REPLY