Skip to content

Commit

Permalink
Don't warn for unknown types if topics are not in the list
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
  • Loading branch information
MichaelOrlov committed Sep 12, 2023
1 parent 777612f commit fa84bbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rosbag2_transport/src/rosbag2_transport/topic_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ bool TopicFilter::take_topic(
return false;
}

const std::string & topic_type = topic_types[0];
if (!allow_unknown_types_ && !type_is_known(topic_name, topic_type)) {
return false;
}

if (!record_options_.include_hidden_topics && topic_is_hidden(topic_name)) {
RCUTILS_LOG_WARN_ONCE_NAMED(
ROSBAG2_TRANSPORT_PACKAGE_NAME,
Expand Down Expand Up @@ -163,6 +158,11 @@ bool TopicFilter::take_topic(
return false;
}

const std::string & topic_type = topic_types[0];
if (!allow_unknown_types_ && !type_is_known(topic_name, topic_type)) {
return false;
}

return true;
}

Expand Down

0 comments on commit fa84bbe

Please sign in to comment.