mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-10 22:49:51 +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.irDecimationFactor = values[2];
|
||||||
presetResolutionConfig.depthDecimationFactor = values[3];
|
presetResolutionConfig.depthDecimationFactor = values[3];
|
||||||
} else {
|
} else {
|
||||||
RCLCPP_WARN_STREAM(logger_, "preset_resolution_config parse failed ('"
|
RCLCPP_WARN_STREAM(logger_, "Invalid preset_resolution_config parameter. "
|
||||||
<< preset_resolution_config_
|
"Expected format: width,height,ir_decimation_factor,depth_decimation_factor");
|
||||||
<< "'), use default 640,400,1,1");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RCLCPP_INFO_STREAM(logger_, "Setting preset resolution config to "
|
RCLCPP_INFO_STREAM(logger_, "Setting preset resolution config to "
|
||||||
|
|||||||
Reference in New Issue
Block a user