25 int64_t uts_timestamp = ::cartographer::common::ToUniversal(time);
26 int64_t ns_since_unix_epoch =
28 ::cartographer::common::kUtsEpochOffsetFromUnixEpochInSeconds *
32 ros_time.
fromNSec(ns_since_unix_epoch);
40 return ::cartographer::common::FromUniversal(
44 (time.nsec + 50) / 100);
Time & fromNSec(uint64_t t)
constexpr int64 kUtsEpochOffsetFromUnixEpochInSeconds
UniversalTimeScaleClock::time_point Time
::cartographer::common::Time FromRos(const ::ros::Time &time)
::ros::Time ToRos(::cartographer::common::Time time)