From d01cf2ea580d9411140bd7dec539c6ae7a8a39cd Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 10 Dec 2012 07:06:08 +0100 Subject: Read muscle activation from .sto --- LocomotorPrimitives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LocomotorPrimitives.cpp') diff --git a/LocomotorPrimitives.cpp b/LocomotorPrimitives.cpp index af1983a..0de339f 100644 --- a/LocomotorPrimitives.cpp +++ b/LocomotorPrimitives.cpp @@ -23,8 +23,8 @@ static void constructModel(OpenSim::Model &model) std::cout << "Constructing " << MODEL_NAME << " model" << std::endl; // Define controller for the model - LocomotorPrimitivesController *control = new LocomotorPrimitivesController(0.01); - control->loadCsvData("es_r", "../../data/adults_es_r.csv"); + OpenSim::Storage actData("../../data/adults.sto"); + LocomotorPrimitivesController *control = new LocomotorPrimitivesController(actData, 0.01); control->setActuators(model.updActuators()); model.addController(control); -- cgit v1.2.3-54-g00ecf