subscribe_once
Subscribe to a ROS topic to capture and return the first message received, enabling immediate access to critical data for robotic control tasks.
Instructions
Subscribe to a ROS topic and return the first message received. Example: subscribe_once(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped')
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_once"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_type | No | ||
| topic | No |