opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
759 stars 308 forks source link

Model Loading error #3720

Closed clodICL closed 4 months ago

clodICL commented 4 months ago

OpenSim does not open a model I modified and I get the following error: 'Joint::getMotionType() given an invalid CoordinateIndex Thrown at Joint.cpp:224 in getMotionType().'

How do I identify the joint ??

Thanks!

tkuchida commented 4 months ago

(1) You may have a kinematic loop of body-joint-body-joint... ending up back at the first body. In that case, the issue wouldn't be with a particular joint; replacing any joint in the loop with a constraint would resolve the issue (theoretically). (2) Additional context about what model you are using and how you modified it would be helpful. (3) Finally, questions like this should be posted to the User's Forum, not GitHub which is for development-related tasks.