mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
docker: jammy humble dep fix
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||
RUN echo "I am building for $TARGETPLATFORM"
|
||||
|
||||
# Install ROS2
|
||||
RUN apt update && \
|
||||
apt install software-properties-common -y && \
|
||||
@@ -25,6 +29,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then apt-get update && \
|
||||
apt-get install -y ros-humble-rtabmap-ros && \
|
||||
apt-get remove -y ros-humble-rtabmap* && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/; fi
|
||||
|
||||
# current issue that ros-humble-rtabmap-ros is not available on arm64
|
||||
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then apt-get update && \
|
||||
apt upgrade -y && \
|
||||
apt-get install -y ros-humble-rtabmap-launch && \
|
||||
@@ -41,10 +47,6 @@ RUN apt-get update && apt-get install -y libpdal-dev && \
|
||||
RUN apt-get update && apt-get install -y ros-humble-librealsense2 && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||
RUN echo "I am building for $TARGETPLATFORM"
|
||||
|
||||
# libfreenect2
|
||||
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then echo "Installing libfreenect2..." && \
|
||||
apt-get update && apt-get install -y mesa-utils xserver-xorg-video-all libusb-1.0-0-dev libturbojpeg0-dev libglfw3-dev && \
|
||||
|
||||
Reference in New Issue
Block a user