opensim-org / opensim-core

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

Loading WalkerModelTerrain.osim causes "frame not found" issue #2100

Closed chrisdembia closed 4 years ago

chrisdembia commented 6 years ago

Loading https://github.com/opensim-org/opensim-core/blob/master/Bindings/Java/Matlab/Model/WalkerModelTerrain.osim causes:

Reported by Hannah.

pastedgraphic-4

chrisdembia commented 6 years ago

Related: The script CreateWalkingModelAndEnvironment.m should not use Windows-style paths: https://github.com/opensim-org/opensim-core/blob/master/Bindings/Java/Matlab/Dynamic_Walker_Example/CreateWalkingModelAndEnvironment.m#L29

In general, the script https://github.com/opensim-org/opensim-core/blob/master/Bindings/Java/Matlab/Dynamic_Walker_Example/CreateWalkingModelAndEnvironment.m#L29 is not updated for 4.0 (e.g., getGroundBody()).

chrisdembia commented 6 years ago

That script might have been last updated in this PR: https://github.com/opensim-org/opensim-core/pull/1439/files#diff-8bac8885adfbb65222f2ebb2d67ab0a7

It's not clear if a more recent version exists.

chrisdembia commented 6 years ago

Here's a manually-updated model file: WalkerModelTerrain.osim.zip