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 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above copyright
12 // notice, this list of conditions and the following disclaimer in the
13 // documentation and/or other materials provided with the distribution.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
16 // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
18 // PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21 // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 
27 #include "types_slam3d.h"
28 #include "g2o/core/factory.h"
29 
30 namespace g2o {
31 namespace deprecated {
32 
33  G2O_REGISTER_TYPE_GROUP(deprecated_slam3d);
34 
35  // cannot register the types right now, as the macros use the class name
36  // which declares duplicate functions, if also linking with the default
37  // slam3d types
38 #if 0
39  G2O_REGISTER_TYPE(DEPRECATED_VERTEX_SE3:QUAT, VertexSE3);
40  G2O_REGISTER_TYPE(DEPRECATED_EDGE_SE3:QUAT, EdgeSE3);
41  G2O_REGISTER_TYPE(DEPRECATED_VERTEX_TRACKXYZ, VertexPointXYZ);
42 
43  G2O_REGISTER_TYPE(DEPRECATED_PARAMS_SE3OFFSET, ParameterSE3Offset);
44  G2O_REGISTER_TYPE(DEPRECATED_EDGE_SE3_TRACKXYZ, EdgeSE3PointXYZ);
45  G2O_REGISTER_TYPE(DEPRECATED_EDGE_SE3_PRIOR, EdgeSE3Prior);
46  G2O_REGISTER_TYPE(DEPRECATED_CACHE_SE3_OFFSET, CacheSE3Offset);
47  G2O_REGISTER_TYPE(DEPRECATED_EDGE_SE3_OFFSET, EdgeSE3Offset);
48 
49  G2O_REGISTER_TYPE(DEPRECATED_PARAMS_CAMERACALIB, ParameterCamera);
50  G2O_REGISTER_TYPE(DEPRECATED_CACHE_CAMERA, CacheCamera);
51  G2O_REGISTER_TYPE(DEPRECATED_EDGE_PROJECT_DISPARITY, EdgeSE3PointXYZDisparity);
52  G2O_REGISTER_TYPE(DEPRECATED_EDGE_PROJECT_DEPTH, EdgeSE3PointXYZDepth);
53 
54  /*********** ACTIONS ************/
55  G2O_REGISTER_ACTION(VertexSE3WriteGnuplotAction);
56  G2O_REGISTER_ACTION(VertexPointXYZWriteGnuplotAction);
57  G2O_REGISTER_ACTION(EdgeSE3WriteGnuplotAction);
58 
59 #ifdef G2O_HAVE_OPENGL
60  G2O_REGISTER_ACTION(VertexPointXYZDrawAction);
61  G2O_REGISTER_ACTION(VertexSE3DrawAction);
62  G2O_REGISTER_ACTION(EdgeSE3DrawAction);
63  G2O_REGISTER_ACTION(CacheCameraDrawAction);
64 #endif
65 #endif
66 
67 } // end namespace
68 } // end namespace
G2O_REGISTER_TYPE(VERTEX_TAG, VertexTag)
G2O_REGISTER_TYPE_GROUP(deprecated_slam3d)
G2O_REGISTER_ACTION(VertexSE2WriteGnuplotAction)