#!/bin/bash

# Run with sim/argus_sim/run.sh <chum_uri> <simulator_args>

set -euo pipefail

workspace="$(bazel info workspace)"
source "$workspace/scripts/shell/zooxrc.sh"
partition_var=$(hostname)

echo "!!!!! Running coredash, feel free to minimize this window. !!!!!"
cd $workspace
ZOOX_VEHICLE_CONFIG=/etc/zoox/calibration/param/kitt_sim.json ZOOX_ROBOT_NAME=kitt_sim brun //vehicle/swopdash_server:offline_testing_launch extra_args:="--swopdash_bridge_partition=$partition_var --swopdash_bridge_domain_id=111" & brun //bin:coredash -- -pda -ZCI_PARTITION $partition_var -ZCI_DOMAIN 111
