Memory::computeTransform(): fixed null guess sent to pure ICP registration

This commit is contained in:
matlabbe
2016-06-21 16:42:21 -04:00
parent 530919c531
commit 42c3186a53

View File

@@ -2169,9 +2169,15 @@ Transform Memory::computeTransform(
UDEBUG("");
// no visual in the pipeline, make visual registration for guess
guess = regVis.computeTransformation(tmpFrom, tmpTo, guess, info);
if(!guess.isNull())
{
transform = _registrationPipeline->computeTransformation(tmpFrom, tmpTo, guess, info);
}
}
else
{
transform = _registrationPipeline->computeTransformation(tmpFrom, tmpTo, guess, info);
}
transform = _registrationPipeline->computeTransformation(tmpFrom, tmpTo, guess, info);
if(!transform.isNull())
{