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

Problems establishing connection with Raspberry Pi with ROS2 over WiFi. Talker-Listener not working.

asked 2023-01-13 02:56:18 -0500

RickROS2 gravatar image

Hi, I am having problems connecting a Turtlebot3 over WiFi. I am running this on Ubuntu 20.04 with ROS2 Foxy. The Raspberry Pi is a 3B+ and is connected to the WiFi. (I can ping it without problems).

However, when I want to establish a talker-listener, the listener does not hear anything. Using an ethernet cable works fine and I can launch things as rviz (I see the device working) and so forth. However, once the ethernet cable is plugged out, the nodes are not seen anymore in rqt and the multicast is not received. Both ROS_DOMAIN_ID are 30. Both LOCALHOST_ONLY=0.

The lan settings in ifconfig are flags=4163 UP,BROADCAST,RUNNING,MULTICAST mtu 1500 so mulitcast is running but not receiving.

I tried to connect via a fastdds discovery server but that also did not work. I am completely stuck with this.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-08-07 08:19:34 -0500

Ran gravatar image

Same issue here. (ubuntu 22.04) ROS2 humble multicast only via ethernet. While using WIFI it doesn't work even though there is a ping between the machines.

edit flag offensive delete link more
0

answered 2023-04-13 01:16:29 -0500

cmb87 gravatar image

Hi there, I'm having the same issue with Humble. The multicast test (send/receive) and the demo talker/listener works when the cable is plugged in. As soon as I go via wifi there's not connection anymore. I can ping the PI, but the multicast test as well as demo talker/listener doesn't work anymore.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
   inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
   link/ether b8:27:eb:65:49:71 brd ff:ff:ff:ff:ff:ff
 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
   link/ether b8:27:eb:30:1c:24 brd ff:ff:ff:ff:ff:ff
   inet 192.168.178.92/24 metric 600 brd 192.168.178.255 scope global dynamic wlan0
   valid_lft 808235sec preferred_lft 808235sec
   inet6 2003:ec:7f28:1800:ba27:ebff:fe30:1c24/64 scope global dynamic mngtmpaddr noprefixroute
   valid_lft 6750sec preferred_lft 1106sec
   inet6 fe80::ba27:ebff:fe30:1c24/64 scope link
   valid_lft forever preferred_lft forever

I'm stuck here, too. Thanks for any advice.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-01-13 02:56:18 -0500

Seen: 268 times

Last updated: Jan 13 '23