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.
IMUPlacer tool
- Carlo Carraro
- Posts: 6
- Joined: Thu Sep 14, 2023 11:04 am
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: IMUPlacer tool
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.