2019-04-14 21:07:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
DATASET_PATH=/data/euroc
|
|
|
|
|
2019-04-15 17:38:58 +02:00
|
|
|
DATASETS=(MH_01_easy MH_02_easy MH_03_medium MH_04_difficult MH_05_difficult V1_01_easy V1_02_medium V1_03_difficult V2_01_easy V2_02_medium)
|
2019-04-14 21:07:42 +02:00
|
|
|
|
|
|
|
|
2019-04-15 17:38:58 +02:00
|
|
|
folder_name=eval_results
|
2019-04-14 21:07:42 +02:00
|
|
|
mkdir $folder_name
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-15 17:38:58 +02:00
|
|
|
for d in ${DATASETS[$CI_NODE_INDEX-1]}; do
|
2019-04-15 22:57:26 +02:00
|
|
|
basalt_vio --dataset-path $DATASET_PATH/$d --cam-calib /usr/etc/basalt/euroc_eucm_calib.json \
|
2019-04-15 17:38:58 +02:00
|
|
|
--dataset-type euroc --show-gui 0 --config-path /usr/etc/basalt/euroc_config.json \
|
|
|
|
--result-path $folder_name/vio_$d --marg-data eval_tmp_marg_data
|
2019-04-14 21:07:42 +02:00
|
|
|
|
2019-04-15 22:57:26 +02:00
|
|
|
basalt_mapper --show-gui 0 --cam-calib /usr/etc/basalt/euroc_eucm_calib.json --marg-data eval_tmp_marg_data \
|
2019-04-15 17:38:58 +02:00
|
|
|
--vocabulary /usr/etc/basalt/orbvoc.dbow3 --result-path $folder_name/mapper_$d
|
|
|
|
rm -rf eval_tmp_marg_data
|
2019-04-14 21:07:42 +02:00
|
|
|
done
|
|
|
|
|
2019-04-15 17:38:58 +02:00
|
|
|
#./gen_results.py $folder_name > euroc_results.txt
|