mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-07 05:27:45 +08:00
feat: fix HDRMerge filtering crash
This commit is contained in:
@@ -3084,7 +3084,7 @@ std::shared_ptr<ob::Frame> OBCameraNode::processDepthFrameFilter(
|
||||
if (filter->isEnabled() && frame != nullptr) {
|
||||
frame = filter->process(frame);
|
||||
if (frame == nullptr) {
|
||||
RCLCPP_ERROR_STREAM(logger_, "Depth filter process failed");
|
||||
RCLCPP_WARN_STREAM(logger_, "Depth filter process failed, frame is null");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -3240,8 +3240,10 @@ void OBCameraNode::onNewFrameSetCallback(std::shared_ptr<ob::FrameSet> frame_set
|
||||
setDisparitySearchOffset();
|
||||
setDepthAutoExposureROI();
|
||||
depth_frame = processDepthFrameFilter(depth_frame);
|
||||
frame_set->pushFrame(depth_frame);
|
||||
fps_counter_depth_->tick();
|
||||
if (depth_frame) {
|
||||
frame_set->pushFrame(depth_frame);
|
||||
fps_counter_depth_->tick();
|
||||
}
|
||||
}
|
||||
if (color_frame) {
|
||||
setColorAutoExposureROI();
|
||||
|
||||
Reference in New Issue
Block a user