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