33 #include <opencv2/core/core.hpp> 34 #include <opencv2/features2d/features2d.hpp> 35 #include <opencv2/imgproc/imgproc.hpp> 43 #define RTABMAP_STATS(PREFIX, NAME, UNIT) \ 45 static std::string k##PREFIX##NAME() {return #PREFIX "/" #NAME "/" #UNIT;} \ 47 class Dummy##PREFIX##NAME { \ 49 Dummy##PREFIX##NAME() {if(!_defaultDataInitialized)_defaultData.insert(std::pair<std::string, float>(#PREFIX "/" #NAME "/" #UNIT, 0.0f));} \ 51 Dummy##PREFIX##NAME dummy##PREFIX##NAME 217 static const std::map<std::string, float> & defaultData();
218 static std::string serializeData(
const std::map<std::string, float> & data);
219 static std::map<std::string, float> deserializeData(
const std::string & data);
226 void addStatistic(
const std::string & name,
float value);
240 void setPoses(
const std::map<int, Transform> & poses) {_poses = poses;}
241 void setConstraints(
const std::multimap<int, Link> & constraints) {_constraints = constraints;}
245 void setLabels(
const std::map<int, std::string> & labels) {_labels = labels;}
246 void setWeights(
const std::map<int, int> & weights) {_weights = weights;}
247 void setPosterior(
const std::map<int, float> & posterior) {_posterior = posterior;}
248 void setLikelihood(
const std::map<int, float> & likelihood) {_likelihood = likelihood;}
249 void setRawLikelihood(
const std::map<int, float> & rawLikelihood) {_rawLikelihood = rawLikelihood;}
250 void setLocalPath(
const std::vector<int> & localPath) {_localPath=localPath;}
252 void setReducedIds(
const std::map<int, int> & reducedIds) {_reducedIds = reducedIds;}
263 double stamp()
const {
return _stamp;}
267 const std::map<int, Transform> &
poses()
const {
return _poses;}
268 const std::multimap<int, Link> &
constraints()
const {
return _constraints;}
272 const std::map<int, std::string> &
labels()
const {
return _labels;}
273 const std::map<int, int> &
weights()
const {
return _weights;}
274 const std::map<int, float> &
posterior()
const {
return _posterior;}
275 const std::map<int, float> &
likelihood()
const {
return _likelihood;}
277 const std::vector<int> &
localPath()
const {
return _localPath;}
279 const std::map<int, int> &
reducedIds()
const {
return _reducedIds;}
280 const std::vector<int> &
wmState()
const {
return _wmState;}
282 const std::map<std::string, float> &
data()
const {
return _data;}
cv::Mat _localizationCovariance
const std::map< int, std::string > & labels() const
const cv::Mat & localizationCovariance() const
std::map< int, int > _weights
int refImageMapId() const
std::multimap< int, Link > _constraints
const std::map< int, float > & likelihood() const
std::map< std::string, float > _data
void setLoopClosureId(int id)
int loopClosureMapId() const
void setLabels(const std::map< int, std::string > &labels)
void setPosterior(const std::map< int, float > &posterior)
int proximityDetectionId() const
void setRawLikelihood(const std::map< int, float > &rawLikelihood)
const Signature & getLastSignatureData() const
void setLoopClosureMapId(int id)
const std::map< int, float > & posterior() const
void setRefImageId(int id)
void setReducedIds(const std::map< int, int > &reducedIds)
void setProximityDetectionId(int id)
std::map< int, float > _rawLikelihood
std::map< int, std::string > _labels
void setCurrentGoalId(int goal)
void setConstraints(const std::multimap< int, Link > &constraints)
const std::map< int, int > & reducedIds() const
const std::map< int, int > & weights() const
Transform _loopClosureTransform
std::map< int, int > _reducedIds
const std::map< std::string, float > & data() const
void setLocalPath(const std::vector< int > &localPath)
static std::map< std::string, float > _defaultData
void setLastSignatureData(const Signature &data)
void setLocalizationCovariance(const cv::Mat &covariance)
void setPoses(const std::map< int, Transform > &poses)
std::map< int, float > _likelihood
void setExtended(bool extended)
static bool _defaultDataInitialized
std::vector< int > _localPath
void setRefImageMapId(int id)
#define RTABMAP_STATS(PREFIX, NAME, UNIT)
int proximityDetectionMapId() const
int _proximiyDetectionMapId
int loopClosureId() const
const Transform & loopClosureTransform() const
RecoveryProgressState state
std::vector< int > _wmState
void setMapCorrection(const Transform &mapCorrection)
void setLikelihood(const std::map< int, float > &likelihood)
const std::map< int, Transform > & poses() const
void setWmState(const std::vector< int > &state)
void setStamp(double stamp)
const std::vector< int > & wmState() const
const std::multimap< int, Link > & constraints() const
void setWeights(const std::map< int, int > &weights)
std::map< int, Transform > _poses
int currentGoalId() const
void setLoopClosureTransform(const Transform &loopClosureTransform)
Signature _lastSignatureData
void setProximityDetectionMapId(int id)
const Transform & mapCorrection() const
const std::vector< int > & localPath() const
std::map< int, float > _posterior
const std::map< int, float > & rawLikelihood() const