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

@@ -361,10 +361,6 @@ void SensorGateway::pushDepthCameraData(const std::string& topic,
// rơi im lặng qua mọi nhánh của handleImpl.
dispatchTo(local_costmap_, data, robot_costmap_2d::LayerType::VOXEL_LAYER, topic, stats_);
dispatchTo(global_costmap_, data, robot_costmap_2d::LayerType::VOXEL_LAYER, topic, stats_);
// The depth image goes to DepthCameraObstacleLayer too (unused today, needed by depth-image
// clearing); LaserScan and PointCloud do not.
dispatchTo(local_costmap_, data, robot_costmap_2d::LayerType::DEPTH_CAMERA_LAYER, topic, stats_);
dispatchTo(global_costmap_, data, robot_costmap_2d::LayerType::DEPTH_CAMERA_LAYER, topic, stats_);
}
} // namespace move_base2