10 #ifndef TUNCERTAINTYPATH_H
11 #define TUNCERTAINTYPATH_H
28 template <
class GRAPH_T =
typename mrpt::graphs::CNetworkOfPoses2DInf>
36 using pose_t =
typename constraint_t::type_value;
97 o <<
obj.getAsString() << endl;
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
GLsizei GLsizei GLuint * obj
GLsizei const GLchar ** string
GLsizei GLsizei GLchar * source
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
SLAM methods related to graphs of pose constraints.
Holds the data of an information path.
std::string getAsString() const
void addToPath(const mrpt::graphs::TNodeID &node, const constraint_t &edge)
add a new link in the current path.
void assertIsBetweenNodeIDs(const mrpt::graphs::TNodeID &from, const mrpt::graphs::TNodeID &to) const
Assert that the current path is between the given nodeIDs.
bool operator==(const self_t &other) const
double determinant_cached
const mrpt::graphs::TNodeID & getDestination() const
Return the Destination node of this path.
self_t & operator+=(const self_t &other)
void dumpToTextStream(std::ostream &out) const
This method should clearly display all the contents of the structure in textual form,...
bool operator!=(const self_t &other) const
typename constraint_t::type_value pose_t
type of underlying poses (2D/3D).
typename GRAPH_T::constraint_t constraint_t
Handy typedefs.
std::vector< mrpt::graphs::TNodeID > nodes_traversed
Nodes that the Path comprises of.
bool determinant_is_updated
Determine whether the determinant of the Path is up-to-date and can be directly fetched or has to be ...
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion)
This method load the options from a ".ini"-like file or memory-stored string list.
constraint_t curr_pose_pdf
Current path position + corresponding covariance.
bool hasLowerUncertaintyThan(const self_t &other) const
Test if the current path has a lower uncertainty than the other path.
friend std::ostream & operator<<(std::ostream &o, const self_t &obj)
const mrpt::graphs::TNodeID & getSource() const
Return the source node of this path.