Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ros2 bag play for split bags #268

Merged
Merged
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: 2 additions & 2 deletions rosbag2_cpp/src/rosbag2_cpp/readers/sequential_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void SequentialReader::open(
current_file_iterator_ = file_paths_.begin();

storage_ = storage_factory_->open_read_only(
storage_options.uri, storage_options.storage_id);
get_current_file(), storage_options.storage_id);
if (!storage_) {
throw std::runtime_error{"No storage could be initialized. Abort"};
}
Expand Down Expand Up @@ -105,7 +105,7 @@ bool SequentialReader::has_next()
if (!storage_->has_next() && has_next_file()) {
load_next_file();
storage_ = storage_factory_->open_read_only(
*current_file_iterator_, metadata_.storage_identifier);
get_current_file(), metadata_.storage_identifier);
}

return storage_->has_next();
Expand Down