ros2_measure_topic_hz
Measure the publishing frequency and period statistics of a ROS2 topic to verify its update rate and diagnose throttling or irregular message delivery.
Instructions
Measure publishing frequency (Hz) and period statistics of a topic.
Args:
topic: ROS2 topic to measure
topic_type: Type of message
sample_count: Target number of samples to record
timeout_sec: Maximum collection time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| topic_type | Yes | ||
| timeout_sec | No | ||
| sample_count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |