There are 3 folders:
- PythonSimpleDDS - The server
- ASimpleSubscriber - A subscriber
- 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:
- PyPubSub.py
- PublisherService.py
- SubscribeService.py
- Filter.py
To use Publisher, you need the following .py files:
- Publisher.py
To use Subscriber, you need the following .py files:
- 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.