fixing flaky tests on windows and mac

This commit is contained in:
matlabbe
2026-05-29 08:41:30 -07:00
parent ac930c2ac2
commit 1c4b838403
5 changed files with 15 additions and 12 deletions
+5 -5
View File
@@ -649,14 +649,14 @@ TEST_F(RtabmapIntegrationFixture, PR2_Scan2D_RGBD)
EXPECT_GE(result.gridObstacleCells, 4200);
EXPECT_LE(result.gridObstacleCells, 5100);
#ifdef RTABMAP_OCTOMAP
// Observed: empty 6072-8037, obstacle 39924-42883. Bounds are wide
// because without g2o (OdomF2M/BundleAdjustment disabled) visual
// odometry drifts a bit differently run-to-run, which propagates into
// the assembled occupancy grid.
// Observed: empty 6072-8037, obstacle 39924-44130. Bounds are wide
// because visual odometry drifts a bit differently run-to-run across
// platforms (different OpenCV versions and g2o-vs-no-g2o BA), which
// propagates into the assembled occupancy grid.
EXPECT_GE(result.octomapEmptyCells, 5500);
EXPECT_LE(result.octomapEmptyCells, 8500);
EXPECT_GE(result.octomapObstacleCells, 38000);
EXPECT_LE(result.octomapObstacleCells, 44000);
EXPECT_LE(result.octomapObstacleCells, 44500);
#endif
// RGB-D F2M visual odom + visual loop closure -- observed RMSE ~13 cm
// (less stable than the stereo/ICP paths), 20 cm bound gives ~50%