forked from changh95/MultiCol-SLAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
70 lines (62 loc) · 2.1 KB
/
Dockerfile
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
FROM ubuntu:jammy
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get clean && apt-get update -y && apt-get upgrade -y
RUN apt-get install build-essential -y && \
apt-get install cmake -y && \
apt-get install git -y && \
apt-get install sudo -y && \
apt-get install wget -y && \
apt-get install ninja-build -y && \
apt-get install software-properties-common -y && \
apt-get install python3 -y && \
apt-get install python3-pip -y && \
apt-get install -y ssh && \
apt-get install -y gcc && \
apt-get install -y g++ && \
apt-get install -y gdb && \
apt-get install -y cmake && \
apt-get install -y rsync && \
apt-get install -y tar && \
apt-get install -y x11-utils && \
apt-get install -y x11-apps && \
apt-get install -y zip &&\
apt-get install -y libboost-all-dev libssl-dev &&\
apt-get clean
# OpenCV
RUN apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
RUN wget https://github.com/opencv/opencv/archive/refs/tags/3.4.16.zip &&\
unzip 3.4.16.zip &&\
cd opencv-3.4.16 &&\
mkdir build && cd build &&\
cmake .. &&\
make -j &&\
make install &&\
cd ../../
# Pangolin
RUN apt-get install -y mesa-utils && \
apt-get install -y libgl1-mesa-glx && \
apt-get install -y libglu1-mesa-dev && \
apt-get install -y libglew-dev &&\
apt-get install -y libglvnd-dev &&\
apt-get install -y libgl1-mesa-dev &&\
apt-get install -y libegl1-mesa-dev &&\
apt-get install -y mesa-common-dev
RUN apt-get install -y libeigen3-dev
RUN wget https://github.com/stevenlovegrove/Pangolin/archive/refs/tags/v0.6.zip &&\
unzip v0.6.zip &&\
cd Pangolin-0.6 &&\
mkdir build && cd build &&\
cmake -DCMAKE_CXX_STANDARD=11 .. &&\
make -j &&\
make install &&\
cd ../../
# Multi-Col SLAM
WORKDIR /
RUN git clone https://github.com/changh95/MultiCol-SLAM.git &&\
cd MultiCol-SLAM
WORKDIR /MultiCol-SLAM
RUN sh ./build.sh
# Download Lafida dataset
WORKDIR /
RUN wget http://www2.ipf.kit.edu/~pcv2016/downloads/indoor_dynamic.zip &&\
unzip indoor_dynamic.zip