20#include <unordered_map>
45 const std::string& name)
const;
48 const std::string& name)
const;
51 bool IsHdLidar(
const std::string& name)
const;
53 bool IsLdLidar(
const std::string& name)
const;
56 bool IsLidar(
const std::string& name)
const;
58 bool IsRadar(
const std::string& name)
const;
60 bool IsCamera(
const std::string& name)
const;
68 std::string
GetFrameId(
const std::string& name)
const;
71 inline std::string IntrinsicPath(
const std::string& frame_id) {
72 std::string intrinsics =
73 FLAGS_obs_sensor_intrinsic_path +
"/" + frame_id +
"_intrinsics.yaml";
81 std::unordered_map<std::string, apollo::perception::base::SensorInfo>
83 std::unordered_map<std::string, std::shared_ptr<BaseCameraDistortionModel>>
85 std::unordered_map<std::string, std::shared_ptr<BaseCameraModel>>
bool IsRadar(const std::string &name) const
bool IsHdLidar(const apollo::perception::base::SensorType &type) const
bool IsLidar(const apollo::perception::base::SensorType &type) const
bool IsCamera(const std::string &name) const
bool GetSensorInfo(const std::string &name, apollo::perception::base::SensorInfo *sensor_info) const
bool IsSensorExist(const std::string &name) const
std::shared_ptr< BaseCameraModel > GetUndistortCameraModel(const std::string &name) const
bool IsUltrasonic(const std::string &name) const
bool IsRadar(const apollo::perception::base::SensorType &type) const
bool IsLdLidar(const apollo::perception::base::SensorType &type) const
bool IsUltrasonic(const apollo::perception::base::SensorType &type) const
std::string GetFrameId(const std::string &name) const
bool IsCamera(const apollo::perception::base::SensorType &type) const
std::shared_ptr< BaseCameraDistortionModel > GetDistortCameraModel(const std::string &name) const
bool IsLdLidar(const std::string &name) const
bool IsHdLidar(const std::string &name) const
bool IsMainSensor(const std::string &name) const
bool IsLidar(const std::string &name) const
#define DECLARE_SINGLETON(classname)
SensorType
Sensor types are set in the order of lidar, radar, camera, ultrasonic Please make sure SensorType has...