Dockerfile 909 B

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