24 #include "gtest/gtest_prod.h" 31 namespace perception {
39 : sensor_info_(sensor_info) {}
49 bool GetPose(
double timestamp, Eigen::Affine3d* pose)
const;
60 kMaxCachedFrameNum = number;
64 latest_query_timestamp_ = latest_query_timestamp;
68 FRIEND_TEST(SensorTest, test);
72 double latest_query_timestamp_ = 0.0;
74 std::deque<SensorFramePtr> frames_;
76 static size_t kMaxCachedFrameNum;
void AddFrame(const base::FrameConstPtr &frame_ptr)
SensorType type
Definition: sensor_meta.h:59
std::string name
Definition: sensor_meta.h:58
void SetLatestQueryTimestamp(const double latest_query_timestamp)
Definition: sensor.h:63
base::SensorType GetSensorType() const
Definition: sensor.h:55
SensorFramePtr QueryLatestFrame(double timestamp)
std::shared_ptr< const Frame > FrameConstPtr
Definition: frame.h:59
std::shared_ptr< SensorFrame > SensorFramePtr
Definition: base_forward_declaration.h:28
void QueryLatestFrames(double timestamp, std::vector< SensorFramePtr > *frames)
Definition: sensor_meta.h:57
bool GetPose(double timestamp, Eigen::Affine3d *pose) const
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...
Definition: sensor_meta.h:29
std::string GetSensorId() const
Definition: sensor.h:52
static void SetMaxCachedFrameNumber(size_t number)
Definition: sensor.h:59
Sensor(const base::SensorInfo &sensor_info)
Definition: sensor.h:38