#!/bin/bash

set -euo pipefail

trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT

# Find workspace and set up env
workspace=$(bazel info workspace)
source "$workspace/scripts/shell/bazel/function.sh"

bazel_run //experimental/paul/debug:teleop_operator_debugger &

bazel_run //teleop/ziod/logger:replayer -- --infile "$1" --rate 100 teleop
