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

Help troubleshooting foreign relay

asked 2011-05-26 07:48:00 -0600

jrieffel gravatar image

updated 2011-09-30 05:43:49 -0600

Wim gravatar image

I believe I'm sending topic data over a foreign relay, but nothing comes out on the foreign machine

On machine1:

rostopic pub -r 10 /foo /std_msgs/String hello

rosrun foreign_relay foreign_relay adv http://machine2:11311 /machine1/foo /foo

rostopic echo /foo shows a parade of hellos, as you'd expect

on machine 2:

rostopic list shows /machine1/foo

rostopic info /machine1/foo shows * /foo_foreign_relay_0_adv_1306438093482799609 ( http://machine1:54200/ )

but rostopic echo /machine1/foo is empty

roswtf on machine2 reports:

ERROR Could not contact the following nodes: * /foo_foreign_relay_0_adv_1306439078454201491

ERROR The following nodes should be connected but aren't: * /foo_foreign_relay_0_adv_1306439078454201491->/rostopic_16013_1306439118679 (/machine1/foo)

suggestions on debugging?


edit retag flag offensive close merge delete


Are you sure you posted the right command? The call to foreign_relay should be: 'rosrun foreign_relay foreign_relay adv http://machine2:11311 /machine1/foo /foo', i.e. the master port separated by a :, not by a /. Probably just a typo but to be sure...
Lorenz gravatar image Lorenz  ( 2011-05-26 22:19:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-05-27 06:19:13 -0600

jrieffel gravatar image

Fixed. The problem was caused by the two computers being on separate subnets of our academic network, and any number of firewalls existing between the two subnets. Once both computers were given IPs on the same subnet and in the same network, foreign_relay works perfectly.

(yes, those are typos above, I will try to edit them)

edit flag offensive delete link more


I am having a similar problem, In my case it's an Ad-Hoc network using olsrd.My subnets both set to Although the new topic is being filled with data noting is being transferred over the network. The new topic is visible on the other machine but remains empty. Help appreciated Thanks
roboviz gravatar image roboviz  ( 2011-07-19 02:07:47 -0600 )edit
roboviz gravatar image roboviz  ( 2011-07-26 04:28:52 -0600 )edit

Question Tools


Asked: 2011-05-26 07:48:00 -0600

Seen: 709 times

Last updated: Sep 30 '11