You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: seeed_jetson_develop/modules/apps/data/jetson_examples.json
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -162,16 +162,20 @@
162
162
"bash -lc 'set -e; echo [2/2] start demo container with reComputer; export PATH=$HOME/.local/bin:$PATH; reComputer run depth-anything-v3'"
163
163
],
164
164
"run_cmds": [
165
-
"bash -lc 'set -e; echo [1/5] display auth precheck; DISP=${DISPLAY:-}; if [ -z\"$DISP\" ]; then if [ -S /tmp/.X11-unix/X1 ]; then DISP=:1; else DISP=:0; fi; fi; echo \"[info] use DISPLAY=$DISP\"; if test -f $HOME/.Xauthority; then echo \"[ok] ~/.Xauthority found\"; else echo \"[warn] ~/.Xauthority not found; RViz may fail in GUI mode\"; fi'",
165
+
"bash -lc 'set -e; echo [1/5] display auth precheck; XAUTH_SRC=/run/user/1000/gdm/Xauthority; if [ -f\"$XAUTH_SRC\" ]; then xauth -f $HOME/.Xauthority merge \"$XAUTH_SRC\" 2>/dev/null && echo \"[ok] merged gdm Xauthority into ~/.Xauthority\"; DISPLAY=:0 XAUTHORITY=\"$XAUTH_SRC\" xhost +local: 2>/dev/null && echo \"[ok] xhost +local: done\" || echo \"[warn] xhost +local: failed (non-fatal)\"; else echo \"[warn] gdm Xauthority not found, RViz may fail\"; fi; echo \"[info] DISPLAY will be forced to :0\"'",
"bash -lc 'set -e; echo \"[3/5] start tutorial container + run GUI preview in background xauth mode\"; DISP=${DISPLAY:-}; if [ -z \"$DISP\" ]; then if [ -S /tmp/.X11-unix/X1 ]; then DISP=:1; else DISP=:0; fi; fi; echo \"[info] start container with DISPLAY=$DISP\"; sudo docker rm -f depth_anything_v3 >/dev/null 2>&1 || true; sudo docker run -d --name depth_anything_v3 --restart unless-stopped --runtime=nvidia --network host --ipc host --privileged -e DISPLAY=$DISP -e XAUTHORITY=/home/seeed/.Xauthority -e QT_X11_NO_MITSHM=1 -e LIBGL_ALWAYS_SOFTWARE=1 -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/seeed/.Xauthority:/home/seeed/.Xauthority:ro -v /dev:/dev chenduola6/depth_anything_v3:jp6.2 bash -lc \"set -e; cd /workspace/ros2-depth-anything-v3-trt; source install/setup.bash; if ls onnx/*.engine >/dev/null 2>&1; then echo '[skip] engine already exists'; else echo '[info] first run will build TensorRT engine; this can take several minutes'; ros2 run depth_anything_v3 generate_engines onnx; fi; exec ./run_camera_depth.sh\"; sudo docker ps -a --filter name=depth_anything_v3'",
167
+
"bash -lc 'set -e; echo \"[3/5] start tutorial container + run GUI preview in background xauth mode\"; DISP=:0; XAUTH_SRC=/run/user/1000/gdm/Xauthority; [ -f \"$XAUTH_SRC\" ] || XAUTH_SRC=$HOME/.Xauthority; echo \"[info] start container with DISPLAY=$DISP XAUTHORITY=$XAUTH_SRC\"; sudo docker rm -f depth_anything_v3 >/dev/null 2>&1 || true; sudo docker run -d --name depth_anything_v3 --restart unless-stopped --runtime=nvidia --network host --ipc host --privileged -e DISPLAY=$DISP -e XAUTHORITY=/tmp/.docker.xauth -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -v \"$XAUTH_SRC\":/tmp/.docker.xauth:ro -v /dev:/dev chenduola6/depth_anything_v3:jp6.2 bash -lc \"set -e; export DISPLAY=:0; export XAUTHORITY=/tmp/.docker.xauth; cd /workspace/ros2-depth-anything-v3-trt; source install/setup.bash; if ls onnx/*.engine >/dev/null 2>&1; then echo \\\"[skip] engine already exists\\\"; else echo \\\"[info] first run will build TensorRT engine; this can take several minutes\\\"; ros2 run depth_anything_v3 generate_engines onnx; fi; exec ./run_camera_depth.sh\"; sudo docker ps -a --filter name=depth_anything_v3'",
168
168
"bash -lc 'echo \"[4/5] show depth_anything_v3 status (if started by reComputer path)\"; sudo docker ps -a --filter name=depth_anything_v3'",
169
169
"bash -lc 'echo \"[5/5] follow logs for 120s\"; timeout 120s sudo docker logs -f depth_anything_v3 2>&1 || true; echo \"[hint] if still building engine, rerun Run and keep logs open\"'"
"bash -lc 'set -e; echo \"[3/5] start tutorial container + run GUI preview in background xauth mode\"; DISP=${DISPLAY:-}; if [ -z \"$DISP\" ]; then if [ -S /tmp/.X11-unix/X99 ]; then DISP=:99; elif [ -S /tmp/.X11-unix/X1 ]; then DISP=:1; else DISP=:0; fi; fi; XAUTH=\"\"; XAUTH_ENV=\"\"; XAUTH_MOUNT=\"\"; if [ \"$DISP\" != \":99\" ]; then XAUTH=/run/user/1000/gdm/Xauthority; if [ ! -f \"$XAUTH\" ]; then XAUTH=/home/seeed/.Xauthority; fi; if [ -f \"$XAUTH\" ]; then XAUTH_ENV=\"-e XAUTHORITY=$XAUTH\"; XAUTH_MOUNT=\"-v $XAUTH:$XAUTH:ro\"; fi; fi; pick_cam(){ for d in /dev/video0 /dev/video3 /dev/video1 /dev/video2; do [ -e \"$d\" ] || continue; if timeout 3s v4l2-ctl -d \"$d\" --stream-mmap --stream-count=1 --stream-to=/tmp/cam_probe.raw >/dev/null 2>&1; then echo ${d#/dev/video}; return 0; fi; done; echo 0; }; CAM=$(pick_cam); echo \"[info] start container with DISPLAY=$DISP XAUTH=${XAUTH:-none} CAMERA_ID=$CAM\"; sudo docker rm -f depth_anything_v3 >/dev/null 2>&1 || true; sudo docker run -d --name depth_anything_v3 --restart unless-stopped --runtime=nvidia --network host --ipc host --privileged -e DISPLAY=$DISP $XAUTH_ENV -e CAMERA_ID=$CAM -e QT_X11_NO_MITSHM=1 -e LIBGL_ALWAYS_SOFTWARE=1 -v /tmp/.X11-unix:/tmp/.X11-unix $XAUTH_MOUNT -v /dev:/dev chenduola6/depth_anything_v3:jp6.2 bash -lc \"set -e; cd /workspace/ros2-depth-anything-v3-trt; source install/setup.bash; if ls onnx/*.engine >/dev/null 2>&1; then printf \\\"[skip] engine already exists\\\\n\\\"; else printf \\\"[info] first run building TensorRT engine, this can take several minutes\\\\n\\\"; ros2 run depth_anything_v3 generate_engines onnx; fi; exec ./run_camera_depth.sh\"; sudo docker ps -a --filter name=depth_anything_v3'",
21
+
"bash -lc 'set -e; echo \"[3/5] start tutorial container + run GUI preview\"; DISP=:99; xdpyinfo -display :99 >/dev/null 2>&1 || DISP=:0; pick_cam(){ for d in /dev/video0 /dev/video3 /dev/video1 /dev/video2; do [ -e \"$d\" ] || continue; if timeout 3s v4l2-ctl -d \"$d\" --stream-mmap --stream-count=1 --stream-to=/tmp/cam_probe.raw >/dev/null 2>&1; then echo ${d#/dev/video}; return 0; fi; done; echo 0; }; CAM=$(pick_cam); echo \"[info] start container with DISPLAY=$DISP CAMERA_ID=$CAM\"; sudo docker rm -f depth_anything_v3 >/dev/null 2>&1 || true; sudo docker run -d --name depth_anything_v3 --restart unless-stopped --runtime=nvidia --network host --ipc host --privileged -e DISPLAY=$DISP -e CAMERA_ID=$CAM -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev chenduola6/depth_anything_v3:jp6.2 bash -lc \"set -e; export DISPLAY=$DISP; cd /workspace/ros2-depth-anything-v3-trt; source install/setup.bash; if ls onnx/*.engine >/dev/null 2>&1; then printf \\\"[skip] engine already exists\\\\n\\\"; else printf \\\"[info] first run building TensorRT engine, this can take several minutes\\\\n\\\"; ros2 run depth_anything_v3 generate_engines onnx; fi; exec ./run_camera_depth.sh\"; sudo docker ps -a --filter name=depth_anything_v3'",
22
22
"bash -lc 'echo \"[4/5] show depth_anything_v3 status (if started by reComputer path)\"; sudo docker ps -a --filter name=depth_anything_v3'",
23
23
"bash -lc 'echo \"[5/5] follow logs for 120s\"; timeout 120s sudo docker logs -f depth_anything_v3 2>&1 || true; echo \"[hint] if still building engine, rerun Run and keep logs open\"'",
0 commit comments