feat(sensor_gateway): feed DepthCameraObstacleLayer through its own LayerType
robot_costmap_2d has LayerType::DEPTH_CAMERA_LAYER for DepthCameraObstacleLayer. The gateway now pushes PointCloud2 to that type as well as to VOXEL_LAYER, in both the local and the global costmap. LaserScan, PointCloud and DepthCameraData stay VOXEL_LAYER only: the layer marks and clears from the filtered camera cloud and does not use the depth image. Needs robot_costmap_2d main 64974d4 or later (the enum value). Squashed from feature/depth-camera-layer-type (c280a0a..d3a9208).
This commit is contained in:
@@ -112,6 +112,9 @@ struct SensorGatewayStats
|
||||
*
|
||||
* ## Khác biệt có chủ đích so với `move_base` cũ
|
||||
*
|
||||
* - **`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
|
||||
|
||||
Reference in New Issue
Block a user