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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>",
"topic_type": "<topic_type>"
},
"name": "ros2_measure_topic_hz"
}
}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 |