Package Summary

Tags No category tags.
Version 0.14.3
License Apache License 2.0
Build type AMENT_CMAKE

Repository Summary

Checkout URI
VCS Type git
VCS Version galactic
Last Updated 2021-05-10
CI status No Continuous Integration
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

C++ demo application for topic statistics feature.

Additional Links

No additional links.


  • Mabel Zhang
  • Michael Jeronimo
  • Amazon ROS Contributions


No additional authors.

Topic Statistics Demo

The demo application in this package demonstrates Topic Statistics feature in ROS 2. The application creates ROS 2 nodes to publish messages to topics, subscribes to the statistics topic and displays the statistics data received.

The demo application in this package display_topic_statistics creates the following ROS 2 nodes: 1. Talker and Listener nodes to generate message traffic 2. Statistics listener node to display generated statistics

The application requires an argument message_type - the type of message chatter to generate. Possible values are string and imu.

The application also accepts the following optional arguments to configure the Listener node's subscription: 1. --publish-topic: Topic to which topic statistics are published. Default topic is /statistics. 2. --publish-period: Publish period for publication of statistics. Default value is 5s.

Once the application starts, the talker node will publish messages on a topic that the listener node has subscribed to. The listener's subscription will generate topic statistics upon receiving messages. Statistics are published to the statistics topic at a pre-determined frequency. The statistics listener node listens to these statistics and prints them for the user to see.


Changelog for package topic_statistics_demo

0.14.3 (2021-05-10)

0.14.2 (2021-04-26)

0.14.1 (2021-04-19)

0.14.0 (2021-04-06)

  • Change -> (#496)
  • Contributors: Chris Lalancette

0.13.0 (2021-03-25)

0.12.1 (2021-03-18)

0.12.0 (2021-01-25)

  • Update logging macros (#476)
  • Contributors: Audrow Nash

0.11.0 (2020-12-10)

  • Update the package.xml files with the latest Open Robotics maintainers (#466)
  • Contributors: Michael Jeronimo

0.10.1 (2020-09-21)

  • Create new topic statistics demo package (#454)
  • Contributors: Prajakta Gokhale

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found


No message files found.


No service files found


No plugins found.

Recent questions tagged topic_statistics_demo at