Is there a way to run Gazebo on an AWS server?
I am running an AWS EC2 (Ubuntu 14.04) instance and have tunneled using VNC so I have a GUI of the desktop. However, when I enter "gazebo" in the command line after installing Gazebo 7, I receive the following error.
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (GLX) Major opcode of failed request: 5 (XGLXMakeCurrent) Serial number of failed request: 19 Current serial number in output stream: 19 Major opcode of failed request: _148(GLX) Minor opcode of failed request: 5 (XGLXMakeCurrent) ...
Any help would be appreciated!
Asked by levya on 2017-06-23 17:12:53 UTC
Answers
Usually there's no X server by default on an AWS EC2 machine. You may be able to run gzserver
but not gzclient
or gazebo
. In order to run gazebo
or gzclient
you need to find a tutorial about how to configure an X server on an Ubuntu server distribution. When working, you could take a snapshot of your system (AMI on the Amazon lingo) and you should be able to reproduce the installation easily.
Asked by Carlos Agüero on 2017-06-26 14:17:16 UTC
Comments
Just a note, an X server is also needed by gzserver for rendering the output of camera sensors.
Asked by sloretz on 2017-06-27 13:02:34 UTC
True, a laser sensor might need a GPU too, so it really depends on your use case.
Asked by Carlos Agüero on 2017-06-27 13:17:42 UTC
Thanks for the replies. I'm having trouble finding tutorials that could help me install an X server on AWS. Please let me know if you come across any helpful resources. Thanks!
Asked by levya on 2017-06-27 13:20:21 UTC
@levya, you could try running Xvfb (http://elementalselenium.com/tips/38-headless) on such a headless machine.
Asked by JLiviero on 2017-06-27 14:31:14 UTC
Comments