9 #ifndef CLocalMetricHypothesis_H    10 #define CLocalMetricHypothesis_H    29 class CPose3DPDFParticles;
    68           CLocalMetricHypothesis,
    69           mrpt::bayes::CParticleFilterData<CLSLAMParticleData>::CParticleList>,
    86         "Separate the serializable class from this code, so we don't have to "    87         "worry about copying locks")
    92         ThreadLocks(
const ThreadLocks&) {}
    93         mutable std::mutex m_lock;
   111     std::map<TPoseID, mrpt::obs::CSensoryFrame> 
m_SFs;
   171         std::map<TPoseID, mrpt::poses::CPose3DPDFParticles>& outList) 
const;
   190     void dumpAsText(std::vector<std::string>& st) 
const;
 
std::map< TPoseID, CHMHMapNode::TNodeID > m_nodeIDmemberships
The hybrid map node membership for each robot pose. 
 
Implements a 2D local SLAM method based on a RBPF over an occupancy grid map. 
 
THypothesisID m_ID
The unique ID of the hypothesis (Used for accessing mrpt::slam::CHierarchicalMHMap). 
 
void dumpAsText(std::vector< std::string > &st) const
Describes the LMH in text. 
 
TRobotPosesPartitioning()
 
mrpt::graphs::TNodeID TNodeID
The type of the IDs of nodes. 
 
mrpt::aligned_std_vector< mrpt::poses::CPose2D > m_movementDraws
Auxiliary variable used in the "pfAuxiliaryPFOptimal" algorithm. 
 
TMapPoseID2Pose3D robotPoses
 
std::vector< double > m_maxLikelihood
Auxiliary variable used in the "pfAuxiliaryPFOptimal" algorithm. 
 
void getAs3DScene(mrpt::opengl::CSetOfObjects::Ptr &objs) const
Returns a 3D representation of the the current robot pose, all the poses in the auxiliary graph...
 
uint64_t TPoseID
An integer number uniquely identifying each robot pose stored in HMT-SLAM. 
 
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction...
 
void getPathParticles(std::map< TPoseID, mrpt::poses::CPose3DPDFParticles > &outList) const
Returns the mean and covariance of each robot pose in this LMH, as computed from the set of particles...
 
double m_log_w
Log-weight of this hypothesis. 
 
CLocalMetricHypothesis(CHMTSLAM *parent=nullptr)
Constructor (Default param only used from STL classes) 
 
std::map< KEY, VALUE, std::less< KEY >, mrpt::aligned_allocator_cpp11< std::pair< const KEY, VALUE > >> aligned_std_map
 
std::vector< T, mrpt::aligned_allocator_cpp11< T > > aligned_std_vector
 
A set of TMetricMapInitializer structures, passed to the constructor CMultiMetricMap::CMultiMetricMap...
 
An implementation of Hybrid Metric Topological SLAM (HMT-SLAM). 
 
mrpt::slam::CIncrementalMapPartitioner partitioner
 
Declares a class for storing a collection of robot actions. 
 
std::set< CHMHMapNode::TNodeID > TNodeIDSet
 
std::vector< TPoseID > TPoseIDList
 
mrpt::obs::CActionRobotMovement2D m_accumRobotMovement
Used in CLSLAM_RBPF_2DLASER. 
 
Represents a probabilistic 2D movement of the robot mobile base. 
 
std::vector< std::map< TPoseID, double > > m_log_w_metric_history
The historic log-weights of the metric observations inserted in this LMH, for each particle...
 
mrpt::aligned_std_map< TPoseID, mrpt::poses::CPose3D > TMapPoseID2Pose3D
 
std::map< uint32_t, TPoseID > idx2pose
For the poses in "partitioner". 
 
TPoseIDList m_posesPendingAddPartitioner
The list of poseIDs waiting to be added to the graph partitioner, what happens in the LSLAM thread ma...
 
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
 
mrpt::math::CVectorDouble m_pfAuxiliaryPFOptimal_estimatedProb
Auxiliary variable used in the "pfAuxiliaryPFOptimal" algorithm. 
 
unsigned int m_movementDrawsIdx
Auxiliary variable used in the "pfAuxiliaryPFOptimal" algorithm. 
 
~CLocalMetricHypothesis()
Destructor. 
 
This class is used in HMT-SLAM to represent each of the Local Metric Hypotheses (LMHs). 
 
A wrapper class for pointers that can be safely copied with "=" operator without problems. 
 
