Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need example Docker invocation for distributed ROS systems #3976

Open
slowrunner opened this issue Oct 20, 2023 · 1 comment
Open

Need example Docker invocation for distributed ROS systems #3976

slowrunner opened this issue Oct 20, 2023 · 1 comment

Comments

@slowrunner
Copy link

There is great documentation on installing ROS 2 in a Docker container and running the demo_nodes talker/listener for a single container or two containers but lacks documentation of the needed parameter (--net=host) for ROS 2 in a container to communicate with distributed ROS 2 nodes.

The ROS 2 invocation to allow non-local topic communication is:

sudo docker run -it --net=host osrf/ros:humble-desktop

@fujitatomoya
Copy link
Collaborator

Can you elaborate a bit why --net=host is required to the tutorial? i think it does not have to be using host network interface, but using docker bridge can allow the ROS 2 applications in the containers to communicate each other? binding host network would be more problem if the user's physical network does not support multicast?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants