subscribe_for_duration
Subscribe to a specific ROS topic for a defined duration to collect messages, specifying message type and maximum message count for precise data gathering.
Instructions
Subscribe to a topic for a duration and collect messages. Example: subscribe_for_duration(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped', duration=5, max_messages=10)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "subscribe_for_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | ||
| max_messages | No | ||
| msg_type | No | ||
| topic | No |