mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
removed virtual signature -1 in rtabmap::getMap() (to avoid error "[ERROR] DBDriverSqlite3.cpp:1103::loadSignaturesQuery() Signature -1 not found in database!")
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1942 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -2133,6 +2133,10 @@ void Rtabmap::get3DMap(std::map<int, Signature> & signatures,
|
||||
}
|
||||
|
||||
std::set<int> ids = _memory->getWorkingMem(); // STM + WM
|
||||
|
||||
//remove virtual signature
|
||||
ids.erase(Memory::kIdVirtual);
|
||||
|
||||
ids.insert(_memory->getStMem().begin(), _memory->getStMem().end());
|
||||
if(global)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user