mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
Merge branch 'feat/separate-threshold-filter-limits' into v2/develop
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user