wip: state before depth cleanup

Uncommitted work as it ran on the KIT robot until 2026-10-20: the ROC observed_volume tuning patch on top of 63707c9 and the DepthCameraObstacleLayer plugin (clone of tsengapola/costmap_depth_camera noetic, B6 window fix), its 17 unit tests and the CMake wiring. Kept as one commit so the cleanup that follows has a recoverable starting point; not meant to be pushed.
This commit is contained in:
2026-10-20 09:36:53 +07:00
parent 63707c968c
commit 9a67eee148
16 changed files with 1816 additions and 13 deletions

View File

@@ -87,6 +87,22 @@ TEST(DepthEvidenceStore, EraseEraseIfClearAndNonFinite)
EXPECT_EQ(store.size(), 0u);
}
TEST(DepthEvidenceStore, MissCountRestartsOnMarkingAndLeavesWithTheVoxel)
{
DepthEvidenceStore store(8);
const DepthEvidenceStore::VoxelKey key{1, 2, 3};
EXPECT_FLOAT_EQ(store.addMiss(key, 1.f), 0.f); // no evidence, nothing to count
store.add(key, Eigen::Vector3f(1.f, 2.f, .3f), false);
EXPECT_FLOAT_EQ(store.addMiss(key, 1.f), 1.f);
EXPECT_FLOAT_EQ(store.addMiss(key, .5f), 1.5f);
store.add(key, Eigen::Vector3f(1.01f, 2.f, .3f), false); // marked again
EXPECT_FLOAT_EQ(store.addMiss(key, 1.f), 1.f);
store.resetMiss(key);
EXPECT_FLOAT_EQ(store.addMiss(key, 1.f), 1.f);
store.erase(key);
EXPECT_FLOAT_EQ(store.addMiss(key, 1.f), 0.f);
}
TEST(DepthEvidenceStore, CapacityIsClamped)
{
EXPECT_EQ(DepthEvidenceStore(2).pointsPerVoxel(), DepthEvidenceStore::kExtremeSlots);