Skip to content

Commit

Permalink
added a catch so the node doesn't crash on a weird error. But the err…
Browse files Browse the repository at this point in the history
…or is not fixed
  • Loading branch information
chriskeraly-rios committed Aug 10, 2022
1 parent 38aa5d8 commit c217f25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ar_track_alvar/nodes/FindMarkerBundlesNoKinect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ void getCapCallback(const sensor_msgs::ImageConstPtr& image_msg)
ROS_ERROR("Could not convert from '%s' to 'rgb8'.",
image_msg->encoding.c_str());
}
catch (cv::Exception& e)
{
ROS_ERROR("Got cv exception, known one is Camera.cpp/line 876, unsure why that happens");
}
}
}

Expand Down

0 comments on commit c217f25

Please # to comment.