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

Network issue: messages not received from rqt

asked 2018-06-08 09:54:35 -0500

simchanu gravatar image

updated 2018-06-11 02:19:47 -0500

I made a simple sub node with roscpp using ros kinetic on ubuntu 16.04. I have 2 computers on my network :

192.168.1.234 : Raspberry PI

ROS net config :

export ROS_IP=192.168.1.234

Result of ifconfig :

can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

enxb827eb71bd25 Link encap:Ethernet  HWaddr b8:27:eb:71:bd:25  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:345 errors:0 dropped:0 overruns:0 frame:0
          TX packets:345 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:23349 (23.3 KB)  TX bytes:23349 (23.3 KB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:24:e8:70  
          inet addr:192.168.1.234  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ee4b:a2a1:2c41:573b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:197 errors:0 dropped:38 overruns:0 frame:0
          TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27509 (27.5 KB)  TX bytes:24228 (24.2 KB)

__Running node : __

roscore &
rosrun ros-ws Test

192.168.1.102 : Laptop

__ROS net config : __

export ROS_IP=192.168.1.102
export ROS_MASTER_URI="http://192.168.1.234:11311"

__Result of ifconfig : __

eno1      Link encap:Ethernet  HWaddr 3c:52:82:62:c9:0f  
          inet adr:192.168.1.102  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::303c:5b78:aff2:99b0/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:289050 erreurs:0 :9 overruns:0 frame:0
          TX packets:595541 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:80850321 (80.8 MB) Octets transmis:671744125 (671.7 MB)
          Interruption:20 Mémoire:f3100000-f3120000 

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          Packets reçus:441028 erreurs:0 :0 overruns:0 frame:0
          TX packets:441028 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:255498349 (255.4 MB) Octets transmis:255498349 (255.4 MB)

__Running node : __

rqt

The node run on the raspberry Pi and is ... (more)

edit retag flag offensive close merge delete

Comments

1

I already tried to change ROS_IP and ROS_MASTER_URI but nothing happened.

So you set these variables to some values, started your nodes and nothing happened? That seems highly unlikely.

Please be more specific (ie: tell us which values you used). Otherwise we cannot help you.

gvdhoorn gravatar image gvdhoorn  ( 2018-06-09 05:55:18 -0500 )edit

I added, more informations about the network configuration and clarified the description. It seems it's a network configuration issue but I can't find where I got wrong.

simchanu gravatar image simchanu  ( 2018-06-11 01:51:21 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-06-11 02:23:27 -0500

simchanu gravatar image

I am the asker of the question.

My issue is solved. I tested this morning, this test package now works fine. Since everything seemed fine codewise, I suspect a hardware issue on networking. The only thing that changed in the code was to change a printf to a ROS_INFO.

Anyway, for anyone having this issue, the question should hold all the information for solving a common AF_INET error.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-06-08 09:54:35 -0500

Seen: 213 times

Last updated: Jun 11 '18