Expose get_node_names API from node. (#508)

* Exposing get_node_names from node handle

Signed-off-by: Sriram Raghunathan <rsriram7@visteon.com>

* Exposing get_node_names from node handle for lifecycle_nodes

Signed-off-by: Sriram Raghunathan <rsriram7@visteon.com>

* Fix stray demangle type
This commit is contained in:
Sriram Raghunathan 2018-07-06 06:15:09 +05:30 committed by Shane Loretz
parent 4507d7a40b
commit 93e2945802
4 changed files with 20 additions and 0 deletions

View file

@ -300,6 +300,10 @@ public:
void
register_param_change_callback(CallbackT && callback);
RCLCPP_LIFECYCLE_PUBLIC
std::vector<std::string>
get_node_names() const;
RCLCPP_LIFECYCLE_PUBLIC
std::map<std::string, std::vector<std::string>>
get_topic_names_and_types(bool no_demangle = false) const;