ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

can't communicate with rosmaster on other machine

asked 2021-05-05 11:57:48 -0500

SpaceTime gravatar image

updated 2021-05-05 11:58:11 -0500

Hello everyone,

I have two machines in the same local wifi network. On the machine with the roscore I have set

- ROS_MASTER_URI: http://<own_ip>:11311
- ROS_IP: <own_ip>
- ROS_HOSTNAME: <own_ip> (I know I don't need this one, I just tested it. Also the machines hostname is just localhost.localdomain so I don't know if I can use thatvalue)

On the other machine I have set

- ROS_MASTER_URI: http://<ip_machine_with_master>:11311
- ROS_IP: <own_ip>
- ROS_HOSTNAME: <own_ip>

If I start a roscore and then try rostopic list on the other machine I don't get the error "ERROR: unable to connect to Master!" but the terminal just shows empty space after the command. If I run the command on the machine with the roscore I get displayed that /rosout and /rosout_agg are there. Also I played a rosbag from the other machine which should publish a couple of topics but they also don't arrive at the master.

Could it be a problem that the machines are running different versions of ros? The master uses melodic and the other machine noetic. Any ideas what could be going wrong here? Thanks in advance.

edit retag flag offensive close merge delete



First thing to check: firewall active on any of the involved machines.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-05 13:59:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-27 17:27:54 -0500

SpaceTime gravatar image

Thanks to gvdhoorn I checked the firewall. As it is a device borrowed from work it has a very strict firewall indeed which should be my problem. I switchd to running everything on one machine in the end as I did not have the rights to change something about the firewall.e

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-05-05 11:57:48 -0500

Seen: 96 times

Last updated: May 27 '21