Skip to content

Commit a382c66

Browse files
committed
共有画像を直接編集していたコードの修正。画像をコピーするように変更
1 parent cc22658 commit a382c66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sciurus17_examples/src/aruco_detection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ImageSubscriber : public rclcpp::Node
6464
const sensor_msgs::msg::Image::ConstSharedPtr & img_msg,
6565
const sensor_msgs::msg::CameraInfo::ConstSharedPtr & info_msg)
6666
{
67-
auto cv_img = cv_bridge::toCvShare(img_msg, img_msg->encoding);
67+
auto cv_img = cv_bridge::toCvCopy(img_msg, img_msg->encoding);
6868
cv::cvtColor(cv_img->image, cv_img->image, cv::COLOR_RGB2BGR);
6969

7070
// マーカID

0 commit comments

Comments
 (0)