31#include "rtabmap/core/rtabmap_core_export.h"
33#include <opencv2/core/core.hpp>
36#include "rtabmap/utilite/UEventsHandler.h"
37#include "rtabmap/core/Parameters.h"
168 cv::Mat updatePrediction(
const cv::Mat & oldPrediction,
170 const std::vector<int> & oldIds,
171 const std::vector<int> & newIds);
176 void updatePosterior(
const Memory * memory,
const std::vector<int> & likelihoodIds);
181 void normalize(cv::Mat & prediction,
unsigned int index,
float addedProbabilitiesSum,
bool virtualPlaceUsed)
const;
184 std::map<int, float> _posterior;
186 float _virtualPlacePrior;
187 std::vector<double> _predictionLC;
188 bool _fullPredictionUpdate;
189 float _totalPredictionLCValues;
190 float _predictionEpsilon;
191 std::map<int, std::map<int, int> > _neighborsIndex;
Recursive Bayesian filter for loop-closure hypothesis estimation in RTAB-Map.
std::string getPredictionLCStr() const
Returns the loop-closure prediction model as a space-separated string.
float getVirtualPlacePrior() const
Returns the virtual place prior threshold.
BayesFilter(const ParametersMap ¶meters=ParametersMap())
Constructs a Bayes filter with default or custom parameters.
void setPredictionLC(const std::string &prediction)
Sets the loop-closure prediction model from a space-separated string.
cv::Mat generatePrediction(const Memory *memory, const std::vector< int > &ids)
Builds or updates the prediction (transition) matrix for the given signature ids.
unsigned long getMemoryUsed() const
Estimates memory usage of this object and its internal containers.
virtual void parseParameters(const ParametersMap ¶meters)
Updates internal settings from the parameter map.
const std::map< int, float > & computePosterior(const Memory *memory, const std::map< int, float > &likelihood)
Runs one Bayes filter iteration (prediction + update).
const std::vector< double > & getPredictionLC() const
Returns the loop-closure prediction model as a vector of values.
const std::map< int, float > & getPosterior() const
Returns the current posterior probability map.
void reset()
Clears posterior, prediction matrix and cached neighbor indices.
Three-tiered memory management (STM, WM, LTM) for RTAB-Map.
Represents a node in RTAB-Map's pose graph.
std::map< std::string, std::string > ParametersMap
Parameter keys mapped to their values, as used by every configurable class (see Parameters).