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

Multiple remote users of ROS master: nickname lookup failure

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

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

ROS_IP=xxx
or
ROS_HOSTNAME=xxx

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
1

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

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
2

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

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

Question Tools

Stats

Asked: 2013-04-02 14:29:17 -0500

Seen: 677 times

Last updated: Jun 17 '13