g2o
|
#include <edge_types_cost_function.h>
Public Member Functions | |
EdgeTypesCostFunction (std::string edgeTag, std::string vertexTag, int level) | |
virtual double | operator() (HyperGraph::Edge *e_, HyperGraph::Vertex *from, HyperGraph::Vertex *to) |
cost operator More... | |
Public Member Functions inherited from g2o::HyperDijkstra::CostFunction | |
virtual | ~CostFunction () |
Public Attributes | |
std::string | _edgeTag |
std::string | _vertexTag |
Factory * | _factory |
int | _level |
Cost function for Hyper-Dijkstra that returns 1 when for edges that belong to a given type and maxdouble otherwise. It can be used to construct a backbone of a hierarchical graph by running Dijkstra.
Definition at line 15 of file edge_types_cost_function.h.
g2o::EdgeTypesCostFunction::EdgeTypesCostFunction | ( | std::string | edgeTag, |
std::string | vertexTag, | ||
int | level | ||
) |
creates a cost function that matches edges at a given level, whose tag is the one given and that are leaving/leading to vertices of a selected type.
edgeTag | the tag of the edge type to consider |
vertexTag | the tag of the vertex to consider |
level | the level of the edge |
Definition at line 7 of file edge_types_cost_function.cpp.
|
virtual |
cost operator
Implements g2o::HyperDijkstra::CostFunction.
Definition at line 14 of file edge_types_cost_function.cpp.
References _edgeTag, _factory, _level, _vertexTag, g2o::OptimizableGraph::Edge::level(), and g2o::Factory::tag().
std::string g2o::EdgeTypesCostFunction::_edgeTag |
Definition at line 26 of file edge_types_cost_function.h.
Referenced by operator()().
Factory* g2o::EdgeTypesCostFunction::_factory |
Definition at line 28 of file edge_types_cost_function.h.
Referenced by operator()().
int g2o::EdgeTypesCostFunction::_level |
Definition at line 29 of file edge_types_cost_function.h.
Referenced by operator()().
std::string g2o::EdgeTypesCostFunction::_vertexTag |
Definition at line 27 of file edge_types_cost_function.h.
Referenced by operator()().