From ad6a598de4025321a5227edf2a676c0f3397927c Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 5 Dec 2012 21:14:14 +0100 Subject: Basic infrastructure to read muscle activation profiles from CSV --- LocomotorPrimitivesController.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'LocomotorPrimitivesController.h') diff --git a/LocomotorPrimitivesController.h b/LocomotorPrimitivesController.h index 7d0c08a..0760459 100644 --- a/LocomotorPrimitivesController.h +++ b/LocomotorPrimitivesController.h @@ -1,7 +1,9 @@ #ifndef LOCOMOTORPRIMITIVES_CONTROLLER_H_ #define LOCOMOTORPRIMITIVES_CONTROLLER_H_ +#include #include +#include "MuscleEMGProfile.h" class LocomotorPrimitivesController : public OpenSim::Controller { OpenSim_DECLARE_CONCRETE_OBJECT(LocomotorPrimitivesController, OpenSim::Controller); @@ -9,9 +11,12 @@ OpenSim_DECLARE_CONCRETE_OBJECT(LocomotorPrimitivesController, OpenSim::Controll public: LocomotorPrimitivesController(double alpha) : OpenSim::Controller(), _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; }; #endif /* LOCOMOTORPRIMITIVES_CONTROLLER_H_ */ -- cgit v1.2.3-54-g00ecf