Publisher

class compas_eve.Publisher[source]

Bases: object

Publisher for a specific topic.

Parameters:
topicTopic or str

The topic to publish messages to. If a string is provided, a new topic instance will be created using the string as topic name.

transportTransport, optional

The transport to use for publishing. If not provided, the default transport will be used.

Methods

advertise

Advertise the publisher for the topic.

message_published

Handler called when a message has been published.

publish

Publish a message to the topic.

unadvertise

Unadvertise the publisher for the topic.