Giter Site home page Giter Site logo

helloworldexamplepydds's Introduction

Python binding HelloWorldExample

This example implements a basic publication/subscription application. In order to launch the example it is required to indicate if the application is run as publisher or subcriber. Therefore, open two terminals and move to the folder where the Python script is located. On the first terminal run the publisher executing the following command:

python3 HelloWorldExample.py -p publisher

On the second terminal run the subscriber as follows:

python3 HelloWorldExample.py -p subscriber

After launching the publisher application, the publisher will wait until discovering a subscriber, before sending the samples. Once the subscriber is discovered the samples are sent. The QoS settings are by default: BEST_EFFORT and VOLATILE. Consequently, some samples may be lost if the publisher discovers the subscriber earlier. Also, when the publisher sends the last sample, it is destroyed and the samples are removed from the history. Therefore, sometimes the last samples are also not received depending on the network performance.

Parameters

This example allows the following parameters:

  • --parameter/-p: whether the application is run as publisher or subscriber. This parameter is required always.
  • --domain/-d: domain ID where the application is run. This parameter is optional. In case that it is not provided by the user, domain ID will be 0.
  • --machine/-m: distinguish between different publishing applications. This parameter only applies if the application is run as publisher.

helloworldexamplepydds's People

Contributors

lachilachi avatar

Watchers

 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.