QXcbConnection : Could not connect to display - Windows10, VirtualBox

asked 2021-03-15 12:53:55 -0600

masterkey gravatar image


I have a robot with Jetson Nano and ROS Melodic as master. It is connected to my home network via Wifi. I have a desktop PC with Linux Ubuntu 18.04 and also ROS Melodic running in VirtualBox on Windows 10.

I have edited the bashrc files so that the two machines are connected. For example, I can drive on the robot (master) with /cmd_vel and listen on the desktop PC with

$ rostopic echo /cmd_vel

Q: I want to start a special node : $ rosrun rqt_robot_steering rqt_robot_steering Documentation

This should open a small GUI with which I can control the rover. I get the following error message:

QXcbConnection : Could not connect to display Cound not connect to any X display

I have already searched and found that with this error message it is often necessary to install an X server. Is it the same in my case? Do I have to install it on Windows 10 or on Ubuntu in VirtualBox? Which X server should I use?

Thank you!

edit retag flag offensive close merge delete