Robotics StackExchange | Archived questions

ROS2 Fastdds Discovery no topics listed

Hello, I followed this tutorial to set up a discovery server for ros2. The talker and listener examples all worked fine.

However, when it came to

ros2 topic list
and
ros2 node list
which were not part of the tutorial exactly, I did not find any topics, other than /parameterevents and /rosout. I exported the Server as follows in every terminal session:
export ROSDISCOVERY_SERVER=127.0.0.1:11811

It seems like this is enough for talker and listener nodes to find each other, but not for ros2 command line tools. rqt does find the nodes, but not the topics, as visible in thescreenshot . Command line tools and rqt work fine with standard discovery.

Is there anything else I need to do for ros2 topic list to show the /chatter topic?

Below is a screenshot from rqt and my other config. rqt_screenshot

ROSVERSION=2
ROSLOCALHOSTONLY=0
ROSDISTRO=foxy
ROSDISCOVERYSERVER=127.0.0.1:11811
Ubuntu 20.04.1 LTS

Asked by highmax1234 on 2021-03-02 03:56:48 UTC

Comments

Answers

I solved the issue, the key is to update the XML too, as described in this link:

https://fast-dds.docs.eprosima.com/en/latest/fastdds/ros2/discovery_server/ros2_discovery_server.html#daemon-s-related-commands

Asked by highmax1234 on 2021-03-02 04:50:36 UTC

Comments