Skip to content

Commit

Permalink
Updated the docker file for ros2 humble and it can support OpenVINO 2…
Browse files Browse the repository at this point in the history
…023.3 LTS

Signed-off-by: Sathiyamoorthi, Jayabalaji <[email protected]>
  • Loading branch information
jb-balaji committed Feb 28, 2025
1 parent ee7f716 commit a322a51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 143 deletions.
137 changes: 0 additions & 137 deletions docker/ros2_2021.4/ros2_humble/docker_instructions.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

from osrf/ros:humble-desktop

# Set non-interactive mode for APT
ENV DEBIAN_FRONTEND=noninteractive

# setting proxy env --option
# If needed, enable the below ENV setting by correct proxies.
# ENV http_proxy=your_proxy
Expand All @@ -12,17 +15,21 @@ LABEL maintainer="Jayabalaji Sathiyamoorthi <[email protected]

SHELL ["/bin/bash", "-c"]

# install OpenVINO 2025.0.0
# install OpenVINO 2025.0.0 / 2023.3 LTS
#https://docs.openvino.ai/2025/get-started/install-openvino.html?PACKAGE=OPENVINO_BASE&VERSION=v_2025_0_0&OP_SYSTEM=LINUX&DISTRIBUTION=APT
RUN apt update \
&& apt install curl wget gnupg2 lsb-release
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
&& apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
RUN echo "deb https://apt.repos.intel.com/openvino/2025 ubuntu22 main" | tee /etc/apt/sources.list.d/intel-openvino-2025.list
#RUN echo "deb https://apt.repos.intel.com/openvino/2025 ubuntu22 main" | tee /etc/apt/sources.list.d/intel-openvino-2025.list
RUN echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu22 main" | tee /etc/apt/sources.list.d/intel-openvino-2024.list
#RUN echo "deb https://apt.repos.intel.com/openvino/2023 ubuntu22 main" | tee /etc/apt/sources.list.d/intel-openvino-2023.list

RUN apt update \
&& apt-cache search openvino \
&& apt-get install -y openvino-2025.0.0
# && apt-get install -y openvino-2025.0.0
&& apt-get install -y openvino-2024.2.0
# && apt-get install -y openvino-2023.3.0

# workaround to fetch librealsense2-dkms via ECI repo
RUN bash -c 'echo "deb [trusted=yes] http://wheeljack.ch.intel.com/apt-repos/ECI/$(lsb_release -sc) isar main" > /etc/apt/sources.list.d/eci.list'
Expand All @@ -45,7 +52,7 @@ RUN curl -sSf https://librealsense.intel.com/Debian/librealsense.pgp | tee /etc/
RUN echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.intel.com/Debian/apt-repo `lsb_release -cs` main" | \
tee /etc/apt/sources.list.d/librealsense.list
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
RUN apt-get install -y --no-install-recommends \
# librealsense2-dkms \ # Houston, this is not available in kernel 6.8
librealsense2-utils \
librealsense2-dev \
Expand All @@ -61,5 +68,5 @@ RUN git clone -b ros2 https://github.com/jb-balaji/ros2_openvino_toolkit.git
RUN git clone -b humble https://github.com/ros-perception/vision_opencv.git
WORKDIR /root/ros2_ws
RUN source /opt/ros/humble/setup.bash \
#&& source /opt/intel/openvino_2025/bin/setupvars.sh \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release

1 change: 1 addition & 0 deletions docker/ros2_ov202x/ros2_humble/docker_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To Do
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <random>
#include <iostream>

//#include <inference_engine.hpp>
#include <inference_engine.hpp>
#include <openvino/openvino.hpp>

#ifndef UNUSED
Expand Down

0 comments on commit a322a51

Please sign in to comment.