MCPcopy Create free account
hub / github.com/93won/360_visual_inertial_odometry / LoadCameraTimestamps

Function LoadCameraTimestamps

app/main.cpp:30–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace fs = std::filesystem;
29
30std::vector<double> LoadCameraTimestamps(const std::string& filepath) {
31 std::vector<double> timestamps;
32 std::ifstream file(filepath);
33
34 if (!file.is_open()) {
35 LOG_ERROR("Failed to open {}", filepath);
36 return timestamps;
37 }
38
39 std::string line;
40 while (std::getline(file, line)) {
41 if (line.empty()) continue;
42 try {
43 timestamps.push_back(std::stod(line));
44 } catch (...) {}
45 }
46
47 return timestamps;
48}
49
50std::vector<vio_360::IMUData> LoadIMUData(const std::string& filepath) {
51 std::vector<vio_360::IMUData> imu_data;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected