C3DFileAdapter() Reading Problem: OpenSim 4.4 vs 4.5
Posted: Mon Feb 05, 2024 3:38 am
Hi!
I use MATLAB for exporting and processing .trc files. A couple of days ago, I noticed that OpenSim 4.5 was released. But after setting up the environment, I found out that my .c3d files are not being read.
My code and the error:
If I revert back to OpenSim 4.4 everything works fine. But when I switch back to 4.5, this error appears again. I have reinstalled OpenSim several times and tried it on other computers (Windows 10, 11), but keep facing the same problem.
I use MATLAB for exporting and processing .trc files. A couple of days ago, I noticed that OpenSim 4.5 was released. But after setting up the environment, I found out that my .c3d files are not being read.
My code and the error:
Code: Select all
import org.opensim.modeling.*;
c3dFileAdapter = C3DFileAdapter();
c3dFileAdapter.setLocationForForceExpression(1);
tables = c3dFileAdapter.read(fileLocation);
Code: Select all
Java exception occurred:
java.lang.RuntimeException: Group::parameterIdx could not find FPCOPPOLY in the group FORCE_PLATFORM
at org.opensim.modeling.opensimCommonJNI.DataAdapter_read(Native Method)
at org.opensim.modeling.DataAdapter.read(DataAdapter.java:80)