From 05eaa954c7cd33ba75ef8d57acfe24fcc6924184 Mon Sep 17 00:00:00 2001 From: cnietogr Date: Tue, 8 Dec 2020 21:59:19 -0500 Subject: [PATCH] Fix imu_shift_ to imu_time_shift_ --- src/RosOnlineDataProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RosOnlineDataProvider.cpp b/src/RosOnlineDataProvider.cpp index 8a5d182..ab0c5f9 100644 --- a/src/RosOnlineDataProvider.cpp +++ b/src/RosOnlineDataProvider.cpp @@ -345,7 +345,7 @@ void RosOnlineDataProvider::callbackIMU( // Adapt imu timestamp to account for time shift in IMU-cam Timestamp timestamp = imu_msg->header.stamp.toNSec(); - const ros::Duration imu_shift(vio_params_.imu_params_.imu_shift_); + const ros::Duration imu_shift(vio_params_.imu_params_.imu_time_shift_); if (imu_shift != ros::Duration(0)) { LOG_EVERY_N(WARNING, 1000) << "imu_shift is not 0."; timestamp -= imu_shift.toNSec();