This PR adds support for loading a MocoTrajectory text file (from the OpenSim Moco package) into memory, and also supporting appending the muscle excitations and activations to an existing CSV file. These changes are primarily to support plotting MocoInverse solutions in AddBiomechanics.
Summary of changes
Added OpenSimParser::loadMocoTrajectory for loading a solution file into an OpenSimMocoTrajectory struct.
Added OpenSimParser::appendMocoTrajectoryAndSaveCSV which appends an OpenSimMocoTrajectory to an existing CSV file (and saves it to a new file).
Added the beginsWith string utility.
Added a test to test_OpenSimParser.
Updated the Python bindings.
Updated the Mac build script to use the latest version of ezc3d. This was necessary to avoid symbol collisions between the versions of ezc3d installed with nimblephysics and OpenSim.
This PR adds support for loading a
MocoTrajectory
text file (from the OpenSim Moco package) into memory, and also supporting appending the muscle excitations and activations to an existing CSV file. These changes are primarily to support plottingMocoInverse
solutions in AddBiomechanics.Summary of changes
OpenSimParser::loadMocoTrajectory
for loading a solution file into anOpenSimMocoTrajectory
struct.OpenSimParser::appendMocoTrajectoryAndSaveCSV
which appends anOpenSimMocoTrajectory
to an existing CSV file (and saves it to a new file).beginsWith
string utility.test_OpenSimParser
.ezc3d
. This was necessary to avoid symbol collisions between the versions ofezc3d
installed with nimblephysics and OpenSim.