Skip to content

Commit

Permalink
Copy latched messages once per split with connection header (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
nleblanc-lr authored Oct 1, 2024
1 parent 1fe3caa commit 03f6194
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tools/rosbag/src/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,18 +454,6 @@ void Recorder::startWriting() {
}
ROS_INFO("Recording to '%s'.", target_filename_.c_str());

if (options_.repeat_latched)
{
// Start each new bag file with copies of all latched messages.
ros::Time now = ros::Time::now();
for (auto const& out : latched_msgs_)
{
// 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);
}
}

if (options_.repeat_latched)
{
// Start each new bag file with copies of all latched messages.
Expand Down

0 comments on commit 03f6194

Please sign in to comment.