mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16: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));
|
||||
|
||||
UTimer timer;
|
||||
_dbDriver->loadLinks(*jter, tmpLinks);
|
||||
_dbDriver->loadLinks(*jter, tmpLinks, ignoreLoopIds?Link::kNeighbor:Link::kUndef);
|
||||
if(dbAccessTime)
|
||||
{
|
||||
*dbAccessTime += timer.getElapsedTime();
|
||||
|
||||
Reference in New Issue
Block a user