Comments (3)
We did not investigate in depth the case of networkingMode=mirrored
, but for a related use case @S-Dafarra @marcoforleo @dariosortino found that it was useful to set hostname
and other related settings in wsl.conf
(https://learn.microsoft.com/en-us/windows/wsl/wsl-config#network-settings). In particular to avoid confusion it is useful to ensure that the Windows side and WSL side use different hostname (I am not sure that is the case for networkingMode=mirrored
, but it was anyhow worth to mention here in case anyone had similar problems.
from robotology-superbuild.
I would add that probably the mirroring mode affects how the Windows Firewall interacts with WSL
from robotology-superbuild.
We did not investigate in depth the case of
networkingMode=mirrored
, but for a related use case @S-Dafarra @marcoforleo @dariosortino found that it was useful to sethostname
and other related settings inwsl.conf
(https://learn.microsoft.com/en-us/windows/wsl/wsl-config#network-settings). In particular to avoid confusion it is useful to ensure that the Windows side and WSL side use different hostname (I am not sure that is the case fornetworkingMode=mirrored
, but it was anyhow worth to mention here in case anyone had similar problems.
Just to add some further info, we noticed the following. Despite running the roscore
on Windows with an explicit IP set in the ROS_MASTER_URI
, and an explicit ROS_IP
, when running rostopic info /some_topic
on WSL, the IP of the publishers/subscribers of some_topic
was automatically resolved to the hostname
. If the hostname is the same between Windows and WSL, then when trying to connect to the same topic, a connection is made using the hostname
as the destination address. But then, the hostname is substituted with localhost
instead of the actual IP specified with ROS_IP
on the Windows side. As a result, we were not able to connect to the topics opened on Windows as localhost
on WSL is physically a different address.
When instead specifying a different hostname
in WSL (through the parameter hostname
in the [network]
group of wsl.conf
), this problem was solved. In fact, the publisher/subscribers of Windows kept the Windows original hostname in the address, while the publishers/subscribers of WSL use the hostname
of WSL. The nice thing is that Windows itself takes care of the routing. In other words, if we do ping original_hostname
on the WSL side (with original_hostname
the Windows hostname), this gets automatically resolved.
from robotology-superbuild.
Related Issues (20)
- apt dependencies from Ubuntu 24.04 support HOT 6
- Problems installing PyTorch with cuda support in conda environment used for compiling robotology-superbuild
- Conda packages generation failure June 2024 HOT 2
- CI Failure on macOS 12 conda
- Error: when run tutorial (Motor Control Interfaces in Python) yarp did not import HOT 12
- Complete transition to Apple Silicon
- Generate robotology conda packages for osx-arm64 HOT 1
- Installing robotology superbuild but package (gz-sim8) did not installed HOT 30
- icub-basic-demos CI conda on Windows fails June 2024 HOT 11
- conda-forge CI failing on Linux and Windows June 2024 HOT 2
- error when compiling iDyntree HOT 2
- Fix conda packages build HOT 1
- Ubuntu 20.04 GitHub Actions CI with apt dependencies on GHA images (not vanilla docker) fails HOT 1
- Update latest release is failing since ~2 weeks
- issue when installing with conda
- robotology-superbuild CI Failure Begin August 2024 conda-forge Linux HOT 6
- robotology-superbuild CI Failure Begin August 2024 vcpkg Windows HOT 2
- Document that ninja should be run with `ninja -j1` or `cmake --build . --parallel 1`
- Global Failure Mid August 2024 HOT 3
- Migrate conda packages generation to rattler-build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotology-superbuild.