Page 1 of 1

Optimize muscle-tendon parameters plugin

Posted: Thu Dec 24, 2020 12:33 pm
by arluquems
Hello,

I am using an OpenSim plugin (https://simtk.org/projects/opt_muscle_par) to optimize the muscle tendon parameters to scale my model. When running it in Matlab I optain this error:

Undefined function or variable 'getJoint'.

Error in getJointsSpannedByMuscle (line 89)
spannedJoint = body.getJoint();

The API installed correctly in Matlab and I followed the steps adviced by the developer. I am using OpenSim 4.1, can it be an issue of the version?

Thank you!

Re: Optimize muscle-tendon parameters plugin

Posted: Sun Dec 27, 2020 6:46 am
by tkuchida
Yes- according to the "Notes" page (https://simtk.org/frs/shownotes.php?release_id=1586), they used version 3.2. The Body class does not have a getJoint() method in version 4.1.