Page 1 of 1

Error APDMDataReader.read

Posted: Sun Jul 03, 2022 7:49 am
by cristinachieffo
Good morning,
I've found an error tring to read my imu data (they are not Xsens but are made by my univeristy).
This is the error that Matlab show me
"
Java exception occurred:
java.lang.RuntimeException: Table does not have
metadata for 'header'.
Thrown at APDMDataReader.cpp:130 in
extendRead().

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

at
org.opensim.modeling.DataAdapter.read(DataAdapter.java:80)
"
I attach also the example that the website propose for doing the tutorial and the table i've created.
I should have adapted the first two lines equal to the ones of the example but i'm not able to understand what i'm not changing correctly.
I've also tried to write the same amount of columns of the example (simuling to have the same number of IMUs) but the error remain.

Thank you for the availability,
Cristina Chieffo

Re: Error APDMDataReader.read

Posted: Fri Jul 08, 2022 9:54 am
by aymanh
Hello,

The error message regarding the header is likely due to extra or missing commas or spaces/tabs in the header lines. These file formats are defined by the manufacturers and our parsers were written for a specific version as such our parsers are strict. The best resource is to look into provided example data files and follow the format very strictly.

Alternatively if working in Matlab or python you can do the parsing yourself, create a TimeSeriesTable of Quaternions and use it downstream in opensense.

Hope this helps,
-Ayman