GCOP
1.0
|
00001 #ifndef GCOP_GAVOIDCONTROLLER_H 00002 #define GCOP_GAVOIDCONTROLLER_H 00003 00004 #include "controller.h" 00005 #include "body3dmanifold.h" 00006 #include "constraint.h" 00007 00008 namespace gcop { 00009 00010 using namespace std; 00011 using namespace Eigen; 00012 00013 typedef Constraint<Body3dState, 12, 6, Dynamic, 1> Body3dConstraint; 00014 typedef Matrix<double, 6, 1> Vector6d; 00015 00023 class GavoidController : public Controller<Body3dState, Vector6d> { 00024 public: 00025 00031 GavoidController(Body3dConstraint &con); 00032 00033 virtual ~GavoidController(); 00034 00035 virtual bool Set(Vector6d &u, double t, const Body3dState &x); 00036 00037 Body3dConstraint &con; 00038 00039 double sr; 00040 double k; 00041 double kb; 00042 00043 double oc; 00044 double odExp; 00045 }; 00046 00047 } 00048 00049 #endif