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:
- ROS Distro: Humble
- OS Version: Ubuntu 22.04
- DISPLAY SERVER : x11
Step followed:
Tutorial using humble as ROS_DISTRO. I have changed the variable DISPLAY in containerEnv to unix:1. I have also tried to execute the command xhost local:root before starting the container as suggested here
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!