Merge branch 'feat/separate-threshold-filter-limits' into v2/develop

This commit is contained in:
ob-yalian
2026-08-12 17:45:12 +08:00
+4
View File
@@ -3243,6 +3243,10 @@ void OBCameraNode::setupDepthPostProcessFilter() {
auto threshold_filter = filter->as<ob::ThresholdFilter>(); auto threshold_filter = filter->as<ob::ThresholdFilter>();
if (threshold_filter_min_ != -1 && threshold_filter_max_ != -1) { if (threshold_filter_min_ != -1 && threshold_filter_max_ != -1) {
threshold_filter->setValueRange(threshold_filter_min_, threshold_filter_max_); 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: " RCLCPP_INFO_STREAM(logger_, "Current threshold filter value range: "
<< static_cast<int>(threshold_filter->getConfigValue("min")) << static_cast<int>(threshold_filter->getConfigValue("min"))