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:
@@ -48,8 +48,13 @@ public:
|
||||
unsigned int pointsPerVoxel() const { return points_per_voxel_; }
|
||||
|
||||
/// Records a marking point [global frame, m]. fresh = true drops points left over from
|
||||
/// an earlier occupancy of the voxel (it was not MARKED before this point).
|
||||
/// an earlier occupancy of the voxel (it was not MARKED before this point). A marking
|
||||
/// point also restarts the voxel's re-observe miss count.
|
||||
void add(const VoxelKey& key, const Eigen::Vector3f& point, bool fresh);
|
||||
/// Re-observe-or-clear: adds weight to the voxel's miss count and returns the new count;
|
||||
/// 0 when the voxel has no evidence.
|
||||
float addMiss(const VoxelKey& key, float weight);
|
||||
void resetMiss(const VoxelKey& key);
|
||||
|
||||
/// Distinct evidence points of one voxel. Returns false when the voxel has none.
|
||||
bool points(const VoxelKey& key, std::vector<Eigen::Vector3d>& out) const;
|
||||
@@ -75,6 +80,7 @@ private:
|
||||
std::array<Eigen::Vector3f, kMaxPoints> points;
|
||||
unsigned char count = 0; ///< valid slots, extremes included
|
||||
unsigned char next_recent = 0; ///< ring position among the recent slots
|
||||
float miss = 0.f; ///< re-observe misses since last marked or confirmed
|
||||
};
|
||||
|
||||
unsigned int points_per_voxel_;
|
||||
|
||||
Reference in New Issue
Block a user