Error while reading .c3d file using Matlab Script

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Amir Iqbal
Posts: 1
Joined: Tue Dec 18, 2018 9:29 pm

Error while reading .c3d file using Matlab Script

Post by Amir Iqbal » Sun Feb 24, 2019 12:36 am

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);

>>

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Error while reading .c3d file using Matlab Script

Post by jimmy d » Wed Feb 27, 2019 2:41 pm

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

POST REPLY