fix documentation bug (#1719) (#1721)

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:
mergify[bot] 2021-07-19 12:07:00 -07:00 committed by GitHub
parent 1fff1b7cba
commit ac3fc4d50f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -892,12 +892,15 @@ public:
std::map<std::string, std::vector<std::string>> std::map<std::string, std::vector<std::string>>
get_service_names_and_types() const; 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. * This function only considers services - not clients.
* \param[in] namespace_ the namespace of the node associated with the name * The returned names are the actual names used and do not have remap rules applied.
* \return number of publishers that are advertised on a given topic. *
* \throws std::runtime_error if publishers could not be counted * \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 RCLCPP_PUBLIC
std::map<std::string, std::vector<std::string>> std::map<std::string, std::vector<std::string>>