Robotics StackExchange | Archived questions

Talker listener connection only works one way

http://wiki.ros.org/ROS/Tutorials/MultipleMachines

I was following the above tutorial which is pretty simple. I have two computers one with ROS melodic and another with ROS kinetic. From my understanding that should not affect the results. When I run roscore on melodic and make it the listener I do not get any information from the kinetic computer running the talker.py file. However, when I run roscore and the listener.py file on melodic I get loads of information supposedly form the talker.py file even when I have yet to run it. Help?? The connection is good between both computers.

Asked by RobAtFresh on 2019-07-30 15:45:07 UTC

Comments

Difficulties getting things to work bidirectionally are almost always caused by not setting ROS_IP or having a working DNS for all involved hosts.

To test: set ROS_IP on both computers to the IP of the respective computer. Then start roscore and try running your scripts again.

Note: you'll have to set ROS_IP in each terminal again, unless you add it to your .bashrc (or similar shell configuration script).

Asked by gvdhoorn on 2019-08-01 07:06:12 UTC

Please also note: there are many, many duplicates of this question here on this site.

I would recommend you try using Google: your keywords here site:answers.ros.org.

Asked by gvdhoorn on 2019-08-01 07:06:49 UTC

Answers