diff --git a/orbbec_camera/src/ob_camera_node.cpp b/orbbec_camera/src/ob_camera_node.cpp index 3663e70a..b4874abe 100755 --- a/orbbec_camera/src/ob_camera_node.cpp +++ b/orbbec_camera/src/ob_camera_node.cpp @@ -3243,6 +3243,10 @@ void OBCameraNode::setupDepthPostProcessFilter() { auto threshold_filter = filter->as(); if (threshold_filter_min_ != -1 && threshold_filter_max_ != -1) { threshold_filter->setValueRange(threshold_filter_min_, threshold_filter_max_); + } else if (threshold_filter_min_ != -1) { + threshold_filter->setConfigValue("min", threshold_filter_min_); + } else if (threshold_filter_max_ != -1) { + threshold_filter->setConfigValue("max", threshold_filter_max_); } RCLCPP_INFO_STREAM(logger_, "Current threshold filter value range: " << static_cast(threshold_filter->getConfigValue("min"))