g2o
types_slam3d.cpp
Go to the documentation of this file.
1 // g2o - General Graph Optimization
2 // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3 //
4 // g2o is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // g2o is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #include "types_slam3d.h"
18 #include "g2o/core/factory.h"
19 #include "g2o/stuff/macros.h"
20 
21 #include <iostream>
22 
23 namespace g2o {
24 
26 
27  G2O_REGISTER_TYPE(VERTEX_SE3:QUAT, VertexSE3);
28  G2O_REGISTER_TYPE(EDGE_SE3:QUAT, EdgeSE3);
29  G2O_REGISTER_TYPE(VERTEX_TRACKXYZ, VertexPointXYZ);
30 
31  G2O_REGISTER_TYPE(PARAMS_SE3OFFSET, ParameterSE3Offset);
32  G2O_REGISTER_TYPE(EDGE_SE3_TRACKXYZ, EdgeSE3PointXYZ);
33  G2O_REGISTER_TYPE(EDGE_SE3_PRIOR, EdgeSE3Prior);
34  G2O_REGISTER_TYPE(CACHE_SE3_OFFSET, CacheSE3Offset);
35  G2O_REGISTER_TYPE(EDGE_SE3_OFFSET, EdgeSE3Offset);
36 
37  G2O_REGISTER_TYPE(PARAMS_CAMERACALIB, ParameterCamera);
38  G2O_REGISTER_TYPE(PARAMS_STEREOCAMERACALIB, ParameterStereoCamera);
39  G2O_REGISTER_TYPE(CACHE_CAMERA, CacheCamera);
40  G2O_REGISTER_TYPE(EDGE_PROJECT_DISPARITY, EdgeSE3PointXYZDisparity);
41  G2O_REGISTER_TYPE(EDGE_PROJECT_DEPTH, EdgeSE3PointXYZDepth);
42 
43  G2O_REGISTER_TYPE(EDGE_POINTXYZ, EdgePointXYZ);
44 
45  G2O_REGISTER_TYPE(EDGE_SE3_LOTSOF_XYZ, EdgeSE3LotsOfXYZ)
46 
47  /*********** ACTIONS ************/
48  G2O_REGISTER_ACTION(VertexSE3WriteGnuplotAction);
49  G2O_REGISTER_ACTION(VertexPointXYZWriteGnuplotAction);
50  G2O_REGISTER_ACTION(EdgeSE3WriteGnuplotAction);
51 
52 #ifdef G2O_HAVE_OPENGL
53  G2O_REGISTER_ACTION(VertexPointXYZDrawAction);
54  G2O_REGISTER_ACTION(VertexSE3DrawAction);
55  G2O_REGISTER_ACTION(EdgeSE3DrawAction);
56  G2O_REGISTER_ACTION(EdgeSE3PointXYZDrawAction);
57  G2O_REGISTER_ACTION(EdgeProjectDisparityDrawAction);
58  G2O_REGISTER_ACTION(CacheCameraDrawAction);
59  G2O_REGISTER_ACTION(CacheSE3OffsetDrawAction);
60 #endif
61 
62 } // end namespace
G2O_REGISTER_TYPE(VERTEX_TAG, VertexTag)
G2O_REGISTER_TYPE_GROUP(data)
G2O_REGISTER_ACTION(VertexSE2WriteGnuplotAction)