NUbots / NUWebots

Environment, models, and communication for using the Webots simulation with NUbots
MIT License
7 stars 4 forks source link

Cross-platform webots support #82

Open KipHamiltons opened 3 years ago

KipHamiltons commented 3 years ago

We should properly support macOS and windows. This might mean supporting patches for the webots source (TC fork), which allow it to build.

miikyla commented 2 years ago

https://github.com/NUbots/NUbook/tree/peters/windows-webots

Includes additional instructions to allow for support with Windows. Something else I want to include is that doing hostname -I to get the IP address for the webots/projects/samples/contests/robocup/controllers/referee/game.json file isn't reliable when using the Docker containers specified in the Windows instructions. My workaround currently is to wait until Webots refuses the IP address and then add it to the game.json file then, but this is a bit too hacky for my liking. Not sure how to grab the IP address earlier though

KipHamiltons commented 2 years ago

Do you need to get the IP of the docker container itself @miikyla?

miikyla commented 2 years ago

I think so? I'm whitelisting the WSL? IP (hostname -I) but when Webots connects it's booting another IP address off