MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / writeCSVHeaders

Function writeCSVHeaders

okvis_ros/src/dataset_convertor.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void writeCSVHeaders(map<string, shared_ptr<std::ofstream>>& files, // NOLINT
184 const map<string, map<string, string>>& sensor_info) { // NOLINT
185 for (auto iterator : sensor_info) {
186 if (iterator.second[SENSOR_TYPE].compare(CAMERA) == 0)
187 writeCameraHeader(files[iterator.first]);
188 else if (iterator.second[SENSOR_TYPE].compare(IMU) == 0)
189 writeImuHeader(files[iterator.first]);
190 else if (iterator.second[SENSOR_TYPE].compare(VICON) == 0)
191 writeViconHeader(files[iterator.first]);
192 }
193}
194
195map<string, shared_ptr<std::ofstream>> openFileStreams(const string folder_path,
196 map<string, map<string, string>>& sensor_info) { // NOLINT

Callers 1

openFileStreamsFunction · 0.85

Calls 3

writeCameraHeaderFunction · 0.85
writeImuHeaderFunction · 0.85
writeViconHeaderFunction · 0.85

Tested by

no test coverage detected