From 0adc67f656b9ae5582ee10299fe173da44e70418 Mon Sep 17 00:00:00 2001 From: Joshua Whitley Date: Sun, 24 Oct 2021 09:34:37 -0500 Subject: [PATCH] Add missing timestamps to stored messages (#5) --- rosbag2_snapshot/src/snapshotter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rosbag2_snapshot/src/snapshotter.cpp b/rosbag2_snapshot/src/snapshotter.cpp index e9d6ae4..ae5760e 100644 --- a/rosbag2_snapshot/src/snapshotter.cpp +++ b/rosbag2_snapshot/src/snapshotter.cpp @@ -467,6 +467,7 @@ bool Snapshotter::writeTopic( } bag_message->topic_name = tm.name; + bag_message->time_stamp = msg_it->time.nanoseconds(); bag_message->serialized_data = std::make_shared( msg_it->msg->get_rcl_serialized_message() );