Skip to content

Commit e368b37

Browse files
MichaelOrlovmorlov-apexai
authored andcommitted
Fix for play_fails_gracefully_if_needed_coverter_plugin_does_not_exist
Add missing converter options when open readers Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
1 parent df7da1e commit e368b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rosbag2_transport/src/rosbag2_transport/readers_manager_impl.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "rcpputils/unique_lock.hpp"
2525
#include "rcpputils/thread_safety_annotations.hpp"
2626
#include "rcutils/time.h"
27+
#include "rmw/rmw.h"
2728

2829
#include "rosbag2_cpp/bag_events.hpp"
2930
#include "rosbag2_cpp/reader.hpp"
@@ -49,7 +50,7 @@ class ReadersManagerImpl
4950
earliest_timestamp_ = std::numeric_limits<rcutils_time_point_value_t>::max();
5051
latest_timestamp_ = std::numeric_limits<rcutils_time_point_value_t>::min();
5152
for (auto & [reader, options] : readers_with_options_) {
52-
reader->open(options);
53+
reader->open(options, {"", rmw_get_serialization_format()});
5354
if (reader->has_next()) {
5455
next_messages_cache_.emplace_back(reader->read_next());
5556
}

0 commit comments

Comments
 (0)