Closed gmacario closed 1 year ago
I forgot to mention that I am running Raspberry Pi OS Lite 64-bit (bullseye) with no X server running at the moment. I wonder whether this is a supported configuration and if not how could I use the OAK-D-Lite in Docker anyway.
@gmacario I'd follow https://docs.docker.com/engine/install/ubuntu/ to update docker and then https://docs.docker.com/engine/install/linux-postinstall/ to make sure permissions are set correctly
@gmacario I'd follow https://docs.docker.com/engine/install/ubuntu/ to update docker and then https://docs.docker.com/engine/install/linux-postinstall/ to make sure permissions are set correctly
Thank you @themarpe for your suggestions.
I made further investigations and tested a different script which does not require a graphical subsystem to run: SystemLogger/system_information.py (source code):
In this case the container runs without problems.
Code:
sudo docker run --rm \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
--device-cgroup-rule='c 189:* rmw' \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
luxonis/depthai-library:latest \
python3 /depthai-python/examples/SystemLogger/system_information.py
Result:
gmacario@rpi4gm35:~ $ sudo docker run --rm \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
--device-cgroup-rule='c 189:* rmw' \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
luxonis/depthai-library:latest \
python3 /depthai-python/examples/SystemLogger/system_information.py
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.31 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.00, css: 37.71, mss: 34.88, upa: 35.35, dss: 36.06
Cpu usage - Leon CSS: 25.81%, Leon MSS: 1.82 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 35.53, css: 36.30, mss: 35.35, upa: 35.11, dss: 35.35
Cpu usage - Leon CSS: 1.56%, Leon MSS: 3.88 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 35.65, css: 36.06, mss: 34.88, upa: 36.30, dss: 35.35
Cpu usage - Leon CSS: 0.28%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.18, css: 37.01, mss: 36.06, upa: 36.53, dss: 35.11
Cpu usage - Leon CSS: 0.33%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.30, css: 37.01, mss: 35.83, upa: 36.77, dss: 35.59
Cpu usage - Leon CSS: 0.28%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.36, css: 36.77, mss: 37.01, upa: 35.83, dss: 35.83
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.12, css: 36.77, mss: 36.06, upa: 35.83, dss: 35.83
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.53, css: 37.01, mss: 36.06, upa: 36.30, dss: 36.77
Cpu usage - Leon CSS: 0.22%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.47, css: 37.71, mss: 36.53, upa: 36.06, dss: 35.59
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.24, css: 37.01, mss: 35.59, upa: 37.01, dss: 35.35
Cpu usage - Leon CSS: 0.38%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.00, css: 36.06, mss: 36.06, upa: 36.06, dss: 35.83
Cpu usage - Leon CSS: 0.38%, Leon MSS: 0.09 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.30, css: 36.53, mss: 36.30, upa: 36.30, dss: 36.06
Cpu usage - Leon CSS: 0.27%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.71, css: 37.48, mss: 36.30, upa: 36.77, dss: 36.30
Cpu usage - Leon CSS: 0.25%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.83, css: 37.24, mss: 36.53, upa: 36.77, dss: 36.77
Cpu usage - Leon CSS: 0.21%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.36, css: 37.24, mss: 36.06, upa: 36.06, dss: 36.06
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.77, css: 37.48, mss: 36.30, upa: 36.77, dss: 36.53
Cpu usage - Leon CSS: 0.22%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.71, css: 37.71, mss: 36.06, upa: 36.77, dss: 36.30
Cpu usage - Leon CSS: 0.18%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.59, css: 37.24, mss: 36.30, upa: 36.53, dss: 36.30
Cpu usage - Leon CSS: 0.27%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.41, css: 37.71, mss: 35.83, upa: 35.83, dss: 36.30
Cpu usage - Leon CSS: 0.37%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.89, css: 37.48, mss: 37.48, upa: 36.77, dss: 35.83
Cpu usage - Leon CSS: 0.38%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.89, css: 37.71, mss: 37.01, upa: 36.77, dss: 36.06
Cpu usage - Leon CSS: 0.23%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.89, css: 37.48, mss: 36.53, upa: 37.01, dss: 36.53
Cpu usage - Leon CSS: 0.22%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.65, css: 37.24, mss: 36.53, upa: 36.53, dss: 36.30
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.77, css: 37.48, mss: 36.06, upa: 37.01, dss: 36.53
Cpu usage - Leon CSS: 0.17%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.77, css: 37.71, mss: 36.77, upa: 36.77, dss: 35.83
^CCpu usage - Leon CSS: 0.22%, Leon MSS: 0.08 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.83, css: 37.48, mss: 36.77, upa: 36.53, dss: 36.53
Cpu usage - Leon CSS: 0.27%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.83, css: 37.24, mss: 36.53, upa: 37.01, dss: 36.53
Cpu usage - Leon CSS: 0.32%, Leon MSS: 0.07 %
----------------------------------------
Ddr used / total - 0.13 / 337.18 MiB
Cmx used / total - 2.07 / 2.50 MiB
LeonCss heap used / total - 8.56 / 80.03 MiB
LeonMss heap used / total - 2.93 / 41.06 MiB
Chip temperature - average: 36.77, css: 37.24, mss: 36.06, upa: 37.01, dss: 36.77
Cpu usage - Leon CSS: 0.38%, Leon MSS: 0.08 %
----------------------------------------
Traceback (most recent call last):
File "/depthai-python/examples/SystemLogger/system_information.py", line 39, in <module>
sysInfo = qSysInfo.get() # Blocking call, will wait until a new data has arrived
KeyboardInterrupt
gmacario@rpi4gm35:~ $
This makes me feel that the suspicion I had in https://github.com/luxonis/depthai-python/issues/891#issuecomment-1715051101 is confirmed.
The error which I mentioned in https://github.com/luxonis/depthai-python/issues/891#issue-1891741271 might be raised because the script attempts to initialize the graphic subsystem, but in my case the Docker host is running ubuntu-server and no X server is running.
Unfortunately the error returned by docker run
was a little bit vague therefore I did not associate it to the dependency on X.
Closing issue, sorry for the noise.
Hello and many thanks for this wonderful piece of software!
I followed the instructions at https://docs.luxonis.com/projects/api/en/latest/install/#docker and tried to run the Docker image
luxonis/depthai-library
on a Raspberry Pi 4B connected to a OAK-D Lite (Kickstarter Edition) but I am facing some issues.I am afraid I missed some details. Thank you in advance for any suggestions!
Testing luxonis/depthai-library on rpi4gm35
Required materials
03e72485
Step-by-step instructions
(2023-09-12 07:30 CEST)
Result:
Logged in as
gmacario@rpi4gm35
Result:
Now connect the OAK-D Lite to an empty USB-3.0 port of the Raspberry Pi using a PureLink Premium USB v3.2 USB-C / USB-A Cable – 1.00m, Black
Now testing the command documented in https://docs.luxonis.com/projects/api/en/latest/install/#docker
Pull the image from Docker Hub:
Result:
Now run the container:
Result: