Bring main up to the dev_cam_intel line

main had not moved since 11 July, while the depth-camera work continued on
dev_cam_intel for six weeks. The two branches did not diverge by accident: they
ended up holding two different clearing designs for the same layer.

main carried frustum clearing as VoxelLayer members - frustum_clearing_enabled_,
a pixel step and a min/max range - driven from costmap_2d_robot. dev_cam_intel
replaced that with a full-column clearing pass whose configuration lives per
observation, so the layer keeps no frustum state of its own.

This commit takes the dev_cam_intel tree whole. It is the line running on the
robot, the one rb_ws points at, and the one the NUC measurements were taken
against; the frustum design is superseded rather than merged, and stays in
history at 45c8227 if it is ever wanted back.

Squashed deliberately: the nineteen commits behind it are a working diary -
metrics that were added and removed, test toggles, an optimal-run series - and
none of that is worth carrying onto a branch other trees track.
This commit is contained in:
2026-08-27 13:41:42 +07:00
parent 45c8227f5c
commit a63c084002
20 changed files with 2428 additions and 1701 deletions

View File

@@ -86,6 +86,18 @@ public:
*/
Costmap2D& operator=(const Costmap2D& map);
/**
* @brief Copy metadata and grid from another costmap, reusing the existing
* buffer when the size is unchanged (no delete/new per call).
*
* Built for periodic snapshotting (readers copy the master grid every
* control cycle): operator= reallocates on every call, this only when the
* grid size actually changed. The caller must hold the source map's mutex —
* this method does not lock the source.
* @param map The costmap to copy from
*/
void copyFrom(const Costmap2D& map);
/**
* @brief Turn this costmap into a copy of a window of a costmap passed in
* @param map The costmap to copy
@@ -425,6 +437,7 @@ protected:
double origin_y_;
unsigned char* costmap_;
unsigned char default_value_;
std::vector<unsigned char> rolling_window_scratch_;
class MarkCell
{