2020-06-09 21:15:54 -04:00
|
|
|
# Image: introlab3it/rtabmap:focal
|
|
|
|
|
|
2023-06-19 15:17:02 -07:00
|
|
|
FROM introlab3it/rtabmap:focal-deps
|
2020-06-09 21:15:54 -04:00
|
|
|
|
2023-06-19 15:17:02 -07:00
|
|
|
# June 19 2023: moved opengv here so that focal-deps can be built on my computer. Not sure why but on my machine opengv arm64 fails, but not on CI.
|
2022-07-20 15:20:14 -04:00
|
|
|
#commit Aug 6 2020
|
2023-02-04 17:41:07 -08:00
|
|
|
RUN apt-get update && apt install wget && apt-get clean && rm -rf /var/lib/apt/lists/
|
2022-07-20 22:39:41 -04:00
|
|
|
RUN git clone https://github.com/laurentkneip/opengv.git && \
|
|
|
|
|
cd opengv && \
|
2022-07-20 15:20:14 -04:00
|
|
|
git checkout 91f4b19c73450833a40e463ad3648aae80b3a7f3 && \
|
|
|
|
|
wget https://gist.githubusercontent.com/matlabbe/a412cf7c4627253874f81a00745a7fbb/raw/accc3acf465d1ffd0304a46b17741f62d4d354ef/opengv_disable_march_native.patch && \
|
|
|
|
|
git apply opengv_disable_march_native.patch && \
|
|
|
|
|
mkdir build && \
|
|
|
|
|
cd build && \
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
2025-06-01 18:36:36 -07:00
|
|
|
make -j4 && \
|
2022-07-20 15:20:14 -04:00
|
|
|
make install && \
|
|
|
|
|
cd && \
|
|
|
|
|
rm -r opengv
|
2021-05-12 10:38:37 -04:00
|
|
|
|
2023-05-07 18:41:44 -07:00
|
|
|
# Will be used to read/store databases on host
|
2023-06-19 15:17:02 -07:00
|
|
|
RUN mkdir -p /root/Documents/RTAB-Map && chmod 777 /root/Documents/RTAB-Map
|
2021-10-16 18:14:24 -04:00
|
|
|
|
2022-05-28 16:11:52 -04:00
|
|
|
# Copy current source code
|
|
|
|
|
COPY . /root/rtabmap
|
2020-06-09 21:15:54 -04:00
|
|
|
|
|
|
|
|
# Build RTAB-Map project
|
|
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
cd rtabmap/build && \
|
2022-07-20 15:20:14 -04:00
|
|
|
cmake -DWITH_ALICE_VISION=ON -DWITH_OPENGV=ON .. && \
|
2025-06-01 18:36:36 -07:00
|
|
|
make -j4 && \
|
2020-06-09 21:15:54 -04:00
|
|
|
make install && \
|
|
|
|
|
cd ../.. && \
|
|
|
|
|
rm -rf rtabmap && \
|
|
|
|
|
ldconfig
|