mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
util2d::getDepth() fixed tmp not divided
This commit is contained in:
@@ -1016,9 +1016,9 @@ float getDepth(
|
|||||||
tmp = d;
|
tmp = d;
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
else if(fabs(d - tmp) < maxZError)
|
else if(fabs(d - tmp/float(count)) < maxZError)
|
||||||
{
|
{
|
||||||
tmp+=d;
|
tmp += d;
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user