-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
33 lines (25 loc) · 1.24 KB
/
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
FROM ros:melodic-perception
SHELL [ "/bin/bash", "-c" ]
# install depending packages (install moveit! algorithms on the workspace side, since moveit-commander loads it from the workspace)
RUN apt-get update && \
apt-get install -y git ros-$ROS_DISTRO-moveit ros-$ROS_DISTRO-moveit-commander ros-$ROS_DISTRO-move-base-msgs ros-$ROS_DISTRO-ros-numpy ros-$ROS_DISTRO-geometry && \
apt-get clean
# install bio_ik
RUN source /opt/ros/$ROS_DISTRO/setup.bash && \
mkdir -p /bio_ik_ws/src && \
cd /bio_ik_ws/src && \
catkin_init_workspace && \
git clone --depth=1 https://github.com/TAMS-Group/bio_ik.git && \
cd .. && \
catkin_make install -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/ros/$ROS_DISTRO -DCATKIN_ENABLE_TESTING=0 && \
cd / && rm -r /bio_ik_ws
# create workspace folder
RUN mkdir -p /workspace/src
# copy our algorithm to workspace folder
ADD . /workspace/src
# install dependencies defined in package.xml
RUN cd /workspace && /ros_entrypoint.sh rosdep install --from-paths src --ignore-src -r -y
# compile and install our algorithm
RUN cd /workspace && /ros_entrypoint.sh catkin_make install -DCMAKE_INSTALL_PREFIX=/opt/ros/$ROS_DISTRO
# command to run the algorithm
CMD roslaunch wrs_challenge run.launch