Ask Your Question

ROS2 topic list only working once (or any other command)

asked 2020-06-10 03:46:48 -0500


I am currently using a Turtlebot3, completely set up following this guide:

Running: ubuntu-18.04.3-preinstalled-server-arm64+raspi3.img.xz With ROS2 Dashing installed.

On my REMOTE PC (desktop), I am running Ubuntu 18.04, also with ROS2 Dashing installed.

Also installed following the online guide:

The question:

When I ssh into the Turtlebot3 and run the following command:

ros2 launch turtlebot3_bringup

and then run on the REMOTE PC (desktop):

ros2 topic list

I get a correct result, showing the available topics that are being published.

However, when I run this command a second time, it only shows the default topics:



Any consecutive command after the first one will give this default result. This is also the case if the first time I try the command:

ros2 node list

or any other ROS2 command. However, when I kill the '_ros2_daemon', and then run the ros2 topic list (or node list) command again, it works again, but only for that one time again. Leaving me to kill the daemon constantly.

Can someone help me figure this out?

edit retag flag offensive close merge delete


i have same problme recently..

both on ROS2 version: dashing and foxy

what's wrong? gravatar image  ( 2020-07-31 01:58:32 -0500 )edit

same problem with ros2 foxy, did you find a solution?

emvee gravatar image emvee  ( 2020-12-29 11:37:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-02-21 23:41:57 -0500

saitoros gravatar image

I had same problem before. When this problem occur, you should restart ros2 daemon with following commands. $ ros2 daemon stop $ ros2 daemon start After that you can get a correct result on "ros2 topic list command".

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



Asked: 2020-06-10 03:46:48 -0500

Seen: 1,212 times

Last updated: Jun 10 '20