-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathteleop_station_setup.sh
executable file
·125 lines (94 loc) · 4.49 KB
/
teleop_station_setup.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
FILE="zoom_amd64.deb"
if [[ ! -f "$FILE" ]]; then
wget https://zoom.us/client/latest/zoom_amd64.deb
fi
sudo apt install -y ./zoom_amd64.deb
# install python3.7
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget
FILE="Python-3.7.4.tgz"
if [[ ! -f "$FILE" ]]; then
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
fi
sudo tar xzf Python-3.7.4.tgz
cd Python-3.7.4/
sudo ./configure
sudo make
sudo make install
echo "alias python3=python3.7" >> ~/.bashrc
echo "alias pip3=pip3.7" >> ~/.bashrc
echo "alias python3=python3.7" >> ~/.bash_aliases
echo "alias pip3=pip3.7" >> ~/.bash_aliases
# source ~/.bashrc
pip3 install --upgrade pip
# setup ROS
echo -e "\n!!!!!!!!! SET UP ROS\n"
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo -E apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get -y install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt-get -y install python3-catkin-pkg-modules python3-rospkg-modules
sudo rosdep init
sudo rosdep update
#### PACKAGES for the triadic controller
echo -e "\n!!!!!!!!! PYTHON PACKAGES for triadic controller\n"
sudo pip3 install pyqt5 PyYAML
sudo pip3 install rospkg catkin_pkg rosdep rosinstall_generator rosinstall wstool vcstools catkin_tools
sudo pip3 install psutil click PyAutoGUI Pillow pandas transitions
sudo pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
sudo pip3 install -U rospkg
#### PACKAGES for the affect modeling ros
sudo pip3 install mxnet==1.9.1
sudo pip3 install gluoncv
### SET UP REPOS
echo -e "\n!!!!!!!!! SET UP REPOS\n"
mkdir -p ~/catkin_ws/src
git config --global user.name prg-family-jibo-study
git config --global user.email prg.triadic.final.study@gmail.com
git config --global user.password "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"
git config --global credential.helper store
git clone -b final-study-2022 https://github.com/mitmedialab/triadic-interaction-controller ~/catkin_ws/src/triadic-interaction-controller
git clone -b controller https://github.com/mitmedialab/parent-child-reading-story-corpus.git ~/catkin_ws/src/parent-child-reading-story-corpus
git clone https://github.com/mitmedialab/jibo_msgs ~/catkin_ws/src/jibo_msgs
git clone https://github.com/ybkim95/affect_modeling_ros.git ~/catkin_ws/src/affect_modeling_ros
git clone -b final-rm https://github.com/mitmedialab/triadic-modeling.git ~/catkin_ws/src/triadic-modeling
mkdir -p ~/catkin_ws/src/output_data/affect_log
mkdir -p ~/catkin_ws/src/output_data/annotation_log
mkdir -p ~/catkin_ws/src/output_data/session_info
mkdir -p ~/catkin_ws/src/output_data/tablet_log
mkdir -p ~/catkin_ws/src/output_data/interaction_log
mkdir -p ~/catkin_ws/src/output_data/jibo_speech_change
mkdir -p ~/catkin_ws/src/output_data/videos
## compile ros messages (e.g., jibo msgs, triadic msgs, audio msgs)
cd ~/catkin_ws/
sudo chown $USER: -R /home/prg/catkin_ws
catkin_make
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
pip3 install pyyaml transitions
# install sublime
<<<<<<< HEAD
# sudo apt install apt-transport-https ca-certificates curl software-properties-common
# curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
# sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
# sudo apt update
# sudo apt install sublime-text
echo "cd ~/catkin_ws/src/triadic-interaction-controller" >> ~/.bashrc
## SUBLIME
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
=======
echo -e "\n!!!!!!!!! install sublime \n"
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
sudo apt update
sudo apt install sublime-text
echo "cd ~/catkin_ws/src/triadic-interaction-controller" >> ~/.bashrc
>>>>>>> 1a4d82d2ec3230d142079ceef74aa9098cc486de