When running ROS on the Linux subsystem of Windows 10, the terminal cannot communicate normally.
Process: This is the process of installing the subsystem in Windows 10. https://docs.microsoft.com/en-us/wind...
After I successfully installed ROS, I ran roscore normally. When I created a new terminal, I ran rosrun turtlesim turtlesim_node and it showed QXcbConnection: Could not connect to display Aborted (core dumped). Therefore, I suspect that the two terminals I opened in Windows 10 are not communicating normally. Q: How can I make two terminals running on Windows 10 communicate normally? Personal Note: Now that Windows 10 has added the Linux subsystem, and Windows 10 and Linux can communicate with each other, I believe there will be great development prospects in the future.
This error typically means that you either don't have a running X server, or you haven't configured your X client correctly to use it.
Do you have an X server installed and running on Windows 10?
WSL does not include an X server.
Thanks,i solve my question by run vim ~/.bashrc add QT_QPA_PLATFORM='offscreen' run source ~/.bashrc But I found a new problem, that is, after running rosrun turtlesim turtlesim_node, no image will be displayed, only Spawning turtle [turtle1] at x = [5.544445], y = [5.544445], theta = [0.000000], of course This is not accidental, and rqt_graph is also unable to generate images. However, everything works fine in the virtual machine, and the subsystem and virtual machine use are both Ubuntu 16.04, and QT is the same version.
QT_QPA_PLATFORM='offscreen' turns the image off, so that is why it works but no image is displayed. @gvdhoorn is right, you need to install an X server on Windows, like XMing, Cygwin X or vcXsrv.