compare_ros_topics
Compares two ROS 2 topics by sampling both for a set duration, then matching messages one-to-one via exact or tolerance timestamp alignment in compatible clock domains.
Instructions
Simultaneously sample two topics, require explicit compatible clock domains, then one-to-one exact/tolerance match. Sampling phase is not physical clock offset.
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_a": "<topic_a>",
"topic_b": "<topic_b>"
},
"name": "compare_ros_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic_a | Yes | ||
| topic_b | Yes | ||
| strategy | No | exact | |
| duration_s | No | ||
| tolerance_ns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| source | Yes | ||
| status | No | valid | |
| warnings | No | ||
| measurements | No | ||
| schema_version | No | 1.0 | |
| observed_at_utc | No | ||
| measurement_kind | No | observed |