29 double gps_time = unix_time - UNIX_GPS_DIFF;
30 if (unix_time < LEAP_SECOND_TIMESTAMP) {
38 double unix_time = gps_time + UNIX_GPS_DIFF;
39 if (unix_time + 1 < LEAP_SECOND_TIMESTAMP) {
47 static const int UNIX_GPS_DIFF = 315964782;
49 static const int LEAP_SECOND_TIMESTAMP = 1483228799;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: time_util.h:25
static double Unix2Gps(double unix_time)
Definition: time_util.h:28
static double Gps2Unix(double gps_time)
Definition: time_util.h:37