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

ROS2 + WSL2 external communication

asked 2023-03-23 05:44:30 -0500

Adude gravatar image

I'm developing my Humble ROS2 system in WSL2 running Ubuntu 22.04. I'd like to test the system with the hardware running on an RPi on the network, whilst being able to run tools like rviz on my dev computer. I'm not interested in communicating with the Windows install because I can run any UI programs I need directly from WSL.

I've seen variations of this question before which suggest it's not possible because ROS running under WSL can't send/receive multicast packets on the main network?

Has anyone managed to get ROS running under WSL to communicate with ROS running on the network or know of any projects I can help with to provide this functionality?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-02 12:22:24 -0500

I followed this video: https://www.youtube.com/watch?v=NOOUf... to set WSL2 instance to use the ethernet/wifi card directly and it worked for me. I do have to clear and reset my ip address as he talks about when switching networks but otherwise it worked for me to publish and subscribe to other nodes on different computers on the ROS network.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-23 05:44:30 -0500

Seen: 1,659 times

Last updated: Mar 23 '23