From 90aa6b31609a67dad91c16a1b350c4654d114420 Mon Sep 17 00:00:00 2001 From: Shintaro Sakoda Date: Thu, 7 Mar 2024 13:56:44 +0900 Subject: [PATCH] FIxed header Signed-off-by: Shintaro Sakoda --- .../ndt_evaluation/convert_rosbag_for_ndt_evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localization/ndt_evaluation/convert_rosbag_for_ndt_evaluation.py b/localization/ndt_evaluation/convert_rosbag_for_ndt_evaluation.py index d2750f00..e73d7c65 100644 --- a/localization/ndt_evaluation/convert_rosbag_for_ndt_evaluation.py +++ b/localization/ndt_evaluation/convert_rosbag_for_ndt_evaluation.py @@ -133,7 +133,7 @@ def check_rosbag(duration: float, topic_name_to_msg_list: dict, required_fps: di save_topics.append("/initialpose") stamp = first_reference.header.stamp msg = PoseWithCovarianceStamped() - msg.header.stamp = stamp + msg.header = first_reference.header msg.pose = first_reference.pose data = serialize_message(msg) timestamp = int(stamp.sec * 1e9 + stamp.nanosec)