basalt/scripts/eval_full/run_evaluations.sh

34 lines
1.3 KiB
Bash
Raw Normal View History

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-07-29 16:18:04 +02:00
basalt_mapper --show-gui 0 --cam-calib /usr/etc/basalt/euroc_eucm_calib.json --config-path /usr/etc/basalt/euroc_config.json --marg-data eval_tmp_marg_data \
2019-06-07 14:42:18 +02:00
--result-path $folder_name/mapper_$d
basalt_mapper --show-gui 0 --cam-calib /usr/etc/basalt/euroc_eucm_calib.json --config-path /usr/etc/basalt/euroc_config_no_weights.json --marg-data eval_tmp_marg_data \
--result-path $folder_name/mapper_no_weights_$d
2019-08-14 11:31:12 +02:00
basalt_mapper --show-gui 0 --cam-calib /usr/etc/basalt/euroc_eucm_calib.json --config-path /usr/etc/basalt/euroc_config_no_factors.json --marg-data eval_tmp_marg_data \
--result-path $folder_name/mapper_no_factors_$d
2019-04-15 17:38:58 +02:00
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