From 8485563227bb4ac55a0be1ff1cc52afb31f2d327 Mon Sep 17 00:00:00 2001 From: Kean Mariotti Date: Fri, 12 Aug 2016 17:20:16 +0200 Subject: [PATCH 1/3] added README for scl7.2 installation scripts --- scl7.2/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 scl7.2/README.md diff --git a/scl7.2/README.md b/scl7.2/README.md new file mode 100644 index 0000000..5176014 --- /dev/null +++ b/scl7.2/README.md @@ -0,0 +1,42 @@ +### Gazebo (http://gazebosim.org) +> Installation scripts for compiling and deploying Gazebo from source. + +## How to install gazebo +```shell +./gazebo7_install.sh +``` + +## How to install gzweb (web client for Gazebo) +```shell +./gzweb_install.sh +``` + +## How to run Gazebo + +# Gazebo with remote 3D rendering +1. make sure that the remote machine has VirtualGL and a TurboVNC installed +1. ssh to the remote machine +1. start the vncserver: +```shell +vncserver :10 #10 is the display number. Any free display number will do. +``` +1. start a VNC session from the local machine to the display #10 of the remote machine: +```shell +vncviewer :10 +``` +1. start a shell in the remote machine +1. launch gazebo with VirtualGL: +```shell +vglrun ./start_gazebo.sh +``` + +# How to run gzweb (web client for Gazebo) +1. start gzserver on the machine with Gazebo installed: +```shell +./start_gazebo.sh +``` +1. start gzweb on the machine with Gazebo installed: +```shell +./start_gzweb.sh +``` +Now you should be able to use the Gazebo's web interface from any browser with WebGL and WebSocket support. Gazebo is typically available at http://<address of machine with gazebo installed>:8080. Gzweb logs the exact URL to /tmp/gzweb.log. From 3f3c56a91bd27a400114565322f5e10e5b82f75d Mon Sep 17 00:00:00 2001 From: Kean Mariotti Date: Mon, 29 Aug 2016 08:45:48 +0200 Subject: [PATCH 2/3] some changes to README for scl7.2 installation scripts --- scl7.2/README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/scl7.2/README.md b/scl7.2/README.md index 5176014..1066085 100644 --- a/scl7.2/README.md +++ b/scl7.2/README.md @@ -11,32 +11,33 @@ ./gzweb_install.sh ``` -## How to run Gazebo - -# Gazebo with remote 3D rendering +## How to run Gazebo with remote 3D rendering 1. make sure that the remote machine has VirtualGL and a TurboVNC installed -1. ssh to the remote machine -1. start the vncserver: +2. ssh to the remote machine +3. start the vncserver: ```shell vncserver :10 #10 is the display number. Any free display number will do. ``` -1. start a VNC session from the local machine to the display #10 of the remote machine: +4. start a VNC session from the local machine to the display #10 of the remote machine: ```shell vncviewer :10 ``` -1. start a shell in the remote machine -1. launch gazebo with VirtualGL: +5. start a shell in the remote machine +6. launch gazebo with VirtualGL: ```shell vglrun ./start_gazebo.sh ``` -# How to run gzweb (web client for Gazebo) -1. start gzserver on the machine with Gazebo installed: +## How to run gzweb (web client for Gazebo) +1. start gzserver+gzweb on the machine with Gazebo installed: ```shell -./start_gazebo.sh +./start_gzweb.sh ``` -1. start gzweb on the machine with Gazebo installed: +Note: gzweb's log file is /tmp/gzweb.log. + +Now you should be able to use the Gazebo's web interface from any browser with WebGL and WebSocket support. Gazebo is typically available at http://<address of machine with gazebo installed>:8080. See gzweb log file for the exact URL. + +## How to stop gzweb (web client for Gazebo) ```shell -./start_gzweb.sh +./stop_gzweb.sh ``` -Now you should be able to use the Gazebo's web interface from any browser with WebGL and WebSocket support. Gazebo is typically available at http://<address of machine with gazebo installed>:8080. Gzweb logs the exact URL to /tmp/gzweb.log. From dd633f03dd4be4e3b873ac8c7a466ee97f2674ac Mon Sep 17 00:00:00 2001 From: Kean Mariotti Date: Mon, 29 Aug 2016 09:12:43 +0200 Subject: [PATCH 3/3] added messages for user to start_gzweb.sh --- scl7.2/start_gzweb.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scl7.2/start_gzweb.sh b/scl7.2/start_gzweb.sh index 05601dd..9ab5089 100755 --- a/scl7.2/start_gzweb.sh +++ b/scl7.2/start_gzweb.sh @@ -3,9 +3,16 @@ SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $SCRIPT_PATH/load-environment +logfile_gzserver=/tmp/gzserver.log +logfile_gzweb=/tmp/gzweb.log + #nohup is used for a quick and dirty demonization here if pgrep gzserver &>/dev/null ; then - nohup $PREFIX/bin/gzserver --verbose 0<&- &>/tmp/gzserver.log & + echo "gzserver already running" +else + echo "starting gzserver... logging to $logfile_gzserver" + nohup $PREFIX/bin/gzserver --verbose 0<&- &>$logfile_gzserver & fi -nohup $HOME/osrf-gzweb-b027171f5aa1/start_gzweb.sh 0<&- &>/tmp/gzweb.log & +echo "starting gzweb... logging to $logfile_gzweb" +nohup $HOME/osrf-gzweb-b027171f5aa1/start_gzweb.sh 0<&- &>$logfile_gzweb &