Skip to content

Commit

Permalink
Revert "fix: rotate the stitched front image"
Browse files Browse the repository at this point in the history
This reverts commit 323f55c.
  • Loading branch information
mschweig committed Jan 4, 2025
1 parent 323f55c commit 49489a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spot_driver/src/image_stitcher/image_stitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ Image::SharedPtr MiddleCamera::stitch(const std::shared_ptr<const Image>& 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();
}

Expand Down

0 comments on commit 49489a4

Please sign in to comment.