-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathDockerfile
58 lines (48 loc) · 1.59 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
FROM amd64/ros:noetic-perception-focal
ARG DEBIAN_FRONTEND=noninteractive
ARG ROS_DISTRO=noetic
#
# install ORBSLAM3 ROS package
#
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
git \
build-essential \
cmake \
libeigen3-dev \
ros-${ROS_DISTRO}-hector-trajectory-server \
python3-catkin-tools \
libopencv-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
WORKDIR /root
RUN git clone https://github.com/stevenlovegrove/Pangolin.git && \
cd Pangolin && \
mkdir build && cd build && \
cmake .. && \
make -j && \
make install
RUN mkdir -p catkin_ws/src && \
cd catkin_ws/src && \
git clone https://github.com/thien94/orb_slam3_ros.git && \
cd .. && \
catkin config \
--extend /opt/ros/noetic && \
catkin build
RUN echo "source /root/catkin_ws/devel/setup.bash" >> /root/.bashrc
#
# install RealSenseSDK / RealSense ROS wrapper
#
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
RUN add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -sc) main"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev \
libudev-dev \
libusb-1.0-0-dev \
librealsense2-dev \
librealsense2-utils \
ros-${ROS_DISTRO}-realsense2-camera && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean