Dockerfile 1.0 KB

123456789101112131415161718192021222324252627282930
  1. FROM ros:kinetic
  2. RUN apt-get update && apt-get install --no-install-recommends -y \
  3. && apt-get install --no-install-recommends -y \
  4. wget nano build-essential libomp-dev clang lld-6.0 \
  5. ros-kinetic-geodesy ros-kinetic-pcl-ros ros-kinetic-nmea-msgs \
  6. ros-kinetic-rviz ros-kinetic-tf-conversions ros-kinetic-libg2o \
  7. && apt-get clean \
  8. && rm -rf /var/lib/apt/lists/*
  9. RUN update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-6.0 50
  10. RUN mkdir -p /root/catkin_ws/src
  11. WORKDIR /root/catkin_ws/src
  12. RUN /bin/bash -c '. /opt/ros/kinetic/setup.bash; catkin_init_workspace'
  13. RUN git clone https://github.com/koide3/ndt_omp.git
  14. RUN git clone https://github.com/SMRT-AIST/fast_gicp.git --recursive
  15. COPY . /root/catkin_ws/src/hdl_graph_slam/
  16. WORKDIR /root/catkin_ws
  17. RUN /bin/bash -c '. /opt/ros/kinetic/setup.bash; CC=clang CXX=clang++ catkin_make'
  18. RUN sed -i "6i source \"/root/catkin_ws/devel/setup.bash\"" /ros_entrypoint.sh
  19. RUN apt-get clean && rm -rf /var/lib/apt/lists/*
  20. WORKDIR /
  21. ENTRYPOINT ["/ros_entrypoint.sh"]
  22. CMD ["bash"]