summaryrefslogtreecommitdiff
path: root/tf2_watch.bash
diff options
context:
space:
mode:
Diffstat (limited to 'tf2_watch.bash')
-rwxr-xr-xtf2_watch.bash35
1 files changed, 0 insertions, 35 deletions
diff --git a/tf2_watch.bash b/tf2_watch.bash
deleted file mode 100755
index 02e2580..0000000
--- a/tf2_watch.bash
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/env bash
-
-TIME_BETWEEN_SAMPLES="$1"
-
-set -euo pipefail
-IFS=$'\n\t'
-
-if [ -z "${TIME_BETWEEN_SAMPLES}" ]; then
- TIME_BETWEEN_SAMPLES="25"
-fi
-
-GENERATED="frames.pdf"
-
-cleanstop() {
- rm -rf "./${GENERATED}"
- pkill mupdf
-}
-
-trap "cleanstop" EXIT
-
-
-MU_LAUNCHED=""
-
-while : ; do
- rosrun tf2_tools view_frames.py
-
- if [ -z "${MU_LAUNCHED}" ]; then
- mupdf "${GENERATED}" &
- MU_LAUNCHED="y"
- else
- pkill -hup mupdf
- fi
-
- sleep "${TIME_BETWEEN_SAMPLES}"
-done