From 7e76921c5ef1c49db13be0f6e23c90aefe207406 Mon Sep 17 00:00:00 2001 From: chyoo Date: Wed, 23 Sep 2026 14:50:08 +0900 Subject: [PATCH] fix(camera): expose Jetson VI capture devices to container --- run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index d76cf71..8639fba 100755 --- a/run.sh +++ b/run.sh @@ -15,7 +15,14 @@ done test -f "$MODULE_PATH/install/setup.bash" || { echo 'Module is not built' >&2; exit 1; } docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true -exec docker run --rm -d --device "$DEVICE:$DEVICE" --network host --ipc=host \ +device_args=(--device "$DEVICE:$DEVICE") +# Jetson VI capture opens additional channel devices from the container. +for capture_device in /dev/capture-vi-channel*; do + if [ -c "$capture_device" ]; then + device_args+=(--device "$capture_device:$capture_device") + fi +done +exec docker run --rm -d "${device_args[@]}" --network host --ipc=host \ --name "$CONTAINER_NAME" \ -e "ROS_DOMAIN_ID=${ROS_DOMAIN_ID:-77}" \ -e "ROS_LOCALHOST_ONLY=${ROS_LOCALHOST_ONLY:-0}" \