GCOP
1.0
|
00001 #ifndef GCOP_HELIVIEW_H 00002 #define GCOP_HELIVIEW_H 00003 00004 #include "heli.h" 00005 #include "body3dview.h" 00006 #include "GL/glut.h" 00007 #include <assert.h> 00008 #include <stdlib.h> 00009 #include <string.h> 00010 #include <iostream> 00011 //#include "viewer.h" 00012 #include "so3.h" 00013 00014 00015 namespace gcop { 00016 00017 using namespace Eigen; 00018 00019 class HeliView : public Body3dView<4> { 00020 public: 00021 00027 HeliView(const Heli &sys); 00028 00029 00030 virtual ~HeliView(); 00031 00037 HeliView(const Heli &sys, 00038 vector<pair<Matrix3d, Vector9d> > *xs, 00039 vector<Vector4d> *us = 0); 00040 00041 // virtual ~HeliView(); 00042 00043 void Render(const pair<Matrix3d, Vector9d> *x, 00044 const Vector4d *u = 0); 00045 00046 const Heli &sys; 00047 00048 GLUquadricObj *body; 00049 GLUquadricObj *tail; 00050 GLUquadricObj* tprop[4]; 00051 GLUquadricObj *rprop; 00052 00053 00054 }; 00055 } 00056 #endif