mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 09:07:47 +08:00
Planning update: remove virtual links up to current path index
This commit is contained in:
@@ -3131,6 +3131,15 @@ void Rtabmap::updateGoalIndex()
|
||||
|
||||
if( _memory && _path.size())
|
||||
{
|
||||
// remove all previous virtual links
|
||||
for(unsigned int i=0; i<_pathCurrentIndex && i<_path.size(); ++i)
|
||||
{
|
||||
if(_memory->getSignature(_path[i].first))
|
||||
{
|
||||
_memory->removeVirtualLinks(_path[i].first);
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure the next signatures on the path are linked together
|
||||
float distanceSoFar = 0.0f;
|
||||
for(unsigned int i=_pathCurrentIndex;
|
||||
|
||||
Reference in New Issue
Block a user