We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0dba66 commit b98e0faCopy full SHA for b98e0fa
1 file changed
rosbag2_transport/src/rosbag2_transport/qos.cpp
@@ -79,6 +79,9 @@ namespace rosbag2_transport
79
Rosbag2QoS Rosbag2QoS::adapt_request_to_offers(
80
const std::string & topic_name, const std::vector<rclcpp::TopicEndpointInfo> & endpoints)
81
{
82
+ if (endpoints.empty()) {
83
+ return Rosbag2QoS{};
84
+ }
85
size_t num_endpoints = endpoints.size();
86
size_t reliability_reliable_endpoints_count = 0;
87
size_t durability_transient_local_endpoints_count = 0;
0 commit comments