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

@@ -59,6 +59,7 @@ namespace robot_costmap_2d
{
class DepthVisibilityChecker;
enum class DepthObservation;
class VoxelLayer : public ObstacleLayer
{
@@ -132,7 +133,13 @@ private:
uint64_t free{0}, unknown{0}, surface{0}, frames{0};
uint64_t by_evidence{0}; ///< decisions made from evidence points
uint64_t border_dropped{0}; ///< marking points dropped at the image border
/// re-observe-or-clear outcomes per voxel and frame
uint64_t confirmed{0}, occluded{0}, seen_through{0}, no_return{0}, out_of_view{0};
} visibility_counts_;
/// Re-observe-or-clear: applies one frame's observation to the voxel's miss count.
/// Returns true when the voxel is to be freed.
bool reobserveFrees(DepthObservation observation, const DepthEvidenceStore::VoxelKey& key,
const DepthFrustumConfig& config);
/// Window-independent key: local cell index plus the cells the rolling origin moved.
DepthEvidenceStore::VoxelKey evidenceKey(unsigned int x, unsigned int y, unsigned int z) const