[time_domain]Fix the improper use of enableGlobalTimestamp

This commit is contained in:
jj
2024-11-19 18:35:30 +08:00
parent a768351b62
commit b9e135ff20
+3
View File
@@ -1193,6 +1193,9 @@ void OBCameraNode::getParameters() {
if (isOpenNIDevice(pid)) {
time_domain_ = "system";
}
if (time_domain_ == "global") {
device_->enableGlobalTimestamp(true);
}
RCLCPP_INFO_STREAM(logger_, "current time domain: " << time_domain_);
setAndGetNodeParameter<int>(frames_per_trigger_, "frames_per_trigger", 2);
long software_trigger_period = 33;