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!
Optimize muscle-tendon parameters plugin
- Araceli Luque Martín-Sacristán
- Posts: 10
- Joined: Tue Apr 07, 2020 12:02 pm
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Optimize muscle-tendon parameters plugin
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.