fix(ros): fix imu count bug
This commit is contained in:
parent
988a158489
commit
48509547a2
|
@ -72,6 +72,11 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
|||
<< (right_count_ / compute_time(time_end, right_time_beg_));
|
||||
}
|
||||
if (imu_time_beg_ != -1) {
|
||||
if (model_ == Model::STANDARD) {
|
||||
LOG(INFO) << "Imu count: " << imu_count_ << ", hz: "
|
||||
<< (imu_count_ /
|
||||
compute_time(time_end, imu_time_beg_));
|
||||
} else {
|
||||
if (publish_imu_by_sync_) {
|
||||
LOG(INFO) << "imu_sync_count: " << imu_sync_count_ << ", hz: "
|
||||
<< (imu_sync_count_ /
|
||||
|
@ -82,6 +87,7 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
|||
compute_time(time_end, imu_time_beg_));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ROS messages could not be reliably printed here, using glog instead :(
|
||||
// ros::Duration(1).sleep(); // 1s
|
||||
|
|
Loading…
Reference in New Issue
Block a user