Ask Your Question
0

Gazebo simulator window is not opening

asked 2021-01-06 22:25:14 -0600

Aminul gravatar image

updated 2021-01-07 20:11:54 -0600

Hi there,

I am newbie in ROS and gazebo. while typing gazebo in the terminal on my machine (ubuntu 16.04 installed on windows10), I got the following errors. I am using ROS kinetic and tried gazebo7 and gazebo9 but couldn't get the simulator window opened.

[Msg] Waiting for master.

[Msg] Connected to gazebo master @ http://127.0.0.1:11345

[Msg] Publicized address: 192.168.0.53

[Err] [RenderEngine.cc:742] Can't open display:

[Wrn] [RenderEngine.cc:88] Unable to create X window. Rendering will be disabled

[Wrn] [RenderEngine.cc:291] Cannot initialize render engine since render path type is NONE. Ignore this warning if rendering has been turned off on purpose.

[Msg] Connected to gazebo master @ http://127.0.0.1:11345

[Msg] Publicized address: 192.168.0.53

[Err] [RenderEngine.cc:742] Can't open display:

[Wrn] [RenderEngine.cc:88] Unable to create X window. Rendering will be disabled

[Wrn] [RenderEngine.cc:291] Cannot initialize render engine since render path type is NONE. Ignore this warning if rendering has been turned off on purpose.

[Err] [GuiIface.cc:124] QXcbConnection: Could not connect to display

ubuntu@Aminul:/$

Please let me know how I can fix this issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-12 00:47:33 -0600

Aminul gravatar image

updated 2021-01-12 00:48:10 -0600

Hello folk,

After trying for a while, I was able to get the gazebo window open. It seemed that it was not working since I had installed Linux on windows-10 using Windows Subsystem for Linux. Below, I put the youtube link following which I could fix the issue and hope that might help newbies who might face the same kind of problem.

https://www.youtube.com/watch?v=DW7l9...

All you need to do is to download another software "VcXsrv windows X server " and type the following commands on the shell.

export GAZEBO_IP=127.0.0.1

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0

export LIBGL_ALWAYS_INDIRECT=0

gazebo

Thanks!

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-01-06 22:25:14 -0600

Seen: 41 times

Last updated: Jan 12