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 |