No info available for state erro

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Ebenezer Adorão
Posts: 5
Joined: Wed Oct 26, 2022 8:27 am

No info available for state erro

Post by Ebenezer Adorão » Fri Nov 17, 2023 7:25 am

Hello!

I'm trying to run the tracking of my data, and I'm getting the following error:

Java exception occurred:
java.lang.RuntimeException: No info available for state '/forceset/glut_med1_r/fiber_length'.
Thrown at MocoProblemRep.cpp:629 in getStateInfo().

at org.opensim.modeling.opensimMocoJNI.MocoTrack_initialize(Native Method)

at org.opensim.modeling.MocoTrack.initialize(MocoTrack.java:549)


Has anyone experienced this before, or does anyone know how I could solve this issue?

I appreciate the help in advance.

User avatar
Nicholas Bianco
Posts: 1041
Joined: Thu Oct 04, 2012 8:09 pm

Re: No info available for state erro

Post by Nicholas Bianco » Fri Nov 17, 2023 11:46 am

Hi Ebenezer,

You're getting that error message because you're using a model with muscles and have tendon compliance enabled. The state variable for the Millard2012EquilibriumMuscle for tendon compliance dynamics is 'fiber_length', and by default we don't set bounds for that state.

If want to use tendon compliance, I recommend switching to the DeGrooteFregly2016Muscle and using tendon compliance in 'implicit' mode. If not, you can disable tendon compliance to remove the state variable from the problems.

See the Moco documentation for more info: https://opensim-org.github.io/opensim-moco-site/.

Best,
Nick

POST REPLY