Ask Your Question

Qxcb connection on rosrun turtlesim

asked 2017-05-25 21:30:37 -0500

Isam Abdullah gravatar image

Hi all, I am following the beginner rosnode tutorial I have installed ros in bash. When I enter command "rosrun turtlesim turtlesim_node" after running "roscore", I get the following error:

QXcbConnection: Could not connect to display :0.0
Aborted (core dumped)

Are there any solutions to this? Thanks

edit retag flag offensive close merge delete


Hi, I'm a beginner in Ros and just started the tutorial too.Moreover I'm working on SLAM methods with ROS. Maybe ur still interested in this topic and would like to discuss with me about it.

kathrin@ros gravatar imagekathrin@ros ( 2018-05-23 13:04:10 -0500 )edit

Yeah sure. I would be happy to help/discuss.

Isam Abdullah gravatar imageIsam Abdullah ( 2018-05-23 15:06:30 -0500 )edit

I'm a total beginner. But did you manage this connection problem?

kathrin@ros gravatar imagekathrin@ros ( 2018-05-23 15:23:06 -0500 )edit

Are you installing ros in windows bash? If so, then it is not supported and you have to do alot of hacks to make it work on that.

Isam Abdullah gravatar imageIsam Abdullah ( 2018-05-23 16:15:30 -0500 )edit

So it is advisable for a beginner to work in ubuntu.

Isam Abdullah gravatar imageIsam Abdullah ( 2018-05-23 16:16:00 -0500 )edit

Yes, I did. I managed it with Xserver, seems to be stable.It seems more complicated to me to change to ubuntu...

kathrin@ros gravatar imagekathrin@ros ( 2018-05-23 16:17:22 -0500 )edit

Great!... btw are you university/college graduate?

Isam Abdullah gravatar imageIsam Abdullah ( 2018-05-23 16:26:05 -0500 )edit

Did you installed ubuntu additionally to windows?Does it work well parallel?

kathrin@ros gravatar imagekathrin@ros ( 2018-05-23 16:26:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-05-26 03:14:57 -0500

gvdhoorn gravatar image

I have installed ros in bash

do you mean Windows 10 / WSL with this? If so, then that is highly experimental and especially anything with a GUI will require (quite) some tweaks. Are you running a Windows X server fi?

edit flag offensive delete link more


Yes, I mean Windows 10/WSL. I don't know if I am running a Windows X server fi. Please help me on the tweaks..

Isam Abdullah gravatar imageIsam Abdullah ( 2017-05-26 04:46:35 -0500 )edit

Hi, thanks for the answer. I searched the windows X server thing, and I found the fix.

Isam Abdullah gravatar imageIsam Abdullah ( 2017-05-26 05:04:24 -0500 )edit

Could you please mention your platform next time you post a question?

And also: please take into account that what you're doing (ROS on Win10/WSL) is completely unsupported.

If you are just starting out I'm not sure using such a platform would be something I'd recommend.

gvdhoorn gravatar imagegvdhoorn ( 2017-05-26 07:05:35 -0500 )edit

I would surely. Thanks

Isam Abdullah gravatar imageIsam Abdullah ( 2017-05-26 12:57:56 -0500 )edit

Can you please share the tweaks you did to make this run? Thanks in advance!

Kumar gravatar imageKumar ( 2017-09-07 21:44:09 -0500 )edit

I'm afraid I don't remember. The situation with ROS on WSL is rather different now as well as the main obstacles have been removed. See #q238646.

gvdhoorn gravatar imagegvdhoorn ( 2017-09-08 06:07:27 -0500 )edit

With a W10 PC, you need to install Xming to run GUI I managed to run at least Firefox, but I'm still having some challenge with "rosrun turtlesim turtlesim_node"

Cabajo gravatar imageCabajo ( 2017-11-04 11:07:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-05-25 21:30:37 -0500

Seen: 1,932 times

Last updated: May 25 '17