#!/bin/bash

# Script to generate the evasive scenario with Argus sim and upload to Z3

set -euo pipefail

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

mkdir decision3_chum

brun //vehicle/planner/decision/tools:decision_player -- \
    --regenerate_chum \
    --merge_variants \
    --all_scenarios \
    --output_dir=$PWD/decision3_chum

tar -czf decision3_chum.tgz decision3_chum
scripts/build/upload-test-data.sh decision3_chum.tgz
rm -rf decision3_chum.tgz decision3_chum
