ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
452 stars 288 forks source link

Failed to detect service while running in Docker container #273

Closed atb033 closed 4 years ago

atb033 commented 4 years ago

Bug report

Required Info:

Steps to reproduce issue

The necessary docker files and instructions for replicating this bug can be found here.

Expected behavior

The add_two_ints client docker container must be able to detect the add_two_ints server even when it is restarted

Actual behavior

The add_two_ints client was able to detect the server only during the first attempt

fujitatomoya commented 4 years ago

@atb033

service is constructed on topics, might be related to https://github.com/ros2/rmw_fastrtps/issues/349. The reason is when you initiate the container the same process id will be allocated, that leads to the same global id in dds.

after all, could you try to use Foxy? if the problem is related to https://github.com/ros2/rmw_fastrtps/issues/349, you should not meet the problem.

atb033 commented 4 years ago

@fujitatomoya

Thanks for the quick response. I tried it with Foxy, and didn't face this problem

dirk-thomas commented 4 years ago

I am going to close this ticket since the problem doesn't seem to be related to ros1_bridge.