GCOP
1.0
|
00001 #ifndef GCOP_UNICYCLE_H 00002 #define GCOP_UNICYCLE_H 00003 00004 #include "system.h" 00005 #include <limits> 00006 00007 namespace gcop { 00008 00009 using namespace std; 00010 using namespace Eigen; 00011 00012 typedef Matrix<double, 5, 1> Vector5d; 00013 typedef Matrix<double, 5, 5> Matrix5d; 00014 typedef Matrix<double, 5, 2> Matrix52d; 00015 typedef Matrix<double, 5, Dynamic> Matrix5Xd; 00016 00027 class Unicycle : public System<Vector5d, 5, 2> 00028 { 00029 public: 00030 Unicycle(); 00031 00032 double Step(Vector5d &xb, double t, const Vector5d &xa, 00033 const Vector2d &u, double h, const VectorXd *p, 00034 Matrix5d *A = 0, Matrix52d *B = 0, Matrix5Xd *C = 0); 00035 00036 double dx; 00037 double dy; 00038 }; 00039 } 00040 00041 00042 #endif