g2o
|
#include <star.h>
Public Member Functions | |
Star (int level, SparseOptimizer *optimizer) | |
bool | labelStarEdges (int iterations, EdgeLabeler *labeler) |
int | level () const |
returns the level of the lower edges in the star More... | |
SparseOptimizer * | optimizer () |
returns the optimizer More... | |
HyperGraph::EdgeSet & | lowLevelEdges () |
low level edge set More... | |
HyperGraph::EdgeSet & | starEdges () |
high level edge set More... | |
HyperGraph::EdgeSet & | starFrontierEdges () |
edges in the high level that lead to some node owned by a different star More... | |
HyperGraph::VertexSet & | gauge () |
set of nodes to keep fixed in the optimization More... | |
HyperGraph::VertexSet & | lowLevelVertices () |
set of all vertices in the low level More... | |
Public Attributes | |
int | _level |
level of the star More... | |
SparseOptimizer * | _optimizer |
optimizer More... | |
HyperGraph::EdgeSet | _lowLevelEdges |
edges in the lower level More... | |
HyperGraph::EdgeSet | _starEdges |
edges in the star More... | |
HyperGraph::EdgeSet | _starFrontierEdges |
edges in the star that lead to some other star More... | |
HyperGraph::VertexSet | _gauge |
vertices that are fixed (center of the star) More... | |
HyperGraph::VertexSet | _lowLevelVertices |
vertices that are fixed (center of the star) More... | |
Class that represents a subgraph in the hierarchical optimization. The subgraph is consisting of
Additionally, a star provides a function to compute the parameters for each of the edges in the higher level, based on the actual configuration of the state variables. It does so by using an EdgeLabeler class.
g2o::Star::Star | ( | int | level, |
SparseOptimizer * | optimizer | ||
) |
|
inline |
set of nodes to keep fixed in the optimization
Definition at line 49 of file star.h.
References _gauge.
Referenced by g2o::computeBorder(), g2o::computeSimpleStars(), and main().
bool g2o::Star::labelStarEdges | ( | int | iterations, |
EdgeLabeler * | labeler | ||
) |
labels the edges in the star by first optimizing the low level edges, then by calling the labelEdge of the labeler.
iterations | the number of iterations of the optimizer |
labeler | the labeler |
Definition at line 9 of file star.cpp.
References _gauge, _lowLevelEdges, _optimizer, _starEdges, g2o::SparseOptimizer::activeVertices(), g2o::OptimizationAlgorithmWithHessian::buildLinearStructure(), g2o::SparseOptimizer::computeActiveErrors(), g2o::SparseOptimizer::computeInitialGuess(), g2o::OptimizableGraph::Vertex::hessianIndex(), g2o::HyperGraph::Vertex::id(), g2o::SparseOptimizer::indexMapping(), g2o::OptimizationAlgorithm::init(), g2o::SparseOptimizer::initializeOptimization(), g2o::EdgeLabeler::labelEdges(), g2o::SparseOptimizer::optimize(), optimizer(), g2o::OptimizableGraph::Vertex::pop(), g2o::OptimizableGraph::Vertex::push(), g2o::OptimizableGraph::Vertex::setFixed(), g2o::SparseOptimizer::solver(), g2o::OptimizationAlgorithmWithHessian::updateLinearSystem(), and g2o::HyperGraph::Edge::vertices().
Referenced by g2o::assignHierarchicalEdges(), and g2o::computeSimpleStars().
|
inline |
|
inline |
low level edge set
Definition at line 43 of file star.h.
References _lowLevelEdges.
Referenced by g2o::assignHierarchicalEdges(), g2o::computeSimpleStars(), and g2o::constructEdgeStarMap().
|
inline |
set of all vertices in the low level
Definition at line 51 of file star.h.
References _lowLevelVertices.
Referenced by g2o::assignHierarchicalEdges().
|
inline |
returns the optimizer
Definition at line 41 of file star.h.
References _optimizer.
Referenced by g2o::computeSimpleStars(), and labelStarEdges().
|
inline |
high level edge set
Definition at line 45 of file star.h.
References _starEdges.
Referenced by g2o::constructEdgeStarMap().
|
inline |
edges in the high level that lead to some node owned by a different star
Definition at line 47 of file star.h.
References _starFrontierEdges.
Referenced by g2o::computeBorder(), and main().
HyperGraph::VertexSet g2o::Star::_gauge |
vertices that are fixed (center of the star)
Definition at line 64 of file star.h.
Referenced by g2o::assignHierarchicalEdges(), g2o::computeSimpleStars(), gauge(), labelStarEdges(), and g2o::BackBoneTreeAction::perform().
int g2o::Star::_level |
HyperGraph::EdgeSet g2o::Star::_lowLevelEdges |
edges in the lower level
Definition at line 58 of file star.h.
Referenced by g2o::assignHierarchicalEdges(), g2o::computeSimpleStars(), g2o::BackBoneTreeAction::fillStar(), labelStarEdges(), and lowLevelEdges().
HyperGraph::VertexSet g2o::Star::_lowLevelVertices |
vertices that are fixed (center of the star)
Definition at line 66 of file star.h.
Referenced by g2o::BackBoneTreeAction::addToMap(), g2o::assignHierarchicalEdges(), g2o::computeSimpleStars(), g2o::BackBoneTreeAction::fillStar(), and lowLevelVertices().
SparseOptimizer* g2o::Star::_optimizer |
HyperGraph::EdgeSet g2o::Star::_starEdges |
edges in the star
Definition at line 60 of file star.h.
Referenced by g2o::assignHierarchicalEdges(), g2o::computeBorder(), g2o::computeSimpleStars(), labelStarEdges(), main(), and starEdges().
HyperGraph::EdgeSet g2o::Star::_starFrontierEdges |
edges in the star that lead to some other star
Definition at line 62 of file star.h.
Referenced by starFrontierEdges().