mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
fix(imu): honor configured timestamp domain
This commit is contained in:
@@ -7371,7 +7371,7 @@ void OBCameraNode::onNewIMUFrameCallback(const std::shared_ptr<ob::Frame> &frame
|
|||||||
setDefaultIMUMessage(imu_msg);
|
setDefaultIMUMessage(imu_msg);
|
||||||
|
|
||||||
imu_msg.header.frame_id = optical_frame_id_[stream_index];
|
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;
|
imu_msg.header.stamp = timestamp;
|
||||||
|
|
||||||
auto imu_info = createIMUInfo(stream_index);
|
auto imu_info = createIMUInfo(stream_index);
|
||||||
|
|||||||
Reference in New Issue
Block a user