diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2012-11-22 19:22:42 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2012-11-22 19:22:42 +0100 |
commit | e9f4f691e554000f9decf84da56568d6150badb2 (patch) | |
tree | 70e3a719bf6c970205cfc0b37d0f46cd0fc84036 /LocomotorPrimitivesController.h |
Initial import (based on Leg6DoF9Muscles model)
Diffstat (limited to 'LocomotorPrimitivesController.h')
-rw-r--r-- | LocomotorPrimitivesController.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/LocomotorPrimitivesController.h b/LocomotorPrimitivesController.h new file mode 100644 index 0000000..7d0c08a --- /dev/null +++ b/LocomotorPrimitivesController.h @@ -0,0 +1,17 @@ +#ifndef LOCOMOTORPRIMITIVES_CONTROLLER_H_ +#define LOCOMOTORPRIMITIVES_CONTROLLER_H_ + +#include <OpenSim/OpenSim.h> + +class LocomotorPrimitivesController : public OpenSim::Controller { +OpenSim_DECLARE_CONCRETE_OBJECT(LocomotorPrimitivesController, OpenSim::Controller); + +public: + LocomotorPrimitivesController(double alpha) : OpenSim::Controller(), _alpha(alpha) { } + + void computeControls(const SimTK::State &s, SimTK::Vector &controls) const; +private: + double _alpha; +}; + +#endif /* LOCOMOTORPRIMITIVES_CONTROLLER_H_ */ |