PS- If I do not use husarnet and follow the above process by setting the same domain ID for both the PCs connected to the same network, I am able to clearly view the video on PC2.
Thank you for your reply. I did test what was mentioned in the above GitHub repo. With that I am able to send compressed images. However, I am not able to send the raw images even when both the computers are on the same WiFi network.
To test the issue, I uninstalled husarnet, and sent the same image by connecting to the same router and setting the ROS_DOMAIN_ID parameter. It works flawlessly.
Could you guide where I am going wrong in using husarnet?
To give you context, I want to transfer the video and depth stream coming from a realsense depth camera. I had tried this in ROS1 using husarnet, and it worked flawlessly.
To test the issue, I uninstalled husarnet, and sent the same image by connecting to the same router and setting the ROS_DOMAIN_ID parameter. It works flawlessly.
How can this work with husarnet installed? Do I have to make any changes to XML?