diff --git a/include/core/yaml/parser_yaml.h b/include/core/yaml/parser_yaml.h index 1e11cb86aeb89932815e38708f3cbf36530e2006..baf9fc768dfea93dd6464e9f33251d8c772120c0 100644 --- a/include/core/yaml/parser_yaml.h +++ b/include/core/yaml/parser_yaml.h @@ -24,14 +24,14 @@ class ParserYAML { }; struct SubscriberManager{ std::string package_; - std::string subscriber_; + std::string type_; std::string topic_; std::string sensor_name_; YAML::Node n_; }; struct PublisherManager{ std::string package_; - std::string subscriber_; + std::string type_; std::string topic_; std::string period_; YAML::Node n_; diff --git a/src/yaml/parser_yaml.cpp b/src/yaml/parser_yaml.cpp index d37d8c022de839efbdeddbdacae80007168a282e..f02eee636b3142c113b66483049203f7538b6d96 100644 --- a/src/yaml/parser_yaml.cpp +++ b/src/yaml/parser_yaml.cpp @@ -475,6 +475,12 @@ void ParserYAML::parse() tags.push_back("processor"); walkTreeR(it.n_, tags, "processor/" + it.name_); } + for (auto it : subscriber_managers_) + { + std::vector<std::string> tags = std::vector<std::string>(); + tags.push_back("ROS subscriber"); + walkTreeR(it.n_, tags, "ROS subscriber/" + it.topic_); + } std::list<std::string> plugins; std::list<std::string> packages_subscriber, packages_publisher; for (const auto& it : paramsSens_)