-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
33 lines (27 loc) · 979 Bytes
/
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
FROM ros:noetic-perception
# Install build dependencies
RUN apt-get clean && \
apt-get update && \
apt-get install -y gdb wget git ros-noetic-imu-tools ros-noetic-imu-pipeline ros-noetic-tf-conversions software-properties-common python3-catkin-tools libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev libfmt-dev python3-pip && \
rm -rf /var/lib/apt/lists/
RUN pip3 install matplotlib scipy
RUN wget ceres-solver.org/ceres-solver-2.1.0.tar.gz
RUN tar zxf ceres-solver-2.1.0.tar.gz
RUN mkdir ceres-bin
WORKDIR /ceres-bin
RUN cmake ../ceres-solver-2.1.0
RUN make -j8
RUN make install
WORKDIR /
RUN wget https://github.com/strasdat/Sophus/archive/refs/tags/1.22.10.tar.gz
RUN tar xzf 1.22.10.tar.gz
WORKDIR /Sophus-1.22.10/
RUN mkdir build
WORKDIR /Sophus-1.22.10/build
RUN cmake .. -DUSE_BASIC_LOGGING=ON
RUN make -j4
RUN make install
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
USER root
WORKDIR /root
RUN source /ros_entrypoint.sh