edge.h
Go to the documentation of this file.
00001 // HOG-Man - Hierarchical Optimization for Pose Graphs on Manifolds
00002 // Copyright (C) 2010 G. Grisetti, R. Kümmerle, C. Stachniss
00003 // 
00004 // HOG-Man is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU Lesser General Public License as published
00006 // by the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // HOG-Man is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU Lesser General Public License for more details.
00013 // 
00014 // You should have received a copy of the GNU Lesser General Public License
00015 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016 
00017 #ifndef RGBDSLAMEDGES_3D_H
00018 #define RGBDSLAMEDGES_3D_H
00019 
00020 #include <set>
00021 #include <iostream>
00022 #include "g2o/math_groups/se3quat.h"
00023 
00024 struct LoadedEdge3D
00025 {
00026   int id1, id2;
00027   //enum { OTHER=0, RANSAC, ICP } edge_type; 
00028   //edge_type type;
00029   g2o::SE3Quat mean;
00030   Eigen::Matrix<double, 6,6> informationMatrix;
00031 };
00032 
00033 struct LoadedEdgeComparator3D
00034 {
00035   inline bool operator()(const LoadedEdge3D& e1, const LoadedEdge3D& e2){
00036     int i11=e1.id1, i12=e1.id2;
00037     if (i11>i12){
00038       i11=e1.id2;
00039       i12=e1.id1;
00040     }
00041     int i21=e2.id1, i22=e2.id2;
00042     if (i21>i22){
00043       i21=e2.id2;
00044       i22=e2.id1;
00045     }
00046     if (i12<i22) return true;
00047     if (i12>i22) return false;
00048     return (i11<i21);
00049   }
00050 };
00051 
00052 typedef std::set<LoadedEdge3D, LoadedEdgeComparator3D> LoadedEdgeSet3D;
00053 
00054 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


rgbdslam
Author(s): Felix Endres, Juergen Hess, Nikolas Engelhard
autogenerated on Wed Dec 26 2012 15:53:08