Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gzweb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neurorobotics Platform
gzweb
Commits
ed9761f5
Commit
ed9761f5
authored
9 years ago
by
Daniel Peppicelli
Browse files
Options
Downloads
Patches
Plain Diff
[NRRPLT-2780] gzweb should now be deployed on the GPFS
Change-Id: Id054d0b25ffdbd56bd4feb7925d4881ccaaaf48d
parent
1fba36b0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gzbridge.init.d.sh
+29
-22
29 additions, 22 deletions
gzbridge.init.d.sh
gzbridge/ws_server.js
+1
-1
1 addition, 1 deletion
gzbridge/ws_server.js
hbp/module_file.template
+3
-2
3 additions, 2 deletions
hbp/module_file.template
with
33 additions
and
25 deletions
gzbridge.init.d.sh
+
29
−
22
View file @
ed9761f5
...
...
@@ -19,7 +19,33 @@
# Source function library.
.
/etc/rc.d/init.d/functions
GZBRIDGE_BIN_DIR
=
/nfs4/bbp.epfl.ch/sw/neurorobotics/gzweb/2014.10.15/rhel-6.5-x86_64/gcc-4.8.2/x86_64/gzweb/gzbridge
DOMAIN
=
`
hostname
-d
`
case
$DOMAIN
in
'epfl.ch'
)
export
MODULEPATH
=
$MODULEPATH
:/nfs4/bbp.epfl.ch/sw/neurorobotics/modulefiles
export
MODULEPATH
=
$MODULEPATH
:/nfs4/bbp.epfl.ch/sw/module/modulefiles
source
/nfs4/bbp.epfl.ch/sw/platform/set_module_path.sh
module load boost/1.55zlib-rhel6-x86_64-gcc4.4
module load sdf/2.0-rhel6-x86_64-gcc4.4
module load gazebo/4.0-rhel6-x86_64-gcc4.8.2
module load ogre/1.8.1-rhel6-x86_64-gcc4.8.2
export
GZBRIDGE_BIN_DIR
=
/nfs4/bbp.epfl.ch/sw/neurorobotics/gzweb/2014.10.15/rhel-6.5-x86_64/gcc-4.8.2/x86_64/gzweb/gzbridge
;;
'cscs.ch'
)
export
MODULEPATH
=
$MODULEPATH
:/gpfs/bbp.cscs.ch/apps/viz/neurorobotics/modulefiles
source
/gpfs/bbp.cscs.ch/apps/viz/set_module_path.sh
module load boost/1.55zlib-rhel6-x86_64-gcc4.4
module load sdf/last-build
module load gazebo/last-build
module load gzbridge/last-build
module load ogre/1.9.0-rhel6-x86_64-gcc-4.8.2
;;
*
)
#see if we found a valid path above, could make this exit if we wanted
echo
"Warning: no valid set_module_path.sh, do you have access to /nfs4 or /gpfs?"
exit
-1
;;
esac
if
[
-z
$GZBRIDGE_BIN_DIR
]
;
then
echo
"Necessary environment variable GZBRIDGE_BIN_DIR not set!"
...
...
@@ -29,28 +55,10 @@ fi
exec
=
"
$GZBRIDGE_BIN_DIR
/ws_server.js"
prog
=
"node"
lockfile
=
/
var/lock/subsys
/
$prog
lockfile
=
/
home/
$USER
/lock
/
$prog
start
()
{
# loading the environment modules configuration files
export
MODULEPATH
=
$MODULEPATH
:/nfs4/bbp.epfl.ch/sw/neurorobotics/modulefiles
export
MODULEPATH
=
$MODULEPATH
:/nfs4/bbp.epfl.ch/sw/module/modulefiles
# source environment modules init file
.
/usr/share/Modules/init/bash 2> /dev/null
# load the modules
module load gazebo/4.0-rhel6-x86_64-gcc4.8.2
&&
module load sdf/2.0-rhel6-x86_64-gcc4.4
&&
module load ogre/1.8.1-rhel6-x86_64-gcc4.8.2
&&
module load boost/1.55zlib-rhel6-x86_64-gcc4.4
retval
=
$?
if
[
$retval
-ne
0
]
;
then
echo
"Loading the environment modules was not successful!"
exit
1
fi
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:/nfs4/bbp.epfl.ch/sw/neurorobotics/staging/lib64/
echo
-n
$"Starting
$prog
: "
# test if the exec file exists and execute permission is granted
# exit with exit code 5 (program not installed) if conditions do not hold
...
...
@@ -60,7 +68,6 @@ start() {
# does not work properly :(
cd
$GZBRIDGE_BIN_DIR
echo
-n
$"Starting
$prog
: "
# if not running, start gzbridge up here
$exec
&>/dev/null &
retval
=
$?
...
...
This diff is collapsed.
Click to expand it.
gzbridge/ws_server.js
+
1
−
1
View file @
ed9761f5
...
...
@@ -10,7 +10,7 @@ var http = require('http');
var
connections
=
[];
var
materialScriptsMessage
=
{};
var
addon
=
require
(
'
./build/
Debug
/gzbridge
'
);
var
addon
=
require
(
'
./build/
Release
/gzbridge
'
);
if
(
process
.
argv
.
length
==
2
)
{
var
gzconnection
=
new
addon
.
GZNode
();
...
...
This diff is collapsed.
Click to expand it.
hbp/module_file.template
+
3
−
2
View file @
ed9761f5
...
...
@@ -14,8 +14,8 @@ set sw_basedir "$NEUROROBOTICS_MODULE_PATH"
set package_name "$BUILD_PACKAGE_NAME"
set version "$BUILD_VERSION"
set platform "rhel6"
set
compiler
"$BUILD_COMPILER "
set
architecture
"x86_64"
set
compiler
"$BUILD_COMPILER "
set
architecture
"x86_64"
set root "$sw_basedir/$package_name/$version/$platform/$compiler/$architecture/"
module-whatis "loads the environment for $package_name"
...
...
@@ -33,3 +33,4 @@ and 'module avail' to list all the availables ones.
}
# Update PATH environment:
setenv GZBRIDGE_BIN_DIR $root/gzbridge
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment