opensim-core
opensim-core copied to clipboard
[Moco] Error with exception handling when problems with path constraints fail
The following error message is printed:
casVector should be 1-dimensional, but has size 0 x 0.
Thrown at MocoCasOCProblem.h:108 in convertToSimTKVector().
Is this the time vector, or the constraint errors vector? (Or something else?)
Noted by Hojin Song and Edward Syrett on the forum.
Exception handling happens here: https://github.com/opensim-org/opensim-core/blob/ace2ad43a40740648299cd09d6c1d0fc30541ff1/OpenSim/Moco/MocoCasADiSolver/MocoCasADiSolver.cpp#L373