Thank you Karthick.
I tried using the states and controls from my MocoSolution with the Analyze Tool (both in OpenSim GUI and with accessing it through Moco using Matlab) but the total metabolic energy was maximum 130 (not sure about the units here), but this is way below what is reported in the Simulation-Based Design to Reduce Metabolic Cost (
https://simtk-confluence.stanford.edu:8 ... bolic+Cost) example which reaches a maximum of approx 1750.
I have double checked that my muscles are under ForceSet. As mentioned above, I think the muscles are not being read by the probe. I have made sure that the same naming is used in both.
How did you use a PrescribedController to enforce the correct muscle excitations?
I should maybe mention that I am using MocoInverse tool as I am not interested in changes in kinematics.
I just tested the following code to see if the analyze tool would work with MocoInverse:
Code: Select all
outputPaths = StdVectorString();
outputPaths.add('/forceset/soleus_r\|fiber_velocity')
outputTable = inverse.analyze(solution, outputPaths);
which gave me an error:
Undefined function 'analyze' for input arguments of type
'org.opensim.modeling.MocoInverse'. I tried the inverse.analyze() as I haven't defined a study in my code, only inverse = MocoInverse(). I am basing my code on the exampleMocoInverse.m code in example3DWalking.