Skip to content

Commit

Permalink
pose_buffer is sometimes empty (autowarefoundation#33)
Browse files Browse the repository at this point in the history
Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp>
  • Loading branch information
KYabuuchi committed May 31, 2023
1 parent 1e44386 commit 474b681
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ void Lanelet2Overlay::on_image(const sensor_msgs::msg::Image & msg)
}
}
if (min_abs_dt > 0.1) synched_pose = std::nullopt;
auto latest_pose_stamp = rclcpp::Time(pose_buffer_.back().header.stamp);
RCLCPP_INFO_STREAM(
get_logger(), "dt: " << min_abs_dt << " image:" << stamp.nanoseconds()
<< " latest_pose:" << latest_pose_stamp.nanoseconds());
RCLCPP_INFO_STREAM(get_logger(), "dt: " << min_abs_dt << " image:" << stamp.nanoseconds());

draw_overlay(image, synched_pose, stamp);
}
Expand Down

0 comments on commit 474b681

Please sign in to comment.