I am trying to run my model using Matlab and I am getting an error in each try:
Code: Select all
Exception:
Could not open file
../CMC/3DGaitModelwithSimpleArms_states.sto
When I am running the same model with the same XML file, it is working and when I am trying to run the system with the same XML and Model on Matlab, I am getting the error as mentioned above.
To Clarify the problem's potential source:
1) I added some bodies to the original model and some weld joints,
2) When I am using the original model, this code is working,
3) I added the bodies and joints by editing model.osim file,
Code: Select all
clc; clear; close all
import org.opensim.modeling.*
model = Model("Model.osim");
actSet = model.getActuators;
probes = model.getProbeSet;
model.initSystem();
cmc = CMCTool('Setting.xml');
resdir ='Dir'
cmc.setResultsDir(resdir);
cmc.run();
Many Thanks.