fix(ros): fix imu count bug
This commit is contained in:
parent
988a158489
commit
48509547a2
|
@ -72,14 +72,20 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||||
<< (right_count_ / compute_time(time_end, right_time_beg_));
|
<< (right_count_ / compute_time(time_end, right_time_beg_));
|
||||||
}
|
}
|
||||||
if (imu_time_beg_ != -1) {
|
if (imu_time_beg_ != -1) {
|
||||||
if (publish_imu_by_sync_) {
|
if (model_ == Model::STANDARD) {
|
||||||
LOG(INFO) << "imu_sync_count: " << imu_sync_count_ << ", hz: "
|
LOG(INFO) << "Imu count: " << imu_count_ << ", hz: "
|
||||||
<< (imu_sync_count_ /
|
<< (imu_count_ /
|
||||||
compute_time(time_end, imu_time_beg_));
|
compute_time(time_end, imu_time_beg_));
|
||||||
} else {
|
} else {
|
||||||
LOG(INFO) << "Imu count: " << imu_count_ << ", hz: "
|
if (publish_imu_by_sync_) {
|
||||||
<< (imu_count_ /
|
LOG(INFO) << "imu_sync_count: " << imu_sync_count_ << ", hz: "
|
||||||
compute_time(time_end, imu_time_beg_));
|
<< (imu_sync_count_ /
|
||||||
|
compute_time(time_end, imu_time_beg_));
|
||||||
|
} else {
|
||||||
|
LOG(INFO) << "Imu count: " << imu_count_ << ", hz: "
|
||||||
|
<< (imu_count_ /
|
||||||
|
compute_time(time_end, imu_time_beg_));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user