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

Multiple remote users of ROS master: nickname lookup failure

asked 2013-04-02 14:29:17 -0600

cga gravatar image

I am setting up a ROS master that I want students to be able to access, without giving them administrator privileges on that machine. For this example a student laptop has the name vaio4 and has gotten an IP address through the campus wireless network DHCP. The students are able to remotely say

rostopic list

but when they try

rosnode ping gazebo

the master machine prints out an error message about not being able to reach machine vaio4. If I put vaio4 with its current IP address in the /etc/hosts file on the ROS master, everything works. It does not seem that saying


on the ROS Master machine makes sense since it is talking to many laptops simultaneously, so which IP address should it use? The laptop knows who it is and can reach the master. It seems that the master should always use numeric IP addresses and not attempt to use machine names or nicknames.

Thanks, Chris

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-06-17 17:34:21 -0600

tfoote gravatar image

You need to set the ROS_IP or ROS_HOSTNAME on the laptop. The problem is that the laptop is advertizing itself as vaio4 but the master cannot reach it by that name. See the ROS Network Setup Guide

edit flag offensive delete link more

answered 2013-04-05 11:39:08 -0600

paulbovbel gravatar image

Try running avahi-daemon instead of static IP bindings in the hostfile.

If you're running on Ubuntu, avahi will be running by default, allowing you to reach the machine with the vaio4.local address.

Disregard ROS_IP and set ROS_HOSTNAME to $(hostname).local on each machine.

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: 2013-04-02 14:29:17 -0600

Seen: 627 times

Last updated: Jun 17 '13