mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
rtabmap: added parameter to keep the old id or to update to new id when merging on rehearsal
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@758 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -163,7 +163,8 @@ private:
|
||||
bool _incrementalMemory;
|
||||
int _maxStMemSize;
|
||||
float _recentWmRatio;
|
||||
bool _dataMergedOnRehearsal;
|
||||
bool _oldDataKeptOnRehearsal;
|
||||
bool _idUpdatedToNewOneRehearsal;
|
||||
|
||||
int _idCount;
|
||||
Signature * _lastSignature;
|
||||
|
||||
@@ -144,7 +144,8 @@ class RTABMAP_EXP Parameters
|
||||
RTABMAP_PARAM(Mem, STMSize, unsigned int, 30); // Short-term memory size
|
||||
RTABMAP_PARAM(Mem, IncrementalMemory, bool, true);
|
||||
RTABMAP_PARAM(Mem, RecentWmRatio, float, 0.2); // Ratio of locations after the last loop closure in WM that cannot be transferred
|
||||
RTABMAP_PARAM(Mem, DataMergedOnRehearsal, bool, true); // Merge data on rehearsal
|
||||
RTABMAP_PARAM(Mem, RehearsalOldDataKept, bool, true); // On merge, keep old data
|
||||
RTABMAP_PARAM(Mem, RehearsalIdUpdatedToNewOne, bool, true); // On merge, update to new id
|
||||
|
||||
// KeypointMemory (Keypoint-based)
|
||||
RTABMAP_PARAM(Kp, PublishKeypoints, bool, true); // Publishing keypoints
|
||||
|
||||
@@ -94,8 +94,9 @@ public:
|
||||
std::map<int, int> getWeights();
|
||||
int getTotalMemSize();
|
||||
double getLastProcessTime() const {return _lastProcessTime;};
|
||||
std::multimap<int, cv::KeyPoint> getWords(int nodeId);
|
||||
std::multimap<int, cv::KeyPoint> getWords(int locationId);
|
||||
std::map<int, int> getNeighbors(int nodeId, int margin, bool lookInLTM = false);
|
||||
bool isInSTM(int locationId);
|
||||
|
||||
void setTimeThreshold(float maxTimeAllowed); // in ms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user