From f9f17d1f8b919115a0acc7726d81dd2180ac079e Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Wed, 27 Nov 2024 16:57:29 -0400 Subject: [PATCH] Better failure handling and frame name for image capture --- robots/spiri-mu/camera_capture/docker-compose.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/robots/spiri-mu/camera_capture/docker-compose.yaml b/robots/spiri-mu/camera_capture/docker-compose.yaml index 81c15ba..0a9c2cc 100644 --- a/robots/spiri-mu/camera_capture/docker-compose.yaml +++ b/robots/spiri-mu/camera_capture/docker-compose.yaml @@ -8,9 +8,7 @@ services: restart: unless-stopped image: restreamio/gstreamer:2024-11-14T15-53-57Z-prod volumes: - - ${SDK_ROOT}/survey/${ROBOT_NAME}:/survey + - ${SDK_ROOT}/survey/${ROBOT_NAME}:/survey/ environment: - RMW_IMPLEMENTATION=rmw_cyclonedds_cpp - command: sh -c "rm /survey/* && gst-launch-1.0 -vc udpsrc port=$GSTREAMER_UDP_PORT close-socket=false auto-multicast=true ! application/x-rtp, payload=96 ! rtph264depay ! decodebin3 ! videoconvert ! videorate ! video/x-raw,framerate=1/2 ! jpegenc ! multifilesink location=/survey/img_"frame%d".jpg throttle-time=1" - - + command: sh -c "rm -f /survey/*; gst-launch-1.0 -vc udpsrc port=$GSTREAMER_UDP_PORT close-socket=false auto-multicast=true ! application/x-rtp, payload=96 ! rtph264depay ! decodebin3 ! videoconvert ! videorate ! video/x-raw,framerate=1/2 ! jpegenc ! multifilesink location=/survey/img_%05d.jpg throttle-time=1"