24 #include "glog/logging.h" 27 namespace ground_truth {
32 constexpr
int64 kUtsTicksPerSecond = 10000000;
41 const std::string& relations_filename) {
42 proto::GroundTruth ground_truth;
43 std::ifstream relations_stream(relations_filename.c_str());
44 double unix_time_1, unix_time_2, x, y, z, roll, pitch, yaw;
45 while (relations_stream >> unix_time_1 >> unix_time_2 >> x >> y >> z >>
46 roll >> pitch >> yaw) {
47 const common::Time common_time_1 = UnixToCommonTime(unix_time_1);
48 const common::Time common_time_2 = UnixToCommonTime(unix_time_2);
52 auto*
const new_relation = ground_truth.add_relation();
57 CHECK(relations_stream.eof());
proto::GroundTruth ReadRelationsTextFile(const std::string &relations_filename)
constexpr int64 kUtsEpochOffsetFromUnixEpochInSeconds
UniversalTimeScaleClock::time_point Time
Time FromUniversal(const int64 ticks)
Duration FromSeconds(const double seconds)
int64 ToUniversal(const Time time)