21 namespace mrpt {
namespace graphs{
namespace detail {
32 template<
class GRAPH_T>
39 typedef typename constraint_t::type_value
pose_t;
GLsizei const GLchar ** string
uint64_t TNodeID
The type for node IDs in graphs of different types.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
An edge hypothesis between two nodeIDs.
constraint_t edge
Edge connecting the two nodes.
constraint_t getEdge() const
double goodness
Goodness value corresponding to the hypothesis edge.
void setEdge(const constraint_t &edge)
Setter method for the underlying edge.
size_t id
ID of the current hypothesis.
constraint_t::type_value pose_t
type of underlying poses (2D/3D).
THypothesis< GRAPH_T > self_t
std::string getAsString(bool oneline=true) const
Return a string representation of the object at hand.
bool operator<(const self_t &other) const
Handy operator for using THypothesis in std::set.
bool hasEnds(const mrpt::utils::TNodeID from, const mrpt::utils::TNodeID to) const
Check if the start, end nodes are the ones given.
~THypothesis()
Destructor.
mrpt::utils::TNodeID to
Ending node of the hypothesis.
bool sameEndsWith(const self_t &other) const
Compare the start and end nodes of two hypothesis.
void inverseHypothesis()
Reverse the hypothesis.
THypothesis()
Constructor.
bool is_valid
Field that specifies if the hypothesis is to be considered.
constraint_t getInverseEdge() const
mrpt::utils::TNodeID from
Starting node of the hypothesis.
friend std::ostream & operator<<(std::ostream &o, const THypothesis< GRAPH_T > &h)
GRAPH_T::constraint_t constraint_t
Handy typedefs.