1 Star 0 Fork 0

覆盖路径规划研究/Fields2Cover

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
Mier Munoz, Gonzalo 提交于 2023-11-14 23:06 . Version F2C 1.2.0 -> 1.2.1
FROM osgeo/gdal:ubuntu-full-3.6.2
LABEL NAME="fields2cover" \
VERSION="1.2.1" \
DESC="Fields2Cover is a complete coverage path planning package for autonomous robots" \
MAINTAINER="Gonzalo Mier"
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /usr/include/new_gdal && \
cp -r /usr/include/gdal* /usr/include/new_gdal/ && \
cp /usr/include/ogr* /usr/include/new_gdal/ && \
cp /usr/include/cpl* /usr/include/new_gdal/ && \
mv /usr/include/new_gdal/ /usr/include/gdal/
RUN apt-get update --allow-insecure-repositories -y && \
apt-get install -y --allow-unauthenticated --no-install-recommends ca-certificates
RUN if gdalinfo --version | grep -o " 3\.[0-2]\."; then \
apt-get install wget && \
wget https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& mkdir /usr/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \
&& rm /tmp/cmake-install.sh; \
else \
apt install -y --allow-unauthenticated --no-install-recommends cmake ; \
fi
ENV PATH="/usr/bin/cmake/bin:${PATH}"
RUN apt-get install -y --allow-unauthenticated --no-install-recommends \
build-essential \
ca-certificates \
doxygen \
g++ \
git \
lcov \
libboost-dev \
libgeos-dev \
libgtest-dev \
libtbb-dev \
libeigen3-dev \
libpython3-dev \
python3 \
python3-pip \
python3-matplotlib \
python3-pytest \
python3-tk \
ranger \
vim
# && \
# apt-get autoclean && \
# apt-get autoremove && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install gcovr setuptools
RUN python3 -c "import matplotlib" && \
echo "backend: Agg" > ~/.config/matplotlib/matplotlibrc
RUN apt-get install -y libgtest-dev \
&& cd /usr/src/gtest \
&& cmake CMakeLists.txt \
&& make \
&& (cp *.a /usr/lib/ 2>\dev\null || :) \
&& (cp lib/*.a /usr/lib/ 2>\dev\null || :)
RUN if gdalinfo --version | grep -o " 3\.[0-2]\."; then \
apt-get install -y --no-install-recommends --allow-unauthenticated autoconf automake autotools-dev libpcre2-dev bison \
&& git clone https://github.com/swig/swig.git \
&& cd swig \
&& ./autogen.sh \
&& ./configure \
&& make -j8 \
&& make install; \
else \
apt-get install -y --no-install-recommends --allow-unauthenticated swig; \
fi
COPY . /workspace/fields2cover
RUN rm -rf /workspace/fields2cover/build && mkdir /workspace/fields2cover/build
WORKDIR /workspace/fields2cover/build
RUN cmake -DBUILD_PYTHON=ON \
-DBUILD_TUTORIALS=OFF \
-DBUILD_TESTS=ON \
-DBUILD_DOC=OFF \
-DCMAKE_BUILD_TYPE=Debug ..
RUN make -j8
RUN export LANG=en_US.UTF-8 && \
export LC_ALL=C.UTF-8 && \
make install
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coverage-path-planning/Fields2Cover.git
git@gitee.com:coverage-path-planning/Fields2Cover.git
coverage-path-planning
Fields2Cover
Fields2Cover
main

搜索帮助