Main Content

Configure the DDS Interface

The DDS interface is the connection point between your DDS application and the DDS network. Specifically, the connection point for a DDS application is the specification of the Topic and Quality of Service (QoS) for the DataReaders and DataWriters of the application.

To configure the DDS interface for the Shapes Demo:

  1. Open the Code Mappings editor. On the DDS tab, click Code Interface and select Individual Element Code Mappings.

  2. Configure the Topic and QoS for the inport that acts as a DataReader. In the Code Mappings editor, click the Inports tab:

    1. Select the configuration mode. For the Configuration Mode, select Use Topic and QoS.

    2. Select a Topic. For the Topic, select the Circle Topic specified in the drop-down options by its path (ShapesDomainLibrary/ShapesDomain/Circle).

    3. Select the QoS. To specify QoS, in the Property Inspector, expand the Code section and select from the Reader QoS drop-down options. There are several ways to specify QoS:

      • You can leave the QoS policy as the default. The default QoS profile is the default provided by your target DDS vendor, eProsima

      • You can select from built-in QoS profiles. The built-in QoS profiles automatically appear when you use the Quick Start default dictionary option.

      • You can select from QoS profiles imported from XML. Imported QoS profiles also appear as options in this drop-down.

      For this example, leave the Reader QoS as default.

  3. Configure the Topic and QoS for the outport that acts as a DataWriter. In the Code Mappings editor, click the Outports tab:

    1. Select the configuration mode. For the Configuration Mode, select Use Topic and QoS.

    2. Select a Topic. For the Topic, select the Square Topic specified in the drop-down options by its path (ShapesDomainLibrary/ShapesDomain/Square).

    3. Select the QoS. To specify QoS, navigate to the Property Inspector, click to expand the Code section and select from the Writer QoS drop-down options. There are several ways to specify QoS:

      • You can leave the QoS policy as the default. The default QoS profile is the default provided by your target DDS vendor, eProsima

      • You can select from built-in QoS profiles. The built-in QoS profiles automatically appear when you use the Quick Start default dictionary option.

      • You can select from QoS profiles imported from XML. Imported QoS profiles also appear as options in this drop-down.

      For this example, leave the Writer QoS as default.

  4. To generate the DataReaders and DataWriters, press Ctrl+D. You can now view the generated readers and writers in the editor.

Related Topics