Signed-off-by: William Woodall <william@osrfoundation.org> (cherry picked from commit 86c079de3111631d8ae1a42eb40e1dd2f96c016f) Co-authored-by: William Woodall <william@osrfoundation.org>
This commit is contained in:
parent
1fff1b7cba
commit
ac3fc4d50f
1 changed files with 8 additions and 5 deletions
|
@ -892,12 +892,15 @@ public:
|
|||
std::map<std::string, std::vector<std::string>>
|
||||
get_service_names_and_types() const;
|
||||
|
||||
/// Return the number of publishers that are advertised on a given topic.
|
||||
/// Return a map of existing service names to list of service types for a specific node.
|
||||
/**
|
||||
* \param[in] node_name the node_name on which to count the publishers.
|
||||
* \param[in] namespace_ the namespace of the node associated with the name
|
||||
* \return number of publishers that are advertised on a given topic.
|
||||
* \throws std::runtime_error if publishers could not be counted
|
||||
* This function only considers services - not clients.
|
||||
* The returned names are the actual names used and do not have remap rules applied.
|
||||
*
|
||||
* \param[in] node_name name of the node.
|
||||
* \param[in] namespace_ namespace of the node.
|
||||
* \return a map of existing service names to list of service types.
|
||||
* \throws std::runtime_error anything that rcl_error can throw.
|
||||
*/
|
||||
RCLCPP_PUBLIC
|
||||
std::map<std::string, std::vector<std::string>>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue