#!/bin/bash
if [ $# -lt 3 ]; then
    echo "Please provide the experiment string, camera name and camera serial as the agruments"
    exit -1
fi
export RUNTOOL_CMD='pipedream/tools/run bazel -c opt'
export BINARY='//experimental/dma/traffic_lights:convert_zimulator_main'
export EXP_DIR='/mnt/flashblade/ekaterina/data/'$1

export CAMERA_NAME=$2
#'north_wide_left'
export CAMERA_SERIAL=$3
#'16062230'
#export CAMERA_NAME='north_wide_right'
#export CAMERA_SERIAL='16062180'


echo ${RUNTOOL_CMD} $BINARY --input_dir=${EXP_DIR} --camera_dirname=0001-${CAMERA_NAME}__${CAMERA_SERIAL} --camera_name=${CAMERA_NAME}
${RUNTOOL_CMD} $BINARY --input_dir=${EXP_DIR} --camera_dirname=0001-${CAMERA_NAME}__${CAMERA_SERIAL} --camera_name=${CAMERA_NAME}
