Page 1 of 1

No constructor 'org.opensim.modeling.ExternalLoads' with matching signature found.

Posted: Wed Feb 08, 2023 1:37 pm
by keeprxxl
Hi,
I am running the tutorial based on https://simtk.org/projects/spine_ribcage.

Use MATLAB API for running static optimization. it shows 'No constructor 'org.opensim.modeling.ExternalLoads' with matching signature found.'

No constructor 'org.opensim.modeling.ExternalLoads' with matching signature found.

Error in Do_StatOpAnalysis (line 12)
ExtLoads = ExternalLoads(model,[FileDirectory 'extForces_Setup.xml']);

Error in Header_OpenSim (line 58)
Do_StatOpAnalysis(modelpath,motionpath,extloadpath,resultpath,FileDirectory)

Does anyone know how to solve this?

Thank you in advance!

Re: No constructor 'org.opensim.modeling.ExternalLoads' with matching signature found.

Posted: Thu Feb 09, 2023 4:15 am
by tkuchida
It looks like the code is calling a constructor for ExternalLoads that passes in a model as the first argument. No such constructor exists in OpenSim 4.3 (see https://simtk.org/api_docs/opensim/api_ ... Loads.html). Perhaps the tutorial was built using an older version of OpenSim? For example, a constructor with that signature did exist in OpenSim 3.3 (see https://simtk.org/api_docs/opensim/api_ ... Loads.html).