forked from pollen-robotics/reachy2_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (50 loc) · 1.53 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (50 loc) · 1.53 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
49
50
51
52
53
54
55
56
57
FROM pollenrobotics/reachy2:latest
# Switch to root for package installation
USER root
RUN apt-get update && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654 && \
apt-get update && \
apt-get install -y \
ros-humble-point-cloud-transport \
ros-humble-image-transport-plugins \
ros-humble-moveit* \
ros-humble-gazebo-ros-pkgs \
protobuf-compiler \
libprotobuf-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y \
git \
build-essential \
cmake \
libssl-dev \
libusb-1.0-0-dev \
pkg-config \
libgtk-3-dev \
libglfw3-dev \
libgl1-mesa-dev \
libglu1-mesa-dev && \
git clone https://github.com/IntelRealSense/librealsense.git /tmp/librealsense && \
cd /tmp/librealsense && \
git checkout v2.57.2 && \
mkdir build && cd build && \
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_EXAMPLES=false \
-DBUILD_GRAPHICAL_EXAMPLES=false \
-DFORCE_RSUSB_BACKEND=true \
-DBUILD_PYTHON_BINDINGS=false && \
make -j$(nproc) && \
make install && \
ldconfig && \
rm -rf /tmp/librealsense && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Switch to reachy user for all development work
USER reachy
WORKDIR /home/reachy/reachy_ws/src
# Clone and build as reachy user to avoid permission issues
RUN git clone https://github.com/pal-robotics/realsense_gazebo_plugin.git -b humble-devel
WORKDIR /home/reachy/reachy_ws
WORKDIR /home/reachy