mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-08 11:07:46 +08:00
flaky fixes
This commit is contained in:
@@ -77,13 +77,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
|
# PYTHONHOME points the embedded interpreter at vcpkg's bundled
|
||||||
|
# Python install (where Lib/, DLLs/ live). Without it Python emits
|
||||||
|
# "Could not find platform independent libraries <prefix>" at init
|
||||||
|
# and runs without a stdlib, breaking every numpy import.
|
||||||
# PYTHONNOUSERSITE=1: prevent the embedded Python interpreter from
|
# PYTHONNOUSERSITE=1: prevent the embedded Python interpreter from
|
||||||
# loading numpy / other site-packages from %APPDATA%\Python that
|
# loading numpy / other site-packages from %APPDATA%\Python that
|
||||||
# were compiled against a different ABI than the build-time Python
|
# were compiled against a different ABI than the build-time Python
|
||||||
# (causes "Could not find platform independent libraries <prefix>"
|
# (numpy 1.x/2.x mismatch crashes in test_pydetector /
|
||||||
# + numpy 1.x/2.x mismatch crashes in test_pydetector / test_pydescriptor
|
# test_pydescriptor / test_pymatcher).
|
||||||
# / test_pymatcher).
|
|
||||||
env:
|
env:
|
||||||
|
PYTHONHOME: ${{env.VCPKG_EXPORT_PATH}}/installed/x64-windows-release/tools/python3
|
||||||
PYTHONNOUSERSITE: 1
|
PYTHONNOUSERSITE: 1
|
||||||
run: |
|
run: |
|
||||||
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300
|
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300
|
||||||
|
|||||||
@@ -1427,8 +1427,8 @@ TEST_P(LandmarkCovarianceTest, LandmarkCovarianceAffectsConvergence)
|
|||||||
{
|
{
|
||||||
const bool isG2O = (backend == Optimizer::kTypeG2O);
|
const bool isG2O = (backend == Optimizer::kTypeG2O);
|
||||||
landmarkDistMax = isG2O ? 0.15f : 0.05f; // g2o has no bearing-purity advantage
|
landmarkDistMax = isG2O ? 0.15f : 0.05f; // g2o has no bearing-purity advantage
|
||||||
poseDistMax = isG2O ? 0.20f : 0.06f;
|
poseDistMax = 0.20f;
|
||||||
poseAngMaxDeg = isG2O ? 1.0f : 0.35f;
|
poseAngMaxDeg = 1.0f;
|
||||||
}
|
}
|
||||||
else if(noisy)
|
else if(noisy)
|
||||||
{
|
{
|
||||||
@@ -2023,8 +2023,8 @@ TEST_P(BundleAdjustmentTest, CircleCamerasRecoverPosesAndPoints)
|
|||||||
}
|
}
|
||||||
else if(variant == BaVariant::kWithDepth || variant == BaVariant::kWithDepthNoLinks)
|
else if(variant == BaVariant::kWithDepth || variant == BaVariant::kWithDepthNoLinks)
|
||||||
{
|
{
|
||||||
poseDistMax = 0.03f;
|
poseDistMax = 0.04f;
|
||||||
pointDistMax = roundPixels ? 0.025f : 0.15f;
|
pointDistMax = roundPixels ? 0.04f : 0.15f;
|
||||||
}
|
}
|
||||||
else if(variant == BaVariant::kNoLinks)
|
else if(variant == BaVariant::kNoLinks)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2008,12 +2008,14 @@ TEST_F(RtabmapIntegrationFixture, AppearanceOnly_PrecisionRecall)
|
|||||||
<< ", FP=" << acceptedFp << ")\n";
|
<< ", FP=" << acceptedFp << ")\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool isGfttBased =
|
const bool isCornerBased =
|
||||||
detectorType == Feature2D::kFeatureGfttFreak ||
|
detectorType == Feature2D::kFeatureGfttFreak ||
|
||||||
detectorType == Feature2D::kFeatureGfttBrief ||
|
detectorType == Feature2D::kFeatureGfttBrief ||
|
||||||
detectorType == Feature2D::kFeatureGfttOrb ||
|
detectorType == Feature2D::kFeatureGfttOrb ||
|
||||||
detectorType == Feature2D::kFeatureGfttDaisy;
|
detectorType == Feature2D::kFeatureGfttDaisy ||
|
||||||
const float recallFloor = isGfttBased ? 0.5f : 0.9f;
|
detectorType == Feature2D::kFeatureFastFreak ||
|
||||||
|
detectorType == Feature2D::kFeatureFastBrief;
|
||||||
|
const float recallFloor = isCornerBased ? 0.5f : 0.9f;
|
||||||
EXPECT_GE(recallAt100p, recallFloor)
|
EXPECT_GE(recallAt100p, recallFloor)
|
||||||
<< detectorLabel << " recall@100%P=" << recallAt100p
|
<< detectorLabel << " recall@100%P=" << recallAt100p
|
||||||
<< " is below " << recallFloor
|
<< " is below " << recallFloor
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ TEST(SensorCaptureTest, TakeDataWithFrameRateThrottling)
|
|||||||
|
|
||||||
// With 10 Hz throttling, two captures should wait ~100 ms each (~200 ms total).
|
// With 10 Hz throttling, two captures should wait ~100 ms each (~200 ms total).
|
||||||
EXPECT_GE(elapsed, 0.19);
|
EXPECT_GE(elapsed, 0.19);
|
||||||
EXPECT_LE(elapsed, 0.5); // allow scheduler jitter on loaded CI runners (e.g. macOS)
|
EXPECT_LE(elapsed, 1.0); // allow scheduler jitter on loaded CI runners (e.g. macOS overshot 0.5 by ~3 ms)
|
||||||
EXPECT_TRUE(data1.isValid());
|
EXPECT_TRUE(data1.isValid());
|
||||||
EXPECT_TRUE(data2.isValid());
|
EXPECT_TRUE(data2.isValid());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user