mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +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;
|
_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));
|
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