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}})
Input Schema
Name | Required | Description | Default |
---|---|---|---|
msg | No | ||
msg_type | No | ||
topic | No |
Input Schema (JSON Schema)
{
"properties": {
"msg": {
"additionalProperties": true,
"default": {},
"title": "Msg",
"type": "object"
},
"msg_type": {
"default": "",
"title": "Msg Type",
"type": "string"
},
"topic": {
"default": "",
"title": "Topic",
"type": "string"
}
},
"title": "publish_onceArguments",
"type": "object"
}