fix(sensor_gateway): stop sending DepthCameraData to DepthCameraObstacleLayer

DepthCameraObstacleLayer only uses the camera PointCloud2 and ignored the
depth image it was sent. DEPTH_CAMERA_LAYER now gets PointCloud2 only;
the VOXEL_LAYER dispatch and the addDepthCameraData API are unchanged.
This commit is contained in:
2026-10-21 13:35:57 +07:00
parent c280a0a019
commit d3a9208b65
3 changed files with 8 additions and 12 deletions

View File

@@ -112,8 +112,9 @@ struct SensorGatewayStats
*
* ## Khác biệt có chủ đích so với `move_base` cũ
*
* - **`DEPTH_CAMERA_LAYER` nhận `PointCloud2` và `DepthCameraData`** (không nhận `LaserScan`,
* `PointCloud`), song song với `VOXEL_LAYER`: `DepthCameraObstacleLayer` có loại riêng.
* - **`DEPTH_CAMERA_LAYER` chỉ nhận `PointCloud2`** (không nhận `LaserScan`, `PointCloud`,
* `DepthCameraData`), song song với `VOXEL_LAYER`: `DepthCameraObstacleLayer` có loại riêng và
* chỉ dùng cloud đã lọc của camera.
* - **Lọc layer chỉ theo `getType()`.** Bản cũ dùng `getType() == type || getName() == name`. Vế
* tên là code chết trong thực tế (tên layer là `obstacles`/`inflation`, tên sensor là
* `/b_scan`/`/map` — hai tập không giao nhau) nhưng lại là một cái bẫy: đặt tên một layer trùng