g2o
Loading...
Searching...
No Matches
star.h
Go to the documentation of this file.
1// g2o - General Graph Optimization
2// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, H. Strasdat, 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#ifndef G2O_STAR_
28#define G2O_STAR_
29
30#include <Eigen/Core>
31#include <map>
32#include <set>
33#include <vector>
34
35#include "edge_labeler.h"
37
38namespace g2o {
97
98typedef std::multimap<OptimizableGraph::Vertex*, Star*> VertexStarMultimap;
99typedef std::map<OptimizableGraph::Vertex*, Star*> VertexStarMap;
100typedef std::set<Star*> StarSet;
101typedef std::map<HyperGraph::Edge*, Star*> EdgeStarMap;
102
103} // namespace g2o
104#endif
std::set< Edge * > EdgeSet
std::set< Vertex * > VertexSet
std::map< OptimizableGraph::Vertex *, Star * > VertexStarMap
Definition star.h:99
std::set< Star * > StarSet
Definition star.h:100
std::map< HyperGraph::Edge *, Star * > EdgeStarMap
Definition star.h:101
std::multimap< OptimizableGraph::Vertex *, Star * > VertexStarMultimap
Definition star.h:98
int _level
level of the star
Definition star.h:83
bool labelStarEdges(int iterations, EdgeLabeler *labeler)
Definition star.cpp:37
HyperGraph::EdgeSet & starFrontierEdges()
edges in the high level that lead to some node owned by a different star
Definition star.h:76
HyperGraph::EdgeSet _starFrontierEdges
edges in the star that lead to some other star
Definition star.h:91
HyperGraph::VertexSet _lowLevelVertices
vertices that are fixed (center of the star)
Definition star.h:95
SparseOptimizer * optimizer()
returns the optimizer
Definition star.h:70
HyperGraph::EdgeSet & lowLevelEdges()
low level edge set
Definition star.h:72
SparseOptimizer * _optimizer
optimizer
Definition star.h:85
HyperGraph::VertexSet & lowLevelVertices()
set of all vertices in the low level
Definition star.h:80
HyperGraph::VertexSet _gauge
vertices that are fixed (center of the star)
Definition star.h:93
HyperGraph::EdgeSet _starEdges
edges in the star
Definition star.h:89
int level() const
returns the level of the lower edges in the star
Definition star.h:68
HyperGraph::EdgeSet & starEdges()
high level edge set
Definition star.h:74
HyperGraph::EdgeSet _lowLevelEdges
edges in the lower level
Definition star.h:87
HyperGraph::VertexSet & gauge()
set of nodes to keep fixed in the optimization
Definition star.h:78