Ask Your Question

Two machines one ROS master connection rejected

asked 2015-03-31 18:49:54 -0600

luketheduke gravatar image

updated 2015-04-01 10:32:32 -0600

Hi, I am trying to view Kinect data in RVIZ on a remote client in ROS. I have exported the ROS_MASTER_URI to set to the machine with the roscore running but it won't send back any data. Rviz gives this error:

[ WARN] [1427845377.406032758]: ROS_HOSTNAME / ROS_IP is set to only allow local connections, so a requested connection to 'lukas-Inspiron-N7010' is being rejected.

How can I fix this? Both machines are running Ubuntu 14.04 with Indigo. I followed this tutorial and I couldn't get them talking to each other although I can see the topics being published with rostopic echo. All help is appreciated. Thanks, luketheduke

edit retag flag offensive close merge delete



Have you set ROS_IP to the IP of the interface connected to the other computer?

BennyRe gravatar imageBennyRe ( 2015-04-01 00:51:45 -0600 )edit

So if bot is the computer I am running the roscore on, I should set the ROS_IP of the other computer to that of bot?

luketheduke gravatar imageluketheduke ( 2015-04-01 07:09:05 -0600 )edit

No. Set it to the IP of your computer.

BennyRe gravatar imageBennyRe ( 2015-04-01 08:29:26 -0600 )edit

OK! That clarifies it. I'll try it soon here when I get a minute. Another quick question: do I have to set these every time I boot or are they saved? Thanks, luketheduke

luketheduke gravatar imageluketheduke ( 2015-04-01 10:32:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-02 01:58:41 -0600

BennyRe gravatar image

Set the environment variable ROS_IPon your machine to the IP of your computer. If you have more than one network interfaces take the interface that connects to the network of the robot.

If you want to set this variable persistently append the export statement to your .bashrc.

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: 2015-03-31 18:49:54 -0600

Seen: 1,598 times

Last updated: Apr 02 '15