feat(sensor_gateway): feed DepthCameraObstacleLayer through its own LayerType

robot_costmap_2d now has LayerType::DEPTH_CAMERA_LAYER for
DepthCameraObstacleLayer. The gateway pushes PointCloud2 and DepthCameraData
to that type as well as to VOXEL_LAYER; LaserScan and PointCloud stay
VOXEL_LAYER only. Needs the robot_costmap_2d commit that adds the enum value.
This commit is contained in:
2026-10-20 14:28:14 +07:00
parent 8977e5ec14
commit c280a0a019
3 changed files with 33 additions and 0 deletions

View File

@@ -112,6 +112,8 @@ 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.
* - **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