Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. #
  2. # PX4 ROS development environment
  3. #
  4.  
  5. FROM px4io/px4-dev-simulation-bionic:2020-04-02
  6. LABEL maintainer="Nuno Marques <n.marques21@hotmail.com>"
  7.  
  8. ENV ROS_DISTRO melodic
  9.  
  10. RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 \
  11. && sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list' \
  12. && sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-shadow.list' \
  13. && apt-get update \
  14. && apt-get -y --quiet --no-install-recommends install \
  15. geographiclib-tools \
  16. libeigen3-dev \
  17. libgeographic-dev \
  18. libopencv-dev \
  19. libyaml-cpp-dev \
  20. python-pip \
  21. python-tk \
  22. ros-$ROS_DISTRO-gazebo-ros-pkgs \
  23. ros-$ROS_DISTRO-mav-msgs \
  24. ros-$ROS_DISTRO-mavlink \
  25. ros-$ROS_DISTRO-mavros \
  26. ros-$ROS_DISTRO-mavros-extras \
  27. ros-$ROS_DISTRO-octomap \
  28. ros-$ROS_DISTRO-octomap-msgs \
  29. ros-$ROS_DISTRO-pcl-conversions \
  30. ros-$ROS_DISTRO-pcl-msgs \
  31. ros-$ROS_DISTRO-pcl-ros \
  32. ros-$ROS_DISTRO-ros-base \
  33. ros-$ROS_DISTRO-rostest \
  34. ros-$ROS_DISTRO-rosunit \
  35. ros-$ROS_DISTRO-xacro \
  36. xvfb \
  37. && geographiclib-get-geoids egm96-5 \
  38. && apt-get -y autoremove \
  39. && apt-get clean autoclean \
  40. && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
  41.  
  42. # Install everything again for Python 2 because we could not get Firmware
  43. # to compile using catkin without it.
  44. RUN pip install wheel setuptools
  45. RUN pip install argcomplete argparse catkin_pkg catkin-tools cerberus coverage \
  46. empy jinja2 matplotlib==2.2.* numpy pkgconfig px4tools pygments pymavlink \
  47. packaging pyros-genmsg pyulog pyyaml requests rosdep rospkg serial six toml
  48.  
  49.  
  50. RUN rosdep init && rosdep update
  51.  
  52.  
  53.  
  54. RUN apt-get update
  55. RUN apt-get install -y mesa-utils
  56.  
  57. # install nvidia driver
  58. RUN apt-get install -y binutils
  59. RUN apt-get install -y module-init-tools
  60. ADD NVIDIA-DRIVER.run /tmp/NVIDIA-DRIVER.run
  61. RUN sh /tmp/NVIDIA-DRIVER.run -a -N --ui=none --no-kernel-module
  62. RUN rm /tmp/NVIDIA-DRIVER.run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement