Giter Club home page Giter Club logo

opendds-sample-01's Introduction

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.

opendds-sample-01's People

Contributors

jepessen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.