create Moco guess from previous solution
Posted: Tue Jul 04, 2023 9:17 am
Dear Moco community,
I am trying to use a guess file from a previous MocoStudy solution but encounter the following problem/error message:
RuntimeError: std::exception in 'void OpenSim::MocoCasADiSolver::setGuess(OpenSim::MocoTrajectory)': The trajectory and provided problem are not compatible. The following state(s) are in the trajectory but not the problem:
/jointset/Ankle_l/ankle_pfdf_l/speed
/jointset/Ankle_l/ankle_pfdf_l/value
/jointset/Ankle_r/ankle_pfdf_r/speed
/jointset/Ankle_r/ankle_pfdf_r/value
Thrown at MocoTrajectory.cpp:1028 in MocoTrajectory::isCompatible()().
I am using a MocoInverse instant to prescribe kinematics. The MocoInverse is then translated into a MocoStudy where I add EMG tracking goals.....when setting the guess file with a previous solution it generates the error message.
Are the values and speeds not in the problem because I am using MocoInverse to prescribe kinematics? Do you have a suggestion how I can use a previous solution as guess file for my MocoStudy?
Thanks and kind regards
Christian
I am trying to use a guess file from a previous MocoStudy solution but encounter the following problem/error message:
RuntimeError: std::exception in 'void OpenSim::MocoCasADiSolver::setGuess(OpenSim::MocoTrajectory)': The trajectory and provided problem are not compatible. The following state(s) are in the trajectory but not the problem:
/jointset/Ankle_l/ankle_pfdf_l/speed
/jointset/Ankle_l/ankle_pfdf_l/value
/jointset/Ankle_r/ankle_pfdf_r/speed
/jointset/Ankle_r/ankle_pfdf_r/value
Thrown at MocoTrajectory.cpp:1028 in MocoTrajectory::isCompatible()().
I am using a MocoInverse instant to prescribe kinematics. The MocoInverse is then translated into a MocoStudy where I add EMG tracking goals.....when setting the guess file with a previous solution it generates the error message.
Are the values and speeds not in the problem because I am using MocoInverse to prescribe kinematics? Do you have a suggestion how I can use a previous solution as guess file for my MocoStudy?
Thanks and kind regards
Christian