2022-06-26 20:46:08 -07:00
#!/bin/bash
2022-09-11 13:03:32 -07:00
if [ $# -lt 2 ]
2022-06-26 20:46:08 -07:00
then
2022-09-11 13:03:32 -07:00
echo "No arguments supplied. They should be 2: the input directory (original maps) and the output data directory (where reprocessed map databases will be saved)."
2022-06-26 20:46:08 -07:00
exit
fi
2022-09-11 13:03:32 -07:00
INPUT = $1
OUTPUT = $2
2022-06-26 20:46:08 -07:00
DETECTOR = ( 0 1 6 7 9 14 11 111)
source rtabmap_latest.bash
for d in " ${ DETECTOR [@] } "
do
2022-09-11 13:03:32 -07:00
valgrind --tool= massif --time-unit= ms --detailed-freq= 1 --max-snapshots= 100 rtabmap-reprocess --Mem/IncrementalMemory false --Kp/IncrementalFlann false " ${ OUTPUT } / ${ d } /map_190321-164651.db; ${ INPUT } /loc_190321-165128.db " output.db
2022-06-26 20:46:08 -07:00
rm output.db
done