File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 44- ROS2 Humble
55 - ros-humble-generate-parameter-library
66- OpenCV 4.x
7- - OpenVINO 2021 .*
8- - TensorRT 8 .x *
7+ - OpenVINO 2024 .*
8+ - TensorRT 10 .x *
99- ONNXRuntime *
1010- Tensorflow Lite *
11- - ** CUDA 11 **
11+ - ** CUDA 12 **
1212
1313※ Either one of OpenVINO or TensorRT or ONNXRuntime or Tensorflow Lite is required.
1414
1818
1919※ Tensorflow Lite support float model and does not support integer model.
2020
21- ※ Model convert script is not supported OpenVINO 2022.*
22-
23- ※ Don't use CUDA 12
24-
25-
2621## Clone YOLOX-ROS
2722``` bash
2823cd ~ /ros2_ws/src
@@ -45,7 +40,7 @@ cd ~/ros2_ws
4540
4641# Download onnx model and convert to TensorRT engine.
4742# 1st arg is model name. 2nd is workspace size.
48- ./src/YOLOX-ROS/weights/tensorrt/convert.bash yolox_tiny 16
43+ ./src/YOLOX-ROS/weights/tensorrt/convert.bash yolox_tiny
4944```
5045
5146#### Tensorflow Lite
Original file line number Diff line number Diff line change 1- FROM openvino/ubuntu22_dev:2023.0.1
1+ FROM ubuntu:22.04
22
3+ ENV TZ=Asia/Tokyo
4+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
35ENV DEBIAN_FRONTEND=noninteractive
46
57USER root
68
7- # Install ROS2
89RUN apt update && apt install locales && \
910 locale-gen en_US en_US.UTF-8 && \
1011 update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
@@ -13,12 +14,21 @@ RUN apt update && apt install locales && \
1314ENV LANG=en_US.UTF-8
1415
1516RUN apt update && \
16- apt install -y git wget curl gnupg2 lsb-release && \
17- curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
17+ apt install -y git wget curl gnupg2 lsb-release
18+
19+ # ROS
20+ RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
1821 echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null && \
19- sed -i -e 's/ubuntu .* main/ubuntu jammy main/g' /etc/apt/sources.list.d/ros2.list && \
20- apt update && \
21- apt install -y ros-dev-tools \
22+ sed -i -e 's/ubuntu .* main/ubuntu jammy main/g' /etc/apt/sources.list.d/ros2.list
23+ # INTEL OPENVINO
24+ RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
25+ apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
26+ echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu22 main" | tee /etc/apt/sources.list.d/intel-openvino-2024.list
27+
28+ # install ros and openvino
29+ RUN apt update && \
30+ apt install -y openvino-2024.2.0 \
31+ ros-dev-tools \
2232 ros-humble-cv-bridge \
2333 ros-humble-generate-parameter-library \
2434 ros-humble-parameter-traits \
You can’t perform that action at this time.
0 commit comments