Adds a dockerfile for webots with nuwebots and robocup environments#101
Open
JesseWilliamson wants to merge 9 commits intomainfrom
Open
Adds a dockerfile for webots with nuwebots and robocup environments#101JesseWilliamson wants to merge 9 commits intomainfrom
JesseWilliamson wants to merge 9 commits intomainfrom
Conversation
ysims
previously approved these changes
Apr 19, 2023
Member
ysims
left a comment
There was a problem hiding this comment.
Will need some documentation on NUbook for how to run this. Otherwise lgtm
Member
KipHamiltons
left a comment
There was a problem hiding this comment.
Quick and cheeky one off reviews
Member
|
@JesseWilliamson could you have a look at addressing Kip's comments. Just run |
ysims
reviewed
Dec 1, 2024
| FROM ${BASE_IMAGE} AS downloader | ||
|
|
||
| # Determine Webots version to be used and set default argument | ||
| ARG WEBOTS_VERSION=R2023b |
Member
There was a problem hiding this comment.
Suggested change
| ARG WEBOTS_VERSION=R2023b | |
| ARG WEBOTS_VERSION=R2022b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements:
xhost +local:root. To undo this runxhost -local:root.nvidia-container-toolkitis available as an Ubuntu package and is on the AUR. Webots recommends usingnvidia-docker2instead, but as far as I can tell this is deprecated.Notes:
mainwithwilliamson/webots-docker.Running on host network:
docker run --gpus=all -it -e DISPLAY --env TEAM_NAME=nubots -v /tmp/.X11-unix:/tmp/.X11-unix:rw --network host WebotsImageName. You can addwebots pathToWorldFileto run a world file directly, or leave as-is to open a bash shell.--gpus=allenables gpu acceleration, and TEAM_NAME is for the hlvs_robocup game.json file. If you aren't running on the host network you can use --env ROBOT_HOSTS to add comma separated addresses to the hlvs whitelist.You should be able to connect with localhost address as if webots was running normally outside a container.