fix: make autostart script SCRIPT_DIR more robust

This commit is contained in:
ASTRA-SHC
2025-10-26 12:20:16 +00:00
parent 18a7b7e2ab
commit 9516e53f68
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
ANCHOR_WS="$(dirname $0)/.."
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
ANCHOR_WS="$SCRIPT_DIR/.."
AUTONOMY_WS="$ANCHOR_WS/../rover-Autonomy"
BAG_LOCATION="$ANCHOR_WS/../bags/autostart"