mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-09 22:29:48 +08:00
fix: update logging messages for AE strategy and reference in setupDevices
This commit is contained in:
@@ -1988,9 +1988,9 @@ void OBCameraNode::setupDevices() {
|
||||
TRY_TO_SET_PROPERTY(setIntProperty, OB_PROP_DEVICE_AE_STRATEGY_INT,
|
||||
(ae_strategy_ == "motion" ? 1 : 0));
|
||||
TRY_EXECUTE_BLOCK(RCLCPP_INFO_STREAM(
|
||||
logger_, "Current Sports Mode: "
|
||||
<< (device_->getIntProperty(OB_PROP_DEVICE_AE_STRATEGY_INT) == 1 ? "ON"
|
||||
: "OFF")));
|
||||
logger_, "Current AE Strategy: "
|
||||
<< (device_->getIntProperty(OB_PROP_DEVICE_AE_STRATEGY_INT) == 1 ? "Motion"
|
||||
: "Default")));
|
||||
}
|
||||
|
||||
if (should_apply_launch_config("ae_reference_stream") &&
|
||||
@@ -2003,7 +2003,7 @@ void OBCameraNode::setupDevices() {
|
||||
auto current_ae_reference = device_->getIntProperty(OB_PROP_DEVICE_AE_REFERENCE_INT);
|
||||
RCLCPP_INFO_STREAM(
|
||||
logger_,
|
||||
"Current AE Reference: " << (current_ae_reference == 0 ? "depthbased" : "colorbased"));
|
||||
"Current AE Reference: " << (current_ae_reference == 0 ? "Depth" : "Color"));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user