VS Code Dev Containers (Docker for Robotics Part 5)

This is the discussion topic for the video linked above. Please keep all replies relevant to the content, otherwise create a new topic.

Hi everyone! I followed this video and had a couple questions regarding this tutorial. I’ve messed with docker before but have always had this issue preventing me from fully using docker:

As a note: I have a pc running linux (no docker yet) and a windows machine running this docker container on the same network as I test this. I can ping one computers ip from the other with no issue. Not sure how to ping the container though from the linux pc.

Here is the issue:

I publish a message from one computer and can’t see it from the other computer. I’d ideally like to be able to do this to develop and see all the data coming from a robot remotely on my network. I also notice that publishing or running nodes in one terminal instance in the container does not communicate the ROS2 messages between other terminals as my pure ubuntu computer does without issue.

Would anyone know how to help me on this issue? I feel as though you will only be able to develop single launch file applications as different terminals can’t communicate. Also this brings up the issue of not being able to monitor the system using tools like RQT and Rviz2 even if you dealt with that limitation.

Overall this video is great and I really enjoy the ease of using the dev container to set up ROS2, but this is really limiting the ability to network between computers as ROS2 is designed to do.