Page 1 of 1

IMUPlacer tool

Posted: Mon Nov 06, 2023 6:36 pm
by ccarraro
Hi everybody,
I'm trying to run the IMUPlacer tool but I enconter always this error when I try to run it: "imuPlacer.run(visulizeCalibration);
Java exception occurred:
java.io.IOException: Expected 4x (multiple of 4) number of tokens.
Thrown at DelimFileAdapter.h:509 in readElems_impl().

at org.opensim.modeling.opensimSimulationJNI.IMUPlacer_run__SWIG_0(Native Method)

at org.opensim.modeling.IMUPlacer.run(IMUPlacer.java:308)"

Do you have some ideas on why this happen?
Thank you so much for your help.

Re: IMUPlacer tool

Posted: Tue Nov 07, 2023 12:44 am
by tkuchida
The "Expected 4x (multiple of 4) number of tokens." exception is thrown from DelimFileAdapter.h, line 515 (https://github.com/opensim-org/opensim- ... ter.h#L515). Perhaps the specified orientation_file_for_calibration (https://simtk.org/api_docs/opensim/api_ ... 2b6ba49c65) does not contain quaternions, or perhaps the file starts/ends with a row that is missing some data. You could also try comparing your file to an example file that is known to work.