Nodes have name // when started in docker container with --net=host

asked 2021-04-26 02:50:00 -0500

Rufus gravatar image

updated 2021-04-26 02:50:13 -0500

Steps to reproduce:

  1. Start docker container for ros:foxy

    sudo docker run -it --rm --net=host --name=foxy_test ros:foxy

  2. Install and run demo node

    apt update && apt install -y ros-foxy-demo-nodes-cpp && source /opt/ros/foxy/setup.bash && ros2 run demo_nodes_cpp talker

  3. Put talker in background (Ctrl-Z + bg) and run ros2 node list

Expected output:

/talker

Actual output:

//

Note ros2 topic echo /rosout works as expected

edit retag flag offensive close merge delete

Comments

Interesting. #q376812 reports something similar, but then with Micro-ROS involved.

gvdhoorn gravatar image gvdhoorn  ( 2021-04-26 02:55:25 -0500 )edit