std::mutex lock
CS to access the entire struct. 
 
This template class declares the array of particles and its internal data, managing some memory-relat...
 
struct mrpt::hmtslam::CLocalMetricHypothesis::TRobotPosesPartitioning m_robotPosesGraph
 
std::map< TPoseID, mrpt::obs::CSensoryFrame > m_SFs
The SF gathered at each robot pose. 
 
Auxiliary class used in mrpt::slam::CLocalMetricHypothesis for HMT-SLAM; this class keeps the data re...
 
mrpt::aligned_std_vector< mrpt::poses::CPose2D > m_movementDrawMaximumLikelihood
Auxiliary variable used in the "pfAuxiliaryPFOptimal" algorithm. 
 
void getRelativePose(const TPoseID &reference, const TPoseID &pose, mrpt::poses::CPose3DPDFParticles &outPDF) const
Returns the pose PDF of some pose relative to some other pose ID (both must be part of the the LMH)...
 
int64_t THypothesisID
An integer number uniquely identifying each of the concurrent hypotheses for the robot topological pa...
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
 
bool m_accumRobotMovementIsValid
Used in CLSLAM_RBPF_2DLASER. 
 
Finds partitions in metric maps based on N-cut graph partition theory. 
 
void getMeans(TMapPoseID2Pose3D &outList) const
Returns the mean of each robot pose in this LMH, as computed from the set of particles. 
 
void removeAreaFromLMH(const CHMHMapNode::TNodeID areaID)
Removes a given area from the LMH: 
 
void rebuildMetricMaps()
Rebuild the metric maps of all particles from the observations and their estimated poses...
 
mrpt::safe_ptr< CHMTSLAM > m_parent
For quick access to our parent object. 
 
A class used to store a 3D pose (a 3D translation + a rotation in 3D). 
 
The configuration of a particle filter. 
 
void prediction_and_update_pfOptimalProposal(const mrpt::obs::CActionCollection *action, const mrpt::obs::CSensoryFrame *observation, const bayes::CParticleFilter::TParticleFilterOptions &PF_options) override
The PF algorithm implementation. 
 
void changeCoordinateOrigin(const TPoseID &newOrigin)
Change all coordinates to set a given robot pose as the new coordinate origin, and rebuild metric map...
 
void clearRobotPoses()
Rebuild the auxiliary metric maps in "m_robotPosesGraph" from the observations "m_SFs" and their esti...
 
The virtual base class which provides a unified interface for all persistent objects in MRPT...
 
unsigned int pose2idx(const TPoseID &id) const
Uses idx2pose to perform inverse searches. 
 
void updateAreaFromLMH(const CHMHMapNode::TNodeID areaID, bool eraseSFsFromLMH=false)
The corresponding node in the HMT map is updated with the robot poses & SFs in the LMH: the poses are ref...
 
This class stores any customizable set of metric maps. 
 
void prediction_and_update_pfAuxiliaryPFOptimal(const mrpt::obs::CActionCollection *action, const mrpt::obs::CSensoryFrame *observation, const bayes::CParticleFilter::TParticleFilterOptions &PF_options) override
The PF algorithm implementation. 
 
TNodeIDList m_areasPendingTBI
The list of area IDs waiting to be processed by the TBI (topological bayesian inference) engines to s...
 
const mrpt::poses::CPose3D * getCurrentPose(const size_t &particleIdx) const
Returns the i'th particle hypothesis for the current robot pose. 
 
void getPoseParticles(const TPoseID &poseID, mrpt::poses::CPose3DPDFParticles &outPDF) const
Returns the mean and covariance of each robot pose in this LMH, as computed from the set of particles...
 
TNodeIDSet m_neighbors
The list of all areas sourronding the current one (this includes the current area itself)...
 
TRobotPosesPartitioning(const TRobotPosesPartitioning &o)
 
Declares a class that represents a Probability Density function (PDF) of a 3D pose. 
 
A curiously recurring template pattern (CRTP) approach to providing the basic functionality of any CP...
 
CLSLAMParticleData(const mrpt::maps::TSetOfMetricMapInitializers *mapsInitializers=nullptr)
 
TPoseID m_currentRobotPose
The current robot pose (its global unique ID) for this hypothesis. 
 
MRPT_TODO("Separate the serializable class from this code, so we don't have to " "worry about copying locks") struct ThreadLocks
 
mrpt::maps::CMultiMetricMap metricMaps