In this lesson, you create a package in which you create
a ddsDiagram diagram. On this diagram, you add the publisher element.
This element is your publisher entity. Then, you create a dataWriter
entity for your publisher entity.
- Create a publisher entity:
- Create a package named PublisherPkg
- For the PublisherPkg package, create a ddsDiagram diagram
named PublisherDiagram
- In the PublisherDiagram diagram, click the publisher icon
on
the Drawing toolbar, and then click the diagram
- Open the Features window for the publisher element and
on the General tab, name it MyPublisher,
and then click OK
- Create a dataWriter entity inside the MyPublisher entity:
- On the Drawing toolbar, click the dataWriter icon

- On the PublisherDiagram diagram, click the MyPublisher
entity
- Open the Features window for the dataWriter element
and enter the following information:
- On the General tab, name the element MyDataWriter
- On the Tags tab, indicate that the dataWriter
entity is to update the MyTopic topic: For the topic field,
select MyTopic
- Close the Features window for the MyDataWriter entity.
Your PublisherDiagram diagram resembles the following figure.
In the browser, PublisherPkg resembles
the following figure.