#ifndef LOCOMOTORPRIMITIVES_CONTROLLER_H_ #define LOCOMOTORPRIMITIVES_CONTROLLER_H_ #include #include "Logger.h" class LocomotorPrimitivesController : public OpenSim::Controller { OpenSim_DECLARE_CONCRETE_OBJECT(LocomotorPrimitivesController, OpenSim::Controller); public: LocomotorPrimitivesController(OpenSim::Storage act, double alpha) : OpenSim::Controller(), _act(act), _alpha(alpha) { _muscle_act = new double[act.getSmallestNumberOfStates()]; } ~LocomotorPrimitivesController() { 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; double getMuscleActivation(const std::string &muscle_name) const; }; #endif /* LOCOMOTORPRIMITIVES_CONTROLLER_H_ */ option> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/sctp.h7
-rw-r--r--include/net/sctp/sm.h3
-rw-r--r--net/sctp/sm_make_chunk.c46
3 files changed, 56 insertions, 0 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h