Skip to content

Instantly share code, notes, and snippets.

@neale
Created June 13, 2018 01:22
Show Gist options
  • Save neale/49ba52d9238dcc82e3ef8b5a873791ca to your computer and use it in GitHub Desktop.
Save neale/49ba52d9238dcc82e3ef8b5a873791ca to your computer and use it in GitHub Desktop.
hdl_graph_slam indigo dockerfile
FROM ros:indigo
RUN apt-get update
RUN apt-get install -y
RUN apt-get install -y wget nano build-essential vim curl
RUN apt-get install -y ros-indigo-geodesy ros-indigo-pcl-ros ros-indigo-nmea-msgs
RUN apt-get install build-essential
RUN wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
RUN tar xf cmake-3.2.2.tar.gz
WORKDIR cmake-3.2.2
RUN ./configure
RUN make
RUN make install
WORKDIR /root
RUN git clone https://github.com/koide3/g2o.git
WORKDIR /root/g2o
RUN git checkout hdl_graph_slam
WORKDIR /root/g2o/build
RUN mkdir build
RUN cmake --version
RUN cmake .. -DCMAKE_BUILD_TYPE=RELEASE
RUN make -j$(grep -c ^processor /proc/cpuinfo)
RUN make install
RUN mkdir -p /root/catkin_ws/src
WORKDIR /root/catkin_ws/src
RUN /bin/bash -c '. /opt/ros/indigo/setup.bash; catkin_init_workspace'
RUN git clone https://github.com/koide3/ndt_omp.git
RUN git clone https://github.com/koide3/hdl_graph_slam.git
RUN apt-get install -y python-pip
RUN apt-get install -y ros-indigo-rviz
RUN apt-get install -y ros-indigo-tf-conversions
WORKDIR /root/catkin_ws
RUN /bin/bash -c '. /opt/ros/indigo/setup.bash; catkin_make'
RUN sed -i "6i source \"/root/catkin_ws/devel/setup.bash\"" /ros_entrypoint.sh
WORKDIR /
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment