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

Add instructions to get ROS 2 communicating with WSL2 #4

Open
danzimmerman opened this issue Oct 3, 2024 · 2 comments
Open

Add instructions to get ROS 2 communicating with WSL2 #4

danzimmerman opened this issue Oct 3, 2024 · 2 comments
Assignees

Comments

@danzimmerman
Copy link
Owner

danzimmerman commented Oct 3, 2024

So far I tried to create a %USERPROFILE\.wslconfig file with the following:

[wsl2]
networkingMode=mirrored

This does not seem to be enough. I'm on Win 11 Pro 23H2, which should support mirrored mode networking, and a look at ip addr does seem to suggest it is "mirroring," in the sense that the WSL2 IP is the same as the machine's native IP.

However, running the talker C++ node on WSL2 and listener on the Raspberry Pi doesn't work.

@danzimmerman danzimmerman self-assigned this Oct 3, 2024
@danzimmerman danzimmerman changed the title Add instructions for communicating with WSL2 Add instructions to get ROS 2 communicating with WSL2 Oct 12, 2024
@danzimmerman
Copy link
Owner Author

https://superuser.com/questions/1762729/multicast-from-wsl2-to-win-does-not-work
https://answers.ros.org/question/300370/ros2-talker-cannot-communicate-with-listener/
https://www.reddit.com/r/ROS/comments/185gz5e/ros2_wsl2_not_communicating_with_base_ubuntu_ros2/

I can't get this working right away, but I think I understand the issue better with some help from our network team. Windows is dropping the multicast traffic because it doesn't know WSL wants it. I need to make a multicast consumer in windows for it to even register the data. I think port mirroring will solve this, but for now I'm going to spin up a cheap multicast consumer so it at least gets to the next step.

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

1 participant