fix: restore jpeg format for compressed image passthrough (#210)

Fixes #210
This commit is contained in:
slz
2026-08-07 18:20:13 +08:00
parent fe4bfd9046
commit be941f5a95
+1 -1
View File
@@ -6812,7 +6812,7 @@ void OBCameraNode::publishCompressedColorImage(const std::shared_ptr<ob::Frame>
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<const uint8_t *>(frame->getData());
msg.data.assign(data, data + frame->getDataSize());
it->second->publish(std::move(msg));