Skip to content

wengjjpaul/PythonSimpleDDS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple publisher and subscriber module create with python.

The communications protocol is using UDP.

There are 3 folders:

  1. PythonSimpleDDS - The server
  2. ASimpleSubscriber - A subscriber
  3. ASimplePublisher - A publisher

To use:
Step 1: Run the server
Step 2: Run the subscriber and publisher (Order does not matter)


Example of Server is located in PythonSimpleDDS/PythonSimpleDDS.py
Example of Publisher is located in ASimplePublisher/ASimplePublisher.py
Example of Subscriber is located in ASimpleSubscriber/ASimpleSubscriber.py


To use Server, you need the following .py files:

  1. PyPubSub.py
  2. PublisherService.py
  3. SubscribeService.py
  4. Filter.py

To use Publisher, you need the following .py files:

  1. Publisher.py

To use Subscriber, you need the following .py files:

  1. Subscriber.py

Note:
Server have to be on before initialising subscriber or publisher.
The examples provided uses xml configuration files to read the server's ipv4 and port. You can hard code the ipv4 and port if you like.

See wiki for library APIs

About

A simple publisher and subscriber module for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages