getLocation() Matlab API bug
Posted: Wed Oct 24, 2018 9:30 am
I'm attempting to pull my model's muscle pathpoint locations using the Matlab API, but it keeps displaying an error as though that function is not appropriate for the AbstractPathPoints class.
My syntax is as follows
hModel = Model([sModelPath sModelFile]);
hModel.getMuscles.get(0).getGeometryPath.getPathPointSet.get(0).getLocation;
The getLocation function appears both when I query available methods for the class in Matlab as well as the online documentation:
https://simtk.org/api_docs/opensim/api_ ... Point.html
Also I can successfully pull the muscle pathpoint's name (using getName) and the class is properly displayed as AbstractPathPoint using the getClass function.
This script had previously worked in OpenSim 3.3 using the getLocationCoord method for the same class. We are now using 4.0.
Thanks.
My syntax is as follows
hModel = Model([sModelPath sModelFile]);
hModel.getMuscles.get(0).getGeometryPath.getPathPointSet.get(0).getLocation;
The getLocation function appears both when I query available methods for the class in Matlab as well as the online documentation:
https://simtk.org/api_docs/opensim/api_ ... Point.html
Also I can successfully pull the muscle pathpoint's name (using getName) and the class is properly displayed as AbstractPathPoint using the getClass function.
This script had previously worked in OpenSim 3.3 using the getLocationCoord method for the same class. We are now using 4.0.
Thanks.