Skip to content
Snippets Groups Projects
Commit bcc19f0c authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

changed publisher&subscriber key to type+topic to be unique

parent 7f67cee7
No related branches found
No related tags found
No related merge requests found
Pipeline #5767 passed
...@@ -482,13 +482,13 @@ void ParserYaml::parse() ...@@ -482,13 +482,13 @@ void ParserYaml::parse()
{ {
std::vector<std::string> tags = std::vector<std::string>(); std::vector<std::string> tags = std::vector<std::string>();
tags.push_back("ROS subscriber"); tags.push_back("ROS subscriber");
walkTreeR(it.n_, tags, "ROS subscriber/" + it.topic_); walkTreeR(it.n_, tags, "ROS subscriber/" + it.type_ + it.topic_);
} }
for (auto it : publisher_managers_) for (auto it : publisher_managers_)
{ {
std::vector<std::string> tags = std::vector<std::string>(); std::vector<std::string> tags = std::vector<std::string>();
tags.push_back("ROS publisher"); tags.push_back("ROS publisher");
walkTreeR(it.n_, tags, "ROS publisher/" + it.topic_); walkTreeR(it.n_, tags, "ROS publisher/" + it.type_ + it.topic_);
} }
std::list<std::string> plugins; std::list<std::string> plugins;
std::list<std::string> packages_subscriber, packages_publisher; std::list<std::string> packages_subscriber, packages_publisher;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment