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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user