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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user