GCOP  1.0
wrench.h
Go to the documentation of this file.
00001 #ifndef GCOP_WRENCH_H
00002 #define GCOP_WRENCH_H
00003 
00004 namespace gcop {
00005   
00006   using namespace Eigen;
00007   
00017   template <class T, int n, int c> class Wrench {
00018   public:
00019 
00020     typedef Matrix<double, 6, 1> Vector6d;
00021     typedef Matrix<double, c, 1> Vectorcd;
00022     typedef Matrix<double, c, c> Matrixcd;
00023     typedef Matrix<double, 6, c> Matrix6xcd;
00024     typedef Matrix<double, 6, n> Matrix6xnd;
00025             
00031     Wrench(bool dx = true, bool du = true);
00032 
00033     
00043     virtual void F(Vector6d &f,
00044                    double t, const T &x, const Vectorcd &u,
00045                    Matrix6xnd *fx = 0, Matrix6xcd *fu = 0) = 0;
00046     
00047     bool dx;   
00048     bool du;   
00049   };
00050   
00051   template <class T, int n, int c> 
00052     Wrench<T, n, c>::Wrench(bool dx, bool du) :
00053     dx(dx), du(du) {
00054   } 
00055 }
00056 
00057 #endif