opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
783 stars 316 forks source link

[Moco] Save MocoStudy guesses specified via `TimeSeriesTable` to XML #3671

Open nickbianco opened 8 months ago

nickbianco commented 8 months ago

If an initial guess is specified via a file (e.g., MocoCasADiSolver::setGuessFile), it will get saved to the guess_file property in the MocoStudy XML file. However, if the guess is set via the API (e.g., MocoCasADiSolver::setGuess), then it will not end up in the XML.

We will probably need to add a new property guess of type TimeSeriesTable to support this.