Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rosbag2_interfaces/msg/ReadSplitEvent.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# The full path of the file that was finished and closed
string closed_file

# The full path of the new file that was opened to continue playback
string opened_file

# The fully qualified node name of the event sender
string node_name
4 changes: 4 additions & 0 deletions rosbag2_interfaces/msg/WriteSplitEvent.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# The full path of the file that was finished and closed
string closed_file

# The full path of the new file that was created to continue recording
string opened_file

# The fully qualified node name of the event sender
string node_name
1 change: 1 addition & 0 deletions rosbag2_transport/src/rosbag2_transport/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ void PlayerImpl::prepare_publishers()
auto message = rosbag2_interfaces::msg::ReadSplitEvent();
message.closed_file = info.closed_file;
message.opened_file = info.opened_file;
message.node_name = owner_->get_fully_qualified_name();
split_event_pub_->publish(message);
};
reader_->add_event_callbacks(callbacks);
Expand Down
1 change: 1 addition & 0 deletions rosbag2_transport/src/rosbag2_transport/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ void RecorderImpl::event_publisher_thread_main()
auto message = rosbag2_interfaces::msg::WriteSplitEvent();
message.closed_file = bag_split_info_.closed_file;
message.opened_file = bag_split_info_.opened_file;
message.node_name = node->get_fully_qualified_name();
try {
split_event_pub_->publish(message);
} catch (const std::exception & e) {
Expand Down