ocra-recipes
Doxygen documentation for the ocra-recipes repository
gOcraTaskManagerCollectionBase.h
Go to the documentation of this file.
1 #ifndef gOcraTASKMANAGERCOLLECTIONBASE_H
2 #define gOcraTASKMANAGERCOLLECTIONBASE_H
3 
4 // Includes the set of all possible task managers to make it easier to reference
14 //#include "gocra/Tasks/Managers/gOcraVariableWeightsTaskManager.h"
15 
16 #include "ocra/control/Model.h"
17 
18 namespace gocra
19 {
20  typedef std::map<std::string, gOcraTaskManagerBase*> TaskManagerDict;
21 
23  {
24  public:
26  void init(gocra::GHCJTController& ctrl, ocra::Model& model);
27  void update(double time, ocra::Model& state, void** args);
28  protected:
29  virtual void doInit(gocra::GHCJTController& ctrl, ocra::Model& model) = 0;
30  virtual void doUpdate(double time, ocra::Model& state, void** args) = 0;
31 
32  TaskManagerDict taskManagers;
33  };
34 }
35 
36 #endif // gOcraTASKMANAGERCOLLECTION_H
void update(double time, ocra::Model &state, void **args)
Declaration file of the Model class.
Model class.
Definition: Model.h:38
gOcra Controller based on LQP solver for the ocra framework.
virtual void doUpdate(double time, ocra::Model &state, void **args)=0
std::map< std::string, gOcraTaskManagerBase * > TaskManagerDict
virtual void doInit(gocra::GHCJTController &ctrl, ocra::Model &model)=0
void init(gocra::GHCJTController &ctrl, ocra::Model &model)