Skip to content

Commit

Permalink
Fix ros2 bag play on split bags
Browse files Browse the repository at this point in the history
Signed-off-by: Zachary Michaels <zmichaels11@gmail.com>
  • Loading branch information
zmichaels11 authored and Anas Abou Allaban committed Jan 31, 2020
1 parent c349100 commit c342edb
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit c342edb

Please sign in to comment.