Class TopicStatisticsListener
Defined in File topic_statistics_listener.hpp
Inheritance Relationships
Base Type
public rclcpp::Node
Class Documentation
-
class TopicStatisticsListener : public rclcpp::Node
Public Functions
-
explicit TopicStatisticsListener(const std::string &topic_name = topic_stats_demo::STATISTICS_TOPIC_NAME)
Standard Constructor.
- Parameters:
topic_name – [in] Topic to which statistics are published.
-
void initialize()
Initialize the listener node.
-
std::string MetricsMessageToString(const statistics_msgs::msg::MetricsMessage &results)
Return string representation of a MetricsMessage.
- Parameters:
results – [in] Statistics heard form the subscribed topic.
- Returns:
String representation of the input statistics.
-
void start_listening()
Instantiate a Subscription to the statistics topic.
-
explicit TopicStatisticsListener(const std::string &topic_name = topic_stats_demo::STATISTICS_TOPIC_NAME)