mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Added warning when requesting a path before beeing localized
This commit is contained in:
@@ -3487,6 +3487,10 @@ bool Rtabmap::computePath(int targetNode, bool global)
|
||||
_path[oi++].second = t * iter->second;
|
||||
}
|
||||
}
|
||||
else if(currentNode == 0)
|
||||
{
|
||||
UWARN("We should be localized before planning.");
|
||||
}
|
||||
}
|
||||
UINFO("Total planning time = %fs (%d nodes, %f m long)", totalTimer.ticks(), (int)_path.size(), graph::computePathLength(_path));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user