mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
RegistrationICP: adjusting maxLaserScans if voxel filtering is done
This commit is contained in:
@@ -187,9 +187,13 @@ Transform RegistrationIcp::computeTransformationImpl(
|
||||
if(_voxelSize > 0.0f)
|
||||
{
|
||||
fromCloudFiltered = util3d::voxelize(fromCloudFiltered, _voxelSize);
|
||||
int pointsBeforeFiltering = toCloudFiltered->size();
|
||||
toCloudFiltered = util3d::voxelize(toCloudFiltered, _voxelSize);
|
||||
filtered = true;
|
||||
UDEBUG("Voxel filtering time (voxel=%f m) = %f s", _voxelSize, timer.ticks());
|
||||
|
||||
//Adjust maxLaserScans
|
||||
maxLaserScans = maxLaserScans * toCloudFiltered->size() / pointsBeforeFiltering;
|
||||
}
|
||||
|
||||
bool correspondencesComputed = false;
|
||||
|
||||
Reference in New Issue
Block a user