31 template <
class GRAPH_T>
39 using pose_t =
typename constraint_t::type_value;
51 void getAsString(std::string* str,
bool oneline =
true)
const;
double goodness
Goodness value corresponding to the hypothesis edge.
constraint_t getEdge() const
void inverseHypothesis()
Reverse the hypothesis.
typename GRAPH_T::constraint_t constraint_t
Handy typedefs.
bool is_valid
Field that specifies if the hypothesis is to be considered.
Internal functions for MRPT.
typename constraint_t::type_value pose_t
type of underlying poses (2D/3D).
~THypothesis()
Destructor.
mrpt::graphs::TNodeID from
Starting node of the hypothesis.
bool operator<(const self_t &other) const
Handy operator for using THypothesis in std::set.
THypothesis()
Constructor.
bool hasEnds(const mrpt::graphs::TNodeID from, const mrpt::graphs::TNodeID to) const
Check if the start, end nodes are the ones given.
THypothesis< GRAPH_T > self_t
mrpt::graphs::TNodeID to
Ending node of the hypothesis.
void setEdge(const constraint_t &edge)
Setter method for the underlying edge.
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
friend std::ostream & operator<<(std::ostream &o, const THypothesis< GRAPH_T > &h)
constraint_t getInverseEdge() const
size_t id
ID of the current hypothesis.
An edge hypothesis between two nodeIDs.
bool sameEndsWith(const self_t &other) const
Compare the start and end nodes of two hypothesis.
constraint_t edge
Edge connecting the two nodes.
std::string getAsString(bool oneline=true) const
Return a string representation of the object at hand.