From 365040ae1745195ceb8a3766d68d359de327c21b Mon Sep 17 00:00:00 2001 From: Hugo Laloge Date: Mon, 2 Oct 2023 12:41:20 +0200 Subject: [PATCH] Fix latched topic not latched in splitted rosbags --- tools/rosbag/src/recorder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rosbag/src/recorder.cpp b/tools/rosbag/src/recorder.cpp index 64176d3df1..6b3baa691b 100644 --- a/tools/rosbag/src/recorder.cpp +++ b/tools/rosbag/src/recorder.cpp @@ -457,7 +457,7 @@ void Recorder::startWriting() { { // Overwrite the original receipt time, otherwise the new bag will // have a gap before the new messages start. - bag_.write(out.second.topic, now, *out.second.msg); + bag_.write(out.second.topic, now, *out.second.msg, out.second.connection_header); } }