This example has been tested with OpenDDS v3.14 on Ubuntu 18.04 with OpenCV-3.4.7
To install OpenDDS-3.14, download tar from https://opendds.org/downloads.html and follow instructions in INSTALL.md. For quick compile and install:
- tar xvzf OpenDDS-3.14.tar.gz
- cd OpenDDS-3.14
- To configure, type: ./configure --prefix=<path/to/preferred/location> For example, ./configure --prefix=/opt/OpenDDS-3.14
- make
- sudo make install
To compile and run OpenDDS application, always export OpenDDS environment: source /path/to/opendds/setenv.sh See INSTALL.md for more info.
Export OpenDDS-3.14 environment - see above (source /path/to/opendds/setenv.sh)
To compile:
$ mkdir build && cd build
$ cmake ..
$ make
Start discover server (Terminal 1):
$ DCPSInfoRepo -ORBListenEndpoints iiop://127.0.0.1:12345
Publish (Terminal 2):
$ ./build/my_example_pub -DCPSConfigFile my_example_conf.ini
Subscriber (Terminal 3):
$ ./build/my_example_sub -DCPSConfigFile my_example_conf.ini