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

Successful use of wifi_comm?

asked 2011-07-13 21:42:32 -0500

roboviz gravatar image

updated 2011-07-19 02:12:23 -0500

Dear All,

I was just wondering if anyone successfully managed to use wifi_comm.

As far as I know I followed the instructions to the letter, successfully managed to install olsrd and also make the wifi_comm.

wifi_discovery_node and wifi_com_example are running fine.

I have 2 laptops connected Ad-Hoc, each running the software.
I can see their IP addresses on olsrd and also in the topic list. Ping works from one machine to another and also SSH, so presumably the network connection is fine.

In my case I would see


amongst others.

Hello World is being generated in each machine and can be seen when using
rostopic echo /wifi_hello_world

Also, machine with IP 192_168_20_100 can see data streaming in /wifi_hello_world_192_168_20_100, again using rostopic echo /wifi_hello_192_168_20_100
Somehow though data (Hello World) is not being transferred from one machine to the other and machine with IP 192_168_20_101 keeps waiting for data to be sent in.

Looks like the problem is somewhat related to foreign_relay (as same happens when I just use that)

Any help is greatly appreciated. Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-26 04:02:42 -0500

roboviz gravatar image


Basically, the IP Addresses have to be specifically defined either in every window used or better by modifying the .bashrc file

export ROS_MASTER_URI= and
export ROS_IP=

for one end and

export ROS_MASTER_URI= and
export ROS_IP=

for the other.

edit flag offensive delete link more


I have the exact same problem you had (with foreign relay, not wifi_comm) and I've tried the above solution, but without improvement. I still get the empty topic popping up on the foreign master without any data in it:
Per Lenander gravatar image Per Lenander  ( 2011-12-21 20:39:19 -0500 )edit

Question Tools


Asked: 2011-07-13 21:42:32 -0500

Seen: 954 times

Last updated: Jul 26 '11