expose get_service_names_and_types_by_node from rcl in rclcpp (#1131)
* expose get_service_names_and_types_by_node from rcl in rclcpp Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * fix spelling Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * zero initialize Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * check return value and cleanup Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * use throw_from_rcl_error Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * cleanup error handling Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
This commit is contained in:
parent
a5e1418093
commit
0ef9731feb
7 changed files with 103 additions and 2 deletions
|
@ -279,6 +279,15 @@ LifecycleNode::get_service_names_and_types() const
|
|||
return node_graph_->get_service_names_and_types();
|
||||
}
|
||||
|
||||
std::map<std::string, std::vector<std::string>>
|
||||
LifecycleNode::get_service_names_and_types_by_node(
|
||||
const std::string & node_name,
|
||||
const std::string & namespace_) const
|
||||
{
|
||||
return node_graph_->get_service_names_and_types_by_node(
|
||||
node_name, namespace_);
|
||||
}
|
||||
|
||||
size_t
|
||||
LifecycleNode::count_publishers(const std::string & topic_name) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue