From 8fafb63da597d37adbc288a46e406c049ce1f57f Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 6 Nov 2024 11:56:52 +0800 Subject: [PATCH] Fix incorrect usage of getRecommendedFilters --- orbbec_camera/src/ob_camera_node.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/orbbec_camera/src/ob_camera_node.cpp b/orbbec_camera/src/ob_camera_node.cpp index 0ca409d..845a96d 100644 --- a/orbbec_camera/src/ob_camera_node.cpp +++ b/orbbec_camera/src/ob_camera_node.cpp @@ -1677,9 +1677,6 @@ std::shared_ptr OBCameraNode::processDepthFrameFilter( if (frame == nullptr || frame->getType() != OB_FRAME_DEPTH) { return nullptr; } - auto sensor = device_->getSensor(OB_SENSOR_DEPTH); - CHECK_NOTNULL(sensor.get()); - auto filter_list = sensor->getRecommendedFilters(); for (size_t i = 0; i < filter_list_.size(); i++) { auto filter = filter_list_[i]; CHECK_NOTNULL(filter.get());