Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop-full image, how to access on Windows? #696

Open
PaddyCube opened this issue Oct 25, 2023 · 1 comment
Open

Desktop-full image, how to access on Windows? #696

PaddyCube opened this issue Oct 25, 2023 · 1 comment
Labels

Comments

@PaddyCube
Copy link

Hi there,

I run osrf/ros:humble-desktop-full in my windows machine. I want to use it to visualize data from my real robot.

Silly question, how should I run the image so that I can access RVIZ2 and other GUI tools from windows?

If I simlpy use
docker run -it osrf/ros:humble-desktop-full
it works but with console only.

I tried this as well
docker run -it --name ros-test -e DISPLAY=host.docker.internal:0.0 -e LIBGL_ALWAYS_INDIRECT=0 osrf/ros:humble-desktop-full bash

which seems to start a X11 server (to my understanding). When I try to connect by VNC, it asks for a password, which I can't find.

So what's the correct docker command to run any desktop-full image on windows with GUI support?

BR Patrick

@sloretz
Copy link
Contributor

sloretz commented Feb 29, 2024

I don't have a windows machine to try this on, but assuming you're using WSL then maybe x11docker would work there?

# Pull the image first
docker pull osrf/ros:humble-desktop

# Run rviz2 in the image with GPU acceleration
x11docker --gpu osrf/ros:humble-desktop rviz2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants