Fast-DDS-python icon indicating copy to clipboard operation
Fast-DDS-python copied to clipboard

Communicating on different devices using IP addresses and Fastdds-Python

Open shreyassule7738 opened this issue 1 year ago • 2 comments

Hello, I'm attempting to publish data on a specific topic from one device and subscribe to the same topic from another device using fastdds-python. Both devices are connected to the same network. While I've come across APIs for achieving this in C++, I haven't found any resources for doing the same in Python. I would appreciate any assistance on this topic.

shreyassule7738 avatar Nov 13 '24 16:11 shreyassule7738

Hi @shreyassule7738, thanks for using Fast DDS. There is an example in the Fast DDS python repository that suits your needs.

JesusPoderoso avatar Nov 14 '24 07:11 JesusPoderoso

Hi, Thanks for your reply. I think you are referring to the Domain argument. It is still bit unclear to me how to use the domain argument. Should it be the same when I run it, for eg: python3 HelloWorldExample.py -p publisher -d 0 python3 HelloWorldExample.py -p subscriber -d 0

Edit: We were able to get it working. Thanks. I had one additonal question on how should we proceed , if we plan to have devices on different networks.

shreyassule7738 avatar Nov 14 '24 08:11 shreyassule7738