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

ros2 topic list doesn't work in sudo mode

asked 2022-11-22 05:04:01 -0500

dei gravatar image

Hi all,

I'm using Ubuntu 22.04.1 LTS with Linux 5.10.0-18-rt-amd64, with ros2 humble debian release. I try to launch ros2_control from sudo terminal, but I can't see the ros2 topics outside ( from other terminals )

I tried also to launch "ros2 topic list" from sudo mode but it doesn't work. Currently I'm only able to view the ros2 topics list only using the user mode terminals.

If I use a terminal in root mode and an other one in user mode the issue persists.

Have you got any suggestions about it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-22 05:36:11 -0500

ljaniec gravatar image

updated 2022-11-22 05:36:35 -0500

I suggest you to describe your problem you are trying to solve by running the node in root mode. Using sudo can reset a path to shared libraries + there are other possible reasons for ROS2 to not work (e.g. DDS configurations).

Please also check this question and its comments:

edit flag offensive delete link more

Comments

1

Thank you for your answer, At the moment I found a temporany solution:

From root terminal: ros2 daemon stop ros2 daemon start Launch your sudo node here

After that I can see ros2 topic list output from every terminal

Sure, I know that is not the best practice but I need to launch that node with sudo priviliges because it must use eno interface

dei gravatar image dei  ( 2022-11-27 02:41:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-22 05:04:01 -0500

Seen: 483 times

Last updated: Nov 22 '22