Publisher

The Publisher acts on behalf of one or several DataWriter objects. It serves as a container that allows grouping different DataWriter objects to manage the unprocessed callbacks through an optional Publisher Listener.

DataWriter objects that belong to the same Publisher do not have any other relation among each and act independently. Specifically, a Publisher can host DataWriter objects for different Topic and data types.

Safe DDS Usage

Safe-DDS Publisher ISpinnable interface implemented methods are currently unimplemented.

PublisherQos

PublisherQos controls the behavior of the Publisher. Internally it contains the following Policy objects:

  • entity_factory_qos as EntityFactoryQosPolicy

    Defines if the Publisher will automatically enable created subentities or not.

Example

// Construct PublisherQos with default values
PublisherQos publisher_qos{};

// By default autoenable_created_entities is true, set to false
publisher_qos.entity_factory_qos().autoenable_created_entities = false;