1.1. Fast DDS Suite¶
This Docker image contains the complete Fast DDS suite. This includes:
eProsima Fast DDS libraries and examples: Fast DDS libraries bundled with several examples that showcase a variety of capabilities of eProsima’s Fast DDS implementation.
Shapes Demo: eProsima Shapes Demo is an application in which Publishers and Subscribers are shapes of different colors and sizes moving on a board. Each shape refers to its own topic: Square, Triangle or Circle. A single instance of the eProsima Shapes Demo can publish on or subscribe to several topics at a time.
You can read more about this application on the Shapes Demo documentation page.
Fast DDS Monitor: eProsima Fast DDS Monitor is a graphical desktop application aimed at monitoring DDS environments deployed using the eProsima Fast DDS library. Thus, the user can monitor in real time the status of publication/subscription communications between DDS entities. They can also choose from a wide variety of communication parameters to be measured (latency, throughput, packet loss, etc.), as well as record and compute in real time statistical measurements on these parameters (mean, variance, standard deviation, etc.).
You can read more about this application on the Fast DDS Monitor documentation page.
To load this image into your Docker repository, from a terminal run
$ docker load -i ubuntu-fastdds-suite:<FastDDS-Version>.tar
You can run this Docker container as follows
$ xhost local:root $ docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \ ubuntu-fastdds-suite:<FastDDS-Version>
From the resulting Bash Shell you can run each feature.
1.1.1. Fast DDS Examples¶
Included in this Docker container is a set of binary examples that showcase several functionalities of the Fast DDS libraries. These examples’ path can be accessed from a terminal by typing
From this folder you can access all examples, both for DDS and RTPS. We detail the steps to launch two such examples below.
126.96.36.199. Hello World Example¶
This is a minimal example that will perform a Publisher/Subscriber match and start sending samples.
$ goToExamples $ cd HelloWorldExample/bin $ tmux new-session "./HelloWorldExample publisher 0 1000" \; \ split-window "./HelloWorldExample subscriber" \; \ select-layout even-vertical
This example is not constrained to the current instance. It’s possible to run several instances of this container to check the communication between them by running the following from each container.
$ goToExamples $ cd HelloWorldExample/bin $ ./HelloWorldExample publisher
$ goToExamples $ cd HelloWorldExample/bin $ ./HelloWorldExample subscriber
188.8.131.52. Benchmark Example¶
This example creates either a Publisher or a Subscriber and on a successful match starts sending samples. After a few seconds the process that launched the Publisher will show a report with the number of samples transmitted.
On the subscriber side, run:
$ goToExamples $ cd Benchmark/bin $ ./Benchmark subscriber udp
On the publisher side, run:
$ goToExamples $ cd Benchmark/bin $ ./Benchmark publisher udp
1.1.2. Shapes Demo¶
To launch the Shapes Demo, from a terminal run
eProsima Shapes Demo usage information can be found on the Shapes Demo documentation.