Added working Docker setup
This commit is contained in:
commit
56d399348f
|
@ -0,0 +1,3 @@
|
||||||
|
data/
|
||||||
|
output/
|
||||||
|
.vscode/
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "livox_camera_calib"]
|
||||||
|
path = livox_camera_calib
|
||||||
|
url = ./livox_camera_calib/
|
|
@ -0,0 +1,27 @@
|
||||||
|
FROM ros:melodic-perception
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget libeigen3-dev ros-melodic-cv-bridge ros-melodic-pcl-conversions libgoogle-glog-dev libgflags-dev libatlas-base-dev libsuitesparse-dev libpcl-dev \
|
||||||
|
&& wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - \
|
||||||
|
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y cmake
|
||||||
|
|
||||||
|
# Install ceres
|
||||||
|
RUN git clone --depth 1 --branch 2.0.0 https://ceres-solver.googlesource.com/ceres-solver \
|
||||||
|
&& mkdir ceres-bin \
|
||||||
|
&& cd ceres-bin \
|
||||||
|
&& cmake ../ceres-solver \
|
||||||
|
&& make -j`nproc` \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
# install calibrator
|
||||||
|
RUN mv /usr/include/flann/ext/lz4.h /usr/include/flann/ext/lz4.h.bak \
|
||||||
|
&& mv /usr/include/flann/ext/lz4hc.h /usr/include/flann/ext/lz4.h.bak \
|
||||||
|
&& ln -s /usr/include/lz4.h /usr/include/flann/ext/lz4.h \
|
||||||
|
&& ln -s /usr/include/lz4hc.h /usr/include/flann/ext/lz4hc.h
|
||||||
|
|
||||||
|
WORKDIR /catkin_ws
|
||||||
|
ADD ./livox_camera_calib ./src/livox_camera_calib
|
||||||
|
RUN . /opt/ros/melodic/setup.sh \
|
||||||
|
&& catkin_make \
|
||||||
|
&& . /catkin_ws/devel/setup.sh
|
|
@ -0,0 +1,8 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
calibrator:
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./output:/output
|
||||||
|
command: /catkin_ws/devel/env.sh roslaunch livox_camera_calib calib.launch
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 499dac4d4ae1a5935bd24ca440d801a6a18a320d
|
Loading…
Reference in New Issue