From 87c3c81a937635cc9b1dd3a36928aacdcb61b361 Mon Sep 17 00:00:00 2001 From: kalman Date: Sat, 29 Dec 2018 16:32:03 +0800 Subject: [PATCH] fix(ros):delete timestamp repeated/abnormal jundge --- .../src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc index 56284d6..8199f14 100644 --- a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc +++ b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc @@ -129,11 +129,8 @@ class ROSWrapperNodelet : public nodelet::Nodelet { if (is_overflow(_hard_time, hard_time_now[stream])) { acc[stream]++; - } else if (is_repeated(_hard_time, hard_time_now[stream])) { - NODELET_INFO_STREAM("WARNING:: Image time stamp is repeated."); - } else if (is_annormal(_hard_time, hard_time_now[stream])) { - NODELET_INFO_STREAM("WARNING:: Image time stamp is annormal."); } + hard_time_now[stream] = _hard_time; return hardTimeToSoftTime( @@ -147,11 +144,8 @@ class ROSWrapperNodelet : public nodelet::Nodelet { if (is_overflow(_hard_time, hard_time_now)) { acc++; - } else if (is_repeated(_hard_time, hard_time_now)) { - NODELET_INFO_STREAM("WARNING:: Imu time stamp is repeated."); - } else if (is_annormal(_hard_time, hard_time_now)) { - NODELET_INFO_STREAM("WARNING:: Imu time stamp is annormal."); } + hard_time_now = _hard_time; return hardTimeToSoftTime(