mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Memory::computeTransform(): fixed null guess sent to pure ICP registration
This commit is contained in:
@@ -2169,9 +2169,15 @@ Transform Memory::computeTransform(
|
|||||||
UDEBUG("");
|
UDEBUG("");
|
||||||
// no visual in the pipeline, make visual registration for guess
|
// no visual in the pipeline, make visual registration for guess
|
||||||
guess = regVis.computeTransformation(tmpFrom, tmpTo, guess, info);
|
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())
|
if(!transform.isNull())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user