Can different ROS distros communicate
I am currently facing this exact problem with ROS noetic on my laptop and the melodic version on my Pi4. The problem is am running my hello world publisher and subscriber and it worked
when case 1: Laptop subscriber and pi publisher, but case 2 when my laptop was publishing and pi was subscribing it didn't work
Can someone help me out
Please, please search for existing Q&As before posting a new one.
The question "can different ROS versions communicate" has been posted and answered at least 20 times.
Suggestion: use Google to search. Append
site:answers.ros.org
to your query.If you did search, and did find previous Q&As, please mention them in your question. We can then avoid suggesting the same solutions over-and-over.
I won't close this now, as I don't believe the problem is caused by "different ROS distros".
The fact it works in one direction but not the other suggests your ROS network configuration is not setup correctly. Please refer to wiki/ROS/NetworkSetup and make sure all tests succeed.
Also make sure to have
ROS_IP
andROS_MASTER_URI
configured correctly.