summaryrefslogtreecommitdiff
path: root/tf2_watch
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-29 13:56:32 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-09-29 13:56:32 -0500
commit705de6a57a584c6004c475949b649ae9931f8f29 (patch)
treea4331d82d42b1f92499f00c45bbe12249335bd16 /tf2_watch
parent9eaf8b5ed1c3f97a42b6f6a6d77f9267326801c3 (diff)
downloadextra-ros-utils-main.tar.xz
extra-ros-utils-main.zip
Try to resolve dependancies before runningHEADmain
Diffstat (limited to 'tf2_watch')
-rwxr-xr-xtf2_watch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tf2_watch b/tf2_watch
index b8e205b..5cf294a 100755
--- a/tf2_watch
+++ b/tf2_watch
@@ -9,6 +9,16 @@ if [ -z "${TIME_BETWEEN_SAMPLES}" ]; then
TIME_BETWEEN_SAMPLES="25"
fi
+depends() {
+ if ! type "$1" >/dev/null; then
+ die "\"$1\" must be installed and in your \$PATH"
+ fi
+}
+
+depends pkill
+depends mupdf
+depends rosrun
+
GENERATED_PDF="frames.pdf"
GENERATED_RV="frames.gv"