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

Gazebo simulator window is not opening

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

Aminul gravatar image

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

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 -0500

Aminul gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 2,643 times

Last updated: Jan 12 '21