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 --- LocomotorPrimitivesController.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'LocomotorPrimitivesController.h') diff --git a/LocomotorPrimitivesController.h b/LocomotorPrimitivesController.h index 0760459..6c52fda 100644 --- a/LocomotorPrimitivesController.h +++ b/LocomotorPrimitivesController.h @@ -1,7 +1,6 @@ #ifndef LOCOMOTORPRIMITIVES_CONTROLLER_H_ #define LOCOMOTORPRIMITIVES_CONTROLLER_H_ -#include #include #include "MuscleEMGProfile.h" @@ -9,14 +8,14 @@ class LocomotorPrimitivesController : public OpenSim::Controller { OpenSim_DECLARE_CONCRETE_OBJECT(LocomotorPrimitivesController, OpenSim::Controller); public: - LocomotorPrimitivesController(double alpha) : OpenSim::Controller(), _alpha(alpha) { } + LocomotorPrimitivesController(OpenSim::Storage act, double alpha) : OpenSim::Controller(), _act(act), _alpha(alpha) { } int loadCsvData(const std::string &muscleName, const std::string &file); void computeControls(const SimTK::State &s, SimTK::Vector &controls) const; private: double _alpha; - std::vector _act; + OpenSim::Storage _act; }; #endif /* LOCOMOTORPRIMITIVES_CONTROLLER_H_ */ -- cgit v1.2.3-54-g00ecf