mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-05 20:47:46 +08:00
fix: improve error message for preset resolution config parsing
This commit is contained in:
@@ -226,9 +226,8 @@ void OBCameraNode::setupDevices() {
|
||||
presetResolutionConfig.irDecimationFactor = values[2];
|
||||
presetResolutionConfig.depthDecimationFactor = values[3];
|
||||
} else {
|
||||
RCLCPP_WARN_STREAM(logger_, "preset_resolution_config parse failed ('"
|
||||
<< preset_resolution_config_
|
||||
<< "'), use default 640,400,1,1");
|
||||
RCLCPP_WARN_STREAM(logger_, "Invalid preset_resolution_config parameter. "
|
||||
"Expected format: width,height,ir_decimation_factor,depth_decimation_factor");
|
||||
}
|
||||
|
||||
RCLCPP_INFO_STREAM(logger_, "Setting preset resolution config to "
|
||||
|
||||
Reference in New Issue
Block a user