euroc_eval_examples.sh 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. pathDatasetEuroc='/Datasets/EuRoC' #Example, it is necesary to change it by the dataset path
  3. #------------------------------------
  4. # Single Session Example (Pure visual)
  5. echo "Launching MH01 with Stereo sensor"
  6. ./Examples/Stereo/stereo_euroc ./Vocabulary/ORBvoc.txt ./Examples/Stereo/EuRoC.yaml "$pathDatasetEuroc"/MH01 ./Examples/Stereo/EuRoC_TimeStamps/MH01.txt dataset-MH01_stereo
  7. echo "------------------------------------"
  8. echo "Evaluation of MH01 trajectory with Stereo sensor"
  9. python3 evaluation/evaluate_ate.py f_dataset-MH01_stereo.txt evaluation/Ground_truth/EuRoC_left_cam/MH01_GT.txt
  10. # MultiSession Example (Pure visual)
  11. echo "Launching Machine Hall with Stereo sensor"
  12. ./Examples/Stereo/stereo_euroc ./Vocabulary/ORBvoc.txt ./Examples/Stereo/EuRoC.yaml "$pathDatasetEuroc"/MH01 ./Examples/Stereo/EuRoC_TimeStamps/MH01.txt "$pathDatasetEuroc"/MH02 ./Examples/Stereo/EuRoC_TimeStamps/MH02.txt "$pathDatasetEuroc"/MH03 ./Examples/Stereo/EuRoC_TimeStamps/MH03.txt "$pathDatasetEuroc"/MH04 ./Examples/Stereo/EuRoC_TimeStamps/MH04.txt "$pathDatasetEuroc"/MH05 ./Examples/Stereo/EuRoC_TimeStamps/MH05.txt dataset-MH01_to_MH05_stereo
  13. echo "------------------------------------"
  14. echo "Evaluation of MAchine Hall trajectory with Stereo sensor"
  15. python3 evaluation/evaluate_ate.py f_dataset-MH01_to_MH05_stereo.txt evaluation/Ground_truth/EuRoC_left_cam/MH_GT.txt
  16. #------------------------------------
  17. # Single Session Example (Visual-Inertial)
  18. echo "Launching V102 with Monocular-Inertial sensor"
  19. ./Examples/Monocular-Inertial/mono_inertial_euroc ./Vocabulary/ORBvoc.txt ./Examples/Monocular-Inertial/EuRoC.yaml "$pathDatasetEuroc"/V102 ./Examples/Monocular-Inertial/EuRoC_TimeStamps/V102.txt dataset-V102_monoi
  20. echo "------------------------------------"
  21. echo "Evaluation of V102 trajectory with Monocular-Inertial sensor"
  22. python3 evaluation/evaluate_ate.py f_dataset-V102_monoi.txt "$pathDatasetEuroc"/V102/mav0/state_groundtruth_estimate0/data.csv
  23. # MultiSession Monocular Examples
  24. echo "Launching Vicon Room 2 with Monocular-Inertial sensor"
  25. ./Examples/Monocular-Inertial/mono_inertial_euroc ./Vocabulary/ORBvoc.txt ./Examples/Monocular-Inertial/EuRoC.yaml "$pathDatasetEuroc"/V201 ./Examples/Monocular-Inertial/EuRoC_TimeStamps/V201.txt "$pathDatasetEuroc"/V202 ./Examples/Monocular-Inertial/EuRoC_TimeStamps/V202.txt "$pathDatasetEuroc"/V203 ./Examples/Monocular-Inertial/EuRoC_TimeStamps/V203.txt dataset-V201_to_V203_monoi
  26. echo "------------------------------------"
  27. echo "Evaluation of Vicon Room 2 trajectory with Stereo sensor"
  28. python3 evaluation/evaluate_ate.py f_dataset-V201_to_V203_monoi.txt evaluation/Ground_truth/EuRoC_imu/V2_GT.txt