RosPublisher

Inherits: RefCounted

A ROS 2 Publisher for sending messages to a topic.

Description

RosPublisher allows Godot to send RosMsg data to other ROS 2 nodes. It is created through RosNode.create_publisher() and is tied to a specific topic and message type.

Methods

void

publish(msg: RosMsg)


Method Descriptions

void publish(msg: RosMsg) 🔗

Publishes the data contained in msg to the associated topic. The RosMsg type must match the type specified when the publisher was created.