reporting Fiber force using Matlab API
Posted: Mon May 19, 2014 12:42 am
Hi all
I am trying to report fiber active and passive forces using matlab API. Here is my code:
But it returns an error:
Is there anyway to realize the system into a new stage?
Thanks
Sina
I am trying to report fiber active and passive forces using matlab API. Here is my code:
Code: Select all
% load model
osimModel = Model('test.osim');
% initiate states and set proper values
defaultStates = osimModel.initSystem();
...
% geting the fiber force
fiberForce = muscle.getFiberForce(defaultStates)
Error using findFiberLength (line 37)
Java exception occurred:
java.lang.RuntimeException: Exception caught in
Thelen2003Muscle::calcMuscleDynamicsInfo
of ercspn_r
Exception caught in Thelen2003Muscle::calcFiberVelocityInfo
of ercspn_r
SimTK Exception thrown at State.cpp:2080:
State Cache entry was out of date at Stage Position. This entry depends on
version 11 of Stage Position but was last updated at version 0.
at org.opensim.modeling.opensimModelJNI.Muscle_getFiberForce(Native Method)
at org.opensim.modeling.Muscle.getFiberForce(Muscle.java:557)
Is there anyway to realize the system into a new stage?
Thanks
Sina