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 de3160b..8d725d4 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 @@ -252,6 +252,8 @@ class ROSWrapperNodelet : public nodelet::Nodelet { << ", gyro_y: " << data.imu->gyro[1] << ", gyro_z: " << data.imu->gyro[2] << ", temperature: " << data.imu->temperature); + // Sleep 1ms, otherwise publish may drop some datas. + ros::Duration(0.001).sleep(); }); time_beg_ = ros::Time::now().toSec();