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

@@ -104,6 +104,25 @@ struct DepthFrustumConfig
/// With evidence points, a valid return deeper than valid_max_z_m counts as behind a point
/// that lies at least free_margin_m inside the trusted range: the ray passed the point.
bool far_return_is_behind = false;
/// Re-observe-or-clear rule (needs evidence points). A marked voxel in view must be measured
/// again at one of its points each frame; seen through for miss_frames frames in a row frees
/// it. Occluded, out-of-view and no-return frames keep it, so nothing expires out of the FOV.
/// false: a voxel is freed only when every pixel of every point proves free space.
bool reobserve_clearing = false;
/// [m] Re-observe: |measured - point depth| within this means the surface is still there.
/// Nearer than that is an occluder, deeper is free space seen through. Replaces free_margin_m.
double confirm_tolerance_m = 0.05;
/// [frames] Re-observe: seen-through frames in a row that free a voxel.
unsigned int miss_frames = 3;
/// [0..1] Re-observe: miss added by a frame whose patch pixels are all invalid. 0 keeps invalid
/// depth as unknown; > 0 lets voxels in view expire where the camera returns nothing.
double no_return_weight = 0.0;
/// [m] Stereo baseline of the left no-disparity band, fx * baseline / z + stereo_band_margin_px
/// wide at depth z. Points inside it cannot be re-checked: they are out of view and are not
/// marked. 0 disables (only clear_left_border_px applies).
double stereo_baseline_m = 0.0;
/// [px] Added to the stereo band width.
unsigned int stereo_band_margin_px = 10;
};
class DepthCameraObservation