Page 1 of 1

Error while reading .c3d file using Matlab Script

Posted: Sun Feb 24, 2019 12:36 am
by amiriqbal4
Hi,
I am very new to OpenSim4.0.

I am unable to read a .c3d file using the Matlab script. Please help me in translating the c3d file in OpenSim format. Thank you.

The error msg reads:
>> c3dExport
[BTK WARNING] test.c3d - The number of blocks to be read in the parameter section is different than the number of blocks read. The value kept is the number of blocks read.
Error using osimC3D (line 65)
Java exception occurred:
java.lang.RuntimeException: invalid map<K, T> key

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

at org.opensim.modeling.C3DFileAdapter.read(C3DFileAdapter.java:82)


Error in c3dExport (line 35)
c3d = osimC3D(c3dpath,1);

>>

Re: Error while reading .c3d file using Matlab Script

Posted: Wed Feb 27, 2019 2:41 pm
by jimmy
There is an error in your C3D file and BTK can't read it. BTK is a third party package that we don't maintain.

If you can't use OpenSim/BTK to read your C3D file, there is a list of other packages here