Moco with Upper-Extremity
Posted: Mon Mar 07, 2022 9:52 pm
Hi all,
I'm trying to use Moco on the upper-extremity model: https://simtk.org/frs/?group_id=657 to do a predictive simulation in Python.
However Moco does not converge and I get the error:
RuntimeError: std::exception in 'void OpenSim::MocoTrajectory::write(std::string const &) const': This trajectory is sealed, to force you to acknowledge the solver failed; call unseal() to gain access
When I change the code to unseal (i.e., predictSolution = study.solve().unseal()), I get a segmentation error.
I'm wondering if the upper-extremity model doesn't work with Moco for some reason? Also, is Ross Miller's walking code the best example of a predictive simulation with a musculoskeletal model (I haven't found other examples, so I just wanted to make sure I'm not overlooking something else).
Thanks,
Mazen
I'm trying to use Moco on the upper-extremity model: https://simtk.org/frs/?group_id=657 to do a predictive simulation in Python.
However Moco does not converge and I get the error:
RuntimeError: std::exception in 'void OpenSim::MocoTrajectory::write(std::string const &) const': This trajectory is sealed, to force you to acknowledge the solver failed; call unseal() to gain access
When I change the code to unseal (i.e., predictSolution = study.solve().unseal()), I get a segmentation error.
I'm wondering if the upper-extremity model doesn't work with Moco for some reason? Also, is Ross Miller's walking code the best example of a predictive simulation with a musculoskeletal model (I haven't found other examples, so I just wanted to make sure I'm not overlooking something else).
Thanks,
Mazen