diff options
Diffstat (limited to 'LocomotorPrimitives.cpp')
-rw-r--r-- | LocomotorPrimitives.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LocomotorPrimitives.cpp b/LocomotorPrimitives.cpp index 6b6f5f5..cfb484e 100644 --- a/LocomotorPrimitives.cpp +++ b/LocomotorPrimitives.cpp @@ -24,6 +24,10 @@ static void constructModel(OpenSim::Model &model, OpenSim::Storage actData) // Define controller for the model LocomotorPrimitivesController *control = new LocomotorPrimitivesController(actData, 0.01); control->setActuators(model.updActuators()); + if (control->checkControls() != 0) { + std::cerr << "Control data for some muscles in the model is missing. ENTER to continue, ^-C to quit." << std::endl; + std::cin.get(); + } model.addController(control); // Set default activation and fiber length on all muscles of the model |