On Windows, can't run turtlesim despite having downloaded X-launchers

asked 2021-09-24 00:40:56 -0500

MambaMentality24 gravatar image

updated 2022-05-01 13:12:02 -0500

lucasw gravatar image

I'm on Windows trying to run ROS melodic on WSL, specifically Ubuntu 18.04 LTS as that's the only version that supports melodic. Whenever I try to run

rosrun turtlesim turtlesim_node

I always get an error saying:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'                                              
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:0.0                                               
Could not connect to any X display.

I have tried installing multiple different X-launchers, specifically XMing and VcXsrv. I always get the same error even after starting the launchers up (note that I only had one installed at a time; I didn't have XMing installed when using VcXsrv). Could an issue be that I am not booting up the X-launchers correctly? I don't have access to a Linux machine, so I can only use my Windows device. Is there anyone who can help with this issue? It's hard for me to do anything without being able to see the simulators.

edit retag flag offensive close merge delete

Comments

Did you set Display to 0?

osilva gravatar image osilva  ( 2021-09-25 18:49:20 -0500 )edit