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

Method readParameter

include/Settings.h:127–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 private:
126 template<typename T>
127 T readParameter(cv::FileStorage& fSettings, const std::string& name, bool& found,const bool required = true){
128 cv::FileNode node = fSettings[name];
129 if(node.empty()){
130 if(required){
131 std::cerr << name << " required parameter does not exist, aborting..." << std::endl;
132 exit(-1);
133 }
134 else{
135 std::cerr << name << " optional parameter does not exist..." << std::endl;
136 found = false;
137 return T();
138 }
139
140 }
141 else{
142 found = true;
143 return (T) node;
144 }
145 }
146
147 void readCamera1(cv::FileStorage& fSettings);
148 void readCamera2(cv::FileStorage& fSettings);

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected