I'm trying to run the MocoTrack tool for a problem in implicit mode using Matlab, but am running in to this error:
The same code when run in explicit mode seems to work fine and produces a solution in 70-100 iterations or so.java.lang.RuntimeException: casVector should be 1-dimensional, but has size 0 x 0.
Thrown at MocoCasOCProblem.h:108 in convertToSimTKVector().
To enter implicit mode, I've been using the following:
Code: Select all
solver = MocoCasADiSolver.safeDownCast(study.updSolver());
solver.set_multibody_dynamics_mode('implicit');
Cheers