enable periodic host time sync logging in OBCameraNodeDriver

This commit is contained in:
ob-yalian
2026-03-30 11:35:27 +08:00
parent e043e5192f
commit 2bcd813654
@@ -981,6 +981,8 @@ void OBCameraNodeDriver::initializeDevice(const std::shared_ptr<ob::Device> &dev
if (enable_sync_host_time_ && !isOpenNIDevice(device_info_->pid()) && device_type_ == "camera") {
TRY_EXECUTE_BLOCK(device_->timerSyncWithHost());
if (g_time_domain != "global") {
RCLCPP_INFO_STREAM(logger_, "Enable periodic host time sync with device");
device_->enableGlobalTimestamp(false);
sync_host_time_timer_ = this->create_wall_timer(time_sync_period_, [this]() {
// Multiple safety checks before attempting time sync
if (!device_) {