Lyrical support.

This commit is contained in:
jimmy committed 2026-06-12 21:18:47 -04:00
1 parent 2ba0f2e9f6
commit 7eda1b11f7
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -172,7 +172,7 @@ void Image2rtsp::topic_callback(const sensor_msgs::msg::Image::SharedPtr msg){
void Image2rtsp::compressed_topic_callback(const sensor_msgs::msg::CompressedImage::SharedPtr msg){
if (appsrc == NULL) return;
// Decompress the image
cv::Mat img = cv::imdecode(cv::Mat(msg->data), cv::IMREAD_UNCHANGED);
cv::Mat img = cv::imdecode(cv::Mat(msg->data.to_vector()), cv::IMREAD_UNCHANGED);
if (img.empty()) {
RCLCPP_ERROR(this->get_logger(), "Failed to decompress image");
return;
@@ -207,4 +207,4 @@ void Image2rtsp::compressed_topic_callback(const sensor_msgs::msg::CompressedIma
// Push the buffer to GStreamer
gst_app_src_push_buffer(appsrc, buf);
}
}