22#include "modules/common_msgs/basic_msgs/geometry.pb.h"
34constexpr double EPS = 1e-8;
36constexpr float FLOAT_NAN = std::numeric_limits<float>::quiet_NaN();
54 explicit RateControl(uint64_t period_ns) : period_ns_(period_ns) {}
57 if (now - latest_ns_ > period_ns_) {
66 uint64_t latest_ns_ = 0;
uint64_t ToNanosecond() const
convert time to nanosecond.
static Time Now()
get the current time.
RateControl(uint64_t period_ns)
constexpr double DEG_TO_RAD
void rfu_to_flu(double r, double f, double u, ::apollo::common::Point3D *flu)
constexpr int SECONDS_PER_WEEK
constexpr uint64_t PERIOD_NS_1HZ
constexpr double azimuth_deg_to_yaw_rad(double azimuth)
constexpr float FLOAT_NAN