Ask Your Question
1

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

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

Hi,

I am currently using a Turtlebot3, completely set up following this guide: https://emanual.robotis.com/docs/en/p...

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: https://index.ros.org/doc/ros2/Instal...

The question:

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

ros2 launch turtlebot3_bringup robot.launch.py

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:

/parameter_events

/rosout

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

Comments

i have same problme recently..

both on ROS2 version: dashing and foxy

what's wrong?

chopin1998@gmail.com gravatar image chopin1998@gmail.com  ( 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
3

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

3 followers

Stats

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

Seen: 1,212 times

Last updated: Jun 10 '20