publish_once
Send a single message to a specified ROS topic using defined message type and content to control robotic movements or systems.
Instructions
Publish a single message to a ROS topic. Example: publish_once(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped', msg={'linear': {'x': 1.0}})
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": "publish_once"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg | No | ||
| msg_type | No | ||
| topic | No |