Delete the color frame is not decoded terminal output

This commit is contained in:
jj
2024-12-19 16:52:12 +08:00
parent 35405405aa
commit 997ff451ad
+2 -2
View File
@@ -2007,8 +2007,8 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame> &frame,
if (image.empty() || image.cols != width || image.rows != height) {
image.create(height, width, image_format_[stream_index]);
}
if (frame->type() == OB_FRAME_COLOR && !is_color_frame_decoded_) {
RCLCPP_ERROR(logger_, "color frame is not decoded");
if (frame->type() == OB_FRAME_COLOR && !is_color_frame_decoded_ ) {
// RCLCPP_ERROR(logger_, "color frame is not decoded");
return;
}
if (frame->type() == OB_FRAME_COLOR) {