summaryrefslogtreecommitdiff
path: root/LocomotorPrimitivesController.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-01-25 13:02:19 +0100
committerTobias Klauser <tklauser@distanz.ch>2013-01-25 13:02:19 +0100
commit6ffc7871c090ab126353c918adcd5c4ef33dc261 (patch)
tree77e5fcf3407bf1ba08b5ecf40a27b9c2973e7268 /LocomotorPrimitivesController.h
parentd4f4f0dbb11e99e01e46761d2827680427365d89 (diff)
LocomotorPrimitives: Check availability of control data before running
Diffstat (limited to 'LocomotorPrimitivesController.h')
-rw-r--r--LocomotorPrimitivesController.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/LocomotorPrimitivesController.h b/LocomotorPrimitivesController.h
index 702a3a5..c33745e 100644
--- a/LocomotorPrimitivesController.h
+++ b/LocomotorPrimitivesController.h
@@ -18,9 +18,17 @@ public:
delete[] _muscle_act;
}
+ /**
+ * Check availability of control data for all controls in the model.
+ *
+ * @return 0 if control data is available for all controls, negative
+ * number of missing control data vectors on error
+ */
+ int checkControls();
void computeControls(const SimTK::State &s, SimTK::Vector &controls) const;
private:
double _alpha;
+ /* used to store actuation data in compute controls */
double *_muscle_act;
OpenSim::Storage _act;
alsa-configuration.rst2683
1 files changed, 2683 insertions, 0 deletions
diff --git a/Documentation/sound/alsa-configuration.rst b/Documentation/sound/alsa-configuration.rst
new file mode 100644