You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[See here](#running-the-image-as-current-user) how to run a container.
31
+
[See "Running the image (as current user)"](#running-the-image-as-current-user) on how to run a container.
32
32
33
33
# Getting Started
34
34
The idea is to have HW accelerated GUIs with Docker. Generally it has proven that this is
@@ -71,7 +71,7 @@ Docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
71
71
72
72
ROS related GUI programs seem to working fine. Other programs like `meld` or `vscode` also seem to be working fine. There might be cases where some GUIs do not work as expected. Feel free to open a ticket so we can look into it.
73
73
74
-
For example, we know RViz is not ready for Wayland; hence we will need to use the `xcb` (X11) plugin instead of the one for Wayland and therefore we will use `QT_QPA_PLATFORM=xcb` for all QT applications. More info [here](#rviz-wayland-known-issues).
74
+
For example, we know RViz is not ready for Wayland; hence we will need to use the `xcb` (X11) plugin instead of the one for Wayland and therefore we will use `QT_QPA_PLATFORM=xcb` for all QT applications. More info in section ["RViz Wayland known issues"](#rviz-wayland-known-issues).
75
75
76
76
## Supported ROS Images
77
77
@@ -109,7 +109,7 @@ turludock generate --help
109
109
## Tool is based on YAML configurations
110
110
This tool uses a specific `.yaml` configuration to generate Dockerfiles or build Docker images.
111
111
112
-
You can find a [typical configuration](examples/noetic_nvidia_custom.yaml) in the examples folder.
112
+
You can find a [typical configuration](https://github.com/turlucode/ros-docker-gui/blob/master/examples/noetic_nvidia_custom.yaml) in the examples folder.
113
113
114
114
### Build or generate from presets
115
115
This tool already provides preconfigured `.yaml` files that can be used directly to generate
@@ -142,7 +142,7 @@ No problemo, use:
142
142
```sh
143
143
turludock build -c custom.yaml --tag CUSTOM_TAG
144
144
```
145
-
> How to create a custom yaml configuration? [Check the example.](examples/noetic_nvidia_custom.yaml)
145
+
> How to create a custom yaml configuration? [Check the example.](https://github.com/turlucode/ros-docker-gui/blob/master/examples/noetic_nvidia_custom.yaml)
146
146
147
147
Or if you want to generate the Dockerfile and its required assets for manual build use:
148
148
```sh
@@ -152,7 +152,7 @@ The `FOLDER_PATH` now contains all necessary files to run a custom `Docker build
152
152
153
153
# Running the image (as current user)
154
154
## Mesa
155
-
> :pineapple:**Important:** Make sure your YAML configuration uses: [`gpu_driver: mesa`](examples/noetic_nvidia_custom.yaml#L15)
155
+
> :pineapple:**Important:** Make sure your YAML configuration uses: [`gpu_driver: mesa`](https://github.com/turlucode/ros-docker-gui/blob/master/examples/noetic_nvidia_custom.yaml#L15)
156
156
157
157
### X11
158
158
To run the ROS Docker container with X11 support use:
@@ -174,14 +174,14 @@ _Important Remarks_:
174
174
- The `DOCKER_USER_*` variables are used to run the container as the current user.
175
175
- Please note that you need to pass the `Xauthority` to the correct user's home directory.
176
176
- You may need to run `xhost si:localuser:$USER` or worst case `xhost local:root` if get errors like `Error: cannot open display`.
177
-
- See also [this section](#other-options) for other options.
177
+
- See also section ["Other options"](#other-options) for other options.
178
178
179
179
### Wayland
180
-
> **NOTE:** Wayland support is still a bit experimental! See [known limitations](#known-wayland-limitations).
180
+
> **NOTE:** Wayland support is still a bit experimental! See section ["Known Wayland limitations"](#known-wayland-limitations).
181
181
182
182
ROS GUI on Wayland is still problematic and that is why we are going to use [`xwayland`](https://wayland.freedesktop.org/xserver.html).
183
183
Make sure you have installed `xhost`.
184
-
Make also sure the user has the rights to draw to the display; [more info here](#x11-error-cannot-open-display).
184
+
Make also sure the user has the rights to draw to the display; more info in section ["X11: Error: cannot open display"](#x11-error-cannot-open-display).
185
185
186
186
To run the ROS Docker container with Wayland support use:
187
187
@@ -218,10 +218,10 @@ _Important Remarks_:
218
218
- We need to start `terminator` with `dbus-launch` for Ubuntu versions less than 24.04, i.e. for versions < `jazzy`.
219
219
- The `QT_QPA_PLATFORM=xcb` is for now intentionally as discussed.
220
220
For this reason also the `qtwayland5` package is not installed in our Docker images.
221
-
- See also [this section](#other-options) for other options.
221
+
- See also section ["Other options"](#other-options) for other options.
222
222
223
223
## NVIDIA GPU
224
-
> :pineapple:**Important:** Make sure your YAML configuration uses: [`gpu_driver: nvidia`](examples/noetic_nvidia_custom.yaml#L15)
224
+
> :pineapple:**Important:** Make sure your YAML configuration uses: [`gpu_driver: nvidia`](https://github.com/turlucode/ros-docker-gui/blob/master/examples/noetic_nvidia_custom.yaml#L15)
225
225
226
226
For machines that are using NVIDIA graphics cards we need to have the [nvidia-container-toolkit] installed.
227
227
@@ -246,14 +246,14 @@ _Important Remarks_:
246
246
- Please note that you need to pass the `Xauthority` to the correct user's home directory.
247
247
- You may need to run `xhost si:localuser:$USER` or worst case `xhost local:root` if get errors like `Error: cannot open display`
248
248
- Adapt `--gpus all` to your needs
249
-
- See also [this section](#other-options) for other options.
249
+
- See also section ["Other options"](#other-options) for other options.
250
250
251
251
### Wayland
252
-
> **NOTE:** Wayland support is still a bit experimental! See [known limitations](#known-wayland-limitations).
252
+
> **NOTE:** Wayland support is still a bit experimental! See section ["Known Wayland limitations"](#known-wayland-limitations).
253
253
254
254
ROS GUI on Wayland is still problematic and that is why we are going to use [`xwayland`](https://wayland.freedesktop.org/xserver.html).
255
255
Make sure you have installed `xhost`.
256
-
Make also sure the user has the rights to draw to the display; [more info here](#x11-error-cannot-open-display).
256
+
Make also sure the user has the rights to draw to the display; more info in section ["X11: Error: cannot open display"](#x11-error-cannot-open-display).
257
257
258
258
To run the ROS Docker container with X11 support use:
259
259
````sh
@@ -288,7 +288,7 @@ For this reason also the `qtwayland5` package is not installed in our Docker ima
288
288
- Please note that you need to pass the `Xauthority` to the correct user's home directory.
289
289
- You may need to run `xhost si:localuser:$USER` or worst case `xhost local:root` if get errors like `Error: cannot open display`
290
290
- Adapt `--gpus all` to your needs
291
-
- See also [this section](#other-options) for other options.
291
+
- See also section ["Other options"](#other-options) for other options.
292
292
293
293
## Other options
294
294
### Mount your ssh-keys
@@ -396,6 +396,7 @@ After [installing poetry](https://python-poetry.org/docs/#installation) you can
396
396
poetry install
397
397
```
398
398
After that, you are good to go!
399
+
> Hint: You can [install pynev](https://github.com/pyenv/pyenv?tab=readme-ov-file#installation) if you want to check multiple python versions.
399
400
### Coding style enforcement
400
401
Check and enforce the coding style with static analysis:
0 commit comments