-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (25 loc) · 1.49 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
FROM ros:noetic-ros-core
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential wget \
libgoogle-glog-dev libgflags-dev libatlas-base-dev \
ros-${ROS_DISTRO}-cv-bridge ros-${ROS_DISTRO}-tf ros-${ROS_DISTRO}-message-filters ros-${ROS_DISTRO}-image-transport* \
ros-${ROS_DISTRO}-eigen-conversions ros-${ROS_DISTRO}-rviz ros-${ROS_DISTRO}-pcl-ros \
&& rm -rf /var/lib/apt/lists/*
COPY ceres-solver ceres-solver
WORKDIR /ceres-solver/ceres-bin
RUN cmake .. && make -j4 && make test && make install
WORKDIR /catkin_ws/src
COPY A-LOAM A-LOAM
WORKDIR /catkin_ws
RUN . /opt/ros/${ROS_DISTRO}/setup.sh && catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release
WORKDIR /
COPY resources/ros_entrypoint.sh .
# Download test bag
ARG GDRIVE_BAGFILE_ID="1s05tBQOLNEDDurlg48KiUWxCp-YqYyGH"
ARG GDRIVE_BAGFILE_NAME="nsh_indoor_outdoor.bag"
ENV GDRIVE_BAGFILE_NAME=${GDRIVE_BAGFILE_NAME}
RUN wget -q --load-cookies /tmp/cookies.txt \
"https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=$GDRIVE_BAGFILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=$GDRIVE_BAGFILE_ID" -O $GDRIVE_BAGFILE_NAME && rm -rf /tmp/cookies.txt
WORKDIR /catkin_ws
RUN echo 'alias build="catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release"' >> ~/.bashrc
RUN echo 'alias run="roslaunch aloam_velodyne docker_aloam_velodyne_VLP_16.launch"' >> ~/.bashrc