-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 1.27 KB
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
ARG ROS_DISTRO
FROM ros:${ROS_DISTRO}
ENV COLCON_WS=/root/colcon_ws
ENV COLCON_WS_SRC=/root/colcon_ws/src
ENV DEBIAN_FRONTEND noninteractive
# Note that this is not needed with ROS 2 jazzy anymore
ENV PYTHONWARNINGS="ignore:setup.py install is deprecated::setuptools.command.install"
# install all dependencies
RUN apt-get update \
&& apt-get install -y \
udev \
wget \
unzip \
ros-${ROS_DISTRO}-kobuki-ros-interfaces \
ros-${ROS_DISTRO}-kobuki-velocity-smoother \
ros-${ROS_DISTRO}-ecl* \
ros-${ROS_DISTRO}-ros2test \
ros-${ROS_DISTRO}-ros-testing \
ros-${ROS_DISTRO}-angles \
ros-${ROS_DISTRO}-diagnostic-updater \
ros-${ROS_DISTRO}-xacro \
ros-${ROS_DISTRO}-joint-state-publisher \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR ${COLCON_WS}
ARG ARCH
ARG UBUNTU
RUN mkdir /tmp/debs/ \
&& cd /tmp/debs/ \
&& wget https://github.com/helloric/docker-kobuki-compile/releases/download/ros-${ROS_DISTRO}-kobuki-ros-1.0.0-0/ros-${ROS_DISTRO}-kobuki-ros-1.0.0-0${UBUNTU}_${ARCH}.zip \
&& unzip ros-${ROS_DISTRO}-kobuki-ros-1.0.0-0${UBUNTU}_${ARCH}.zip \
&& dpkg -i *.deb \
&& rm -Rf /tmp/debs/
CMD [ "ros2", "launch", "kobuki_node", "kobuki_node-launch.py" ]