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 126 RTABMAP_STATS(Proximity, Space_detections_added_icp_global,);
223 static const std::map<std::string, float> & defaultData();
224 static std::string serializeData(
const std::map<std::string, float> &
data);
225 static std::map<std::string, float> deserializeData(
const std::string & data);
232 void addStatistic(
const std::string &
name,
float value);
248 void setPoses(
const std::map<int, Transform> & poses) {_poses = poses;}
249 void setConstraints(
const std::multimap<int, Link> & constraints) {_constraints = constraints;}
253 void setLabels(
const std::map<int, std::string> & labels) {_labels = labels;}
254 void setWeights(
const std::map<int, int> & weights) {_weights = weights;}
255 void setPosterior(
const std::map<int, float> & posterior) {_posterior = posterior;}
256 void setLikelihood(
const std::map<int, float> & likelihood) {_likelihood = likelihood;}
257 void setRawLikelihood(
const std::map<int, float> & rawLikelihood) {_rawLikelihood = rawLikelihood;}
258 void setLocalPath(
const std::vector<int> & localPath) {_localPath=localPath;}
260 void setReducedIds(
const std::map<int, int> & reducedIds) {_reducedIds = reducedIds;}
273 double stamp()
const {
return _stamp;}
278 const std::map<int, Transform> &
poses()
const {
return _poses;}
279 const std::multimap<int, Link> &
constraints()
const {
return _constraints;}
283 const std::map<int, std::string> &
labels()
const {
return _labels;}
284 const std::map<int, int> &
weights()
const {
return _weights;}
285 const std::map<int, float> &
posterior()
const {
return _posterior;}
286 const std::map<int, float> &
likelihood()
const {
return _likelihood;}
288 const std::vector<int> &
localPath()
const {
return _localPath;}
290 const std::map<int, int> &
reducedIds()
const {
return _reducedIds;}
291 const std::vector<int> &
wmState()
const {
return _wmState;}
292 const std::map<int, Transform> &
odomCachePoses()
const {
return _odomCachePoses;}
295 const std::map<std::string, float> &
data()
const {
return _data;}
const std::vector< int > & wmState() const
cv::Mat _localizationCovariance
const std::map< int, float > & posterior() const
const std::map< int, int > & reducedIds() const
int currentGoalId() const
std::map< int, int > _weights
std::multimap< int, Link > _constraints
std::map< std::string, float > _data
void setLoopClosureId(int id)
void setLabels(const std::map< int, std::string > &labels)
void setPosterior(const std::map< int, float > &posterior)
void setRawLikelihood(const std::map< int, float > &rawLikelihood)
void setLoopClosureMapId(int id)
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 > & weights() const
void setOdomCacheConstraints(const std::multimap< int, Link > &constraints)
void addSignatureData(const Signature &data)
RTABMAP_DEPRECATED(typedef SensorData Image, "rtabmap::Image class is renamed to rtabmap::SensorData, use the last one instead.")
const Transform & loopClosureTransform() const
int loopClosureMapId() const
const std::map< int, Transform > & poses() const
const std::map< int, float > & likelihood() const
Transform _loopClosureTransform
std::map< int, int > _reducedIds
const std::map< std::string, float > & data() const
int loopClosureId() const
int proximityDetectionMapId() 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)
const std::map< int, float > & rawLikelihood() const
static bool _defaultDataInitialized
void setSignaturesData(const std::map< int, Signature > &data)
std::vector< int > _localPath
const Transform & mapCorrection() const
void setRefImageMapId(int id)
#define RTABMAP_STATS(PREFIX, NAME, UNIT)
std::map< int, Signature > _signaturesData
const std::multimap< int, Link > & odomCacheConstraints() const
const std::map< int, Signature > & getSignaturesData() const
int _proximiyDetectionMapId
RecoveryProgressState state
std::vector< int > _wmState
void setMapCorrection(const Transform &mapCorrection)
void setLikelihood(const std::map< int, float > &likelihood)
const std::multimap< int, Link > & constraints() const
const std::vector< int > & localPath() const
void setWmState(const std::vector< int > &state)
std::multimap< int, Link > _odomCacheConstraints
void setStamp(double stamp)
void setWeights(const std::map< int, int > &weights)
std::map< int, Transform > _poses
const Signature & getLastSignatureData() const
Signature _dummyEmptyData
void setLoopClosureTransform(const Transform &loopClosureTransform)
int refImageMapId() const
void setProximityDetectionMapId(int id)
const cv::Mat & localizationCovariance() const
const std::map< int, std::string > & labels() const
int proximityDetectionId() const
const std::map< int, Transform > & odomCachePoses() const
std::map< int, float > _posterior
void setOdomCachePoses(const std::map< int, Transform > &poses)
std::map< int, Transform > _odomCachePoses