ros2_mock_publish_sequence
Publish a sequence of mock messages to a ROS2 topic to stimulate and test subscriber nodes. Specify the topic, message type, message list, and optional delay between messages.
Instructions
Publish a sequence of mock messages to stimulate and test subscriber nodes.
Args:
topic: Target topic name
topic_type: Message type identifier
sequence: List of JSON message objects to publish in order
interval_sec: Delay between each published message
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>",
"sequence": "<sequence>"
},
"name": "ros2_mock_publish_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| sequence | Yes | ||
| topic_type | Yes | ||
| interval_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |