-
Notifications
You must be signed in to change notification settings - Fork 2
/
installation.sh
56 lines (46 loc) · 1.63 KB
/
installation.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
conda install mamba -c conda-forge # Install mamba
mamba create -n teleopenv python=3.9
conda activate teleopenv
mkdir -p $ws/src
cd $ws/src
git clone https://github.com/imitrob/teleop_gesture_toolbox.git
git clone https://github.com/imitrob/coppelia_sim_ros_interface.git
git clone https://github.com/imitrob/context_based_gesture_operation.git
git clone https://github.com/splintered-reality/py_trees_ros.git
git clone https://github.com/splintered-reality/py_trees_ros_interfaces.git
cd $ws/src/teleop_gesture_toolbox
mamba env update -n teleopenv --file environment.yml
# Reactivate conda env before proceeding.
conda deactivate
conda activate teleopenv
conda deactivate # first may fail for some reason (?)
conda activate teleopenv
cd $ws
rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
source $ws/install/setup.bash
# make activation script for backend
echo "export ws=$ws
conda activate teleopenv
export COPPELIASIM_ROOT=$HOME/CoppeliaSim
export QT_QPA_PLATFORM_PLUGIN_PATH=$HOME/CoppeliaSim;
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$HOME/CoppeliaSim:$HOME/LeapSDK/lib/x64/;
source $ws/install/setup.bash;" > ~/activate_teleop_backend.sh
# make activation script for examples or GUIs
echo "export ws=$ws
conda activate teleopenv
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$HOME/LeapSDK/lib/x64/;
source $ws/install/setup.bash;" > ~/activate_teleop.sh
source ~/activate_teleop.sh
cd ~
git clone https://github.com/imitrob/PyRep.git
cd PyRep
pip install .
cd ~/LeapSDK
gdown https://drive.google.com/uc?id=1sOEsgkofRgy_nhZvp2DrdIvltdMCwIQV
tar -xvzf Leap.tgz
cd Leap
pip install .