mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
fix: avoid preset query on unsupported devices
This commit is contained in:
@@ -1009,7 +1009,6 @@ void OBCameraNode::setupDevices() {
|
||||
sync_config.framesPerTrigger = frames_per_trigger_;
|
||||
TRY_EXECUTE_BLOCK(device_->setMultiDeviceSyncConfig(sync_config));
|
||||
sync_config = device_->getMultiDeviceSyncConfig();
|
||||
RCLCPP_INFO_STREAM(logger_, "Current device preset: " << device_->getCurrentPresetName());
|
||||
RCLCPP_INFO_STREAM(logger_,
|
||||
"Current sync mode: " << magic_enum::enum_name(sync_config.syncMode));
|
||||
if (sync_mode_ == OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING) {
|
||||
|
||||
Reference in New Issue
Block a user