Gazebo | Ignition | Community
Ask Your Question
2

Is there a way to run Gazebo on an AWS server?

asked 2017-06-23 17:12:53 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 (X_GLXMakeCurrent) 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 (X_GLXMakeCurrent) ...

Any help would be appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-06-26 14:17:16 -0600

Carlos Agüero gravatar image

updated 2017-06-26 14:23:35 -0600

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.

edit flag offensive delete link more

Comments

Just a note, an X server is also needed by gzserver for rendering the output of camera sensors.

sloretz gravatar imagesloretz ( 2017-06-27 13:02:34 -0600 )edit

True, a laser sensor might need a GPU too, so it really depends on your use case.

Carlos Agüero gravatar imageCarlos Agüero ( 2017-06-27 13:17:42 -0600 )edit

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!

levya gravatar imagelevya ( 2017-06-27 13:20:21 -0600 )edit

@levya, you could try running Xvfb (http://elementalselenium.com/tips/38-headless) on such a headless machine.

JLiviero gravatar imageJLiviero ( 2017-06-27 14:31:14 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2017-06-23 17:12:53 -0600

Seen: 1,615 times

Last updated: Jun 26 '17