Hello,
I am trying to make a program to use c3d files into the Opensim pipeline. However, when i use the practice c3dexport.m script in matlab, I get an error:
>> c3dExport
Undefined function or variable 'opensimC3D'.
Error in c3dExport (line 13)
c3d = opensimC3D(c3dpath);
What would I need to do to get opensimC3D? I have used the configureOpenSim script first before i ran the c3d export.
Undefined function or variable 'opensimC3D'.
- Gaurav Girish
- Posts: 3
- Joined: Thu Jan 19, 2017 6:27 pm
Re: Undefined function or variable 'opensimC3D'.
osimC3D.m is distributed in the resources directory that is in the OpenSim resources directory.If you did install the resources directory to your Documents folder, the path should be something like '...\Documents\OpenSim\4.0Beta\Code\Matlab\Utilites'. You will need to add this path to Matlab so that Matlab knows where the osimC3D.m is on your system.
- Daniel Gordon
- Posts: 34
- Joined: Fri May 06, 2016 7:57 am
Re: Undefined function or variable 'opensimC3D'.
Hi,
In my Matlab/Utilities folder there is no 'opensimC3D' file, but there is an 'osimC3D' class. When I change 'opensimC3D' to 'osimC3D' in the 'c3dExport' function, I get this error:
Error using osimC3D (line 23)
Java exception occurred:
java.lang.RuntimeException: invalid map<K, T> key
at org.opensim.modeling.opensimCommonJNI.C3DFileAdapter_read(Native Method)
at org.opensim.modeling.C3DFileAdapter.read(C3DFileAdapter.java:54)
Error in c3dExport (line 13)
c3d = osimC3D(c3dpath);
Do you have any ideas why this might occur?
Thanks for your help,
Daniel
In my Matlab/Utilities folder there is no 'opensimC3D' file, but there is an 'osimC3D' class. When I change 'opensimC3D' to 'osimC3D' in the 'c3dExport' function, I get this error:
Error using osimC3D (line 23)
Java exception occurred:
java.lang.RuntimeException: invalid map<K, T> key
at org.opensim.modeling.opensimCommonJNI.C3DFileAdapter_read(Native Method)
at org.opensim.modeling.C3DFileAdapter.read(C3DFileAdapter.java:54)
Error in c3dExport (line 13)
c3d = osimC3D(c3dpath);
Do you have any ideas why this might occur?
Thanks for your help,
Daniel
Re: Undefined function or variable 'opensimC3D'.
opensimC3D.m was an older versions that no longer exist. The file is now osimC3D.
The osimC3D.m class has had significant updates recently and will be packaged with an upcoming refresh of the 4.0 Beta. This should happen in the next week or so. Until then, I suggest holding off using the OpenSim Matlab C3D scripts packaged with the Beta.
The osimC3D.m class has had significant updates recently and will be packaged with an upcoming refresh of the 4.0 Beta. This should happen in the next week or so. Until then, I suggest holding off using the OpenSim Matlab C3D scripts packaged with the Beta.