21#include <unordered_map>
24#include "gtest/gtest_prod.h"
95 std::vector<SensorFramePtr>* frames)
const;
104 std::vector<SensorFramePtr>* frames)
const;
115 bool GetPose(
const std::string& sensor_id,
double timestamp,
116 Eigen::Affine3d* pose)
const;
125 const std::string& sensor_id)
const;
128 bool inited_ =
false;
129 std::unordered_map<std::string, SensorPtr> sensors_;
133 FRIEND_TEST(SensorDataManagerTest, test);
void GetLatestSensorFrames(double timestamp, const std::string &sensor_id, std::vector< SensorFramePtr > *frames) const
Get the latest sensor frames
bool Init()
Initialization
bool IsRadar(const base::FrameConstPtr &frame_ptr)
Is the data frame detected by radar
bool IsLidar(const base::FrameConstPtr &frame_ptr)
Is the data frame detected by lidar
void Reset()
Reset the data
void GetLatestFrames(double timestamp, std::vector< SensorFramePtr > *frames) const
Get the latest sensor frames
bool GetPose(const std::string &sensor_id, double timestamp, Eigen::Affine3d *pose) const
Get the Pose object
bool IsCamera(const base::FrameConstPtr &frame_ptr)
Is the data frame detected by camera
base::BaseCameraModelPtr GetCameraIntrinsic(const std::string &sensor_id) const
Get the Camera Intrinsic object
void AddSensorMeasurements(const base::FrameConstPtr &frame_ptr)
Add the data frame, which contains the obstacles detected by the sensor
#define DECLARE_SINGLETON(classname)
std::shared_ptr< BaseCameraModel > BaseCameraModelPtr
std::shared_ptr< const Frame > FrameConstPtr