Files
rtabmap/docker/xenial/Dockerfile

65 lines
1.7 KiB
Docker
Raw Permalink Normal View History

2017-03-22 21:48:01 -04:00
# Image: introlab3it/rtabmap:xenial
FROM ros:kinetic-perception
2017-03-16 16:24:25 -04:00
# Install/build dependencies
RUN apt-get update && \
apt-get install -y ros-kinetic-rtabmap-ros && \
apt-get remove -y ros-kinetic-rtabmap && \
rm -rf /var/lib/apt/lists/
2017-03-16 16:24:25 -04:00
WORKDIR /root/
# GTSAM
RUN git clone https://bitbucket.org/gtborg/gtsam.git
RUN cd gtsam && \
git checkout 4.0.0-alpha2 && \
mkdir build && \
cd build && \
cmake -DMETIS_SHARED=ON -DGTSAM_BUILD_STATIC_LIBRARY=OFF -DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_BUILD_TESTS=OFF -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DCMAKE_BUILD_TYPE=Release .. && \
2018-05-02 16:19:15 -04:00
make -j$(nproc) && \
make install && \
cd && \
rm -r gtsam
# 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 .. && \
2018-05-02 16:19:15 -04:00
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 .. && \
2018-05-02 16:19:15 -04:00
make -j$(nproc) && \
make install && \
cd && \
rm -r libpointmatcher
2017-03-16 16:24:25 -04:00
# Clone source code
ARG CACHE_DATE=2016-01-01
2017-03-16 16:24:25 -04:00
RUN git clone https://github.com/introlab/rtabmap.git
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
2017-03-16 16:24:25 -04:00
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
cd rtabmap/build && \
2017-03-16 16:24:25 -04:00
cmake .. && \
make && \
2017-03-17 21:03:14 -04:00
make install && \
cd ../.. && \
rm -rf rtabmap && \
ldconfig