ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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 http://wiki.ros.org/ROS/Tutorials/Und... 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

Comments

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 image kathrin@ros  ( 2018-05-23 13:04:10 -0500 )edit

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

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

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

kathrin@ros gravatar image kathrin@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 image Isam Abdullah  ( 2018-05-23 16:15:30 -0500 )edit

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

Isam Abdullah gravatar image Isam 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 image kathrin@ros  ( 2018-05-23 16:17:22 -0500 )edit

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

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

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

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

2 Answers

Sort by ยป oldest newest most voted
1

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

Comments

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 image Isam 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 image Isam 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 image gvdhoorn  ( 2017-05-26 07:05:35 -0500 )edit

I would surely. Thanks

Isam Abdullah gravatar image Isam 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 image Kumar  ( 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 image gvdhoorn  ( 2017-09-08 06:07:27 -0500 )edit
1

With a W10 PC, you need to install Xming to run GUI https://www.pcworld.com/article/30554... I managed to run at least Firefox, but I'm still having some challenge with "rosrun turtlesim turtlesim_node"

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

answered 2020-05-22 08:22:51 -0500

aalgaed gravatar image

Into your host terminal, put "xhost your_ip_address".

You will see the terminal return "your_ip_address being added to access control list"

Rerun "rosrun turtlesim turtlesim_node" in your docker container, and the blue Turtlesim window should start up.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 3,391 times

Last updated: May 22 '20