ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

run ROS2 in two vs code remote containers

asked 2021-06-17 04:27:35 -0600

__Jeremy__ gravatar image

updated 2021-06-17 09:59:06 -0600

Hello everyone,

I tried to run to ROS2 two nodes in different containers as described here: (I used foxy instead of eloquent). Everything works just fine.

Then I started two instances of vs code and opened the workspace in a remote container (based on the same image as above). In the first remote container I start the talker, in the second remote container I start the listener. Unfortunately they don't find each other. Does anyone have an idea what might be the solution?

Thanks a lot Jeremy

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2021-06-18 01:42:21 -0600

__Jeremy__ gravatar image

I found the solution of the problem. The issue is that Fast-DDS comes with SharedMemory transport by default which doesn't work in this case. A solution can be found here:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-06-17 04:27:35 -0600

Seen: 226 times

Last updated: Jun 18 '21