Robotics StackExchange | Archived questions

GZWeb: Split web server from simulation server?

I'd like to integrate a GZWeb server on an existing web server, but don't want the simulation load on that machine. I'm guessing it's possible to run the simulation on one server and the web portion on another, but am not sure which packages would go where. Looks like node.js on the webserver and gzbridge on the simulation server, does this sound right? Where would I configure the ports/connections for gazebo/node.js? Prerequisites for each package?

Asked by srees on 2016-05-09 02:16:51 UTC

Comments

Also, when trying to install nodejs (on Ubuntu Precise) I get an error that nodejs conflicts with npm? Weird. That's using the setup file provided at http://gazebosim.org/tutorials?tut=gzweb_install&cat=gzweb#Runninggzserver,gzwebserver,andWebGLclient

Asked by srees on 2016-05-09 02:33:55 UTC

Answers

If you want to run gzweb on a different machine than gzserver, set the Gazebo master to the remote gzserver machine and port. For example, if your gzweb is running from ip 10.0.0.2 and you want gzserver to run from machine 10.0.0.1, use this command in the same terminal you invoke start_gzweb.sh:

export GAZEBO_MASTER_URI=http://10.0.0.1:11345

Asked by hugomatic on 2016-05-09 12:43:29 UTC

Comments

I really don't want to do a full gazebo install on our production web server as it hosts a bunch of other stuff. I may not understand how gzweb/nodejs are working, but I was hoping to point a nodejs installation on the webserver to the bridge on the simulation server. It doesn't appear to be elementary to split up the installation like this.

Asked by srees on 2016-05-12 19:37:34 UTC