sudo apt-get install libboost-dev libboost-filesystem-dev
sudo apt-get install libeigen3
Install from dorian3d/DBoW2
rosrun LoopDetector myloopdetector path_to_vocabulary paht_to_BRIEF_PATTERN_FILE
For example:
rosrun LoopDetector myloopdetector /home/bobo/catkin_ws/src/LoopDetector/build/resources/brief_k10L6.voc.gz /home/bobo/catkin_ws/src/LoopDetector/build/resources/brief_pattern.yml
OR
cd build
./myloopdetector /home/bobo/catkin_ws/src/LoopDetector/build/resources/brief_k10L6.voc.gz /home/bobo/catkin_ws/src/LoopDetector/build/resources/brief_pattern.yml