Page 1 of 1

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

Posted: Fri Jun 10, 2022 2:23 am
by filippo_motta
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

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

Posted: Fri Jun 10, 2022 11:04 am
by aymanh
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