Skip to content

Project for the OpenDDS tutorial that can be found at http://www.wteam.it/

Notifications You must be signed in to change notification settings

XZLeo/opendds-sample-01

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First OpenDDS example

Build

In order to build the project, a CMake installation is needed on the pc.

In a command prompt, create a new folder and enter it. for building the application run the following command:

> cmake -DDDS_ROOT_DIR=path/to/dds/folder /path/to/this/folder

If you want to build for a specific compiler/configuration, you need to add the -G flag:

> cmake -G"Visual Studio 14 2015 Win64" -DDDS_ROOT_DIR=path/to/dds/folder /path/to/this/folder

For a list of cmake supported compiler:

> cmake --help

After the cmake generation, build the project with:

> cmake --build .

Running

Start DCPSInfoRepo

Open a console, go to the DDS_ROOT/bin folder, and then

> ..\setenv.cmd
> .\DCPSInfoRepo -ORBEndpoint iiop://localhost:12345 -d domain_ids

This will start the server.

Start publisher

Open another console, go to the bin/ folder where you've built the project and then:

> .\publisher -DCPSConfigFile configuration.ini

This will start the publisher. After some second you should be able to see messages that are published in DDS.

Start subscriber

Open Another console, go to the bin/ folder where you've built the project and then:

> .\subscriber -DCPSConfigFile configuration.ini

After some second the subscriber will be connected and messages received from the publisher should be printed.

Linux users

For linux users commands are the same, except that setenv.cmd becomes setenv.sh, obviously.

About

Project for the OpenDDS tutorial that can be found at http://www.wteam.it/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.2%
  • CMake 6.8%