2020-06-09 21:15:54 -04:00
|
|
|
# Image: introlab3it/rtabmap:focal
|
|
|
|
|
|
|
|
|
|
FROM ros:noetic-perception
|
|
|
|
|
|
|
|
|
|
# Install build dependencies
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y git software-properties-common ros-noetic-rtabmap-ros && \
|
|
|
|
|
apt-get remove -y ros-noetic-rtabmap && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/
|
|
|
|
|
|
|
|
|
|
WORKDIR /root/
|
|
|
|
|
|
|
|
|
|
# GTSAM
|
2021-05-02 11:59:36 -04:00
|
|
|
RUN add-apt-repository ppa:borglab/gtsam-release-4.0 -y
|
|
|
|
|
RUN apt install libgtsam-dev libgtsam-unstable-dev -y
|
2020-06-09 21:15:54 -04:00
|
|
|
|
|
|
|
|
# libpointmatcher
|
|
|
|
|
RUN git clone https://github.com/ethz-asl/libnabo.git
|
|
|
|
|
#commit Apr 25 2018
|
|
|
|
|
RUN cd libnabo && \
|
|
|
|
|
git checkout 7e378f6765393462357b8b74d8dc8c5554542ae6 && \
|
|
|
|
|
mkdir build && \
|
|
|
|
|
cd build && \
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
|
|
|
|
make -j$(nproc) && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd && \
|
|
|
|
|
rm -r libnabo
|
|
|
|
|
RUN git clone https://github.com/ethz-asl/libpointmatcher.git
|
|
|
|
|
#commit Jan 19 2018
|
|
|
|
|
RUN cd libpointmatcher && \
|
|
|
|
|
git checkout 00004bd41e44a1cf8de24ad87e4914760717cbcc && \
|
|
|
|
|
mkdir build && \
|
|
|
|
|
cd build && \
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
|
|
|
|
make -j$(nproc) && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd && \
|
|
|
|
|
rm -r libpointmatcher
|
|
|
|
|
|
|
|
|
|
# Clone source code
|
|
|
|
|
ARG CACHE_DATE=2016-01-01
|
|
|
|
|
RUN git clone https://github.com/introlab/rtabmap.git
|
|
|
|
|
|
|
|
|
|
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
|
|
|
|
|
|
|
|
|
# Build RTAB-Map project
|
|
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
cd rtabmap/build && \
|
|
|
|
|
cmake .. && \
|
|
|
|
|
make && \
|
|
|
|
|
make install && \
|
|
|
|
|
cd ../.. && \
|
|
|
|
|
rm -rf rtabmap && \
|
|
|
|
|
ldconfig
|
|
|
|
|
|