forked from jr-robotics/robo-gym-robot-servers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
melodic.Dockerfile
59 lines (49 loc) · 2.28 KB
/
melodic.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM osrf/ros:melodic-desktop-full
ARG GIT_COMMIT=unknown
LABEL git-commit=$GIT_COMMIT
ARG CI_JOB_TOKEN
ENV DEBIAN_FRONTEND noninteractive
ENV ROS_DISTRO=melodic
ENV ROBOGYM_WS=/robogym_ws
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - && \
apt-get update && apt-get install -y \
apt-utils build-essential psmisc vim-gtk \
git swig sudo libcppunit-dev \
python-catkin-tools python-rosdep python-pip \
python-rospkg python-future
RUN source /opt/ros/$ROS_DISTRO/setup.bash &&\
mkdir -p $ROBOGYM_WS/src &&\
cd $ROBOGYM_WS/src &&\
git clone -b $ROS_DISTRO https://github.com/jr-robotics/mir_robot.git &&\
git clone -b $ROS_DISTRO https://github.com/jr-robotics/universal_robot.git &&\
# PANDA START
git clone -b v0.7.1-dev https://github.com/jr-robotics/franka_ros_interface &&\
git clone https://github.com/jr-robotics/franka_panda_description &&\
git clone -b ${ROS_DISTRO}-devel https://github.com/jr-robotics/panda_simulator &&\
git clone https://github.com/orocos/orocos_kinematics_dynamics &&\
cd orocos_kinematics_dynamics && git checkout b35c424e77ebc5b7e6f1c5e5c34f8a4666fbf5bc && cd .. &&\
# PANDA END
# git clone https://github.com/jr-robotics/Universal_Robots_ROS_Driver.git
# git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@robotics-git.joanneum.at/perception/scene_perception.git
cd $ROBOGYM_WS &&\
apt-get update &&\
rosdep install --from-paths src -i -y --rosdistro $ROS_DISTRO --as-root=apt:false &&\
catkin init &&\
catkin build --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebugInfo &&\
pip install --upgrade pip &&\
pip install robo-gym-server-modules scipy numpy future &&\
# Panda requirement
pip install --upgrade numpy numpy-quaternion==2020.5.11.13.33.35
ARG CACHEBUST=1
ADD . $ROBOGYM_WS/src/robo-gym-robot-servers
# Build ROS Workspace
RUN source /opt/ros/$ROS_DISTRO/setup.bash && \
source $ROBOGYM_WS/devel/setup.bash &&\
cd $ROBOGYM_WS && \
apt-get update && \
rosdep install --from-paths src -i -y --rosdistro $ROS_DISTRO --as-root=apt:false && \
catkin build --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebugInfo
COPY ./ros-entrypoint.sh /
ENTRYPOINT ["/ros-entrypoint.sh"]
CMD ["bash"]