This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.73 KB
/
Dockerfile
File metadata and controls
48 lines (38 loc) · 1.73 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
43
44
45
46
47
48
FROM osrf/ros:humble-desktop-full-jammy
ARG DEBIAN_FRONTEND=noninteractive
SHELL [ "/bin/bash", "-c" ]
# use a closer mirror in dallas, texas
RUN cp /etc/apt/sources.list /etc/apt/sources.list.original && \
sed -i -r 's,http://(.*).ubuntu.com,http://mirror.us-tx.kamatera.com,' /etc/apt/sources.list
# install basic dependnecies
RUN apt-get update && \
apt-get -y --no-install-recommends install \
mesa-utils \
mesa-utils-extra \
python3-pip \
python-is-python3 \
software-properties-common \
wget
# downgrade setuptools to get rid of deprecated message and install python dependencies
RUN pip install setuptools==58.2.0 torch torchvision ultralytics
# install velodyne dependencies
RUN apt-get update && \
apt-get -y --no-install-recommends install \
ros-humble-velodyne
# See https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages
RUN apt-get update -y && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE && \
add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u
# install librealsense w/realsense ros2 wrapper
RUN apt-get update && \
apt-get -y --no-install-recommends install \
librealsense2-dbg \
librealsense2-dev \
librealsense2-dkms \
librealsense2-utils \
ros-humble-realsense2-*
# create workspace folder and make it the starting folder
RUN mkdir -p /root/colcon_workspace && \
echo "cd /root/colcon_workspace" >> /root/.bashrc
# source ROS setup.bash
RUN echo "source /opt/ros/humble/setup.bash" >> /root/.bashrc