ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had this problem the other day, but in my case it was due to a network configuration issue. The entry in /etc/hosts in the client machine mapped the master machine IP to the hostname robot-base, but its hostname was internally set to robot-lab. And this was the hostname shown in rostopic info calls, for example:

$ rostopic info /odom
Type: nav_msgs/Odometry

Publishers: 
* /ekf_localization (http://robot-lab:40969/)

So when I tried to subscribe to a remote topic, ROS would lookup the name robot-lab, which wasn't present in the hosts list.

Bottom line, don't try to be smart about it, always name your machines in /etc/host exactly what they call themselves.