MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / MapDrawer

Method MapDrawer

src/MapDrawer.cc:29–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29MapDrawer::MapDrawer(Atlas* pAtlas, const string &strSettingPath, Settings* settings):mpAtlas(pAtlas)
30{
31 if(settings){
32 newParameterLoader(settings);
33 }
34 else{
35 cv::FileStorage fSettings(strSettingPath, cv::FileStorage::READ);
36 bool is_correct = ParseViewerParamFile(fSettings);
37
38 if(!is_correct)
39 {
40 std::cerr << "**ERROR in the config file, the format is not correct**" << std::endl;
41 try
42 {
43 throw -1;
44 }
45 catch(exception &e)
46 {
47
48 }
49 }
50 }
51}
52
53void MapDrawer::newParameterLoader(Settings *settings) {
54 mKeyFrameSize = settings->keyFrameSize();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected