From d6d184ef741e7cfa72553f617db2f72016da60c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 19 Jan 2024 16:13:23 +0100 Subject: [PATCH] [backport Humble] Support MONO16 image encodings: point_cloud_xyz (#868) (#881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit backport Humble #868 Signed-off-by: Alejandro Hernández Cordero --- depth_image_proc/src/point_cloud_xyz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depth_image_proc/src/point_cloud_xyz.cpp b/depth_image_proc/src/point_cloud_xyz.cpp index d3086435d..09d1ca514 100644 --- a/depth_image_proc/src/point_cloud_xyz.cpp +++ b/depth_image_proc/src/point_cloud_xyz.cpp @@ -105,7 +105,7 @@ void PointCloudXyzNode::depthCb( model_.fromCameraInfo(info_msg); // Convert Depth Image to Pointcloud - if (depth_msg->encoding == enc::TYPE_16UC1) { + if (depth_msg->encoding == enc::TYPE_16UC1 || depth_msg->encoding == enc::MONO16) { convertDepth(depth_msg, cloud_msg, model_); } else if (depth_msg->encoding == enc::TYPE_32FC1) { convertDepth(depth_msg, cloud_msg, model_);