summaryrefslogtreecommitdiff
path: root/LocomotorPrimitivesController.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2012-12-05 21:14:14 +0100
committerTobias Klauser <tklauser@distanz.ch>2012-12-05 21:14:14 +0100
commitad6a598de4025321a5227edf2a676c0f3397927c (patch)
tree0f17b56ca26f13f7f3c36a7204295865b2c280a5 /LocomotorPrimitivesController.h
parentedb2cdf6b9fc0c94cce910c9d488e69200402c57 (diff)
Basic infrastructure to read muscle activation profiles from CSV
Diffstat (limited to 'LocomotorPrimitivesController.h')
-rw-r--r--LocomotorPrimitivesController.h5
1 files changed, 5 insertions, 0 deletions
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 <map>
#include <OpenSim/OpenSim.h>
+#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<MuscleEMGProfile> _act;
};
#endif /* LOCOMOTORPRIMITIVES_CONTROLLER_H_ */
ref='/cgit.cgi/linux/net-next.git/commit/tools/perf/builtin-help.c?id=edb7c60e27c1baff38d82440dc52eaffac9a45f4'>perf options: Type check all the remaining OPT_ variantsArnaldo Carvalho de Melo1-3/+3 2010-04-14perf: Fix endianness argument compatibility with OPT_BOOLEAN() and introduce ...Ian Munsie1-1/+1