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

ROS2 nodes can't communicate between Docker containers #5396

Open
1 task done
mmcza opened this issue Nov 12, 2024 · 0 comments
Open
1 task done

ROS2 nodes can't communicate between Docker containers #5396

mmcza opened this issue Nov 12, 2024 · 0 comments
Labels
triage Issue pending classification

Comments

@mmcza
Copy link

mmcza commented Nov 12, 2024

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

ROS2 nodes can subscribe to ROS2 nodes running in another docker containers or on host

Current behavior

ROS2 nodes that run in a container are able to list topics created by ROS2 nodes run on host/another container, but are not able to subscribe to them. The same applies to host if a node is running inside a container.

Steps to reproduce

With a running Docker container from a ROS2 Humble image you can run any node or create a publisher like this:

ros2 topic pub /test std_msgs/msg/Bool

In another Docker container (not another terminal with the same image but a completely separate one) you should be able to see the topic after running

ros2 topic list

but

ros2 topic echo /test

will not return any messages

Fast DDS version/commit

ros-humble-fastrtps 2.6.8-1jammy.20240728.201342
ros-humble-fastrtps-cmake-module 2.2.2-2jammy.20240728.202329
ros-humble-rmw-fastrtps-cpp 6.2.7-1jammy.20240728.212513
ros-humble-rmw-fastrtps-shared-cpp 6.2.7-1jammy.20240728.211440
ros-humble-rosidl-typesupport-fastrtps-c 2.2.2-2jammy.20240728.210059
ros-humble-rosidl-typesupport-fastrtps-cpp 2.2.2-2jammy.20240728.205803

Platform/Architecture

Other. Please specify in Additional context section.

Transport layer

Default configuration, UDPv4 & SHM

Additional context

OS - Ubuntu 22.04
ROS2 Humble

I discovered the issue around a week ago, as 2 weeks ago everything was working properly. Additionally it was tested on another computers, where the same issue was experienced.

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

@mmcza mmcza added the triage Issue pending classification label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue pending classification
Projects
None yet
Development

No branches or pull requests

1 participant