26 #include "modules/perception/camera/lib/obstacle/tracker/omt/omt.pb.h" 30 namespace perception {
41 void Init(
const omt::ReferenceParam &ref_param,
float width,
float height);
43 const std::vector<Target> &targets);
47 void SyncGroundEstimator(
const std::string &sensor,
48 const Eigen::Matrix3f &camera_k_matrix,
49 int img_width,
int img_height) {
50 if (ground_estimator_mapper_.find(sensor) ==
51 ground_estimator_mapper_.end()) {
52 auto &ground_estimator = ground_estimator_mapper_[sensor];
53 const float fx = camera_k_matrix(0, 0);
54 const float fy = camera_k_matrix(1, 1);
55 const float cx = camera_k_matrix(0, 2);
56 const float cy = camera_k_matrix(1, 2);
57 std::vector<float> k_mat = {fx, 0, cx, 0, fy, cy, 0, 0, 1};
58 ground_estimator.Init(k_mat, img_width, img_height,
common::IRec(fx));
63 omt::ReferenceParam ref_param_;
64 std::map<std::string, std::vector<Reference>> reference_;
65 std::map<std::string, std::vector<std::vector<int>>> ref_map_;
66 std::vector<std::vector<int>> init_ref_map_;
73 std::map<std::string, CameraGroundPlaneDetector> ground_estimator_mapper_;
Definition: camera_frame.h:33
Definition: obstacle_reference.h:39
float IRec(float a)
Definition: i_basic.h:69
float ymax
Definition: obstacle_reference.h:36
float area
Definition: obstacle_reference.h:34
Definition: obstacle_reference.h:33
Definition: object_template_manager.h:49
float k
Definition: obstacle_reference.h:35