37 : sensor_info_(sensor_info) {}
57 bool GetPose(
double timestamp, Eigen::Affine3d* pose)
const;
68 kMaxCachedFrameNum = number;
72 latest_query_timestamp_ = latest_query_timestamp;
80 double latest_query_timestamp_ = 0.0;
82 std::deque<SensorFramePtr> frames_;
84 static size_t kMaxCachedFrameNum;
std::string GetSensorId() const
SensorFramePtr QueryLatestFrame(double timestamp)
query latest frame whose time stamp is in range (_latest_fused_time_stamp, time_stamp]
static void SetMaxCachedFrameNumber(size_t number)
Sensor(const base::SensorInfo &sensor_info)
void SetLatestQueryTimestamp(const double latest_query_timestamp)
base::SensorType GetSensorType() const
void QueryLatestFrames(double timestamp, std::vector< SensorFramePtr > *frames)
query frames whose time stamp is in range (_latest_fused_time_stamp, time_stamp]
bool GetPose(double timestamp, Eigen::Affine3d *pose) const
void AddFrame(const base::FrameConstPtr &frame_ptr)
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...
std::shared_ptr< const Frame > FrameConstPtr
std::shared_ptr< SensorFrame > SensorFramePtr