Robotics StackExchange | Archived questions

(ROS2) Can't subscribe the topics from another machine

Hi there,

I was trying to read the data from the Hokuyo UST-20LX laser connecting with the Raspberry Pi 3 through the Ethernet port, and hoping the data can be transmitted and visualized on another PC.

The RPi 3:

OS: Ubuntu server 20.04
ROS Version: ROS2 Galactic
The IP address on the local LAN: 192.168.1.3

The PC:

OS: Ubuntu 20.04 desktop
ROS Version: ROS2 Galactic
The IP address on the local LAN: 192.168.1.4

First, I checked the RPi 3 and the PC are using the same router and made sure that both machines could ping each other. After that, I used the talker and listener to examine the nodes on each machine that could see each other.

Next, I downloaded the package urg_node2, built the environment, and connected the UST-20LX (default IP: 192.168.0.10) with the RPi 3. By inspecting the command ros2 topic list, I could see the relevant topics publishing successfully on the RPi 3. However, there were only two topics subscribed by the PC, i.e. /parameter_events and /rosout.

I've tried a lot of approaches, including switching to a different network and changing the IP address to prevent the overlapping IP address conflict between Ethernet and Wifi. But it all turned out to be failed eventually.

Much appreciated any suggestion or help!

Asked by TWboy on 2022-10-03 22:13:08 UTC

Comments

Answers