-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathros_packages_install.sh
executable file
·101 lines (89 loc) · 3.84 KB
/
ros_packages_install.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
#!/usr/bin/env bash
# Plinio Moreno @ Vislab
ROS_VERSION=melodic
printf "\n [Vizzy]: Did you execute: source ~/.bashrc in your terminal?\n"
read -p "[Vizzy]: What is your ROS VERSION? Default: $ROS_VERSION " NEW_ROS_VERSION
if [ ! -z "$NEW_ROS_VERSION" ]; then
ROS_VERSION=$NEW_ROS_VERSION
echo "[Vizzy]: I'm going to install ROS packages of $ROS_VERSION"
fi
source $HOME/.bashrc
sudo apt-get install -y ros-$ROS_VERSION-smach
sudo apt-get install -y ros-$ROS_VERSION-pcl-ros
sudo apt-get install -y ros-$ROS_VERSION-nav2d
sudo apt-get install -y ros-$ROS_VERSION-tf2-geometry-msgs
sudo apt-get install -y ros-$ROS_VERSION-gazebo-*
sudo apt-get install -y ros-$ROS_VERSION-image-proc
sudo apt-get install -y ros-$ROS_VERSION-moveit-*
sudo apt-get install -y ros-$ROS_VERSION-opencv*
sudo apt-get install -y ros-$ROS_VERSION-image-proc
sudo apt-get install -y ros-$ROS_VERSION-gazebo-ros-control
sudo apt-get install -y ros-$ROS_VERSION-move-base
sudo apt-get install -y ros-$ROS_VERSION-amcl
sudo apt-get install -y ros-$ROS_VERSION-joy
sudo apt-get install -y ros-$ROS_VERSION-map-server
sudo apt-get install -y ros-$ROS_VERSION-joint-state-controller
sudo apt-get install -y ros-$ROS_VERSION-velocity-controllers
sudo apt-get install -y ros-$ROS_VERSION-position-controllers
sudo apt-get install -y ros-$ROS_VERSION-joint-trajectory-controller
sudo apt-get install -y ros-$ROS_VERSION-teb-local-planner
sudo apt-get install -y ros-$ROS_VERSION-laser-filters
sudo apt-get install -y libsuitesparse-dev
sudo apt-get install -y ros-$ROS_VERSION-fake-localization
sudo apt-get install -y ros-$ROS_VERSION-move-slow-and-clear
sudo apt-get install -y ros-$ROS_VERSION-move-base-flex
sudo apt-get install -y ros-$ROS_VERSION-global-planner
sudo apt-get install -y ros-$ROS_VERSION-realsense2-description
sudo apt-get install -y git
sudo apt-get install -y build-essential
sudo apt-get install -y wget
if [ $ROS_VERSION = "kinetic" ];then
sudo apt-get remove -y ros-$ROS_VERSION-gazebo-*
sudo apt-get remove -y ros-$ROS_VERSION-gazebo-ros-control
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt update
sudo apt install -y ros-$ROS_VERSION-gazebo9*
sudo apt install -y ros-$ROS_VERSION-gazebo9-ros-control
sudo cp ./ppf_registration.h /usr/include/pcl-1.7/pcl/registration
fi
CATKIN_WS=$HOME/catkin_ws
read -p "[Vizzy]: Type your catkin workspace folder, Default: $CATKIN_WS " NEW_CATKIN_WS
if [ ! -z "$NEW_CATKIN_WS" ]; then
CATKIN_WS=$NEW_CATKIN_WS
echo "[Vizzy]: I'm going to download my repository at $CATKIN_WS/src"
fi
cd "$CATKIN_WS/src"
git clone https://github.com/vislab-tecnico-lisboa/vizzy.git
cd vizzy
if [ $ROS_VERSION = "melodic" ]; then
git checkout melodic-devel
fi
echo "export GAZEBO_MODEL_PATH=$CATKIN_WS/src/vizzy/vizzy_gazebo:\$GAZEBO_MODEL_PATH" >> $HOME/.bashrc
echo "source $CATKIN_WS/devel/setup.bash" >> $HOME/.bashrc
source $HOME/.bashrc
cd $CATKIN_WS
if [ $ROS_VERSION = "kinetic" ];then
catkin_make --pkg vizzy_msgs
catkin_make --pkg id_selector
fi
catkin_make
# install Groot requirements
sudo apt-get install -y qtbase5-dev libqt5svg5-dev libzmq3-dev libdw-dev
# install behavior tree packages
cd "$CATKIN_WS/src"
git clone https://github.com/vislab-tecnico-lisboa/vizzy_tactile_drivers.git
cd $CATKIN_WS
catkin_make
cd "$CATKIN_WS/src"
git clone https://github.com/vislab-tecnico-lisboa/vizzy_speech.git
git clone https://github.com/vislab-tecnico-lisboa/vizzy_behavior_trees.git
git clone https://github.com/joao-avelino/vizzy_playground.git
git clone https://github.com/joao-avelino/Groot.git
cd Groot
git submodule update --init --recursive
cd ..
git clone https://github.com/joao-avelino/BehaviorTree.CPP.git
cd $CATKIN_WS
catkin_make
source $CATKIN_WS/devel/setup.bash