59 bool OnReceiveImage(
const std::shared_ptr<drivers::Image>& msg);
61 void CameraToWorldCoor(
const Eigen::Affine3d& camera2world,
62 std::vector<base::ObjectPtr>* objs);
65 int MakeProtobufMsg(
double msg_timestamp,
int seq_num,
66 const std::vector<base::ObjectPtr>& objects,
68 bool LoadCameraExtrinsic(
const std::string& file_path,
69 Eigen::Affine3d* camera_extrinsic);
70 bool LoadCameraExtrinsicNus(
71 const std::string &camera_extrinsic_file_path,
72 const std::string &lidar_extrinsic_file_path,
73 Eigen::Affine3d *camera2lidar_rt);
79 uint32_t seq_num_ = 0;
80 double timestamp_offset_ = 0;
84 std::shared_ptr<CameraFrame> frame_ptr_;
85 std::shared_ptr<base::Frame> base_frame_ptr_;
86 std::shared_ptr<BaseObstacleDetector> detector_;
87 std::shared_ptr<BaseTracker> tracker_;
89 std::shared_ptr<onboard::TransformWrapper> trans_wrapper_;
91 std::vector<std::shared_ptr<cyber::Reader<drivers::Image>>> readers_;
92 std::shared_ptr<cyber::Writer<PerceptionObstacles>> writer_;