eProsima / Fast-DDS-python

Python bindings for Fast DDS. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
60 stars 14 forks source link

Communicating on different devices using IP addresses and Fastdds-Python #195

Open shreyassule7738 opened 1 week ago

shreyassule7738 commented 1 week ago

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.

JesusPoderoso commented 1 week ago

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

shreyassule7738 commented 1 week ago

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.