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

Hokuyo UST-10LX connected via Ethernet and urg_node

asked 2022-07-21 10:40:52 -0600

ljaniec gravatar image

updated 2022-07-22 04:23:08 -0600



When I don't use urg_node with Hokuyo UST-10LX, I can see ROS2 topics from the robot on the other PC, after using urg_node with the Hokuyo laser scanner - ros2 topic list doesn't have them, ssh doesn't work either, I don't know why?

My configuration:

  • ROS 2 Galactic, Ubuntu 20.04 on each PC and an Intel NUC on the TurtleBot 2

  • Everything is on the local network with addresses in, i.e. TB2 IP is, the PC IP is etc. Gateway's IP:

  • TB2 has Hokuyo UST-20LX connected via Ethernet cable to Intel NUC, NUC has a WiFi internet access; default IP of the Hokuyo sensor is (important later).

To see other ROS topics on the local network on my PC, that are published by nodes running on TB2 or other computer, I need to add this route on the PC and similar on the TB2:

sudo route add -net gw netmask dev wlp7s0

I was able to use ros2 run demo_nodes_py talker on the PC and see it on the TB2 (ros2 run demo_nodes_py listener), same with analogous situation - talker on the TB2 and listener on the PC. It seems that everything works as expected.

Everything broke down when I added the Hokuyo connected via Ethernet cable - I couldn't see (ros2 topic list) any other topics or send/listen to any messages.

When I tried to change Hokuyo's IP from the default to the and restarted the whole robot and it's NUC, it seemingly broke the Internet connection - I couldn't ssh to the TB2 or see the robot's ROS topics in the network on the PC.

I found some other questions which seems to be related to this problem, but I can't find a solution:

How can I use the TB2 with Hokuyo LiDAR connected via Ethernet, with TB2 accessing the Internet via WiFi (so I could ssh to it) and with ROS2 DDS working as it should (e.g. topics from TB2 are visible from another PC on the same network)?

edit retag flag offensive close merge delete



I encountered same problem, so if someone knows how to fix it please share.

igrak34 gravatar image igrak34  ( 2022-07-22 03:59:33 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-07-22 07:50:43 -0600

ljaniec gravatar image

updated 2022-07-22 07:55:21 -0600

With help of my friend I get it to work, I will try to describe changes with steps:

  • I don't need to use any route add - I deleted every added route with sudo route del ...

  • Wired connection on the TB2 with Hokuyo LiDAR - settings: IP with netmask without gateway

  • For the working DDS I had to use this setup guide, with preparation of XML settings file called cyclonedds.xml (I changed wifi0 to wlp58s0, check it with ifconfig for your case):

    <?xml version="1.0" encoding="UTF-8"?>  
    <CycloneDDS xmlns=""
        <Domain id="any">

(XML isn't showing nice in this editor, so there is the picture too)

image description

and then put export CYCLONEDDS_URI=file://$PWD/cyclonedds.xml in the ~/.bashrc

I could then launch my nodes on the TB2 with plugged-in Hokuyo, with ROS2 topics visible on the other PC.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-07-21 10:40:52 -0600

Seen: 437 times

Last updated: Jul 22 '22