Skip to content

Commit

Permalink
Add missing timestamps to stored messages (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Whitley authored Oct 24, 2021
1 parent f4d7b1b commit 0adc67f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rosbag2_snapshot/src/snapshotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<rcutils_uint8_array_t>(
msg_it->msg->get_rcl_serialized_message()
);
Expand Down

0 comments on commit 0adc67f

Please sign in to comment.