feat(depth): observed_volume depth clearing as deployed 2026-10-14
Baseline commit of the working-tree refactor built on 2026-10-14 17:24 and running on the KIT robot, recorded in one commit before further changes. - VoxelLayer clearing looks up TF at the depth image stamp. - ObservationBuffer: per-source cloud preparation at the measurement stamp, height/range gate before the PCL VoxelGrid. - DepthFramePairer: pairs the marking cloud with the clearing image by source and stamp, bounded queue and age. - DepthVisibilityChecker and the observed_volume clearing mode in VoxelLayer; the legacy frustum mode stays the default. - Tests: depth_observation_buffer_test, depth_visibility_test.
This commit is contained in:
@@ -73,6 +73,8 @@ public:
|
||||
double* max_x, double* max_y);
|
||||
|
||||
void updateOrigin(double new_origin_x, double new_origin_y);
|
||||
// Diagnostic snapshot; caller must hold the layer/update lock, as with getCharMap().
|
||||
VoxelGrid voxelSnapshot();
|
||||
bool isDiscretized()
|
||||
{
|
||||
return true;
|
||||
@@ -109,6 +111,13 @@ private:
|
||||
double min_range, double max_range, double skip_dist,
|
||||
double* min_x, double* min_y, double* max_x, double* max_y);
|
||||
bool clipColumnSegment(double& sx, double& sy, double& ex, double& ey) const;
|
||||
void markObservation(const Observation& observation, double* min_x, double* min_y,
|
||||
double* max_x, double* max_y);
|
||||
void processPairedDepth(double* min_x, double* min_y, double* max_x, double* max_y);
|
||||
struct VisibilityCounts
|
||||
{
|
||||
uint64_t free{0}, unknown{0}, surface{0}, frames{0};
|
||||
} visibility_counts_;
|
||||
|
||||
|
||||
bool publish_voxel_;
|
||||
|
||||
Reference in New Issue
Block a user