fix(imu): honor configured timestamp domain

This commit is contained in:
slz
2026-09-03 15:07:02 +08:00
parent 27e0c7dc97
commit 981dd6ba79
+1 -1
View File
@@ -7371,7 +7371,7 @@ void OBCameraNode::onNewIMUFrameCallback(const std::shared_ptr<ob::Frame> &frame
setDefaultIMUMessage(imu_msg);
imu_msg.header.frame_id = optical_frame_id_[stream_index];
auto timestamp = fromUsToROSTime(frame->getTimeStampUs());
auto timestamp = fromUsToROSTime(getFrameTimestampUs(frame));
imu_msg.header.stamp = timestamp;
auto imu_info = createIMUInfo(stream_index);