From 6ffc7871c090ab126353c918adcd5c4ef33dc261 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 25 Jan 2013 13:02:19 +0100 Subject: LocomotorPrimitives: Check availability of control data before running --- LocomotorPrimitivesController.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'LocomotorPrimitivesController.h') 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; -- cgit v1.2.3-54-g00ecf net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/fs/ext3/xattr_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3/xattr_user.c')