Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # PX4 ROS development environment
- #
- FROM px4io/px4-dev-simulation-bionic:2020-04-02
- LABEL maintainer="Nuno Marques <n.marques21@hotmail.com>"
- ENV ROS_DISTRO melodic
- RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 \
- && sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list' \
- && sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-shadow.list' \
- && apt-get update \
- && apt-get -y --quiet --no-install-recommends install \
- geographiclib-tools \
- libeigen3-dev \
- libgeographic-dev \
- libopencv-dev \
- libyaml-cpp-dev \
- python-pip \
- python-tk \
- ros-$ROS_DISTRO-gazebo-ros-pkgs \
- ros-$ROS_DISTRO-mav-msgs \
- ros-$ROS_DISTRO-mavlink \
- ros-$ROS_DISTRO-mavros \
- ros-$ROS_DISTRO-mavros-extras \
- ros-$ROS_DISTRO-octomap \
- ros-$ROS_DISTRO-octomap-msgs \
- ros-$ROS_DISTRO-pcl-conversions \
- ros-$ROS_DISTRO-pcl-msgs \
- ros-$ROS_DISTRO-pcl-ros \
- ros-$ROS_DISTRO-ros-base \
- ros-$ROS_DISTRO-rostest \
- ros-$ROS_DISTRO-rosunit \
- ros-$ROS_DISTRO-xacro \
- xvfb \
- && geographiclib-get-geoids egm96-5 \
- && apt-get -y autoremove \
- && apt-get clean autoclean \
- && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
- # Install everything again for Python 2 because we could not get Firmware
- # to compile using catkin without it.
- RUN pip install wheel setuptools
- RUN pip install argcomplete argparse catkin_pkg catkin-tools cerberus coverage \
- empy jinja2 matplotlib==2.2.* numpy pkgconfig px4tools pygments pymavlink \
- packaging pyros-genmsg pyulog pyyaml requests rosdep rospkg serial six toml
- RUN rosdep init && rosdep update
- RUN apt-get update
- RUN apt-get install -y mesa-utils
- # install nvidia driver
- RUN apt-get install -y binutils
- RUN apt-get install -y module-init-tools
- ADD NVIDIA-DRIVER.run /tmp/NVIDIA-DRIVER.run
- RUN sh /tmp/NVIDIA-DRIVER.run -a -N --ui=none --no-kernel-module
- RUN rm /tmp/NVIDIA-DRIVER.run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement