mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-11 15:09:48 +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_;
|
sync_config.framesPerTrigger = frames_per_trigger_;
|
||||||
TRY_EXECUTE_BLOCK(device_->setMultiDeviceSyncConfig(sync_config));
|
TRY_EXECUTE_BLOCK(device_->setMultiDeviceSyncConfig(sync_config));
|
||||||
sync_config = device_->getMultiDeviceSyncConfig();
|
sync_config = device_->getMultiDeviceSyncConfig();
|
||||||
RCLCPP_INFO_STREAM(logger_, "Current device preset: " << device_->getCurrentPresetName());
|
|
||||||
RCLCPP_INFO_STREAM(logger_,
|
RCLCPP_INFO_STREAM(logger_,
|
||||||
"Current sync mode: " << magic_enum::enum_name(sync_config.syncMode));
|
"Current sync mode: " << magic_enum::enum_name(sync_config.syncMode));
|
||||||
if (sync_mode_ == OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING) {
|
if (sync_mode_ == OB_MULTI_DEVICE_SYNC_MODE_SOFTWARE_TRIGGERING) {
|
||||||
|
|||||||
Reference in New Issue
Block a user