From c6dcc79d1a86c6191e67b8f8097fe08d5896b1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 19 Jan 2024 13:36:06 +0100 Subject: [PATCH] Support MONO16 image encodings: point_cloud_xyz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 f2435f672..1d2a94769 100644 --- a/depth_image_proc/src/point_cloud_xyz.cpp +++ b/depth_image_proc/src/point_cloud_xyz.cpp @@ -98,7 +98,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_);