i have save map after running ORB_SLAM2, but now i add some constraints in optimizeEssentialGraph. So i would like to check the effeciency of my change. But in ORB_SLAM2, if i have a map, it will run in localization mode in which localmapping and optimization thread are deactived. How can i optimize the map after loading the map. Specifically, how to activate optimization thread in localization mode?
i have save map after running ORB_SLAM2, but now i add some constraints in optimizeEssentialGraph. So i would like to check the effeciency of my change. But in ORB_SLAM2, if i have a map, it will run in localization mode in which localmapping and optimization thread are deactived. How can i optimize the map after loading the map. Specifically, how to activate optimization thread in localization mode?