Closed ruffsl closed 3 years ago
I think that's not a problem specific to Dolly. I built your docker image and ran with the same command as you and can reproduce the issue.
But I get the same problem when running just Gazebo:
``` /opt/overlay_ws# gazebo --verbose Gazebo multi-robot simulator, version 11.1.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. Gazebo multi-robot simulator, version 11.1.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.1.243 No protocol specified [Err] [RenderEngine.cc:744] Can't open display: :1 [Wrn] [RenderEngine.cc:87] Unable to create X window. Rendering will be disabled [Wrn] [RenderEngine.cc:287] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose. [Wrn] [SystemPaths.cc:459] File or path does not exist [""] [worlds/empty.world] [Err] [Server.cc:392] Could not open file[worlds/empty.world] [Wrn] [Server.cc:351] Falling back on worlds/empty.world [Wrn] [SystemPaths.cc:459] File or path does not exist [""] [worlds/empty.world] [Err] [Server.cc:392] Could not open file[worlds/empty.world] [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.1.243 No protocol specified [Err] [RenderEngine.cc:744] Can't open display: :1 [Wrn] [RenderEngine.cc:87] Unable to create X window. Rendering will be disabled [Wrn] [RenderEngine.cc:287] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose. No protocol specified [Wrn] [GuiIface.cc:119] could not connect to display :1 [Msg] Could not load the Qt platform plugin "xcb" in "" even though it was found. [Err] [GuiIface.cc:123] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. ```
I don't usually use rocker, so I can't help much there. These are the scripts I use for docker development for both Gazebo and Ignition.
Hi there,
I know it's been a while since this question was asked; however, I just had the same issue, so I thought I'd post a solution (in case anyone else comes across it).
I found the issue was forgetting to source the Gazebo setup file as part of the Run process (https://github.com/chapulina/dolly#run), i.e. I forgot to type: ". /usr/share/gazebo/setup.sh".
Once I did, I was able to get Gazebo to show Dolly in the empty world environment.
Best regards,
Frazer
I found the issue was forgetting to source the Gazebo setup file as part of the Run process (https://github.com/chapulina/dolly#run), i.e. I forgot to type: ". /usr/share/gazebo/setup.sh".
@chapulina , shouldn't this gazebo setup file be transitively sourced when sourcing the ros workspace that the colcon package was compiled with; as used in https://github.com/chapulina/dolly/pull/22 here?
https://github.com/chapulina/dolly/blob/b41f4d5cd97badef86609b998a1b0d3e0db4bcaf/Dockerfile#L58-L60
shouldn't this gazebo setup file be transitively sourced when sourcing the ros workspace that the colcon package was compiled with
That setup file is from Gazebo itself, not from any of the downstream projects that are usually compiled with colcon.
I'm closing this issue since it's not something that can be resolved in this repository. I recommend commenting on https://github.com/osrf/gazebo/issues/1949 with ideas on how the setup sourcing step can be skipped.
Looks like the gzclient immediately crashes upon launching the dolly_gazebo demo. To reproduce: see the rocker command below using the Docker image from https://github.com/chapulina/dolly/pull/22 .
dolly_gazebo