如何在带有GPU的Google Compute Engine上运行Gazebo?

时间:2018-08-28 05:29:26

标签: opengl google-compute-engine ros xserver glx

我正在尝试在具有1个NVIDIA Tesla K80 GPU的Ubuntu 16.04 Google Compute Engine实例中运行Gazebo。使用以下drivers配置GPU,这是必需的,因为我也在应用程序中使用了Tensorflow。

给出了一个类似问题的解决方案here,但是我在实现JLiviero或Jose Luis Rivero的答案方面没有任何成功。根据JLiviero的解决方案设置Xvfb之后,以详细模式运行Gazebo失败,并产生以下输出:

jonathon@full-algo-1-gpu:~/catkin_ws$ gazebo --verbose
Gazebo multi-robot simulator, version 7.14.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 10.138.0.8
[Msg] Publicized address: 10.138.0.8
[Err] [RenderEngine.cc:734] Can't open display: 
[Wrn] [RenderEngine.cc:97] Unable to create X window. Rendering will be disabled
[Wrn] [RenderEngine.cc:301] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.
[Err] [RenderEngine.cc:734] Can't open display: 
[Wrn] [RenderEngine.cc:97] Unable to create X window. Rendering will be disabled
[Wrn] [RenderEngine.cc:301] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.
[Wrn] [GuiIface.cc:99] gazeb: cannot connect to X server 

我在实例中使用的软件:

  • 凉亭版本:7.14
  • Python版本:2.7.12
  • Tensorflow版本:1.10.1

如何使凉亭运行而不会崩溃?

1 个答案:

答案 0 :(得分:0)

看起来凉亭正试图利用X服务器。我怀疑安装一些显示环境软件包可能会有所帮助。

尝试:

sudo apt-get install gnome-core