get_topic_frequency
Measures the publishing frequency of a ROS2 topic over a specified duration to diagnose communication rates.
Instructions
Measure the publishing frequency of a ROS2 topic.
Args: topic_name: Name of the topic to measure duration: How long to measure (default: 5 seconds)
Returns: Frequency information including average Hz.
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_name": "<topic_name>"
},
"name": "get_topic_frequency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Duration to measure frequency (seconds) | |
| topic_name | Yes | Name of the ROS2 topic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||