|
g2o
|
#include <edge_types_cost_function.h>


Public Member Functions | |
| EdgeTypesCostFunction (const std::string &edgeTag, const std::string &vertexTag, int level) | |
| virtual double | operator() (HyperGraph::Edge *e_, HyperGraph::Vertex *from, HyperGraph::Vertex *to) |
| cost operator | |
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 44 of file edge_types_cost_function.h.
| g2o::EdgeTypesCostFunction::EdgeTypesCostFunction | ( | const std::string & | edgeTag, |
| const 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 35 of file edge_types_cost_function.cpp.
|
virtual |
cost operator
Implements g2o::HyperDijkstra::CostFunction.
Definition at line 43 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 57 of file edge_types_cost_function.h.
Referenced by operator()().
| Factory* g2o::EdgeTypesCostFunction::_factory |
Definition at line 59 of file edge_types_cost_function.h.
Referenced by operator()().
| int g2o::EdgeTypesCostFunction::_level |
Definition at line 60 of file edge_types_cost_function.h.
Referenced by operator()().
| std::string g2o::EdgeTypesCostFunction::_vertexTag |
Definition at line 58 of file edge_types_cost_function.h.
Referenced by operator()().