GLIM
Loading...
Searching...
No Matches
data_validator.hpp
1#pragma once
2
3#include <memory>
4#include <chrono>
5#include <Eigen/Core>
6
7namespace glim {
8
9class RawPoints;
10class TimeKeeper;
11
13public:
14 DataValidator(bool debug = false);
16
17public:
18 void timer_callback();
19 void imu_callback(const double stamp, const Eigen::Vector3d& linear_acc, const Eigen::Vector3d& angular_vel);
20 void points_callback(const double stamp, const std::shared_ptr<RawPoints>& raw_points);
21
22private:
23 std::chrono::high_resolution_clock::time_point last_imu_time;
24 std::chrono::high_resolution_clock::time_point last_points_time;
25
26 double last_imu_stamp;
27 double last_points_stamp;
28
29 std::unique_ptr<TimeKeeper> time_keeper;
30};
31
32} // namespace glim
Definition data_validator.hpp:12