refactor to support multiple types and no_demangle (#339)

* refactor to support multiple types and no_demangle

* add get_service_names_and_types
This commit is contained in:
William Woodall 2017-06-16 18:03:16 -07:00 committed by GitHub
parent 99441d8494
commit 5a99bbdc6e
7 changed files with 112 additions and 29 deletions

View file

@ -281,8 +281,12 @@ public:
register_param_change_callback(CallbackT && callback);
RCLCPP_LIFECYCLE_PUBLIC
std::map<std::string, std::string>
get_topic_names_and_types() const;
std::map<std::string, std::vector<std::string>>
get_topic_names_and_types(bool no_demangle = false) const;
RCLCPP_LIFECYCLE_PUBLIC
std::map<std::string, std::vector<std::string>>
get_service_names_and_types() const;
RCLCPP_LIFECYCLE_PUBLIC
size_t

View file

@ -162,10 +162,16 @@ LifecycleNode::list_parameters(
return node_parameters_->list_parameters(prefixes, depth);
}
std::map<std::string, std::string>
LifecycleNode::get_topic_names_and_types() const
std::map<std::string, std::vector<std::string>>
LifecycleNode::get_topic_names_and_types(bool no_demangle) const
{
return node_graph_->get_topic_names_and_types();
return node_graph_->get_topic_names_and_types(no_demangle);
}
std::map<std::string, std::vector<std::string>>
LifecycleNode::get_service_names_and_types() const
{
return node_graph_->get_service_names_and_types();
}
size_t