-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup
executable file
·36 lines (24 loc) · 1.11 KB
/
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#/bin/bash
# Python virtual environment directory
PENVDIR=DDSTUTORIALENV
function InstallVirtualEnv {
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz
tar -zxvf virtualenv-1.9.tar.gz
python virtualenv-1.9/virtualenv.py $PENVDIR
}
echo "--------------------------------------------------------------------------------"
echo ""
echo " First Steps with Data Distribution Service Tutorial Setup"
echo ""
echo "--------------------------------------------------------------------------------"
echo "Preparing virtualenv..."
command virtualenv $PENVDIR >/dev/null 2>&1 || InstallVirtualEnv
# First, clone the repository from github
git clone https://github.com/rticommunity/rticonnextdds-connector.git
cp -R rticonnextdds-connector/rticonnextdds_connector $PENVDIR/lib/python2.7/
cp -R rticonnextdds-connector/lib/ $PENVDIR/lib/python2.7/
wget -P doc https://community.rti.com/rti-doc/510/ndds.5.1.0/doc/pdf/RTI_CoreLibrariesAndUtilities_QoS_Reference_Guide.pdf
echo "In order to run the tutorial examples, use the following command in every terminal"
echo ""
echo '. setenvironment'
echo ""