Skip to content

Commit 0adc67f

Browse files
author
Joshua Whitley
authored
Add missing timestamps to stored messages (#5)
1 parent f4d7b1b commit 0adc67f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rosbag2_snapshot/src/snapshotter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ bool Snapshotter::writeTopic(
467467
}
468468

469469
bag_message->topic_name = tm.name;
470+
bag_message->time_stamp = msg_it->time.nanoseconds();
470471
bag_message->serialized_data = std::make_shared<rcutils_uint8_array_t>(
471472
msg_it->msg->get_rcl_serialized_message()
472473
);

0 commit comments

Comments
 (0)