Class TopicFilter

Class Documentation

class TopicFilter

Public Functions

explicit TopicFilter(RecordOptions record_options, rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph = nullptr, bool allow_unknown_types = false)
virtual ~TopicFilter()
std::unordered_map<std::string, std::string> filter_topics(const std::map<std::string, std::vector<std::string>> &topic_names_and_types)

Filter all topic_names_and_types via take_topic method, return the resulting filtered set Filtering order is:

  • remove topics with multiple types, unknown type, and hidden topics

  • topics list

  • exclude regex

  • include regex OR “all”