rtabmap: localization mode (run under fixed memory and fixed dictionary), optional retrieving of the last extracted words when calling rtabmap.process() (useful when in localization mode where the last location is deleted after the rtabmap process)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@882 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-06-10 18:54:11 +00:00
parent 30ab6dca0e
commit 6c656e7c57
6 changed files with 56 additions and 23 deletions

View File

@@ -315,9 +315,9 @@ void DatabaseViewer::update(int value,
img.loadFromData(iter.value(), "BMP");
}
if(memory_ && dynamic_cast<rtabmap::Memory*>(memory_))
if(memory_)
{
std::multimap<int, cv::KeyPoint> words = dynamic_cast<rtabmap::Memory*>(memory_)->getWords(id);
std::multimap<int, cv::KeyPoint> words = memory_->getWords(id);
if(words.size())
{
drawKeypoints(words, view->scene());