mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-06 04:57:45 +08:00
[time_domain]Fix the improper use of enableGlobalTimestamp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user