forked from carla-simulator/ros-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_dependencies.sh
executable file
·38 lines (34 loc) · 1.01 KB
/
install_dependencies.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
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PYTHON_SUFFIX="3"
# for map server
if [ "$ROS_VERSION" = "2" ]; then
ADDITIONAL_PACKAGES="ros-$ROS_DISTRO-navigation2
ros-$ROS_DISTRO-nav2-bringup"
else
ADDITIONAL_PACKAGES="ros-$ROS_DISTRO-map-server
ros-$ROS_DISTRO-ros-numpy"
fi
echo ADDITIONAL PACKAGES $ADDITIONAL_PACKAGES
sudo apt update
sudo apt-get install --no-install-recommends -y \
python3-pip \
python3-rosinstall \
python3-osrf-pycommon \
python3-catkin-tools \
python3-catkin-pkg \
python3-catkin-pkg-modules \
python3-rosdep \
python3-wstool \
python3-opencv \
ros-$ROS_DISTRO-derived-object-msgs \
ros-$ROS_DISTRO-rosbridge-suite \
ros-$ROS_DISTRO-cv-bridge \
python3-tk \
wget \
qt5-default \
build-essential \
python-is-python3 \
$ADDITIONAL_PACKAGES
python3 -m pip install --upgrade pip
python$PYTHON_SUFFIX -m pip install -r $SCRIPT_DIR/requirements.txt