Skip to content

Commit

Permalink
Clear up folder, add warning msg in shell for using conveniently
Browse files Browse the repository at this point in the history
  • Loading branch information
shanpenghui committed Sep 12, 2020
1 parent c7fcd2d commit 0d7efcf
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Run:
```
./build.sh
./tum_vi.sh
./shells/build.sh
./shells/tum_vi.sh
```

要注意的是,目前只有单目带IMU的被激活,里面的配置需要自己对应自己的电脑更新
Expand Down
Binary file removed ______1.docx
Binary file not shown.
Binary file removed ______2.docx
Binary file not shown.
Binary file removed ______3.docx
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added reference/RPi-Camera-UserManual.pdf
Binary file not shown.
11 changes: 5 additions & 6 deletions build.sh → shells/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "Configuring and building Thirdparty/DBoW2 ..."

cd Thirdparty/DBoW2
cd ../Thirdparty/DBoW2
#rm -rf build lib
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
Expand All @@ -9,22 +10,20 @@ make -j 32
cd ../../g2o

echo "Configuring and building Thirdparty/g2o ..."

#rm -rf build lib
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j 32

cd ../../../

echo "Uncompress vocabulary ..."

cd Vocabulary
cd ../../../Vocabulary
tar -xf ORBvoc.txt.tar.gz
cd ..

echo "Configuring and building ORB_SLAM3 ..."

#rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions tum_vi.sh → shells/tum_vi.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash
currentDir=$(pwd)

pathDatasetTUM_VI='/media/sph/TOSHIBA EXT/dataset' #Example, it is necesary to change it by the dataset path
if [ -d "$pathDatasetTUM_VI" ];then
echo ""
else
echo "该文件夹不存在 ${pathDatasetTUM_VI} "
fi

#------------------------------------
# Monocular Examples
Expand All @@ -14,6 +21,29 @@ pathDatasetTUM_VI='/media/sph/TOSHIBA EXT/dataset' #Example, it is necesary to c
#------------------------------------
# Monocular-Inertial Examples
echo "Launching Room 4 with Monocular-Inertial sensor"
if [ -f "$currentDir/Vocabulary/ORBvoc.txt" ];then
echo ""
else
echo "该文件不存在 $currentDir/Vocabulary/ORBvoc.txt "
fi
if [ -f "$currentDir/Examples/Monocular-Inertial/TUM_512.yaml" ];then
echo ""
else
echo "该文件不存在 $currentDir/Examples/Monocular-Inertial/TUM_512.yaml "
fi
# 这里有个问题是我实际的路径是/media/sph/TOSHIBA EXT/dataset/dataset-corridor4_512_16/dataset-corridor4_512_16/mav0/cam0/data
# 而代码中看到的是/media/sph/TOSHIBA EXT/dataset/dataset-corridor4_512_16/mav0/cam0/data, 少了一层dataset-corridor4_512_16
# TODO: 要确认一下是代码bug还是什么问题
if [ -d ""$pathDatasetTUM_VI"/dataset-room4_512_16/mav0/cam0/data" ];then
echo ""
else
echo "该文件夹不存在 "$pathDatasetTUM_VI"/dataset-room4_512_16/mav0/cam0/data "
fi
if [ -f "$currentDir/Examples/Monocular-Inertial/TUM_TimeStamps/dataset-room4_512.txt" ];then
echo ""
else
echo "该文件不存在 $currentDir/Examples/Monocular-Inertial/TUM_TimeStamps/dataset-room4_512.txt "
fi
./Examples/Monocular-Inertial/mono_inertial_tum_vi Vocabulary/ORBvoc.txt Examples/Monocular-Inertial/TUM_512.yaml "$pathDatasetTUM_VI"/dataset-room4_512_16/mav0/cam0/data Examples/Monocular-Inertial/TUM_TimeStamps/dataset-room4_512.txt Examples/Monocular-Inertial/TUM_IMU/dataset-room4_512.txt dataset-room4_512_monoi

# MultiSession Monocular Examples
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0d7efcf

Please sign in to comment.