Commit Graph

6 Commits

Author SHA1 Message Date
64974d48b7 feat(depth): DepthCameraObstacleLayer replaces depth clearing in ObstacleLayer/VoxelLayer
Depth cameras now go through their own costmap layer instead of the
frustum clearing that lived in ObstacleLayer and VoxelLayer.

- Add DepthCameraObstacleLayer. It stores marked points per costmap
  column, clears stored points inside each camera frustum with a kd-tree
  check against the new cloud, keeps points outside the view, groups
  points with Euclidean clustering, and does not mark a 12 cm band at the
  frustum faces.
- The layer follows the CostmapLayer contract: updateWithMax/Overwrite by
  combination_method, reset(), clearArea() with the usual invert
  semantics, footprint clearing, matchSize() and the layer mutex. So
  ClearCostmapRecovery and costmap resets work on it.
- Add LayerType::DEPTH_CAMERA_LAYER, appended last so the existing values
  keep their numbers. The host's SensorGateway must dispatch PointCloud2
  and DepthCameraData to it (move_base2 feature/depth-camera-layer-type).
- Remove the frustum clearing code from Observation, ObservationBuffer,
  ObstacleLayer, VoxelLayer and costmap_2d_robot.cpp.
- ObstacleLayer and VoxelLayer now reject a DepthCameraData source or
  frustum_clearing_enabled: true at startup, with a message that points
  to DepthCameraObstacleLayer.
- Link PCL into the plugins library only. Add 21 unit tests for the layer
  (depth_camera_obstacle_layer_test).

Squashed from feature/depth-observed-volume (2ca0bcc..40dc70e).
2026-10-21 13:16:07 +07:00
a63c084002 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.
2026-08-27 13:41:42 +07:00
a2a021c114 add function computeCost file layer.h 2026-07-10 11:27:20 +07:00
9026c03e1e update 2026-01-13 14:30:13 +07:00
81e7874274 Duong update 2026-01-12 15:48:43 +07:00
72b2f3c639 Hiep update 2025-12-30 10:24:18 +07:00