anchor.diff:      apt-get install -y --no-install-recommends apt-utils
       
   RUN apt-get install -y \
  +#    default-jdk \
       git \
       python-catkin-tools \
       ros-kinetic-desktop-full \
  
positive.code: MAINTAINER Takaki Ueno
  
  # Change environment related to ROS
  ENV ROS_PACKAGE_PATH=/root/catkin_ws/src:/opt/ros/kinetic/share \
      ROS_ETC_DIR=/opt/ros/kinetic/etc/ros \
      ROS_ROOT=/opt/ros/kinetic/share/ros \
      ROS_MASTER_URI=http://localhost:11311 \
      ROS_DISTRO=kinetic \
      ROSLISP_PACKAGE_DIRECTORIES=/root/catkin_ws/devel_isolated/share/common-lisp
  
  # Set an argument to avoid debconf error,
  # but this does not seem to work.
  
negative.code: RUN /bin/bash -c ". /opt/ros/kinetic/setup.bash && \
      yes | source ubuntu_sim_ros_gazebo.sh"
  
  # Install gazebo7 from osrf
  # See https://goo.gl/BqzTNk for detail
  WORKDIR /root
  RUN sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
  RUN wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
  RUN apt-get update && \
      apt-get install -y gazebo7
  
  RUN echo "source /root/catkin_ws/devel_isolated/setup.bash" >> /root/.bashrc
  RUN echo "source /root/src/Firmware/Tools/setup_gazebo.bash /root/src/Firmware /root/src/Firmware/build_posix_sitl_default > /dev/null" >> /root/.bashrc
  
  # Clone px4_simulation_stack
  WORKDIR /root/catkin_ws/src
  RUN git clone https://github.com/uenota/px4_simulation_stack.git
  
  # Build catkin workspace
  WORKDIR /root/catkin_ws
  RUN /bin/bash -c ". /opt/ros/kinetic/setup.bash && \
      rm -rf devel build && \
      catkin_make_isolated"
  