multiple machines rostopic list works but rostopic echo shows nothing

asked 2022-05-29 05:46:35 -0500

bigstiv gravatar image

updated 2022-07-02 08:00:20 -0500

lucasw gravatar image

hey, im connected to another ros master with an ip of 192.168.1.230 and my ethernet ip is 192.168.1.237. when i am using rostopic list i can see all the runnig topics but when i am trying to echo one of the topics it shows nothing. here is my configurations so far:

on ~/.bashrc:

export ROS_MASTER_URI=http://taio:11311
export ROS_IP=192.168.1.237

on /etc/hosts (on both computers):

192.168.252.22  localhost      
# this is the wlan ip adress of the computer im working on. i also tried to use this IP address in the bashrc file as ROS_IP
192.168.1.230   taio
192.168.1.237   wolf

i also deactivated my pc firewall and reinstalled ros. i am using ubuntu 20.04 and ros noetic. so does the computer with the master on it.

any ideas what is wrong? thank you in advance!

edit retag flag offensive close merge delete

Comments

It is a very, very, very bad idea to set localhost to any IP address except 127.0.0.1. What you have done is going to break a lot of apps.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-05-29 11:00:54 -0500 )edit