GCOP  1.0
controller.h
Go to the documentation of this file.
00001 #ifndef GCOP_CONTROLLER_H
00002 #define GCOP_CONTROLLER_H
00003 
00004 #include <Eigen/Dense>
00005 
00006 namespace gcop {
00007   
00008   using namespace Eigen;
00009   
00016   template <typename Tx, typename Tu, typename Ts = VectorXd, typename Tc = VectorXd> class Controller {
00017   public:
00025   virtual bool Set(Tu &u, double t, const Tx &x) = 0;
00026   
00031   virtual bool SetParams(const Ts &s) {
00032     this->s = s;
00033     return true;
00034   }
00035   
00040   virtual bool SetContext(const Tc &c) {
00041     this->c = c;
00042     return true;
00043   }
00044   
00045   Ts s; 
00046   Tc c; 
00047   };  
00048 };
00049 
00050 #endif