mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 01:57:45 +08:00
reprocess: fixed crash when odometry returns empty covariance. Also added more checks about that in the code in general.
This commit is contained in:
@@ -8603,6 +8603,7 @@ void DatabaseViewer::refineConstraint(int from, int to, Registration * reg, Regi
|
||||
|
||||
if(!transform.isNull())
|
||||
{
|
||||
UASSERT(!info.covariance.empty());
|
||||
if(!transform.isIdentity())
|
||||
{
|
||||
if(info.covariance.at<double>(0,0)<=0.0)
|
||||
|
||||
Reference in New Issue
Block a user