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");
if (coordPath.find("pelvis") != std::string::npos) {
}
}
}
int main() {
torqueDrivenMarkerTracking();
muscleDrivenStateTracking();
return EXIT_SUCCESS;
}