在使用docker拉取镜像后,在容器中使用rviz出现问题。
docker exec -it liuyao /bin/bash
root@liuyao-Legion-Y9000P-IAH7H:/# cd home
root@liuyao-Legion-Y9000P-IAH7H:/home# rviz -d Visualization/vis.rviz
No protocol specified
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 (core dumped)
在使用docker拉取镜像后,在容器中使用rviz出现问题。
docker exec -it liuyao /bin/bash
root@liuyao-Legion-Y9000P-IAH7H:/# cd home
root@liuyao-Legion-Y9000P-IAH7H:/home# rviz -d Visualization/vis.rviz
No protocol specified
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 (core dumped)