mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Improved image view scene rect size when no images are there. Added warning when transform cannot be computed because some data are missing.
This commit is contained in:
@@ -3186,6 +3186,15 @@ Transform Memory::computeTransform(
|
||||
transform = transform.inverse();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string msg = uFormat("Missing visual features or missing raw data to compute them. Transform cannot be estimated.");
|
||||
if(info)
|
||||
{
|
||||
info->rejectedMsg = msg;
|
||||
}
|
||||
UWARN(msg.c_str());
|
||||
}
|
||||
return transform;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user