File: README.txt

package info (click to toggle)
fastdds 2.9.1%2Bds-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,412 kB
  • sloc: cpp: 378,073; xml: 7,623; ansic: 4,596; python: 2,545; sh: 189; makefile: 36
file content (18 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
To launch this test open two different consoles:

In the first one launch: ./DDSDynamicHelloWorldExample publisher
(or DDSDynamicHelloWorldExample.exe publisher on windows).
In the second one: ./DDSDynamicHelloWorldExample subscriber
(or DDSDynamicHelloWorldExample.exe subscriber on windows).

In this example, the publisher loads a type from the XML file "example_type.xml".
The publisher shares the TypeObject so another participants can discover it.

The subscriber will discover the type and introspecting it will show the received messages from the publisher.

For simplicity the subscriber doesn't parses wstring, union, sequences or arrays.

The type defined in the XML file can be modified to see how the subscriber notices the changes automatically,
but take into account that the publisher should be modified to understand the changes.

For this example, the root type must be an structure.