#!/bin/bash

# Script to convert a bunch of mclams-ed datasets to log.gz


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/lat_jump_20180326T194501-kitt_04@1522094223.72
ITER=4
INDEX=5
RUNID=20180326T194501-kitt_04

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/long_jump_20180410T225019-kitt_10@1523401625.82
ITER=4
INDEX=5
RUNID=20180410T225019-kitt_10

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/lat_jump_20180413T214950-kitt_10@1523659056.11
ITER=4
INDEX=5
RUNID=20180413T214950-kitt_10

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/long_jump_20180430T222405-kitt_06@1525127988.44
ITER=3
INDEX=5
RUNID=20180430T222405-kitt_06

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/construction_20180418T214559-kitt_06@1524089293.89
ITER=4
INDEX=12
RUNID=20180418T214559-kitt_06

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/tunnel_20180503T192708-kitt_01@1525376498.01
ITER=3
INDEX=12
RUNID=20180503T192708-kitt_01

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED


WDIR=/mnt/flashblade/nate/localizer_eval_suite_logs/lat_jump_20180606T220509-kitt_02@1528325910.7
ITER=4
INDEX=12
RUNID=20180606T220509-kitt_02

ADJUSTED=${RUNID}_adjusted.log.gz
mybrun //mapping/distributed_mapping/scripts:convert_dataset_to_log_gz --datasets $WDIR/iteration_00${ITER}/aligned_datasets.pb --index $INDEX --output /tmp/$ADJUSTED
aws s3 cp /tmp/$ADJUSTED s3://zoox-testdata/locomofo/eval_suite/$ADJUSTED
