Skip to content

Commit 4077491

Browse files
authored
using uv and updating debian build (#2448)
1 parent c6b5cce commit 4077491

26 files changed

+486
-315
lines changed

robotics-ai-suite/components/multicam-demo/config/config_isx031_4cameras.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[
66
{
77
"name": "yolov8n-seg",
8-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/multicam-demo/models/yolov8/FP16/yolov8n-seg.xml",
8+
"model": "./models/yolov8/FP16/yolov8n-seg.xml",
99
"device": "GPU",
1010
"data_type": "FP16",
1111
"source": "/dev/video-isx031-a-0",
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"name": "yolov8n-seg",
18-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/multicam-demo/models/yolov8/FP16/yolov8n-seg.xml",
18+
"model": "./models/yolov8/FP16/yolov8n-seg.xml",
1919
"device": "CPU",
2020
"data_type": "FP16",
2121
"source": "/dev/video-isx031-b-0",
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"name": "yolov8n",
28-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/multicam-demo/models/yolov8/FP16/yolov8n.xml",
28+
"model": "./models/yolov8/FP16/yolov8n.xml",
2929
"device": "GPU",
3030
"data_type": "FP16",
3131
"source": "/dev/video-isx031-c-0",
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"name": "yolov8n",
38-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/multicam-demo/models/yolov8/FP16/yolov8n.xml",
38+
"model": "./models/yolov8/FP16/yolov8n.xml",
3939
"device": "GPU",
4040
"data_type": "FP16",
4141
"source": "/dev/video-isx031-d-0",

robotics-ai-suite/components/multicam-demo/config/config_ros2_v4l2_rs-color-0_1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[
66
{
77
"name": "yolov8n-seg",
8-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n-seg.xml",
8+
"model": "models/yolov8/FP16/yolov8n-seg.xml",
99
"device": "GPU",
1010
"data_type": "FP16",
1111
"source": "/dev/video-rs-color-0",
1212
"adapter": "yolov8"
1313
},
1414
{
1515
"name": "yolov8n",
16-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n.xml",
16+
"model": "models/yolov8/FP16/yolov8n.xml",
1717
"device": "GPU",
1818
"data_type": "FP16",
1919
"source": "/dev/video-rs-color-1",

robotics-ai-suite/components/multicam-demo/config/config_ros2_v4l2_rs-color-0_2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
[
66
{
77
"name": "yolov8n-seg",
8-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n-seg.xml",
8+
"model": "models/yolov8/FP16/yolov8n-seg.xml",
99
"device": "GPU",
1010
"data_type": "FP16",
1111
"source": "/dev/video-rs-color-0",
1212
"adapter": "yolov8"
1313
},
1414
{
1515
"name": "yolov8n",
16-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n.xml",
16+
"model": "models/yolov8/FP16/yolov8n.xml",
1717
"device": "GPU",
1818
"data_type": "FP16",
1919
"source": "/dev/video-rs-color-1",
2020
"adapter": "yolov8"
2121
},
2222
{
2323
"name": "yolov8n",
24-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n.xml",
24+
"model": "models/yolov8/FP16/yolov8n.xml",
2525
"device": "GPU",
2626
"data_type": "FP16",
2727
"source": "/dev/video-rs-color-2",

robotics-ai-suite/components/multicam-demo/config/config_ros2_v4l2_rs-color-0_3.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@
55
[
66
{
77
"name": "yolov8n-seg",
8-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n-seg.xml",
8+
"model": "models/yolov8/FP16/yolov8n-seg.xml",
99
"device": "GPU",
1010
"data_type": "FP16",
1111
"source": "/dev/video-rs-color-0",
1212
"adapter": "yolov8"
1313
},
1414
{
1515
"name": "yolov8n-seg",
16-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n-seg.xml",
16+
"model": "models/yolov8/FP16/yolov8n-seg.xml",
1717
"device": "CPU",
1818
"data_type": "FP16",
1919
"source": "/dev/video-rs-color-1",
2020
"adapter": "yolov8"
2121
},
2222
{
2323
"name": "yolov8n",
24-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n.xml",
24+
"model": "models/yolov8/FP16/yolov8n.xml",
2525
"device": "GPU",
2626
"data_type": "FP16",
2727
"source": "/dev/video-rs-color-2",
2828
"adapter": "yolov8"
2929
},
3030
{
3131
"name": "yolov8n-seg",
32-
"model": "/opt/ros/humble/share/pyrealsense2-ai-demo/models/yolov8/FP16/yolov8n-seg.xml",
32+
"model": "models/yolov8/FP16/yolov8n-seg.xml",
3333
"device": "GPU",
3434
"data_type": "FP16",
3535
"source": "/dev/video-rs-color-3",

robotics-ai-suite/components/multicam-demo/humble/debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ros-humble-pyrealsense2-ai-demo (2.4-1) UNRELEASED; urgency=low
2+
3+
* add isx camera support and fix dependencies
4+
5+
-- ECI Maintainer <eci.maintainer@intel.com> Thu, 27 Mar 2026 00:00:00 +0000
6+
17
ros-humble-pyrealsense2-ai-demo (2.3-1) UNRELEASED; urgency=low
28

39
* Refactoring of the code and general optimizations

robotics-ai-suite/components/multicam-demo/humble/debian/control

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Build-Depends: cmake, debhelper (>=11~),
1111
libpython3.10-dev,
1212
python3-dev,
1313
cython3,
14-
python3-numpy,
1514
Standards-Version: 4.1.4
1615

1716
Package: ros-humble-pyrealsense2-ai-demo
@@ -20,11 +19,6 @@ Multi-Arch: foreign
2019
Depends: ${misc:Depends}, ${shlibs:Depends},
2120
${python3:Depends},
2221
ros-humble-librealsense2 (>= 2.55.0),
23-
python3-virtualenv,
24-
python3-onnx,
25-
python3-psutil,
26-
python3-screeninfo,
27-
python3-opencv,
2822
openvino (>= 2023.2.0),
2923
intel-oneapi-runtime-compilers-2024,
3024
intel-oneapi-runtime-dpcpp-cpp-2024,
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
#!/bin/sh
2-
# postinst script for eci-grub customization
2+
# postinst script
33
#
44
# see: dh_installdeb(1)
55

66
set -e
77

88
case "$1" in
99
configure)
10-
[ -d /opt/ros/humble/share/pyrealsense2-ai-demo/models ] && rm -rf /opt/ros/humble/share/pyrealsense2-ai-demo/models
11-
if [ -d /opt/ros/humble/share/pyrealsense2-ai-demo/venv ] && [ -f /opt/ros/humble/share/pyrealsense2-ai-demo/scripts/generate_ai_models.sh ]; then
12-
# shellcheck disable=SC1091
13-
. /opt/ros/humble/share/pyrealsense2-ai-demo/venv/bin/activate
14-
cd /opt/ros/humble/share/pyrealsense2-ai-demo && ./scripts/generate_ai_models.sh
15-
deactivate
16-
fi
10+
chmod o+w -R /opt/ros/humble/share/pyrealsense2-ai-demo/
1711
;;
1812

1913
abort-upgrade|abort-remove|abort-deconfigure)
@@ -25,9 +19,4 @@ case "$1" in
2519
;;
2620
esac
2721

28-
# dh_installdeb will replace this with shell code automatically
29-
# generated by other debhelper scripts.
30-
31-
#DEBHELPER#
32-
3322
exit 0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
config/*.js /opt/ros/humble/share/pyrealsense2-ai-demo/config
22
scripts/generate_ai_models.sh /opt/ros/humble/share/pyrealsense2-ai-demo/scripts
33
src/mo.py /opt/ros/humble/share/pyrealsense2-ai-demo/src
4+
src/pyrealsense2_ai_demo_launcher.py /opt/ros/humble/share/pyrealsense2-ai-demo/src
5+
src/setup.py /opt/ros/humble/share/pyrealsense2-ai-demo/src
6+
pyproject.toml /opt/ros/humble/share/pyrealsense2-ai-demo
7+
src/yolov8_model.pyx /opt/ros/humble/share/pyrealsense2-ai-demo/src
8+
requirements.txt /opt/ros/humble/share/pyrealsense2-ai-demo
9+
src/pyrealsense2_ai_demo/* /opt/ros/humble/share/pyrealsense2-ai-demo/src/pyrealsense2_ai_demo

robotics-ai-suite/components/multicam-demo/humble/debian/rules

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,15 @@ endif
2020

2121
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
2222

23-
# Python package installation variables
24-
export PYBUILD_INSTALL_ARGS=--prefix "/opt/ros/humble" \
25-
--install-lib "\$$base/lib/{interpreter}/site-packages" \
26-
--install-scripts "\$$base/bin"
27-
2823
%:
29-
dh $@ -v --buildsystem=pybuild --with python3 --builddirectory=.obj-$(DEB_HOST_GNU_TYPE) --sourcedirectory=./src
24+
dh $@ -v --buildsystem=none --builddirectory=.obj-$(DEB_HOST_GNU_TYPE)
3025

3126
override_dh_auto_configure:
32-
# In case we're installing to a non-standard location, look for a setup.sh
33-
# in the install tree and source it. It will set things like
34-
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
35-
if [ -f "/opt/ros/$(ROS_DISTRO)/setup.sh" ]; then . "/opt/ros/$(ROS_DISTRO)/setup.sh"; fi && \
36-
dh_auto_configure
27+
# No build system; Python package installation is handled by the user.
3728

3829
override_dh_auto_build:
39-
# In case we're installing to a non-standard location, look for a setup.sh
40-
# in the install tree and source it. It will set things like
41-
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
42-
if [ -f "/opt/ros/$(ROS_DISTRO)/setup.sh" ]; then . "/opt/ros/$(ROS_DISTRO)/setup.sh"; fi && \
43-
dh_auto_build
44-
45-
override_dh_auto_test:
46-
# In case we're installing to a non-standard location, look for a setup.sh
47-
# in the install tree and source it. It will set things like
48-
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
49-
if [ -f "/opt/ros/$(ROS_DISTRO)/setup.sh" ]; then . "/opt/ros/$(ROS_DISTRO)/setup.sh"; fi
50-
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
51-
echo -- Running tests.
52-
dh_auto_test
53-
else
54-
echo -- Skipping tests due to DEB_BUILD_OPTIONS=nocheck
55-
endif
30+
# No build system; Python package installation is handled by the user.
5631

57-
override_dh_shlibdeps:
58-
# In case we're installing to a non-standard location, look for a setup.sh
59-
# in the install tree and source it. It will set things like
60-
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
61-
if [ -f "/opt/ros/$(ROS_DISTRO)/setup.sh" ]; then . "/opt/ros/$(ROS_DISTRO)/setup.sh"; fi && \
62-
dh_shlibdeps -l$(CURDIR)/debian/ros-humble-pyrealsense2-ai-demo/opt/ros/$(ROS_DISTRO)/lib/
6332

6433
override_dh_auto_install:
65-
# In case we're installing to a non-standard location, look for a setup.sh
66-
# in the install tree and source it. It will set things like
67-
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
68-
if [ -f "/opt/ros/$(ROS_DISTRO)/setup.sh" ]; then . "/opt/ros/$(ROS_DISTRO)/setup.sh"; fi && \
69-
dh_auto_install
34+
# No build system; files are installed via debian/ros-humble-pyrealsense2-ai-demo.install.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
ros-jazzy-pyrealsense2-ai-demo (2.4-1) UNRELEASED; urgency=low
2+
3+
* add isx camera support and fix dependencies
4+
5+
-- ECI Maintainer <eci.maintainer@intel.com> Thu, 27 Mar 2026 00:00:00 +0000
6+
17
ros-jazzy-pyrealsense2-ai-demo (2.3-1) UNRELEASED; urgency=low
28

39
* Refactoring of the code and general optimizations
410

5-
-- ECI Maintainer <eci.maintainer@intel.com> Thu, 04 Nov 2025 00:00:00 +0000
11+
-- ECI Maintainer <eci.maintainer@intel.com> Thu, 04 Nov 2025 00:00:00 +0000

0 commit comments

Comments
 (0)