From 49489a43b25b1a9c7a161d50f700e05b193f1db2 Mon Sep 17 00:00:00 2001 From: Manuel Schweiger Date: Sat, 4 Jan 2025 18:08:24 +0100 Subject: [PATCH] Revert "fix: rotate the stitched front image" This reverts commit 323f55c087d69d66118499ca82b5e08fc70a74ab. --- spot_driver/src/image_stitcher/image_stitcher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spot_driver/src/image_stitcher/image_stitcher.cpp b/spot_driver/src/image_stitcher/image_stitcher.cpp index 8292299d..75c7771f 100644 --- a/spot_driver/src/image_stitcher/image_stitcher.cpp +++ b/spot_driver/src/image_stitcher/image_stitcher.cpp @@ -362,8 +362,7 @@ Image::SharedPtr MiddleCamera::stitch(const std::shared_ptr& left, // Convert the image back to the BGR color space result_.convertTo(result_, CV_8U); - // Rotate the result image 90 degrees clockwise and return it in a format that can be published - cv::rotate(result_, result_, cv::ROTATE_90_CLOCKWISE); + // Return the image in a format that can be published return cv_bridge::CvImage(std_msgs::msg::Header{}, "bgr8", result_.getMat(cv::ACCESS_READ)).toImageMsg(); }