Undefined function or variable 'getMuscleLength'

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jum Wld
Posts: 15
Joined: Tue Jan 31, 2017 10:14 am

Undefined function or variable 'getMuscleLength'

Post by Jum Wld » Sat Mar 11, 2017 12:20 pm

Hello,

I am using 'getMuscleLength' in MATLAB script. I got an error : Undefined function or variable 'getMuscleLength'.

Is muscle.getLength(state) the same as muscle.getMuscleLength(state)?

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

Re: Undefined function or variable 'getMuscleLength'

Post by Thomas Uchida » Sat Mar 11, 2017 9:56 pm

There doesn't seem to be a method named getMuscleLength. There is a Muscle::getMuscleLengthInfo() method, but that may not be available through the scripting interface (it returns a MuscleLengthInfo struct that MATLAB may not be able to interpret). The PathActuator::getMuscleLength() method will return the length of the muscle's path from origin to insertion. The documentation for the Muscle class can be found here: https://simtk.org/api_docs/opensim/api_ ... uscle.html.

POST REPLY