mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-05 01:27:46 +08:00
Memory::getNeighborId() load only neighbor links from db when loop links are not required
This commit is contained in:
@@ -990,7 +990,7 @@ std::map<int, int> Memory::getNeighborsId(int signatureId,
|
|||||||
ids.insert(std::pair<int, int>(*jter, m));
|
ids.insert(std::pair<int, int>(*jter, m));
|
||||||
|
|
||||||
UTimer timer;
|
UTimer timer;
|
||||||
_dbDriver->loadLinks(*jter, tmpLinks);
|
_dbDriver->loadLinks(*jter, tmpLinks, ignoreLoopIds?Link::kNeighbor:Link::kUndef);
|
||||||
if(dbAccessTime)
|
if(dbAccessTime)
|
||||||
{
|
{
|
||||||
*dbAccessTime += timer.getElapsedTime();
|
*dbAccessTime += timer.getElapsedTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user