Closed fabriros closed 7 months ago
Try to run before you launch the docker container: xhost local:root
Please open questions like this on https://robotics.stackexchange.com/questions/tagged/ros, which is our central Question and Answer site. You'll get a better answer there, and it will be searchable for the future.
Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.
Running the xhost local:root command locally before I built the container solved this problem for me.
Try to run before you launch the docker container: xhost local:root
Description:
I have tried to execute ros in a docker container on vscode. I have followed the tutorial at this page . I have a problem in visualizing rviz2.
Environment:
Expected behaviour
Open rviz2 through vscode
Actual behaviour
Error: `qt.qpa.xcb: could not connect to display :1 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted`
My files
devcontainer.json Docker file:
Thank you in advance!