mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
rtabmap: added rejectLastLoopClosure() method, for convenience if a validation is done outside RTAB-Map and to reject loop closure detected by RTAB-Map.
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@782 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -76,6 +76,7 @@ public:
|
||||
bool ignoreLoopIds = false,
|
||||
double * dbAccessTime = 0) const;
|
||||
void deleteLastLocation();
|
||||
void rejectLastLoopClosure();
|
||||
|
||||
//getters
|
||||
const std::set<int> & getWorkingMem() const {return _workingMem;}
|
||||
@@ -172,6 +173,7 @@ private:
|
||||
int _lastLoopClosureId;
|
||||
bool _memoryChanged; // False by default, become true when Memory::update() is called.
|
||||
int _signaturesAdded;
|
||||
std::vector<std::pair<int, int> > _savedLoopClosureInfo; // size 3 or 0
|
||||
|
||||
std::map<int, Signature *> _signatures; // TODO : check if a signature is already added? although it is not supposed to occur...
|
||||
std::set<int> _stMem; // id
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
int getLoopClosureId() const;
|
||||
int getRetrievedId() const;
|
||||
int getLastLocationId();
|
||||
float getLcHypValue() const {return _lastLcHypothesisValue;}
|
||||
float getLcHypValue() const {return _lcHypothesisValue;}
|
||||
std::list<int> getWM(); // working memory
|
||||
std::set<int> getSTM(); // short-term memory
|
||||
int getWMSize(); // working memory size
|
||||
@@ -108,6 +108,7 @@ public:
|
||||
void updateParameters(const ParametersMap & parameters);
|
||||
void setWorkingDirectory(std::string path);
|
||||
void deleteLastLocation();
|
||||
void rejectLastLoopClosure();
|
||||
|
||||
void adjustLikelihood(std::map<int, float> & likelihood) const;
|
||||
std::pair<int, float> selectHypothesis(const std::map<int, float> & posterior,
|
||||
@@ -148,9 +149,8 @@ private:
|
||||
bool _statisticLogsBufferedInRAM;
|
||||
|
||||
int _lcHypothesisId;
|
||||
float _lcHypothesisValue;
|
||||
int _retrievedId;
|
||||
float _lastLcHypothesisValue;
|
||||
int _lastLoopClosureId;
|
||||
double _lastProcessTime;
|
||||
|
||||
UMutex _stateMutex;
|
||||
|
||||
Reference in New Issue
Block a user