publish_to_topic
Publish a message to a ROS 2 topic. Specify the topic name, message content, and optional message type to send data to running ROS 2 nodes.
Instructions
Publish a message to a ROS 2 topic
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The message content in ROS message format | |
| topic_name | Yes | The topic name to publish to | |
| topic_type | No | The message type (e.g., std_msgs/String) |