#!/bin/bash

source ~/driving/scripts/shell/zooxrc.sh

# this is needed so we don't accidently spoof a real kit vehicle
mkdir -p ~/.cache/zoox
echo "$(uuid)" > ~/.cache/zoox/robot_id

vehicle_name="${1:-kitt_12}"

cd ~/driving
ZOOX_VEHICLE_CONFIG="/etc/zoox/calibration/param/$vehicle_name.json" \
ZOOX_ROBOT_NAME="$vehicle_name" brun \
//vehicle/swopdash_server:offline_testing_launch \
extra_args:="--swopdash_bridge_partition=$(whoami)"
