From b7f1eed40e544e9195cbec00f6f56bce7da413e8 Mon Sep 17 00:00:00 2001 From: SakodaShintaro Date: Fri, 31 May 2024 08:45:56 +0900 Subject: [PATCH] fix(localization_error_monitor): fixed header stamp (#7174) Fixed header stamp at localization_error_monitor Signed-off-by: Shintaro Sakoda --- .../src/localization_error_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localization/localization_error_monitor/src/localization_error_monitor.cpp b/localization/localization_error_monitor/src/localization_error_monitor.cpp index 67cdb78c942fb..7a1cd0b213c39 100644 --- a/localization/localization_error_monitor/src/localization_error_monitor.cpp +++ b/localization/localization_error_monitor/src/localization_error_monitor.cpp @@ -129,7 +129,7 @@ void LocalizationErrorMonitor::onOdom(nav_msgs::msg::Odometry::ConstSharedPtr in diag_merged_status.hardware_id = this->get_name(); diagnostic_msgs::msg::DiagnosticArray diag_msg; - diag_msg.header.stamp = this->now(); + diag_msg.header.stamp = input_msg->header.stamp; diag_msg.status.push_back(diag_merged_status); diag_pub_->publish(diag_msg); }