The model I modified is this provided in the link below
https://drive.google.com/file/d/0B4Av76 ... sp=sharing
And it is clear it only has 12 coordinates
http://imgur.com/a/oOigN
p.s. I set some range to 0 since I want to lock them, but I also called the "setLocked(osimState, true);" in my matlab code.
However, when I use
Code: Select all
osimModel = Model('../Model/selfDefined/osimModel_pelvis_act.osim');
osimState = osimModel.initSystem();
numVar = osimState.getY().size();
Nevertheless, when I use
Code: Select all
osimModel.getStateVariableNames().getitem(index)
In other words, the model I provided have 12 different state variables, but initSystem() create the state that has an extra one, why is that?