GCOP
1.0
|
00001 #ifndef GCOP_POSEGRAPH2D_H 00002 #define GCOP_POSEGRAPH2D_H 00003 00004 #include <Eigen/Dense> 00005 #include <vector> 00006 #include <type_traits> 00007 00008 namespace gcop { 00009 00010 using namespace std; 00011 using namespace Eigen; 00012 00018 class Posegraph2d { 00019 public: 00020 00026 Posegraph2d(int N, int nf); 00027 00033 void Optp(VectorXd &p, const vector<Matrix3d> &gs); 00034 00041 static void Synthesize(Posegraph2d &pgt, Posegraph2d &pgn, double tf); 00042 00049 static void Synthesize2(Posegraph2d &pgt, Posegraph2d &pgn, double tf); 00050 00051 00052 vector<double> ts; 00053 00054 vector<Matrix3d> gs; 00055 00056 vector<Vector3d> us; 00057 00058 VectorXd p; 00059 00060 vector< vector<pair<int, Vector2d> > > Is; 00061 00062 vector< vector<pair<int, Vector2d> > > Js; 00063 00064 double cp; 00065 }; 00066 } 00067 00068 #endif