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; 166 static const std::map<std::string, float> & defaultData();
167 static std::string serializeData(
const std::map<std::string, float> & data);
168 static std::map<std::string, float> deserializeData(
const std::string & data);
175 void addStatistic(
const std::string & name,
float value);
184 void setSignatures(
const std::map<int, Signature> & signatures) {_signatures = signatures;}
186 void setPoses(
const std::map<int, Transform> & poses) {_poses = poses;}
187 void setConstraints(
const std::multimap<int, Link> & constraints) {_constraints = constraints;}
191 void setWeights(
const std::map<int, int> & weights) {_weights = weights;}
192 void setPosterior(
const std::map<int, float> & posterior) {_posterior = posterior;}
193 void setLikelihood(
const std::map<int, float> & likelihood) {_likelihood = likelihood;}
194 void setRawLikelihood(
const std::map<int, float> & rawLikelihood) {_rawLikelihood = rawLikelihood;}
195 void setLocalPath(
const std::vector<int> & localPath) {_localPath=localPath;}
197 void setReducedIds(
const std::map<int, int> & reducedIds) {_reducedIds = reducedIds;}
205 double stamp()
const {
return _stamp;}
207 const std::map<int, Signature> &
getSignatures()
const {
return _signatures;}
209 const std::map<int, Transform> &
poses()
const {
return _poses;}
210 const std::multimap<int, Link> &
constraints()
const {
return _constraints;}
214 const std::map<int, int> &
weights()
const {
return _weights;}
215 const std::map<int, float> &
posterior()
const {
return _posterior;}
216 const std::map<int, float> &
likelihood()
const {
return _likelihood;}
218 const std::vector<int> &
localPath()
const {
return _localPath;}
220 const std::map<int, int> &
reducedIds()
const {
return _reducedIds;}
221 const std::vector<int> &
wmState()
const {
return _wmState;}
223 const std::map<std::string, float> &
data()
const {
return _data;}
cv::Mat _localizationCovariance
const cv::Mat & localizationCovariance() const
std::map< int, int > _weights
const std::map< int, Signature > & getSignatures() const
std::multimap< int, Link > _constraints
void setRefImageId(int refImageId)
const std::map< int, float > & likelihood() const
std::map< std::string, float > _data
void setPosterior(const std::map< int, float > &posterior)
int proximityDetectionId() const
void setRawLikelihood(const std::map< int, float > &rawLikelihood)
const std::map< int, float > & posterior() const
void setReducedIds(const std::map< int, int > &reducedIds)
void setProximityDetectionId(int id)
std::map< int, float > _rawLikelihood
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 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 setLoopClosureId(int loopClosureId)
#define RTABMAP_STATS(PREFIX, NAME, UNIT)
int loopClosureId() const
std::map< int, Signature > _signatures
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 setSignatures(const std::map< int, Signature > &signatures)
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)
const Transform & mapCorrection() const
const std::vector< int > & localPath() const
std::map< int, float > _posterior
const std::map< int, float > & rawLikelihood() const