opensim-core
opensim-core copied to clipboard
StaticOptimization may fail with a model with constraints if constrained coordinate values aren't given
From forum: https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=91&t=14434
Using wrist model from repo and user provided .sto file that does not contain data for dependent constrained coordinates (attached), running static optimization hangs on first optimization step. setup_wrist.zip
Warnings from formCompleteStorages()
might give a hint as these are all the dependent coordinates for the four constraints:
Model::formCompleteStorages(): Did not find column /jointset/rotaxis-auxprfem/rotaxis_auxprfem_r3/value in storage object.
Model::formCompleteStorages(): Did not find column /jointset/auxprfem-auxprrud/auxprfem-auxprrud_coord/value in storage object.
Model::formCompleteStorages(): Did not find column /jointset/auxprrud-auxdrfem/auxprrud_auxdrfem_r3/value in storage object.
Model::formCompleteStorages(): Did not find column /jointset/auxdrfem-auxdrrud/auxdrfem_auxdrrud_r1/value in storage object.
but might not too, since there is some logic in formCompleteStorages()
for handling constraints (I haven't dug into this deeper yet)