mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Merge branch 'master' of github.com:introlab/rtabmap into devel
This commit is contained in:
@@ -3787,7 +3787,7 @@ void Rtabmap::updateGoalIndex()
|
|||||||
{
|
{
|
||||||
if(_localRadius > 0.0f)
|
if(_localRadius > 0.0f)
|
||||||
{
|
{
|
||||||
distanceFromCurrentNode += _path[i-1].second.getDistance(_path[i].second);
|
distanceFromCurrentNode = _path[_pathCurrentIndex].second.getDistance(_path[i].second);
|
||||||
}
|
}
|
||||||
|
|
||||||
if((goalIndex == _pathCurrentIndex && i == _path.size()-1) ||
|
if((goalIndex == _pathCurrentIndex && i == _path.size()-1) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user