Skip to content

SuZhifei/OpenDDS-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Pub/Sub example using OpenDDS

This example has been tested with OpenDDS v3.14 on Ubuntu 18.04 with OpenCV-3.4.7

First, install OpenDDS

To install OpenDDS-3.14, download tar from https://opendds.org/downloads.html and follow instructions in INSTALL.md. For quick compile and install:

  1. tar xvzf OpenDDS-3.14.tar.gz
  2. cd OpenDDS-3.14
  3. To configure, type: ./configure --prefix=<path/to/preferred/location> For example, ./configure --prefix=/opt/OpenDDS-3.14
  4. make
  5. 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.

Build and Run example

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.2%
  • CMake 6.1%
  • C 0.7%