-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script to reproduce results from loop closure detection paper. …
…Added option to show Recall at 100% precision directly from rtabmap-console. Fixed retrieval not working on loop closure detection mode-only. Fixed showLogs.m error with Octave.
- Loading branch information
Showing
9 changed files
with
258 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
To reproduce results (based on parameters of this [paper](https://introlab.3it.usherbrooke.ca/mediawiki-introlab/images/b/bc/TRO2013.pdf)): | ||
|
||
``` | ||
rtabmap-console \ | ||
--Rtabmap/StatisticLogged true\ | ||
--Rtabmap/StatisticLoggedHeaders false\ | ||
--Kp/DetectorStrategy 0\ | ||
--Rtabmap/MemoryThr 300\ | ||
--Rtabmap/LoopRatio 0.9\ | ||
--SURF/HessianThreshold 150\ | ||
--Mem/STMSize 30\ | ||
--Vis/MaxFeatures 400\ | ||
--Kp/TfIdfLikelihoodUsed false\ | ||
--Kp/MaxFeatures 400\ | ||
--Kp/BadSignRatio 0.25\ | ||
--Mem/BadSignaturesIgnored true\ | ||
--Mem/RehearsalSimilarity 0.20\ | ||
--Mem/RecentWmRatio 0.2\ | ||
-gt "~/Downloads/UdeS_1Hz.png"\ | ||
~/Downloads/UdeS_1Hz | ||
``` | ||
Adding the ground truth file here is optional to show recall at 100% precision at the end of the process directly without using the octave/MATLAB script below. For NewCollege and CityCentre datasets, `rtabmap-imagesJoiner` can be used to assemble the left and right images together. | ||
|
||
To analyze with Octave/MATLAB, drop `LogF.txt` and `LogI.txt` generated files from command above in ShowLogs directly, then execute `showLogs.m`. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/NewCollege ~/loop_closure_detection_datasets/NewCollege.png | ||
$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/CityCentre ~/loop_closure_detection_datasets/CityCentre.png | ||
$SCRIPT_DIR/run_bow.sh ~/loop_closure_detection_datasets/UdeS_1Hz ~/loop_closure_detection_datasets/UdeS_1Hz.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
DATASET_FOLDER="" | ||
GT_FILE="" | ||
if [ $# -eq 2 ] | ||
then | ||
DATASET_FOLDER=$1 | ||
GT_FILE=$2 | ||
else | ||
echo "Usage: run_bow.sh \"dataset folder\" \"ground truth file\"" | ||
exit | ||
fi | ||
|
||
rtabmap-console \ | ||
-quiet \ | ||
--Rtabmap/StatisticLogged true\ | ||
--Rtabmap/StatisticLoggedHeaders false\ | ||
--Kp/DetectorStrategy 0\ | ||
--SURF/HessianThreshold 150\ | ||
--Rtabmap/MemoryThr 300\ | ||
--Rtabmap/LoopRatio 0.9\ | ||
--Mem/STMSize 30\ | ||
--Vis/MaxFeatures 400\ | ||
--Kp/TfIdfLikelihoodUsed false\ | ||
--Kp/MaxFeatures 400\ | ||
--Kp/BadSignRatio 0.25\ | ||
--Mem/BadSignaturesIgnored true\ | ||
--Mem/RehearsalSimilarity 0.20\ | ||
--Mem/RecentWmRatio 0.20\ | ||
-gt "$GT_FILE"\ | ||
"$DATASET_FOLDER" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.