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

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ce Zhang
Posts: 1
Joined: Tue Nov 03, 2020 10:38 am

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

Post by Ce Zhang » Wed Feb 08, 2023 1:37 pm

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!

Tags:

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

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

Post by Thomas Uchida » Thu Feb 09, 2023 4:15 am

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).

POST REPLY