-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_obot_build_deps.sh
executable file
·51 lines (41 loc) · 1.27 KB
/
install_obot_build_deps.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
#!/bin/bash
set -eo pipefail
# if command -v mkvirtualenv; then
# echo "installing virtualenvwrapper"
# sudo apt-get install virtualenvwrapper
# echo "adding virtualenvwrapper.sh to .bashrc"
# echo ". /usr/share/virtualenvwrapper/virtualenvwrapper.sh" >> ~/.bashrc
# . ~/.bashrc
# fi
# . /usr/share/virtualenvwrapper/virtualenvwrapper.sh
# echo "yay"
# #mkvirtualenv obot
# echo "yay"
# source_line="workon obot"
# if grep "$source_line" ~/.bashrc; then
# read -r -p "Would you like add 'workon obot' to your ~/.bashrc [y/N] " response
# if [[ "$response" =~ ^([yY])$ ]]
# then
# echo $source_line >> ~/.bashrc
# fi
# fi
# rosdistro=`ls /opt/ros`
# if [ $rosdistro == 'noetic' ]; then
# set -eo pipefail
# python3=3
# fi
# echo $rosdistro
# cd $(dirname $0)/..
# sudo apt install -y python$python3-rosdep libudev-dev libyaml-cpp-dev libeigen3-dev
# . /opt/ros/$rosdistro/setup.bash
# cd catkin-ws
# if [ $rosdistro == 'melodic' ]; then
# sudo rosdep init
# rosdep update
# sudo rosdep install --from-paths src --ignore-src -r -y --rosdistro melodic
# exit 0
# else
# sudo rosdep init || true
# rosdep update
# rosdep install --from-paths src --ignore-src -r -y # --os=ubuntu:focal --rosdistro melodic
# fi