Ask Your Question
0

ROS2 Fastdds Discovery no topics listed

asked 2021-03-02 03:15:01 -0500

highmax1234 gravatar image

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 /parameter_events and /rosout. I exported the Server as follows in every terminal session:

export ROS_DISCOVERY_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

ROS_VERSION=2
ROS_LOCALHOST_ONLY=0
ROS_DISTRO=foxy
ROS_DISCOVERY_SERVER=127.0.0.1:11811
Ubuntu 20.04.1 LTS
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-02 03:50:36 -0500

highmax1234 gravatar image

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

https://fast-dds.docs.eprosima.com/en...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-03-02 02:56:48 -0500

Seen: 183 times

Last updated: Mar 02