Error in tables = xsensReader.read('IMUData/')

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Filippo Motta
Posts: 3
Joined: Tue Nov 02, 2021 9:59 am

Error in tables = xsensReader.read('IMUData/')

Post by Filippo Motta » Fri Jun 10, 2022 2:23 am

When trying to read my IMUdata I get this error:

Java exception occurred:
java.lang.RuntimeException: Table
does not have metadata for 'header'.
Thrown at XsensDataReader.cpp:94
in extendRead().

at
org.opensim.modeling.opensimCommonJNI.DataAdapter_read(Native
Method)

at
org.opensim.modeling.DataAdapter.read(DataAdapter.java:80)

The columns of my data (an example is attached) are already separated by tabs, so I don't think the error is due to that, maybe I need to add an header to my txt file? In this case what I need to add and how?
Thanks for your collaboration
Attachments
MatrixLF.txt
(166.93 KiB) Downloaded 12 times

Tags:

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

Re: Error in tables = xsensReader.read('IMUData/')

Post by Ayman Habib » Fri Jun 10, 2022 11:04 am

Hello,

The format of the file is strict and is fully specified by XSens, as such you can't change the tab separated labels with spaces or replace labels like Mat[1][1] with your own M11.
I strongly recommend you check the example data files included with the distribution (typically under the [resources folder]\Code\Python\OpenSenseExample\IMUData\*.txt) and make your file matches the same format.

Hope this helps,
-Ayman

POST REPLY