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)?
Undefined function or variable 'getMuscleLength'
- Thomas Uchida
- Posts: 1792
- Joined: Wed May 16, 2012 11:40 am
Re: Undefined function or variable 'getMuscleLength'
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.