Go to the documentation of this file.
25 class CHierarchicalMHMap;
144 using TNodeList = std::map<CHMHMapNode::TNodeID, std::shared_ptr<CHMHMapNode>>;
147 using TPairNodeIDs = std::pair<CHMHMapNode::TNodeID, CHMHMapNode::TNodeID>;
friend class CHierarchicalMHMapPartition
std::set< CHMHMapNode::TNodeID > TNodeIDSet
TNodeID m_ID
An unique identifier for the node: it is randomly generated at construction or read from stream when ...
THypothesisIDSet m_hypotheses
The hypothesis IDs under which this node exists.
TNodeID getID() const
Reads the ID of the node (read-only property)
unsigned int getLevelInTheHierarchy()
Returns the level of this node in the hierarchy of arcs "arcType_Belongs", where level=0 is the groun...
A class for representing a node in a hierarchical, multi-hypothesis map.
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
void onArcAddition(const std::shared_ptr< CHMHMapArc > &arc)
Event handler for arc addition: It should be only called for arcs from/to this node,...
unsigned int getRelatedArcsCount()
Returns the number of arcs starting from/ending into this node.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual ~CHMHMapNode()
Destructor.
mrpt::safe_ptr< CHierarchicalMHMap > m_parent
The hierarchical graph in which this object is into.
std::string m_nodeType
The type of the node, the possibilities are:
mrpt::graphs::TNodeID TNodeID
The type of the IDs of nodes.
std::map< CHMHMapNode::TNodeID, std::shared_ptr< CHMHMapNode > > TNodeList
A map between node IDs and nodes (used in HMT-SLAM).
The virtual base class which provides a unified interface for all persistent objects in MRPT.
An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable ...
void onArcDestruction(CHMHMapArc *arc)
Event handler for arc destruction: It should be only called for arcs from/to this node,...
A set of hypothesis IDs, used for arcs and nodes in multi-hypothesis hybrid maps.
std::pair< CHMHMapNode::TNodeID, CHMHMapNode::TNodeID > TPairNodeIDs
CHMHMapNode(CHierarchicalMHMap *parent=nullptr, const THypothesisIDSet &hyps=THypothesisIDSet())
Constructor.
A class for storing a sequence of arcs (a path).
TArcList m_arcs
The list of all arcs from/to this node:
A class for representing an arc between two nodes in a hierarchical, multi-hypothesis map.
int64_t THypothesisID
An integer number uniquely identifying each of the concurrent hypotheses for the robot topological pa...
CMHPropertiesValuesList m_annotations
The annotations of the node, see the general description of the class for possible properties and val...
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
std::string m_label
The label of the node, only for display it to the user.
GLsizei const GLchar ** string
The most high level class for storing hybrid, multi-hypothesis maps in a graph-based model.
bool isNeighbor(const TNodeID &otherArea, const THypothesisID &hyp_id) const
Check whether an arc exists towards the given area.
A wrapper class for pointers that can be safely copied with "=" operator without problems.
void getArcs(TArcList &out) const
Returns a list with the arcs from/to this node.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |