ROS Network SetUp
I have a router IP= 192.168.1.1 , A PC IP=192.168.1.2, Magni IP=192.168.1.3, and a Jetson IP = 192.168.1.4
All hosts files on every machine are:
192.168.1.2 adrian
192.168.1.3 magni
192.168.1.4 jetson
I can ping and shh from all three machines. Magni is running the master and I have the following in all .bashrc's:
PC
export ROS_MASTER_URI=http://magni:11311/
export ROS_IP=192.168.1.2
MAGNI
export ROS_MASTER_URI=http://magni:11311/
export ROS_IP=192.168.1.3
Jetson
export ROS_MASTER_URI=http://magni:11311/
export ROS_IP=192.168.1.4
I run into a problem where when I start a roscore from the Magni it is the correct ROS_MASTER_URI and IP. However, whenever I try to run rostopic list from both the Jetson and PC I get an "ERROR: Unable to communicate with master!" . I have also tried exporting the ROS_HOSTNAME instead of the IP for the Magni but that did not work either. What's confusing is that I can ping and shh into all three. I have also switched out routers as I thought it was an issue but no luck. I was wondering if anyone has encountered this before or you see any red flags in my setup.