Skip to content

Commit

Permalink
fix: fix bug in previous code
Browse files Browse the repository at this point in the history
Signed-off-by: vividf <[email protected]>
  • Loading branch information
vividf committed Jun 27, 2024
1 parent e969356 commit 9fef37b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ void DistortionCorrector<Derived>::processTwistMessage(
rclcpp::Time(twist_queue_.front().header.stamp) <
rclcpp::Time(twist_msg->header.stamp) - rclcpp::Duration::from_seconds(1.0)) {
twist_queue_.pop_front();
} else {
break;
}
break;
}
}

Expand Down Expand Up @@ -109,8 +110,9 @@ void DistortionCorrector<Derived>::enqueueIMU(
rclcpp::Time(angular_velocity_queue_.front().header.stamp) <
rclcpp::Time(imu_msg->header.stamp) - rclcpp::Duration::from_seconds(1.0)) {
angular_velocity_queue_.pop_front();
} else {
break;
}
break;
}
}

Expand Down

0 comments on commit 9fef37b

Please sign in to comment.