Skip to content

Instantly share code, notes, and snippets.

@vfdev-5
Created July 18, 2018 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfdev-5/e88ef9bd5b13ccde45dee3754c63d2f1 to your computer and use it in GitHub Desktop.
Save vfdev-5/e88ef9bd5b13ccde45dee3754c63d2f1 to your computer and use it in GitHub Desktop.
Dockerfile with ROS Kinetic + UR5
FROM osrf/ros:kinetic-desktop-xenial
MAINTAINER vfdev-5
LABEL version="0.1"
LABEL description="ROS-kinetic and UR package"
# Update all
RUN apt-get update
# Setup en_US locale
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Multiscreen terminals
RUN apt-get install -y tmux
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Create default catkin workspace
RUN mkdir -p /home/catkin_ws/src && \
cd /home/catkin_ws && \
/bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && catkin_make"
# Clone and install UR package
# - clone elsewhere not in src in order to copy only what we need
RUN cd /home/ && \
git clone https://github.com/ros-industrial/universal_robot
RUN cd /home/catkin_ws/src && \
ln -s /home/universal_robot/ur_bringup ur_bringup && \
ln -s /home/universal_robot/ur5_moveit_config ur5_moveit_config && \
ln -s /home/universal_robot/ur_driver ur_driver && \
ln -s /home/universal_robot/ur_description ur_description && \
ln -s /home/universal_robot/ur_kinematics ur_kinematics && \
ln -s /home/universal_robot/ur_msgs ur_msgs
RUN cd /home/catkin_ws/ && \
apt-get update && \
rosdep install --from-paths src --ignore-src -r -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment