Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shreyassule7738 opened this issue Nov 13, 2024 · 2 comments

Comments

@shreyassule7738
Copy link

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
Copy link
Contributor

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

@shreyassule7738
Copy link
Author

shreyassule7738 commented Nov 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants