This is an example using the MocoTrack tool with a complex model to track walking.
#include <OpenSim/Actuators/CoordinateActuator.h>
#include <OpenSim/Actuators/ModelOperators.h>
#include <OpenSim/Moco/osimMoco.h>
void torqueDrivenMarkerTracking() {
track.
setName(
"torque_driven_marker_tracking");
}
void muscleDrivenStateTracking() {
track.
setName(
"muscle_driven_state_tracking");
"subject_walk_scaled_FunctionBasedPathSet.xml"));
Model model = modelProcessor.process();
if (coordPath.find("pelvis") != std::string::npos) {
}
}
solver.set_optim_convergence_tolerance(1e-3);
solver.set_optim_constraint_tolerance(1e-4);
}
int main() {
torqueDrivenMarkerTracking();
muscleDrivenStateTracking();
return EXIT_SUCCESS;
}