forked from tiiuae/fog_sw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_dependencies.sh
executable file
·107 lines (97 loc) · 2.53 KB
/
update_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
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
#!/bin/bash
set -euxo pipefail
sudo sh -c 'echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted" >> /etc/apt/sources.list'
echo "Update Ubuntu repository"
sudo apt update
echo "Install or refresh dependencies"
sudo apt install -y \
curl \
wget \
build-essential \
dh-make debhelper \
fakeroot \
git-core \
golang-1.16-go \
libasio-dev \
openjdk-11-jdk-headless \
openssh-client \
python3-bloom \
python3-colcon-common-extensions \
python3-pip \
python3-future \
python3-genmsg \
ros-foxy-ros-base \
libgstreamer1.0-0 \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
libgstreamer-plugins-good1.0-dev \
nlohmann-json3-dev \
ros-foxy-geodesy \
zlib1g-dev \
libusb-1.0-0-dev \
freeglut3-dev \
liblapacke-dev \
libopenblas-dev \
libatlas-base-dev \
gazebo11 \
libgazebo11-dev \
cmake \
libboost-all-dev \
libeigen3-dev \
libgstreamer-plugins-base1.0-dev \
libopencv-dev \
libopencv-imgproc-dev \
openjdk-11-jdk-headless \
python3 \
python3-empy \
python3-jinja2 \
python3-pip \
python3-setuptools \
python3-toml \
python3-yaml \
python3-packaging \
python3-numpy \
python3-genmsg \
dh-python \
batctl \
alfred \
ros-foxy-octomap \
ros-foxy-octomap-msgs \
ros-foxy-laser-geometry \
ros-foxy-pcl-conversions \
ros-foxy-pcl-msgs \
ros-foxy-dynamic-edt-3d \
ros-foxy-gazebo-ros \
kernel-package \
libncurses-dev \
gawk \
flex \
bison \
openssl \
libssl-dev \
libelf-dev \
libudev-dev \
libpci-dev \
libiberty-dev \
autoconf \
linux-headers-generic \
dh-exec \
libdbus-1-dev \
libpcsclite-dev \
libnl-genl-3-dev \
libreadline-dev \
docbook-to-man
pip3 install --user pyros-genmsg
curl -LO https://artifactory.ssrc.fi:443/artifactory/debian-release-local/mavsdk_0.42.0_ubuntu20.04_amd64.deb
sudo dpkg -i mavsdk_0.42.0_ubuntu20.04_amd64.deb
echo "--- Generating /etc/ros/rosdep/sources.list.d/50-fogsw.list (as su)"
sudo sh -c 'mkdir -p /etc/ros/rosdep/sources.list.d'
sudo sh -c 'echo "yaml file://${PWD}/rosdep.yaml" > /etc/ros/rosdep/sources.list.d/50-fogsw.list'
if [ ! -e /etc/ros/rosdep/sources.list.d/20-default.list ]; then
echo "--- Initialize rosdep"
sudo rosdep init
fi
echo "--- Updating rosdep"
rosdep update
exit 0