diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-01-25 13:02:19 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-01-25 13:02:19 +0100 |
commit | 6ffc7871c090ab126353c918adcd5c4ef33dc261 (patch) | |
tree | 77e5fcf3407bf1ba08b5ecf40a27b9c2973e7268 /LocomotorPrimitives.cpp | |
parent | d4f4f0dbb11e99e01e46761d2827680427365d89 (diff) |
LocomotorPrimitives: Check availability of control data before running
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 |