From be941f5a95ce4ff7b590ae6d8823f463c9dbc704 Mon Sep 17 00:00:00 2001 From: slz Date: Fri, 7 Aug 2026 18:20:13 +0800 Subject: [PATCH] fix: restore jpeg format for compressed image passthrough (#210) Fixes #210 --- orbbec_camera/src/ob_camera_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbbec_camera/src/ob_camera_node.cpp b/orbbec_camera/src/ob_camera_node.cpp index d54bfec8..734d42b4 100644 --- a/orbbec_camera/src/ob_camera_node.cpp +++ b/orbbec_camera/src/ob_camera_node.cpp @@ -6812,7 +6812,7 @@ void OBCameraNode::publishCompressedColorImage(const std::shared_ptr sensor_msgs::msg::CompressedImage msg; msg.header.stamp = timestamp; msg.header.frame_id = frame_id; - msg.format = encoding_[stream_index] + "; jpeg compressed " + encoding_[stream_index]; + msg.format = "jpeg"; const auto *data = static_cast(frame->getData()); msg.data.assign(data, data + frame->getDataSize()); it->second->publish(std::move(msg));