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

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: https://docs.ros.org/en/foxy/Guides/R... (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
0

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: https://answers.ros.org/question/3705....

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 279 times

Last updated: Jun 18 '21