feat: rename enable_sports_mode to ae_strategy and update related callbacks

This commit is contained in:
slz
2026-04-03 19:24:01 +08:00
parent 85cb7ed0ee
commit a531db7853
5 changed files with 21 additions and 19 deletions
+3 -3
View File
@@ -1005,8 +1005,8 @@ void OBCameraNode::setupDevices() {
}
}
if (device_->isPropertySupported(OB_PROP_DEVICE_AE_STRATEGY_INT, OB_PERMISSION_WRITE)) {
device_->setIntProperty(OB_PROP_DEVICE_AE_STRATEGY_INT, (enable_sports_mode_ ? 0 : 1));
RCLCPP_INFO_STREAM(logger_, "Setting Sports Mode to " << (enable_sports_mode_ ? "ON" : "OFF"));
device_->setIntProperty(OB_PROP_DEVICE_AE_STRATEGY_INT, (ae_strategy_ == "motion" ? 1 : 0));
RCLCPP_INFO_STREAM(logger_, "Setting AE Strategy to " << ae_strategy_);
}
if ((ae_reference_stream_ == "depth" || ae_reference_stream_ == "color") &&
@@ -2308,7 +2308,7 @@ void OBCameraNode::getParameters() {
setAndGetNodeParameter<std::string>(intra_camera_sync_reference_, "intra_camera_sync_reference",
"Middle");
setAndGetNodeParameter<std::string>(ae_reference_stream_, "ae_reference_stream", "depth");
setAndGetNodeParameter<bool>(enable_sports_mode_, "enable_sports_mode", false);
setAndGetNodeParameter<std::string>(ae_strategy_, "ae_strategy", "motion");
RCLCPP_INFO_STREAM(logger_, "current time domain: " << time_domain_);
RCLCPP_INFO_STREAM(logger_, "hdr_index1_laser_control_ "